예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
        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);
            }
        }