import { IPSAppView } from '../../app/view/ipsapp-view'; import { IPSNavigateContext } from '../ipsnavigate-context'; import { IPSNavigateParam } from '../ipsnavigate-param'; import { IPSDEDRCtrlItem } from './ipsdedrctrl-item'; import { IPSLanguageRes } from '../../res/ipslanguage-res'; import { IPSSysImage } from '../../res/ipssys-image'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEDRCtrlItemImpl extends PSModelObjectImpl implements IPSDEDRCtrlItem { protected cappslanguageres: IPSLanguageRes | null = null; getCapPSLanguageRes(): IPSLanguageRes | null { if (this.cappslanguageres != null) return this.cappslanguageres; const value = this.M.getCapPSLanguageRes; if (value == null) { return null; } this.cappslanguageres = this.getPSModel4('res.IPSLanguageRes', value, 'getCapPSLanguageRes') as IPSLanguageRes; return this.cappslanguageres; } get capPSLanguageRes(): IPSLanguageRes | null { return this.getCapPSLanguageRes(); } getCapPSLanguageResMust(): IPSLanguageRes { const value = this.getCapPSLanguageRes(); if (value == null) { throw new Error('未指定标题语言资源'); } return value; } get caption(): string { return this.M.caption; } get codeName(): string { return this.M.codeName; } get counterId(): string { return this.M.counterId; } 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 psappview: IPSAppView | null = null; getPSAppView(): IPSAppView | null { if (this.psappview != null) return this.psappview; const value = this.M.getPSAppView; if (value == null) { return null; } this.psappview = this.getPSModel4('app.view.IPSAppView', value, 'getPSAppView') as IPSAppView; return this.psappview; } get psAppView(): IPSAppView | null { return this.getPSAppView(); } getPSAppViewMust(): IPSAppView { const value = this.getPSAppView(); 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 pssysimage: IPSSysImage | null = null; getPSSysImage(): IPSSysImage | null { if (this.pssysimage != null) return this.pssysimage; const value = this.M.getPSSysImage; if (value == null) { return null; } this.pssysimage = this.getPSModel4('res.IPSSysImage', value, 'getPSSysImage') as IPSSysImage; return this.pssysimage; } get psSysImage(): IPSSysImage | null { return this.getPSSysImage(); } getPSSysImageMust(): IPSSysImage { const value = this.getPSSysImage(); if (value == null) { throw new Error('未指定项图片资源对象'); } return value; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } 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 'PSDEDRCtrlItemImpl'; } instanceof(cls: string): boolean { if (cls == 'control.IPSNavigateParamContainer' || cls == 'control.drctrl.IPSDEDRCtrlItem') return true; return super.instanceof(cls); } }