From 607fa9a9dec5ff4fe780231d635bbd62e1740f37 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 02 12月 2024 18:37:27 +0800 Subject: [PATCH] 1 --- CC/iWareCC_ASRS/ThreadService/00_269工位/DataProcess_269.cs | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git "a/CC/iWareCC_ASRS/ThreadService/00_269\345\267\245\344\275\215/DataProcess_269.cs" "b/CC/iWareCC_ASRS/ThreadService/00_269\345\267\245\344\275\215/DataProcess_269.cs" index 8a2e4c3..d98ea9e 100644 --- "a/CC/iWareCC_ASRS/ThreadService/00_269\345\267\245\344\275\215/DataProcess_269.cs" +++ "b/CC/iWareCC_ASRS/ThreadService/00_269\345\267\245\344\275\215/DataProcess_269.cs" @@ -34,7 +34,8 @@ 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; + //*/ + } + + //鎺ㄩ�乸lc瑙f瀽瀹屾垚 + 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()}- 鎺ㄩ�乸lc瑙f瀽瀹屾垚 澶辫触,WriteQiTaoInfoAsync杩斿洖:{res.resMsg}"; + continue; + } + else + { + Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-鎺ㄩ�乸lc瑙f瀽瀹屾垚 鎴愬姛,WriteQiTaoInfoAsync锛屽弬鏁�: 绔欑偣{rgvLocation}"); + } } upiObj.AreaCode = (int)AreaCodeEnum.寰呯紦瀛樺垎鎷e尯; + WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "棣栨鎵爜"); + wmsDB.SaveChanges(); + //*/ } } } @@ -75,6 +95,6 @@ } } - + } } -- Gitblit v1.9.3