Example #1
0
 BooleanField(
     'Retested',
     default=False,
 ),
 fields.Char(string='Days'),
 fields.Char(string='Hours'),
 fields.Char(string='Minutes'),
 DateTimeField(
     'DateAnalysisPublished',
     widget=DateTimeWidget(label=_("Date Published"), ),
 ),
 DateTimeField(
     'DueDate',
     widget=DateTimeWidget(label=_("Due Date"), ),
 ),
 IntegerField('Duration', widget=IntegerWidget(label=_("Duration"), )),
 IntegerField('Earliness', widget=IntegerWidget(label=_("Earliness"), )),
 BooleanField(
     'ReportDryMatter',
     default=False,
 ),
 StringField('Analyst', ),
 TextField('Remarks', ),
 # ~~~~~~~ To be implemented ~~~~~~~
 #     ReferenceField('Instrument',
 #         required = 0,
 #         allowed_types = ('Instrument',),
 #         relationship = 'AnalysisInstrument',
 #         referenceClass = HoldingReference,
 #     ),
 #     ReferenceField('Method',
Example #2
0
    fields.Char(string='Days'),
    fields.Char(string='Hours'),
    fields.Char(string='Minutes'),
    DateTimeField('DateAnalysisPublished',
        widget = DateTimeWidget(
            label = _("Date Published"),
        ),
    ),
    DateTimeField('DueDate',
        widget = DateTimeWidget(
            label = _("Due Date"),
        ),
    ),
    IntegerField('Duration',
        widget = IntegerWidget(
            label = _("Duration"),
        )
    ),
    IntegerField('Earliness',
        widget = IntegerWidget(
            label = _("Earliness"),
        )
    ),
    BooleanField('ReportDryMatter',
        default = False,
    ),
    StringField('Analyst',
    ),
    TextField('Remarks',
    ),