From 9597b1df912c1ca4401a74970d9472e268b3a9c2 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周六, 07 12月 2024 15:12:59 +0800 Subject: [PATCH] 33 --- CC/iWareCC_ASRS/ThreadService/02_BZ39工位(补板后工位)/Outbound/1、DataProcess_RobotBuffer_AutoQiTaoOutbound.cs | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git "a/CC/iWareCC_ASRS/ThreadService/02_BZ39\345\267\245\344\275\215\357\274\210\350\241\245\346\235\277\345\220\216\345\267\245\344\275\215\357\274\211/Outbound/1\343\200\201DataProcess_RobotBuffer_AutoQiTaoOutbound.cs" "b/CC/iWareCC_ASRS/ThreadService/02_BZ39\345\267\245\344\275\215\357\274\210\350\241\245\346\235\277\345\220\216\345\267\245\344\275\215\357\274\211/Outbound/1\343\200\201DataProcess_RobotBuffer_AutoQiTaoOutbound.cs" index d4a4924..6288473 100644 --- "a/CC/iWareCC_ASRS/ThreadService/02_BZ39\345\267\245\344\275\215\357\274\210\350\241\245\346\235\277\345\220\216\345\267\245\344\275\215\357\274\211/Outbound/1\343\200\201DataProcess_RobotBuffer_AutoQiTaoOutbound.cs" +++ "b/CC/iWareCC_ASRS/ThreadService/02_BZ39\345\267\245\344\275\215\357\274\210\350\241\245\346\235\277\345\220\216\345\267\245\344\275\215\357\274\211/Outbound/1\343\200\201DataProcess_RobotBuffer_AutoQiTaoOutbound.cs" @@ -26,8 +26,8 @@ Thread.Sleep(2000);//浼戠湢2绉掞紝灏嗕紤鐪犲啓鍒板墠闈紝鏄负浜嗕笅闈㈢殑continue鏂规硶鎵ц鍚庝笉鏄剧ず閿欒淇℃伅鐨勬彁绀猴紒锛侊紒銆怑ditBy shaocx,2022-05-24銆� SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = string.Empty; try - { - if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound && SystemValue.isStartedModel) + {//SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound && + if (SystemValue.isStartedModel) { using (WmsDBModel wmsDB = new WmsDBModel()) @@ -47,8 +47,11 @@ var doList = upiList.Where(x => x.PackageCode == packageCode).OrderBy(x => x.Shelf).ToList(); foreach (var item in doList) { - var x = group.ToList().Find(b => b.Upi == item.UPI); - x.StockStatus = (int)StockStatusEnum.榻愬寘寰呭嚭搴�; + item.UpiStatus = (int)UpiStatusEnum.宸查綈鍖�; + item.UpdateTime = DateTime.Now; + + var stock = group.ToList().Find(b => b.Upi == item.UPI); + stock.StockStatus = (int)StockStatusEnum.榻愬寘寰呭嚭搴�; //鐢熸垚鍑哄簱浠诲姟 //璁板綍浠诲姟 @@ -59,17 +62,17 @@ Id = _id, TaskNo = plcTaskNo, - UPI = x.Upi, - Length = x.Length, - Width = x.Width, - Thk = x.Thk, - IssueTime = DateTime.Now, - PlanNo = x.PlanNo, - OrderId = x.OrderId, - PackageCode = x.PackageCode, - PlaceCode = x.PlaceCode, - RbTaskType = (int)RbTaskTypeEnum.鍑哄簱浠诲姟, - RbTaskTypeEnumName = RbTaskTypeEnum.鍑哄簱浠诲姟.ToString(), + UPI = stock.Upi, + Length = stock.Length, + Width = stock.Width, + Thk = stock.Thk, + + PlanNo = stock.PlanNo, + OrderId = stock.OrderId, + PackageCode = stock.PackageCode, + PlaceCode = stock.PlaceCode, + RbTaskType = (int)RbTaskTypeEnum.榻愬寘鍑哄簱浠诲姟, + RbTaskTypeEnumName = RbTaskTypeEnum.榻愬寘鍑哄簱浠诲姟.ToString(), TaskStatus = (int)TaskStatusEnum.鏂板缓, TaskStatusName = TaskStatusEnum.鏂板缓.ToString(), TaskMsg = "鍑哄簱浠诲姟", @@ -83,7 +86,7 @@ wmsDB.wms_rbline_task.Add(new_task); - var place = StationHandler.GetPlaceByPlaceCode(x.PlaceCode, wmsDB); + var place = StationHandler.GetPlaceByPlaceCode(stock.PlaceCode, wmsDB); place.PlaceStatus = (int)PlaceStatusEnum.閿佸畾; Thread.Sleep(100); -- Gitblit v1.9.3