import { IPSAppDEUILogicNodeParam } from '../../app/dataentity/ipsapp-deuilogic-node-param'; import { IPSDEUILogic } from './ipsdeuilogic'; import { IPSDEUILogicNodeParam } from './ipsdeuilogic-node-param'; import { IPSDEUILogicParam } from './ipsdeuilogic-param'; import { PSModelObjectImpl } from '../../psmodel-object-impl'; export class PSDEUILogicNodeParamImpl extends PSModelObjectImpl implements IPSDEUILogicNodeParam, IPSAppDEUILogicNodeParam { get aggMode(): 'SUM' | 'AVG' | 'MAX' | 'MIN' | 'COUNT' | 'USER' | 'USER2' | 'USER3' | 'USER4' { return this.M.aggMode; } get codeName(): string { return this.M.codeName; } get dstFieldName(): string { return this.M.dstFieldName; } get dstIndex(): number { return this.M.dstIndex != null ? this.M.dstIndex : -1; } protected dstpsdeuilogicparam: IPSDEUILogicParam | null = null; getDstPSDEUILogicParam(): IPSDEUILogicParam | null { if (this.dstpsdeuilogicparam != null) return this.dstpsdeuilogicparam; const value = this.M.getDstPSDEUILogicParam; if (value == null) { return null; } const ipsdeuilogic = this.getParentPSModelObject('dataentity.logic.IPSDEUILogic') as IPSDEUILogic; if (ipsdeuilogic != null) { this.dstpsdeuilogicparam = ipsdeuilogic.findPSDEUILogicParam(value); } return this.dstpsdeuilogicparam; } get dstPSDEUILogicParam(): IPSDEUILogicParam | null { return this.getDstPSDEUILogicParam(); } getDstPSDEUILogicParamMust(): IPSDEUILogicParam { const value = this.getDstPSDEUILogicParam(); if (value == null) { throw new Error('未指定目标逻辑参数'); } return value; } get dstSortDir(): 'ASC' | 'DESC' { return this.M.dstSortDir; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get expression(): string { return this.M.expression; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } get paramAction(): 'SETPARAMVALUE' | 'RESETPARAM' | 'COPYPARAM' | 'SQLPARAM' | 'SFPLUGINPARAM' | 'BINDPARAM' | 'APPENDPARAM' | 'SORTPARAM' | 'RENEWPARAM' | 'WEBURIPARAM' | 'WEBHEADERPARAM' { return this.M.paramAction; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get srcFieldName(): string { return this.M.srcFieldName; } get srcIndex(): number { return this.M.srcIndex != null ? this.M.srcIndex : -1; } protected srcpsdeuilogicparam: IPSDEUILogicParam | null = null; getSrcPSDEUILogicParam(): IPSDEUILogicParam | null { if (this.srcpsdeuilogicparam != null) return this.srcpsdeuilogicparam; const value = this.M.getSrcPSDEUILogicParam; if (value == null) { return null; } const ipsdeuilogic = this.getParentPSModelObject('dataentity.logic.IPSDEUILogic') as IPSDEUILogic; if (ipsdeuilogic != null) { this.srcpsdeuilogicparam = ipsdeuilogic.findPSDEUILogicParam(value); } return this.srcpsdeuilogicparam; } get srcPSDEUILogicParam(): IPSDEUILogicParam | null { return this.getSrcPSDEUILogicParam(); } getSrcPSDEUILogicParamMust(): IPSDEUILogicParam { const value = this.getSrcPSDEUILogicParam(); if (value == null) { throw new Error('未指定源逻辑参数'); } return value; } get srcSize(): number { return this.M.srcSize != null ? this.M.srcSize : -1; } get srcValue(): string { return this.M.srcValue; } get srcValueStdDataType(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 { return this.M.srcValueStdDataType != null ? this.M.srcValueStdDataType : 0; } get srcValueType(): | 'SRCDLPARAM' | 'WEBCONTEXT' | 'APPDATA' | 'APPLICATION' | 'SESSION' | 'DATACONTEXT' | 'ENVPARAM' | 'VIEWPARAM' | 'NONEVALUE' | 'NULLVALUE' | 'SRCVALUE' | 'EXPRESSION' | 'COUNT' | 'AGGREGATION' | 'SEQUENCE' | 'TRANSLATOR' { return this.M.srcValueType; } 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 'PSDEUILogicNodeParamImpl'; } instanceof(cls: string): boolean { if (cls == 'app.dataentity.IPSAppDEUILogicNodeParam' || cls == 'dataentity.logic.IPSDEUILogicNodeParam') return true; return super.instanceof(cls); } }