1
schangxiang@126.com
2024-12-02 607fa9a9dec5ff4fe780231d635bbd62e1740f37
CC/iWareCC_ASRS/ThreadService/00_269¹¤Î»/DataProcess_269.cs
@@ -30,11 +30,12 @@
            LogType logType = LogType.DataProcess_269;
            while (true)
            {
                Thread.Sleep(2000);//休眠2秒,将休眠写到前面,是为了下面的continue方法执行后不显示错误信息的提示!!!【EditBy shaocx,2022-05-24】
                Thread.Sleep(1000);//休眠2秒,将休眠写到前面,是为了下面的continue方法执行后不显示错误信息的提示!!!【EditBy shaocx,2022-05-24】
                SystemWarningMsg._lbl_alert_DataProcess_269 = string.Empty;
                try
                {
                    if (SystemValue.isAllowRuning_DataProcess_269 && SystemValue.isStartedModel)
                    //if (SystemValue.isAllowRuning_DataProcess_269 && SystemValue.isStartedModel)
                    if (SystemValue.isStartedModel)
                    {
                        var rgvLocation = StationLocationEnum.首次扫码工位.ToString();
                        /*
@@ -58,11 +59,30 @@
                                {
                                    SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()},根据UPI:{upiCode}没有找到对象 ";
                                    continue;
                                    //*/
                                }
                                upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                //推送plc解析完成
                                using (StationServiceClient client = new StationServiceClient())
                                {
                                    var res = await client.WriteQiTaoInfoAsync((int)EDevice.Station, rgvLocation, true);
                                    if (!res.result)
                                    {
                                        SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}- æŽ¨é€plc解析完成 å¤±è´¥,WriteQiTaoInfoAsync返回:{res.resMsg}";
                                        continue;
                                    }
                                    else
                                    {
                                        Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-推送plc解析完成 æˆåŠŸ,WriteQiTaoInfoAsync,参数: ç«™ç‚¹{rgvLocation}");
                                    }
                                }
                                upiObj.AreaCode = (int)AreaCodeEnum.待缓存分拣区;
                                WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "首次扫码");
                                wmsDB.SaveChanges();
                                //*/
                            }
                        }
                    }
@@ -75,5 +95,6 @@
            }
        }
    }
}