----当启用了多个辅助属性后,在某些单据上需要一个或几个辅助属性资料必须要录入的时候,在保存菜单按钮里面增加服保存校验规则,用以保存时提示辅助属性为必录
包装规格必录
F_JF_MATERIAL !=null and len(filter(lambda x: (x.AuxPropertyId_Id == 100001 and x.IsEnable1==true), F_JF_MATERIAL.MaterialAuxPty)) > 0 and (FAuxPropId.ActiveObject = @null or FAuxPropId.ActiveObject['F100001_Id'] = '')
备注证明号必录,文本类型
F_JF_MATERIAL !=null and len(filter(lambda x: (x.AuxPropertyId_Id == 100004 and x.IsEnable1==true), F_JF_MATERIAL.MaterialAuxPty)) > 0 and (FAuxPropId.ActiveObject = @null or FAuxPropId.ActiveObject['F100004'] = @null or FAuxPropId.ActiveObject['F100004'] = '')
成份含量必录
FMATERIALID !=null and len(filter(lambda x: (x.AuxPropertyId_Id == 100006 and x.IsEnable1==true), FMATERIALID.MaterialAuxPty)) > 0 and (FAuxPropId.ActiveObject = @null or FAuxPropId.ActiveObject['F100006'] = @null or FAuxPropId.ActiveObject['F100006'] = '')
推荐阅读