import { IPSAppSubViewTypeRef } from './ipsapp-sub-view-type-ref'; import { IPSSysPFPlugin } from '../../res/ipssys-pfplugin'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSAppSubViewTypeRefImpl extends PSModelObjectImpl implements IPSAppSubViewTypeRef { get codeName(): string { return this.M.codeName; } 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; } get orderValue(): number { return this.M.orderValue != null ? this.M.orderValue : 99999; } protected pssyspfplugin: IPSSysPFPlugin | null = null; getPSSysPFPlugin(): IPSSysPFPlugin | null { if (this.pssyspfplugin != null) return this.pssyspfplugin; const value = this.M.getPSSysPFPlugin; if (value == null) { return null; } this.pssyspfplugin = this.getPSModel4('res.IPSSysPFPlugin', value, 'getPSSysPFPlugin') as IPSSysPFPlugin; return this.pssyspfplugin; } get psSysPFPlugin(): IPSSysPFPlugin | null { return this.getPSSysPFPlugin(); } getPSSysPFPluginMust(): IPSSysPFPlugin { const value = this.getPSSysPFPlugin(); if (value == null) { throw new Error('未指定前端模板插件'); } return value; } get pluginCode(): string { return this.M.pluginCode; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get refTag(): string { return this.M.refTag; } get typeCode(): string { return this.M.typeCode; } 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 viewModel(): IModel { return this.M.viewModel; } get viewType(): string { return this.M.viewType; } get extendStyleOnly(): boolean { return this.M.extendStyleOnly != null ? this.M.extendStyleOnly : false; } get replaceDefault(): boolean { return this.M.replaceDefault != null ? this.M.replaceDefault : false; } get cls(): string { return 'PSAppSubViewTypeRefImpl'; } instanceof(cls: string): boolean { if (cls == 'IPSModelSortable' || cls == 'app.res.IPSAppSubViewTypeRef') return true; return super.instanceof(cls); } }