import { IPSAppDEMethod } from '../../app/dataentity/ipsapp-demethod'; import { IPSAppDataEntity } from '../../app/dataentity/ipsapp-data-entity'; import { IPSDEFIUpdateDetail } from './ipsdefiupdate-detail'; import { IPSDEFormItemUpdate } from './ipsdeform-item-update'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEFormItemUpdateImpl extends PSModelObjectImpl implements IPSDEFormItemUpdate { get codeName(): string { return this.M.codeName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } protected psappdemethod: IPSAppDEMethod | null = null; getPSAppDEMethod(): IPSAppDEMethod | null { if (this.psappdemethod != null) return this.psappdemethod; const value = this.M.getPSAppDEMethod; if (value == null) { return null; } const ipsappdataentity = this.getParentPSModelObject('app.dataentity.IPSAppDataEntity') as IPSAppDataEntity; if (ipsappdataentity != null) { this.psappdemethod = ipsappdataentity.findPSAppDEMethod(value); } return this.psappdemethod; } get psAppDEMethod(): IPSAppDEMethod | null { return this.getPSAppDEMethod(); } getPSAppDEMethodMust(): IPSAppDEMethod { const value = this.getPSAppDEMethod(); if (value == null) { throw new Error('未指定处理应用实体方法'); } return value; } protected psdefiupdatedetails: IPSDEFIUpdateDetail[] | null = null; getPSDEFIUpdateDetails(): IPSDEFIUpdateDetail[] | null { if (this.psdefiupdatedetails == null) { this.psdefiupdatedetails = this.fillChildListModel(this.M.getPSDEFIUpdateDetails, 'control.form.IPSDEFIUpdateDetail') as IPSDEFIUpdateDetail[]; } return this.psdefiupdatedetails; } get psDEFIUpdateDetails(): IPSDEFIUpdateDetail[] | null { return this.getPSDEFIUpdateDetails(); } findPSDEFIUpdateDetail(objKey: any): IPSDEFIUpdateDetail | null { return this.getPSModel5('control.form.IPSDEFIUpdateDetail', this.getPSDEFIUpdateDetails(), objKey) as IPSDEFIUpdateDetail; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get scriptCode(): string { return this.M.scriptCode; } 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 customCode(): boolean { return this.M.customCode != null ? this.M.customCode : false; } get showBusyIndicator(): boolean { return this.M.showBusyIndicator != null ? this.M.showBusyIndicator : true; } get cls(): string { return 'PSDEFormItemUpdateImpl'; } instanceof(cls: string): boolean { if (cls == 'control.form.IPSDEFormItemUpdate') return true; return super.instanceof(cls); } }