import { IPSAppDEField } from '../../app/dataentity/ipsapp-defield'; import { IPSSysSearchBarItem } from './ipssys-search-bar-item'; import { IPSLanguageRes } from '../../res/ipslanguage-res'; import { IPSSysCss } from '../../res/ipssys-css'; import { IPSSysImage } from '../../res/ipssys-image'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSSysSearchBarItemImplBase extends PSModelObjectImpl implements IPSSysSearchBarItem { 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 data(): string { return this.M.data; } get dynaClass(): string { return this.M.dynaClass; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get itemType(): 'FILTER' | 'GROUP' | 'QUICKSEARCH' { return this.M.itemType; } get labelCssStyle(): string { return this.M.labelCssStyle; } get labelDynaClass(): string { return this.M.labelDynaClass; } protected labelpssyscss: IPSSysCss | null = null; getLabelPSSysCss(): IPSSysCss | null { if (this.labelpssyscss != null) return this.labelpssyscss; const value = this.M.getLabelPSSysCss; if (value == null) { return null; } this.labelpssyscss = this.getPSModel4('res.IPSSysCss', value, 'getLabelPSSysCss') as IPSSysCss; return this.labelpssyscss; } get labelPSSysCss(): IPSSysCss | null { return this.getLabelPSSysCss(); } getLabelPSSysCssMust(): IPSSysCss { const value = this.getLabelPSSysCss(); if (value == null) { throw new Error('未指定项样式表对象'); } return value; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } protected psappdefield: IPSAppDEField | null = null; getPSAppDEField(): IPSAppDEField | null { if (this.psappdefield != null) return this.psappdefield; const value = this.M.getPSAppDEField; if (value == null) { return null; } this.psappdefield = this.getPSModel4('app.dataentity.IPSAppDEField', value, 'getPSAppDEField') as IPSAppDEField; return this.psappdefield; } get psAppDEField(): IPSAppDEField | null { return this.getPSAppDEField(); } getPSAppDEFieldMust(): IPSAppDEField { const value = this.getPSAppDEField(); if (value == null) { throw new Error('未指定应用实体属性'); } return value; } protected pssyscss: IPSSysCss | null = null; getPSSysCss(): IPSSysCss | null { if (this.pssyscss != null) return this.pssyscss; const value = this.M.getPSSysCss; if (value == null) { return null; } this.pssyscss = this.getPSModel4('res.IPSSysCss', value, 'getPSSysCss') as IPSSysCss; return this.pssyscss; } get psSysCss(): IPSSysCss | null { return this.getPSSysCss(); } getPSSysCssMust(): IPSSysCss { const value = this.getPSSysCss(); if (value == null) { throw new Error('未指定过滤项界面样式表'); } return value; } 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 'PSSysSearchBarItemImplBase'; } instanceof(cls: string): boolean { if (cls == 'control.searchbar.IPSSearchBarItem' || cls == 'control.searchbar.IPSSysSearchBarItem') return true; return super.instanceof(cls); } }