import { IPSDEFormDetail } from './ipsdeform-detail'; import { IPSDEFormPage } from './ipsdeform-page'; import { PSDEFormBaseGroupPanelImpl } from './psdeform-base-group-panel-impl'; import { IPSUIActionGroup } from '../../view/ipsuiaction-group'; export class PSDEFormPageImpl extends PSDEFormBaseGroupPanelImpl implements IPSDEFormPage { get actionGroupExtractMode(): 'ITEM' | 'ITEMS' { return this.M.actionGroupExtractMode; } get buildInActions(): number { return this.M.buildInActions != null ? this.M.buildInActions : 0; } protected psdeformdetails: IPSDEFormDetail[] | null = null; getPSDEFormDetails(): IPSDEFormDetail[] | null { if (this.psdeformdetails == null) { this.psdeformdetails = this.fillChildListModel(this.M.getPSDEFormDetails, 'control.form.IPSDEFormDetail') as IPSDEFormDetail[]; } return this.psdeformdetails; } get psDEFormDetails(): IPSDEFormDetail[] | null { return this.getPSDEFormDetails(); } findPSDEFormDetail(objKey: any): IPSDEFormDetail | null { return this.getPSModel5('control.form.IPSDEFormDetail', this.getPSDEFormDetails(), objKey) as IPSDEFormDetail; } protected psuiactiongroup: IPSUIActionGroup | null = null; getPSUIActionGroup(): IPSUIActionGroup | null { if (this.psuiactiongroup != null) return this.psuiactiongroup; const value = this.M.getPSUIActionGroup; if (value == null) { return null; } this.psuiactiongroup = this.getPSModel4('view.IPSUIActionGroup', value, 'getPSUIActionGroup') as IPSUIActionGroup; return this.psuiactiongroup; } get psUIActionGroup(): IPSUIActionGroup | null { return this.getPSUIActionGroup(); } getPSUIActionGroupMust(): IPSUIActionGroup { const value = this.getPSUIActionGroup(); if (value == null) { throw new Error('未指定界面行为组对象'); } return value; } get enableAnchor(): boolean { return this.M.enableAnchor != null ? this.M.enableAnchor : false; } get showCaption(): boolean { return this.M.showCaption; } get cls(): string { return 'PSDEFormPageImpl'; } instanceof(cls: string): boolean { if (cls == 'control.form.IPSDEFormGroupPanel' || cls == 'control.form.IPSDEFormPage') return true; return super.instanceof(cls); } }