import { IPSSysBICubeMeasure } from './ipssys-bicube-measure'; import { IPSDataEntity } from '../dataentity/ipsdata-entity'; import { IPSDEField } from '../dataentity/defield/ipsdefield'; import { PSModelObjectImpl } from '../psmodel-object-impl'; export class PSSysBICubeMeasureImpl extends PSModelObjectImpl implements IPSSysBICubeMeasure { get codeName(): string { return this.M.codeName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get mOSFilePath(): string { return this.M.mOSFilePath; } get measureFormula(): string { return this.M.measureFormula; } get measureTag(): string { return this.M.measureTag; } get measureTag2(): string { return this.M.measureTag2; } get measureType(): 'COMMON' | 'CALCULATED' { return this.M.measureType; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } protected psdefield: IPSDEField | null = null; getPSDEField(): IPSDEField | null { if (this.psdefield != null) return this.psdefield; const value = this.M.getPSDEField; if (value == null) { return null; } const ipsdataentity = this.getParentPSModelObject('dataentity.IPSDataEntity') as IPSDataEntity; if (ipsdataentity != null) { this.psdefield = ipsdataentity.findPSDEField(value); } return this.psdefield; } get psDEField(): IPSDEField | null { return this.getPSDEField(); } getPSDEFieldMust(): IPSDEField { const value = this.getPSDEField(); 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 valueFormat(): string { return this.M.valueFormat; } get hiddenItem(): boolean { return this.M.hiddenItem != null ? this.M.hiddenItem : false; } get cls(): string { return 'PSSysBICubeMeasureImpl'; } instanceof(cls: string): boolean { if (cls == 'bi.IPSBICubeMeasure' || cls == 'bi.IPSSysBICubeMeasure') return true; return super.instanceof(cls); } }