Ejemplo n.º 1
0
        public Server.Utility.CommonResult <QC_DrumsFindLeakReport> AddQCDrumsFindLeakReport(string sessionId, QC_DrumsFindLeakReport model)
        {
            try
            {
                var result = ForQCDFindLeakServices.GetInstance(sessionId).AddQCDrumsFindLeakReport(model);

                if (result.IsSuccess)
                {
                    var srv = new CfPExecuteService();
                    srv.UpdateCraftsProcessExecute(sessionId, result.Data.SourceCode, 2, 2);

                    if (result.Data.FLResult.Equals("不合格")) //不合格,将排配单设定为设备故障,将工艺空鼓设定完成。
                    {
                        var ret = new ArrangedVService().UdateArrUserStatusByArrCode(sessionId, result.Data.SourceCode, 99);
                        srv.UpdateCraftsProcessExecute(sessionId, result.Data.SourceCode, 8, 2);
                    }
                }
                return(result);
            }
            catch (Exception ex)
            {
                throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
                {
                    ErrorCode  = ex.HResult,
                    Message    = ex.Message,
                    StackTrace = ex.StackTrace
                }, ex.Message);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 2016/12/02
 /// chenweihua
 /// 分页显示
 /// </summary>
 /// <param name="sessionId"></param>
 /// <param name="tWhere"></param>
 /// <param name="PageSize"></param>
 /// <param name="CurrPage"></param>
 /// <returns></returns>
 public Server.Utility.CommonResult <List <QC_DrumsFindLeakReport> > GetQCDrumsFindLeakList(string sessionId, Tuple <string, List <object> > tWhere, int PageSize, int CurrPage)
 {
     try
     {
         return(ForQCDFindLeakServices.GetInstance(sessionId).GetQCDrumsFindLeakList(tWhere, PageSize, CurrPage));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }
Ejemplo n.º 3
0
 //查询
 public Server.Utility.CommonResult <QC_DrumsFindLeakReport> GetQCDrumsFindLeak(string sessionId, string strFLVCode)
 {
     try
     {
         //  return ForDeviceExecute.GetInstance(sessionId).GetDeviceExecute(strDeviCode);
         return(ForQCDFindLeakServices.GetInstance(sessionId).GetQCDrumsFindLeak(strFLVCode));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }