import { IPSModelSortable } from '../../ipsmodel-sortable'; import { IPSNavigateContext } from '../../control/ipsnavigate-context'; import { IPSNavigateParam } from '../../control/ipsnavigate-param'; import { IPSDEDRItem } from './ipsdedritem'; import { IPSDEOPPriv } from '../priv/ipsdeoppriv'; import { IPSLanguageRes } from '../../res/ipslanguage-res'; import { IPSSysImage } from '../../res/ipssys-image'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEDRItemImpl extends PSModelObjectImpl implements IPSDEDRItem, IPSModelSortable { 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 codeName(): string { return this.M.codeName; } get counterId(): string { return this.M.counterId; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get enableMode(): 'ALL' | 'INWF' | 'ALLWF' | 'EDIT' | 'DEOPPRIV' | 'CUSTOM' { return this.M.enableMode; } get itemType(): 'DER1N' | 'SYSDER1N' | 'CUSTOM' { return this.M.itemType; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } get orderValue(): number { return this.M.orderValue != null ? this.M.orderValue : 99999; } 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 parentDataJO(): IModel { return this.M.parentDataJO; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } protected testpsdeoppriv: IPSDEOPPriv | null = null; getTestPSDEOPPriv(): IPSDEOPPriv | null { if (this.testpsdeoppriv != null) return this.testpsdeoppriv; const value = this.M.getTestPSDEOPPriv; if (value == null) { return null; } this.testpsdeoppriv = this.getPSModel4('dataentity.priv.IPSDEOPPriv', value, 'getTestPSDEOPPriv') as IPSDEOPPriv; return this.testpsdeoppriv; } get testPSDEOPPriv(): IPSDEOPPriv | null { return this.getTestPSDEOPPriv(); } getTestPSDEOPPrivMust(): IPSDEOPPriv { const value = this.getTestPSDEOPPriv(); if (value == null) { throw new Error('未指定判断输出实体操作标识'); } return value; } 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 viewParamJO(): IModel { return this.M.viewParamJO; } get cls(): string { return 'PSDEDRItemImpl'; } instanceof(cls: string): boolean { if (cls == 'IPSModelSortable' || cls == 'control.IPSNavigateParamContainer' || cls == 'dataentity.dr.IPSDEDRItem') return true; return super.instanceof(cls); } }