import { IPSSysCounter } from './ipssys-counter'; import { IPSSysPFPlugin } from '../../res/ipssys-pfplugin'; import { IPSSysSFPlugin } from '../../res/ipssys-sfplugin'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSSysCounterImpl extends PSModelObjectImpl implements IPSSysCounter { get codeName(): string { return this.M.codeName; } get counterData(): string { return this.M.counterData; } get counterData2(): string { return this.M.counterData2; } get counterType(): string { return this.M.counterType; } get customCond(): string { return this.M.customCond; } 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 psCounterId(): string { return this.M.getPSCounterId; } getPSCounterId(): string { return this.M.getPSCounterId; } 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; } protected pssyssfplugin: IPSSysSFPlugin | null = null; getPSSysSFPlugin(): IPSSysSFPlugin | null { if (this.pssyssfplugin != null) return this.pssyssfplugin; const value = this.M.getPSSysSFPlugin; if (value == null) { return null; } this.pssyssfplugin = this.getPSModel4('res.IPSSysSFPlugin', value, 'getPSSysSFPlugin') as IPSSysSFPlugin; return this.pssyssfplugin; } get psSysSFPlugin(): IPSSysSFPlugin | null { return this.getPSSysSFPlugin(); } getPSSysSFPluginMust(): IPSSysSFPlugin { const value = this.getPSSysSFPlugin(); if (value == null) { throw new Error('未指定后端模板插件对象'); } return value; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get timer(): number { return this.M.timer != null ? this.M.timer : 0; } 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 'PSSysCounterImpl'; } instanceof(cls: string): boolean { if (cls == 'control.counter.IPSSysCounter') return true; return super.instanceof(cls); } }