import { IPSDELogic } from './ipsdelogic'; import { IPSDELogicParam } from './ipsdelogic-param'; import { IPSDESFPluginLogic } from './ipsdesfplugin-logic'; import { PSDELogicNodeImpl } from './psdelogic-node-impl'; import { IPSSysSFPlugin } from '../../res/ipssys-sfplugin'; export class PSDESFPluginLogicImpl extends PSDELogicNodeImpl implements IPSDESFPluginLogic { protected dstpsdelogicparam: IPSDELogicParam | null = null; getDstPSDELogicParam(): IPSDELogicParam | null { if (this.dstpsdelogicparam != null) return this.dstpsdelogicparam; const value = this.M.getDstPSDELogicParam; if (value == null) { return null; } const ipsdelogic = this.getParentPSModelObject('dataentity.logic.IPSDELogic') as IPSDELogic; if (ipsdelogic != null) { this.dstpsdelogicparam = ipsdelogic.findPSDELogicParam(value); } return this.dstpsdelogicparam; } get dstPSDELogicParam(): IPSDELogicParam | null { return this.getDstPSDELogicParam(); } getDstPSDELogicParamMust(): IPSDELogicParam { const value = this.getDstPSDELogicParam(); 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; } protected retpsdelogicparam: IPSDELogicParam | null = null; getRetPSDELogicParam(): IPSDELogicParam | null { if (this.retpsdelogicparam != null) return this.retpsdelogicparam; const value = this.M.getRetPSDELogicParam; if (value == null) { return null; } const ipsdelogic = this.getParentPSModelObject('dataentity.logic.IPSDELogic') as IPSDELogic; if (ipsdelogic != null) { this.retpsdelogicparam = ipsdelogic.findPSDELogicParam(value); } return this.retpsdelogicparam; } get retPSDELogicParam(): IPSDELogicParam | null { return this.getRetPSDELogicParam(); } getRetPSDELogicParamMust(): IPSDELogicParam { const value = this.getRetPSDELogicParam(); if (value == null) { throw new Error('未指定返回值绑定逻辑参数对象'); } return value; } get cls(): string { return 'PSDESFPluginLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDESFPluginLogic') return true; return super.instanceof(cls); } }