import { IPSDataEntity } from '../ipsdata-entity'; import { IPSDEField } from '../defield/ipsdefield'; import { IPSDERBase } from '../der/ipsderbase'; import { IPSDEMethodDTO } from './ipsdemethod-dto'; import { IPSDEMethodDTOField } from './ipsdemethod-dtofield'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEMethodDTOFieldImpl extends PSModelObjectImpl implements IPSDEMethodDTOField { get codeName(): string { return this.M.codeName; } get defaultValue(): string { return this.M.defaultValue; } get defaultValueType(): string { return this.M.defaultValueType; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get fieldTag(): string { return this.M.fieldTag; } get fieldTag2(): string { return this.M.fieldTag2; } get jsonFormat(): string { return this.M.jsonFormat; } get logicName(): string { return this.M.logicName; } get mOSFilePath(): string { return this.M.mOSFilePath; } get maxValueString(): string { return this.M.maxValueString; } get memo(): string { return this.M.memo; } get minStringLength(): number { return this.M.minStringLength != null ? this.M.minStringLength : 0; } get minValueString(): string { return this.M.minValueString; } get name(): string { return this.M.name; } get orderValue(): number { return this.M.orderValue != null ? this.M.orderValue : 99999; } protected psdefield: IPSDEField | null = null; getPSDEField(): IPSDEField | null { if (this.psdefield != null) return this.psdefield; const value = this.M.getPSDEField; if (value == null) { return null; } const ipsdataentity = this.getParentPSModelObject('dataentity.IPSDataEntity') as IPSDataEntity; if (ipsdataentity != null) { this.psdefield = ipsdataentity.findPSDEField(value); } return this.psdefield; } get psDEField(): IPSDEField | null { return this.getPSDEField(); } getPSDEFieldMust(): IPSDEField { const value = this.getPSDEField(); if (value == null) { throw new Error('未指定实体属性'); } return value; } protected psder: IPSDERBase | null = null; getPSDER(): IPSDERBase | null { if (this.psder != null) return this.psder; const value = this.M.getPSDER; if (value == null) { return null; } const ipsdataentity = this.getParentPSModelObject('dataentity.IPSDataEntity') as IPSDataEntity; if (ipsdataentity != null) { this.psder = ipsdataentity.findMajorPSDERBase(value); } return this.psder; } get psDER(): IPSDERBase | null { return this.getPSDER(); } getPSDERMust(): IPSDERBase { const value = this.getPSDER(); if (value == null) { throw new Error('未指定嵌套数据关系'); } return value; } get precision(): number { return this.M.precision != null ? this.M.precision : 0; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } protected refpsdemethoddto: IPSDEMethodDTO | null = null; getRefPSDEMethodDTO(): IPSDEMethodDTO | null { if (this.refpsdemethoddto != null) return this.refpsdemethoddto; const value = this.M.getRefPSDEMethodDTO; if (value == null) { return null; } this.refpsdemethoddto = this.getPSModel4('dataentity.service.IPSDEMethodDTO', value, 'getRefPSDEMethodDTO') as IPSDEMethodDTO; return this.refpsdemethoddto; } get refPSDEMethodDTO(): IPSDEMethodDTO | null { return this.getRefPSDEMethodDTO(); } getRefPSDEMethodDTOMust(): IPSDEMethodDTO { const value = this.getRefPSDEMethodDTO(); if (value == null) { throw new Error('未指定引用实体方法DTO对象'); } return value; } protected refpsdataentity: IPSDataEntity | null = null; getRefPSDataEntity(): IPSDataEntity | null { if (this.refpsdataentity != null) return this.refpsdataentity; const value = this.M.getRefPSDataEntity; if (value == null) { return null; } this.refpsdataentity = this.getPSModel4('dataentity.IPSDataEntity', value, 'getRefPSDataEntity') as IPSDataEntity; return this.refpsdataentity; } get refPSDataEntity(): IPSDataEntity | null { return this.getRefPSDataEntity(); } getRefPSDataEntityMust(): IPSDataEntity { const value = this.getRefPSDataEntity(); if (value == null) { throw new Error('未指定引用实体对象'); } return value; } get sourceType(): 'DEFIELD' | 'DEFGROUPDETAIL' | 'DER' | 'DYNAMODELATTR' | 'DEACTIONPARAM' | 'DEFSEARCHMODE' | 'DEDATASETPARAM' { return this.M.sourceType; } get stdDataType(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 { return this.M.stdDataType != null ? this.M.stdDataType : 0; } get stringLength(): number { return this.M.stringLength != null ? this.M.stringLength : 0; } get type(): 'SIMPLE' | 'SIMPLES' | 'DTO' | 'DTOS' { return this.M.type; } get userCat(): string { return this.M.userCat; } get userTag(): string { return this.M.userTag; } get userTag2(): string { return this.M.userTag2; } get userTag3(): string { return this.M.userTag3; } get userTag4(): string { return this.M.userTag4; } get allowEmpty(): boolean { return this.M.allowEmpty != null ? this.M.allowEmpty : true; } get readOnly(): boolean { return this.M.readOnly != null ? this.M.readOnly : false; } get cls(): string { return 'PSDEMethodDTOFieldImpl'; } instanceof(cls: string): boolean { if (cls == 'IPSModelObject' || cls == 'IPSModelSortable' || cls == 'IPSObject' || cls == 'dataentity.service.IPSDEMethodDTOField') return true; return super.instanceof(cls); } }