import { IPSSysBICube } from './ipssys-bicube'; import { IPSSysBICubeMeasure } from './ipssys-bicube-measure'; import { IPSSysBIReportMeasure } from './ipssys-bireport-measure'; import { PSModelObjectImpl } from '../psmodel-object-impl'; export class PSSysBIReportMeasureImpl extends PSModelObjectImpl implements IPSSysBIReportMeasure { get codeName(): string { return this.M.codeName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get itemTag(): string { return this.M.itemTag; } get itemTag2(): string { return this.M.itemTag2; } get itemType(): 'MEASURE' | 'DIMENSION' | 'USER' { 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; } protected pssysbicubemeasure: IPSSysBICubeMeasure | null = null; getPSSysBICubeMeasure(): IPSSysBICubeMeasure | null { if (this.pssysbicubemeasure != null) return this.pssysbicubemeasure; const value = this.M.getPSSysBICubeMeasure; if (value == null) { return null; } const ipssysbicube = this.getParentPSModelObject('bi.IPSSysBICube') as IPSSysBICube; if (ipssysbicube != null) { this.pssysbicubemeasure = ipssysbicube.findPSSysBICubeMeasure(value); } return this.pssysbicubemeasure; } get psSysBICubeMeasure(): IPSSysBICubeMeasure | null { return this.getPSSysBICubeMeasure(); } getPSSysBICubeMeasureMust(): IPSSysBICubeMeasure { const value = this.getPSSysBICubeMeasure(); 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 'PSSysBIReportMeasureImpl'; } instanceof(cls: string): boolean { if (cls == 'bi.IPSBIReportMeasure' || cls == 'bi.IPSSysBIReportMeasure') return true; return super.instanceof(cls); } }