import { IPSDEDRGroup } from './ipsdedrgroup'; import { IPSLanguageRes } from '../../res/ipslanguage-res'; import { IPSSysImage } from '../../res/ipssys-image'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEDRGroupImpl extends PSModelObjectImpl implements IPSDEDRGroup { 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 dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get extendMode(): 0 | 2 { return this.M.extendMode != null ? this.M.extendMode : 0; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } 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 hidden(): boolean { return this.M.hidden; } get cls(): string { return 'PSDEDRGroupImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.dr.IPSDEDRGroup') return true; return super.instanceof(cls); } }