import { IPSDEMSLogic } from './ipsdemslogic'; import { IPSDEMSLogicLinkSingleCond } from './ipsdemslogic-link-single-cond'; import { IPSDEMSLogicParam } from './ipsdemslogic-param'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEMSLogicLinkSingleCondImpl extends PSModelObjectImpl implements IPSDEMSLogicLinkSingleCond { get codeName(): string { return this.M.codeName; } get condOP(): string { return this.M.condOP; } get dstFieldName(): string { return this.M.dstFieldName; } protected dstlogicparam: IPSDEMSLogicParam | null = null; getDstLogicParam(): IPSDEMSLogicParam | null { if (this.dstlogicparam != null) return this.dstlogicparam; const value = this.M.getDstLogicParam; if (value == null) { return null; } const ipsdemslogic = this.getParentPSModelObject('dataentity.logic.IPSDEMSLogic') as IPSDEMSLogic; if (ipsdemslogic != null) { this.dstlogicparam = ipsdemslogic.findPSDEMSLogicParam(value); } return this.dstlogicparam; } get dstLogicParam(): IPSDEMSLogicParam | null { return this.getDstLogicParam(); } getDstLogicParamMust(): IPSDEMSLogicParam { const value = this.getDstLogicParam(); if (value == null) { throw new Error('未指定目标逻辑参数对象'); } return value; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get logicType(): 'GROUP' | 'SINGLE' { return this.M.logicType; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } get paramType(): 'ENTITYFIELD' | 'CURTIME' { return this.M.paramType; } get paramValue(): string { return this.M.paramValue; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } protected srclogicparam: IPSDEMSLogicParam | null = null; getSrcLogicParam(): IPSDEMSLogicParam | null { if (this.srclogicparam != null) return this.srclogicparam; const value = this.M.getSrcLogicParam; if (value == null) { return null; } const ipsdemslogic = this.getParentPSModelObject('dataentity.logic.IPSDEMSLogic') as IPSDEMSLogic; if (ipsdemslogic != null) { this.srclogicparam = ipsdemslogic.findPSDEMSLogicParam(value); } return this.srclogicparam; } get srcLogicParam(): IPSDEMSLogicParam | null { return this.getSrcLogicParam(); } getSrcLogicParamMust(): IPSDEMSLogicParam { const value = this.getSrcLogicParam(); if (value == null) { throw new Error('未指定源逻辑参数对象'); } return value; } 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 value(): string { return this.M.value; } get cls(): string { return 'PSDEMSLogicLinkSingleCondImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDEMSLogicLinkSingleCond') return true; return super.instanceof(cls); } }