import { IPSAppMethodDTO } from './ipsapp-method-dto'; import { IPSAppMethodDTOField } from './ipsapp-method-dtofield'; import { IPSApplication } from './ipsapplication'; import { IPSAppDEMethodDTO } from './dataentity/ipsapp-demethod-dto'; import { IPSAppDataEntity } from './dataentity/ipsapp-data-entity'; import { PSModelObjectImpl } from '../psmodel-object-impl'; export class PSAppMethodDTOFieldImpl extends PSModelObjectImpl implements IPSAppMethodDTOField { get codeName(): string { return this.M.codeName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get jsonFormat(): string { return this.M.jsonFormat; } get logicName(): string { return this.M.logicName; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } get orderValue(): number { return this.M.orderValue != null ? this.M.orderValue : 99999; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } protected refpsappdemethoddto: IPSAppDEMethodDTO | null = null; getRefPSAppDEMethodDTO(): IPSAppDEMethodDTO | null { if (this.refpsappdemethoddto != null) return this.refpsappdemethoddto; const value = this.M.getRefPSAppDEMethodDTO; if (value == null) { return null; } this.refpsappdemethoddto = this.getRefPSAppDataEntityMust().findPSAppDEMethodDTO(value); return this.refpsappdemethoddto; } get refPSAppDEMethodDTO(): IPSAppDEMethodDTO | null { return this.getRefPSAppDEMethodDTO(); } getRefPSAppDEMethodDTOMust(): IPSAppDEMethodDTO { const value = this.getRefPSAppDEMethodDTO(); if (value == null) { throw new Error('未指定引用应用实体方法DTO对象'); } return value; } protected refpsappdataentity: IPSAppDataEntity | null = null; getRefPSAppDataEntity(): IPSAppDataEntity | null { if (this.refpsappdataentity != null) return this.refpsappdataentity; const value = this.M.getRefPSAppDataEntity; if (value == null) { return null; } this.refpsappdataentity = this.getPSModel4('app.dataentity.IPSAppDataEntity', value, 'getRefPSAppDataEntity') as IPSAppDataEntity; return this.refpsappdataentity; } get refPSAppDataEntity(): IPSAppDataEntity | null { return this.getRefPSAppDataEntity(); } getRefPSAppDataEntityMust(): IPSAppDataEntity { const value = this.getRefPSAppDataEntity(); if (value == null) { throw new Error('未指定引用应用实体对象'); } return value; } protected refpsappmethoddto: IPSAppMethodDTO | null = null; getRefPSAppMethodDTO(): IPSAppMethodDTO | null { if (this.refpsappmethoddto != null) return this.refpsappmethoddto; const value = this.M.getRefPSAppMethodDTO; if (value == null) { return null; } const ipsapplication = this.getParentPSModelObject('app.IPSApplication') as IPSApplication; if (ipsapplication != null) { this.refpsappmethoddto = ipsapplication.findPSAppMethodDTO(value); } return this.refpsappmethoddto; } get refPSAppMethodDTO(): IPSAppMethodDTO | null { return this.getRefPSAppMethodDTO(); } getRefPSAppMethodDTOMust(): IPSAppMethodDTO { const value = this.getRefPSAppMethodDTO(); if (value == null) { throw new Error('未指定引用应用方法DTO对象'); } 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 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 cls(): string { return 'PSAppMethodDTOFieldImpl'; } instanceof(cls: string): boolean { if (cls == 'IPSModelSortable' || cls == 'app.IPSAppMethodDTOField') return true; return super.instanceof(cls); } }