示例#1
0
        "Recipients",
        type="recipients",
        subfields=(
            "UID",
            "Username",
            "Fullname",
            "EmailAddress",
            "PublicationModes"
        ),
    ),
    DateTimeField(
        "DatePrinted",
        mode="rw",
        widget=DateTimeWidget(
            label=_("Date Printed"),
            visible={
                "edit": "visible",
                "view": "visible",
            }
        ),
    ),
))

schema['id'].required = False
schema['title'].required = False


class ARReport(BaseFolder):
    """An AnalysisRequest report, containing the report itself in pdf and html
       format. It includes information about the date when was published, from
       whom, the report recipients (and their emails) and the publication mode
示例#2
0
     ),
 ),
 BooleanField('SamplingWorkflowEnabled',
              default_method='getSamplingWorkflowEnabledDefault'
 ),
 DateTimeField('DateSampled',
     mode="rw",
     read_permission=permissions.View,
     write_permission=SampleSample,
     widget = DateTimeWidget(
         label=_("Date Sampled"),
         size=20,
         visible={'edit': 'visible',
                  'view': 'visible',
                  'header_table': 'visible',
                  'sample_registered': {'view': 'invisible', 'edit': 'invisible'},
                  'to_be_sampled':     {'view': 'visible', 'edit': 'visible'},
                  'sampled':           {'view': 'visible', 'edit': 'invisible'},
                  'to_be_preserved':   {'view': 'visible', 'edit': 'invisible'},
                  'sample_due':        {'view': 'visible', 'edit': 'invisible'},
                  'sample_received':   {'view': 'visible', 'edit': 'invisible'},
                  'expired':           {'view': 'visible', 'edit': 'invisible'},
                  'disposed':          {'view': 'visible', 'edit': 'invisible'},
                  },
         render_own_label=True,
     ),
 ),
 StringField('Sampler',
     mode="rw",
     read_permission=permissions.View,
     write_permission=SampleSample,
     vocabulary='getSamplers',
示例#3
0
         size=20,
         render_own_label=True,
         visible=False,
         catalog_name='bika_setup_catalog',
         base_query={'is_active': True},
         showOn=True,
     ),
 ),
 BooleanField('SamplingWorkflowEnabled',
              default_method='getSamplingWorkflowEnabledDefault'),
 DateTimeField(
     'DateSampled',
     mode="rw",
     read_permission=permissions.View,
     widget=DateTimeWidget(
         label=_("Date Sampled"),
         show_time=True,
         size=20,
         visible=False,
         render_own_label=True,
     ),
 ),
 StringField(
     'Sampler',
     mode="rw",
     read_permission=permissions.View,
     vocabulary='getSamplers',
     widget=BikaSelectionWidget(
         format='select',
         label=_("Sampler"),
         visible=False,
         render_own_label=True,
示例#4
0
 DateTimeField(
     'DateSampled',
     mode="rw",
     read_permission=permissions.View,
     write_permission=SampleSample,
     widget=DateTimeWidget(
         label=_("Date Sampled"),
         show_time=True,
         size=20,
         visible={
             'edit': 'visible',
             'view': 'visible',
             'header_table': 'visible',
             'sample_registered': {
                 'view': 'invisible',
                 'edit': 'invisible'
             },
             'to_be_sampled': {
                 'view': 'visible',
                 'edit': 'visible'
             },
             'scheduled_sampling': {
                 'view': 'visible',
                 'edit': 'visible'
             },
             'sampled': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'to_be_preserved': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'sample_due': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'sample_received': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'expired': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'disposed': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
             'rejected': {
                 'view': 'visible',
                 'edit': 'invisible'
             },
         },
         render_own_label=True,
     ),
 ),
示例#5
0
    widget=BooleanWidget(
        label="Form Added to Kit",
        description="It is necessary to add all forms describing the content "
        "of the kit.",
        visible={
            'edit': 'visible',
            'view': 'visible'
        }))

DateCreated = DateTimeField(
    'DateCreated',
    mode="rw",
    read_permission=permissions.View,
    write_permission=permissions.ModifyPortalContent,
    widget=DateTimeWidget(
        label=_("Date Created"),
        visible={
            'edit': 'invisible',
            'view': 'invisible'
        },
    ),
)

schema = BikaSchema.copy() + Schema(
    (Project, KitTemplate, StorageLocation, StockItems, Attachment, FormsThere,
     DateCreated))
schema['title'].widget.visible = {'view': 'visible', 'edit': 'visible'}
schema['description'].widget.visible = {'view': 'visible', 'edit': 'visible'}


class Kit(BaseContent):
示例#6
0
     )),
 ReferenceField('Service',
                required=0,
                multiValued=1,
                allowed_types=('AnalysisService', ),
                relationship='BiospecimenAnalysisService',
                widget=ProjectAnalysesWidget(
                    label=_("Analyses"),
                    description="",
                )),
 DateTimeField('DateCreated',
               mode="rw",
               read_permission=permissions.View,
               write_permission=permissions.ModifyPortalContent,
               widget=DateTimeWidget(
                   label=_("Date Created"),
                   visible={
                       'edit': 'invisible',
                       'view': 'invisible'
                   },
               )),
 StringField(
     'ChangeUserName',
     widget=StringWidget(
         label=_('ChangeUserName'),
         description=_(
             'The user who created or last made a change to this sample.'),
         visible={
             'view': 'invisible',
             'edit': 'invisible'
         })),
示例#7
0
        referenceClass=HoldingReference,
        required=1,
    ),
    BlobField('Pdf', ),
    StringField('SMS', ),
    RecordsField(
        'Recipients',
        type='recipients',
        subfields=('UID', 'Username', 'Fullname', 'EmailAddress',
                   'PublicationModes'),
    ),
    DateTimeField(
        'DatePrinted',
        mode="rw",
        widget=DateTimeWidget(label=_("Date Printed"),
                              visible={
                                  'edit': 'visible',
                                  'view': 'visible'
                              }),
    ),
))

schema['id'].required = False
schema['title'].required = False


class ARReport(BaseFolder):
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema