public Server.Utility.CommonResult <CraftsProcessExecute> UpdateCraftsProcessExecute(string sessionId, string ArrangedVouchCode, int Order, int ExecuteStatus) { try { var result = ForCfPExecuteServices.GetInstance(sessionId).UpdateCraftsProcessExecute(ArrangedVouchCode, Order, ExecuteStatus); if (result.IsSuccess) { DispatchCenterSerivce.DispatchArrangedCraftsProcessAsync(DisCenterHandler.UpdateCrafts, result.Data.ArrangedVouchCode, result.Data.ExecuteID); } return(result); } catch (Exception ex) { throw new FaultException <CustomFaultMessage>(new CustomFaultMessage() { ErrorCode = ex.HResult, Message = ex.Message, StackTrace = ex.StackTrace }, ex.Message); } }
public CommonResult <MainPipelineInfo> AddOperatingData(string sessionId, MainPipelineInfo model) { try { var ret = ForPipelineServices.GetInstance(sessionId).AddOperatingData(model); //xxp 20170515 添加主管道阀门操作推送调度中心 if (ret.Data.DeveCode.Equals("MP001")) { DispatchCenterSerivce.DispatchArrangedCraftsProcessAsync(DisCenterHandler.ValveGroup, ValveGroupValue: ret.Data.PromptDes); } return(ret); } catch (Exception ex) { throw new FaultException <CustomFaultMessage>(new CustomFaultMessage() { ErrorCode = ex.HResult, Message = ex.Message, StackTrace = ex.StackTrace }, ex.Message); } }
public CommonResult <CraftsProcessExecute> UpdateCraftsProcessData(string sessionId, string ProPlanNum, vw_DurmsUpFeeding model) { try { var result = ForCfPExecuteServices.GetInstance(sessionId).UpdateCraftsProcessData(ProPlanNum, model); // 对接调度中心 if (result.IsSuccess) { DispatchCenterSerivce.DispatchArrangedCraftsProcessAsync(DisCenterHandler.Start, result.Data.ArrangedVouchCode); } return(result); } catch (Exception ex) { throw new FaultException <CustomFaultMessage>(new CustomFaultMessage() { ErrorCode = ex.HResult, Message = ex.Message, StackTrace = ex.StackTrace }, ex.Message); } }