widget = SelectionWidget( label = _("Reference Type"), ), ), HistoryAwareReferenceField('Service', required = 1, allowed_types = ('AnalysisService',), relationship = 'ReferenceAnalysisAnalysisService', referenceClass = HoldingReference, widget = ReferenceWidget( label = _("Analysis Service"), ) ), InterimFieldsField('InterimFields', widget = BikaRecordsWidget( label = _("Calculation Interim Fields"), ) ), StringField('Result', widget = StringWidget( label = _("Result"), ) ), StringField('ResultDM', ), ReferenceField('Attachment', multiValued = 1, allowed_types = ('Attachment',), referenceClass = HoldingReference, relationship = 'ReferenceAnalysisAttachment', ),
from bika.lims.config import PROJECTNAME from bika.lims.content.bikaschema import BikaSchema from zope.interface import implements from zope.site.hooks import getSite from zExceptions import Redirect import sys, re from bika.lims import PMF, bikaMessageFactory as _ schema = BikaSchema.copy() + Schema(( InterimFieldsField( 'InterimFields', schemata=PMF('Calculation'), widget=BikaRecordsWidget( label=_("Calculation Interim Fields"), description= _("Define interim fields such as vessel mass, dilution factors, " "should your calculation require them. The field title specified " "here will be used as column headers and field descriptors where " "the interim fields are displayed"), )), HistoryAwareReferenceField( 'DependentServices', schemata=PMF('Calculation'), required=1, multiValued=1, vocabulary_display_path_bound=sys.maxint, allowed_types=('AnalysisService', ), relationship='CalculationAnalysisService', referenceClass=HoldingReference, widget=ReferenceWidget( checkbox_bound=1, visible=False,
from zExceptions import Redirect from zope.interface import implements import sys import re import transaction schema = BikaSchema.copy() + Schema(( InterimFieldsField( 'InterimFields', schemata='Calculation', widget=BikaRecordsWidget( label=_("Calculation Interim Fields"), description= _("Define interim fields such as vessel mass, dilution factors, " "should your calculation require them. The field title specified " "here will be used as column headers and field descriptors where " "the interim fields are displayed. If 'Apply wide' is enabled " "the field ill be shown in a selection box on the top of the " "worksheet, allowing to apply a specific value to all the " "corresponding fields on the sheet."), )), HistoryAwareReferenceField( 'DependentServices', schemata='Calculation', required=1, multiValued=1, vocabulary_display_path_bound=sys.maxsize, allowed_types=('AnalysisService', ), relationship='CalculationAnalysisService', referenceClass=HoldingReference, widget=ReferenceWidget(
from Products.CMFCore.utils import getToolByName from Products.CMFCore.WorkflowCore import WorkflowException from Products.CMFPlone.utils import safe_unicode from zope.interface import implements schema = BikaSchema.copy() + Schema(( InterimFieldsField( 'InterimFields', widget=BikaRecordsWidget( label=_("Calculation Interim Fields"), description=_( "Define interim fields such as vessel mass, dilution factors, " "should your calculation require them. The field title " "specified here will be used as column headers and field " "descriptors where the interim fields are displayed. If " "'Apply wide' is enabled the field will be shown in a " "selection box on the top of the worksheet, allowing to apply " "a specific value to all the corresponding fields on the " "sheet."), ) ), UIDReferenceField( 'DependentServices', required=1, multiValued=1, allowed_types=('AnalysisService',), widget=ReferenceWidget( checkbox_bound=0, visible=False,