From 8bfe5dcf83cdcaa90c45ad86a8b464238748de7c Mon Sep 17 00:00:00 2001
From: liuying <1427574514@qq.com>
Date: 周日, 01 12月 2024 16:02:38 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/LA24030-LuLI_PackageLine

---
 CC/iWareCC_ASRS/ThreadService/04_BZ21(搬运整垛机器人)/DataProcess_BZ21.cs |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git "a/CC/iWareCC_ASRS/ThreadService/04_BZ21\357\274\210\346\220\254\350\277\220\346\225\264\345\236\233\346\234\272\345\231\250\344\272\272\357\274\211/DataProcess_BZ21.cs" "b/CC/iWareCC_ASRS/ThreadService/04_BZ21\357\274\210\346\220\254\350\277\220\346\225\264\345\236\233\346\234\272\345\231\250\344\272\272\357\274\211/DataProcess_BZ21.cs"
index 5778a5c..5627637 100644
--- "a/CC/iWareCC_ASRS/ThreadService/04_BZ21\357\274\210\346\220\254\350\277\220\346\225\264\345\236\233\346\234\272\345\231\250\344\272\272\357\274\211/DataProcess_BZ21.cs"
+++ "b/CC/iWareCC_ASRS/ThreadService/04_BZ21\357\274\210\346\220\254\350\277\220\346\225\264\345\236\233\346\234\272\345\231\250\344\272\272\357\274\211/DataProcess_BZ21.cs"
@@ -132,7 +132,9 @@
                                     mesgather.AreaCode = (int)AreaCodeEnum.鍚堝寘瑁佸垏鍖�;
                                     mesgather.UpiStatus = (int)UpiStatusEnum.宸插悎鍖�;
                                 }
-
+                                var upilist=wmsDB.mes_batchOrderUPI_new.Where(x=>x.PackageCode==upiObj.PackageCode).ToList();
+                                var upilength = upilist.Max(x => x.Length);
+                                var upiwidth= upilist.Max(x => x.Width);
                                 cartonhigh = (short)upiObj.Info3;
                                 cartonwidth = (short)upiObj.Info2;
                                 upiObj.UpiStatus = (int)UpiStatusEnum.宸插悎鍖�;
@@ -194,7 +196,14 @@
                                 print.IsAllowPrint= true;
                                 print.CreateTime = print.UpdateTime = DateTime.Now;
                                 wmsDB.wms_record_print.Add(print);
-                                wms_record_print printtwo = print;
+                                var printtwo = ClassHelper.RotationMapping<wms_record_print, mes_batchOrderUPI_new>(upiObj);
+                                printtwo.PrintType = (int)PrintTypeEnum.鍖呰鏉$爜;
+                                printtwo.PrintSource = (int)PrintSourceEnum.鍖呰鏉$爜鎵撳嵃;
+                                printtwo.PrintSheetNum = 1;
+                                printtwo.PrintNum = 0;
+                                printtwo.PrintStatus = (int)PrintStatuEnum.鏈墦鍗�;
+                                printtwo.IsAllowPrint = true;
+                                printtwo.CreateTime = print.UpdateTime = DateTime.Now;
                                 printtwo.Id= Yitter.IdGenerator.YitIdHelper.NextId();
                                 wmsDB.wms_record_print.Add(printtwo);
 
@@ -216,7 +225,7 @@
                                 {
 
                                     var plcres = client.WriteSurroundTaskInfo((int)EDevice.Station, rgvLocation, short.Parse(task.TaskNo),
-                                          (short)upiObj.Length, (short)upiObj.Width, cartonhigh, cartonwidth, 0, 0);
+                                          (short)upilength, (short)upiwidth, cartonhigh, cartonwidth, 0, 0);
                                     if (!plcres.result)
                                     {
                                         SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-涓嬪彂鍏ュ簱浠诲姟 澶辫触,WriteInStoreTaskInfoAsync 杩斿洖:{plcres.resMsg}";

--
Gitblit v1.9.3