From 06d6ba0da4d9036bf3eeab8a7cbef8df89565606 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 16 12月 2024 17:19:05 +0800 Subject: [PATCH] BZ01 齐包优化 --- CC/iWareCC_ASRS/ThreadService/00_269工位/DataProcess_269.cs | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 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 d924945..aed2520 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" @@ -78,7 +78,7 @@ } //鍐欏叆鎶ヨ淇℃伅 - await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningGloble.Num_269_1); + await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_269_1); SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()},鏍规嵁UPI:{upiCode}娌℃湁鎵惧埌瀵硅薄 "; continue; @@ -121,10 +121,24 @@ WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "棣栨鎵爜"); + ////鏇存柊閰嶇疆 269_LastPackageUpi + //var bz30Config = wmsDB.SysConfig.Where(x => x.Code == "269_LastPackageUpi").FirstOrDefault(); + //if (bz30Config == null) + //{ + // SystemWarningMsg._lbl_Alert_DataProcess_ValidateQiTao = $"娌℃湁閰嶇疆 269_LastPackageUpi 鍊�"; + // continue; + //} + //bz30Config.Value = upiObj.PackageCode + "|" + upiObj.UPI; + FormCC.Globle_269_LastPackageUpi = upiObj.PackageCode + "|" + upiObj.UPI + "|" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); + wmsDB.SaveChanges(); //*/ } } + else + { + SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()}-娌℃湁瑕佸鐞嗙殑鏁版嵁"; + } } } catch (Exception ex) -- Gitblit v1.9.3