import { IPSApplication } from '../../app/ipsapplication'; import { IPSAppDEUILogic } from '../../app/dataentity/ipsapp-deuilogic'; import { IPSAppDEUILogicGroupDetail } from '../../app/dataentity/ipsapp-deuilogic-group-detail'; import { IPSAppDataEntity } from '../../app/dataentity/ipsapp-data-entity'; import { IPSAppUILogic } from '../../app/logic/ipsapp-uilogic'; import { IPSDEFormLogic } from './ipsdeform-logic'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEFormLogicImpl extends PSModelObjectImpl implements IPSDEFormLogic, IPSAppDEUILogicGroupDetail { get attrName(): string { return this.M.attrName; } get codeName(): string { return this.M.codeName; } get ctrlName(): string { return this.M.ctrlName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get eventArg(): string { return this.M.eventArg; } get eventArg2(): string { return this.M.eventArg2; } get eventNames(): string { return this.M.eventNames; } get itemName(): string { return this.M.itemName; } get logicTag(): string { return this.M.logicTag; } get logicTag2(): string { return this.M.logicTag2; } get logicType(): 'DEUILOGIC' | 'SYSVIEWLOGIC' | 'DEUIACTION' | 'PFPLUGIN' | 'SCRIPT' { return this.M.logicType; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } protected psappdeuilogic: IPSAppDEUILogic | null = null; getPSAppDEUILogic(): IPSAppDEUILogic | null { if (this.psappdeuilogic != null) return this.psappdeuilogic; const value = this.M.getPSAppDEUILogic; if (value == null) { return null; } const ipsappdataentity = this.getPSAppDataEntity(); if (ipsappdataentity != null) { this.psappdeuilogic = ipsappdataentity.findPSAppDEUILogic(value); } return this.psappdeuilogic; } get psAppDEUILogic(): IPSAppDEUILogic | null { return this.getPSAppDEUILogic(); } getPSAppDEUILogicMust(): IPSAppDEUILogic { const value = this.getPSAppDEUILogic(); if (value == null) { throw new Error('未指定应用实体界面逻辑对象'); } return value; } protected psappdataentity: IPSAppDataEntity | null = null; getPSAppDataEntity(): IPSAppDataEntity | null { if (this.psappdataentity != null) return this.psappdataentity; const value = this.M.getPSAppDataEntity; if (value == null) { return null; } this.psappdataentity = this.getPSModel4('app.dataentity.IPSAppDataEntity', value, 'getPSAppDataEntity') as IPSAppDataEntity; return this.psappdataentity; } get psAppDataEntity(): IPSAppDataEntity | null { return this.getPSAppDataEntity(); } getPSAppDataEntityMust(): IPSAppDataEntity { const value = this.getPSAppDataEntity(); if (value == null) { throw new Error('未指定应用实体对象'); } return value; } protected psappuilogic: IPSAppUILogic | null = null; getPSAppUILogic(): IPSAppUILogic | null { if (this.psappuilogic != null) return this.psappuilogic; const value = this.M.getPSAppUILogic; if (value == null) { return null; } const ipsapplication = this.getParentPSModelObject('app.IPSApplication') as IPSApplication; if (ipsapplication != null) { this.psappuilogic = ipsapplication.findPSAppUILogic(value); } return this.psappuilogic; } get psAppUILogic(): IPSAppUILogic | null { return this.getPSAppUILogic(); } getPSAppUILogicMust(): IPSAppUILogic { const value = this.getPSAppUILogic(); if (value == null) { throw new Error('未指定应用预置界面逻辑对象'); } return value; } get psDEFormDetailName(): string { return this.M.getPSDEFormDetailName; } getPSDEFormDetailName(): string { return this.M.getPSDEFormDetailName; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get scriptCode(): string { return this.M.scriptCode; } get timer(): number { return this.M.timer != null ? this.M.timer : 0; } get triggerType(): 'TIMER' | 'CTRLEVENT' | 'VIEWEVENT' | 'APPEVENT' | 'ITEMVISIBLE' | 'ITEMENABLE' | 'ITEMBLANK' | 'ATTRIBUTE' | 'CUSTOM' | 'VUE_DIRECTIVE' { return this.M.triggerType; } 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 cls(): string { return 'PSDEFormLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'app.dataentity.IPSAppDEUILogicGroupDetail' || cls == 'control.form.IPSDEFormLogic' || cls == 'dataentity.logic.IPSDEUILogicGroupDetail') return true; return super.instanceof(cls); } }