import { IPSAppDELogic } from '../../app/dataentity/ipsapp-delogic'; import { IPSAppDEMethod } from '../../app/dataentity/ipsapp-demethod'; import { IPSAppDataEntity } from '../../app/dataentity/ipsapp-data-entity'; import { IPSNavigateContext } from '../ipsnavigate-context'; import { IPSNavigateParam } from '../ipsnavigate-param'; import { IPSPanelTabPage } from './ipspanel-tab-page'; import { IPSSysPanelTabPanel } from './ipssys-panel-tab-panel'; import { PSSysPanelItemImpl } from './pssys-panel-item-impl'; export class PSSysPanelTabPanelImpl extends PSSysPanelItemImpl implements IPSSysPanelTabPanel { get dataName(): string { return this.M.dataName; } get dataRegionType(): 'NONE' | 'LOGINFORM' | 'SINGLEDATA' | 'MULTIDATA' | 'INHERIT' | 'USER' { return this.M.dataRegionType || 'INHERIT'; } get dataSourceType(): 'DEACTION' | 'DEDATASET' | 'DELOGIC' | 'APPGLOBALPARAM' | 'TOPVIEWSESSIONPARAM' | 'VIEWSESSIONPARAM' { return this.M.dataSourceType; } protected psappdelogic: IPSAppDELogic | null = null; getPSAppDELogic(): IPSAppDELogic | null { if (this.psappdelogic != null) return this.psappdelogic; const value = this.M.getPSAppDELogic; if (value == null) { return null; } const ipsappdataentity = this.getPSAppDataEntity(); if (ipsappdataentity != null) { this.psappdelogic = ipsappdataentity.findPSAppDELogic(value); } return this.psappdelogic; } get psAppDELogic(): IPSAppDELogic | null { return this.getPSAppDELogic(); } getPSAppDELogicMust(): IPSAppDELogic { const value = this.getPSAppDELogic(); if (value == null) { throw new Error('未指定应用实体处理逻辑'); } return value; } 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.getPSAppDataEntity(); 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 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 psnavigatecontexts: IPSNavigateContext[] | null = null; getPSNavigateContexts(): IPSNavigateContext[] | null { if (this.psnavigatecontexts == null) { this.psnavigatecontexts = this.fillChildListModel(this.M.getPSNavigateContexts, 'control.IPSNavigateContext') as IPSNavigateContext[]; } return this.psnavigatecontexts; } get psNavigateContexts(): IPSNavigateContext[] | null { return this.getPSNavigateContexts(); } findPSNavigateContext(objKey: any): IPSNavigateContext | null { return this.getPSModel5('control.IPSNavigateContext', this.getPSNavigateContexts(), objKey) as IPSNavigateContext; } protected psnavigateparams: IPSNavigateParam[] | null = null; getPSNavigateParams(): IPSNavigateParam[] | null { if (this.psnavigateparams == null) { this.psnavigateparams = this.fillChildListModel(this.M.getPSNavigateParams, 'control.IPSNavigateParam') as IPSNavigateParam[]; } return this.psnavigateparams; } get psNavigateParams(): IPSNavigateParam[] | null { return this.getPSNavigateParams(); } findPSNavigateParam(objKey: any): IPSNavigateParam | null { return this.getPSModel5('control.IPSNavigateParam', this.getPSNavigateParams(), objKey) as IPSNavigateParam; } protected pspaneltabpages: IPSPanelTabPage[] | null = null; getPSPanelTabPages(): IPSPanelTabPage[] | null { if (this.pspaneltabpages == null) { this.pspaneltabpages = this.fillChildListModel(this.M.getPSPanelTabPages, 'control.panel.IPSPanelTabPage') as IPSPanelTabPage[]; } return this.pspaneltabpages; } get psPanelTabPages(): IPSPanelTabPage[] | null { return this.getPSPanelTabPages(); } findPSPanelTabPage(objKey: any): IPSPanelTabPage | null { return this.getPSModel5('control.panel.IPSPanelTabPage', this.getPSPanelTabPages(), objKey) as IPSPanelTabPage; } get reloadTimer(): number { return this.M.reloadTimer != null ? this.M.reloadTimer : -1; } get showCaption(): boolean { return this.M.showCaption != null ? this.M.showCaption : false; } get cls(): string { return 'PSSysPanelTabPanelImpl'; } instanceof(cls: string): boolean { if (cls == 'control.IPSNavigateParamContainer' || cls == 'control.panel.IPSPanelDataRegion' || cls == 'control.panel.IPSPanelTabPanel' || cls == 'control.panel.IPSSysPanelTabPanel') return true; return super.instanceof(cls); } }