コード例 #1
0
     "Phone",
     widget=StringWidget(label=_("Phone"), ),
 ),
 StringField(
     "Fax",
     widget=StringWidget(label=_("Fax"), ),
 ),
 StringField("EmailAddress",
             schemata="Address",
             widget=StringWidget(label=_("Email Address"), ),
             validators=("isEmail", )),
 AddressField(
     "PhysicalAddress",
     schemata="Address",
     widget=AddressWidget(label=_("Physical address"), ),
     subfield_validators={
         "country": "inline_field_validator",
         "state": "inline_field_validator",
         "district": "inline_field_validator",
     },
 ),
 AddressField(
     "PostalAddress",
     schemata="Address",
     widget=AddressWidget(label=_("Postal address"), ),
     subfield_validators={
         "country": "inline_field_validator",
         "state": "inline_field_validator",
         "district": "inline_field_validator",
     },
 ),
 AddressField(
コード例 #2
0
 ),
 StringField(
     'Phone',
     widget=StringWidget(label=_("Phone"), ),
 ),
 StringField(
     'Fax',
     widget=StringWidget(label=_("Fax"), ),
 ),
 StringField('EmailAddress',
             schemata='Address',
             widget=StringWidget(label=_("Email Address"), ),
             validators=('isEmail', )),
 AddressField(
     'PhysicalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Physical address"), ),
 ),
 AddressField(
     'PostalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Postal address"), ),
 ),
 AddressField(
     'BillingAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Billing address"), ),
 ),
 StringField(
     'AccountType',
     schemata='Bank details',
コード例 #3
0
ファイル: person.py プロジェクト: zubryan/Bika-LIMS
        'MobilePhone',
        schemata='Email Telephone Fax',
        widget=StringWidget(label=_("Phone (mobile)"), ),
    ),
    StringField(
        'JobTitle',
        widget=StringWidget(label=_("Job title"), ),
    ),
    StringField(
        'Department',
        widget=StringWidget(label=_("Department"), ),
    ),
    AddressField(
        'PhysicalAddress',
        schemata='Address',
        widget=RecordWidget(
            macro='bika_widgets/custom_address_widget',
            label=_("Physical address"),
        ),
    ),
    AddressField(
        'PostalAddress',
        schemata='Address',
        widget=RecordWidget(
            macro='bika_widgets/custom_address_widget',
            label=_("Postal address"),
        ),
    ),
), )


class Person(BaseFolder):
コード例 #4
0
ファイル: patient.py プロジェクト: mstroehle/senaite.health
     'AgeSplitted',
     required=1,
     widget=SplittedDateWidget(label=_('Age'), ),
 ),
 ComputedField(
     'AgeSplittedStr',
     expression="context.getAgeSplittedStr()",
     widget=ComputedWidget(visible=False),
 ),
 AddressField(
     'CountryState',
     widget=AddressWidget(
         searchable=True,
         label=_("Country and state"),
         showLegend=True,
         showDistrict=True,
         showCopyFrom=False,
         showCity=False,
         showPostalCode=False,
         showAddress=False,
     ),
 ),
 RecordsField(
     'PatientIdentifiers',
     type='patientidentifiers',
     subfields=('IdentifierType', 'Identifier'),
     subfield_labels={
         'IdentifierType': _('Identifier Type'),
         'Identifier': _('Identifier')
     },
     subfield_sizes={
コード例 #5
0
ファイル: patient.py プロジェクト: zhangjian0111/bika.health
 BooleanField(
     'BirthDateEstimated',
     default=False,
     widget=BooleanWidget(label=_('Birth date is estimated'), ),
 ),
 RecordsField(
     'AgeSplitted',
     required=1,
     widget=SplittedDateWidget(label=_('Age'), ),
 ),
 AddressField(
     'CountryState',
     widget=AddressWidget(
         label=_("Country and state"),
         showLegend=True,
         showDistrict=False,
         showCopyFrom=False,
         showCity=False,
         showPostalCode=False,
         showAddress=False,
     ),
 ),
 RecordsField(
     'PatientIdentifiers',
     type='patientidentifiers',
     subfields=('IdentifierType', 'Identifier'),
     subfield_labels={
         'IdentifierType': _('Identifier Type'),
         'Identifier': _('Identifier')
     },
     subfield_sizes={
         'Identifier': 15,
コード例 #6
0
        widget=StringWidget(
            label=_("Job title"),
        ),
    ),

    StringField(
        "Department",
        widget=StringWidget(
            label=_("Department"),
        ),
    ),

    AddressField(
        "PhysicalAddress",
        schemata="Address",
        widget=AddressWidget(
           label=_("Physical address"),
        ),
    ),

    ComputedField(
        "City",
        expression="context.getPhysicalAddress().get('city')",
        searchable=1,
        widget=ComputedWidget(
            visible=False
        ),
    ),

    ComputedField(
        "District",
コード例 #7
0
     widget=StringWidget(label=_("Phone"), ),
 ),
 StringField(
     'Fax',
     widget=StringWidget(label=_("Fax"), ),
 ),
 StringField('EmailAddress',
             schemata='Address',
             widget=StringWidget(label=_("Email Address"), ),
             validators=('isEmail', )),
 AddressField(
     'PhysicalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Physical address"), ),
     subfield_validators={
         'country': 'inline_field_validator',
         'state': 'inline_field_validator',
         'district': 'inline_field_validator',
     },
     inline_field_validator="validate_address",
 ),
 AddressField(
     'PostalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Postal address"), ),
     subfield_validators={
         'country': 'inline_field_validator',
         'state': 'inline_field_validator',
         'district': 'inline_field_validator',
     },
     inline_field_validator="validate_address",