From 504404beedd006d029bb44fe2290aba649795229 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期日, 01 十二月 2024 19:53:39 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
index 7a886a0..851d20d 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
@@ -452,6 +452,7 @@
                                         Creater = "WMS",
                                         CreateDate = DateTime.Now,
                                         TaskNum = BaseDal.GetTaskNum(nameof(SequenceEnum.SeqTaskNum)),
+                                        MaterialType = dt_StockInfo.MaterialType
                                     };
                                     _unitOfWorkManage.BeginTran();
                                     if (locationInfos.LocationStatus == LocationStatusEnum.InStock.ObjToInt())
@@ -510,10 +511,10 @@
                     {
                         RoadwayNo = "2";
                     }
-                    Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.RoadwayNo == RoadwayNo && x.Depth==1 && x.LocationStatus == LocationStatusEnum.Pallet.ObjToInt());
+                    Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.RoadwayNo == RoadwayNo && x.EnableStatus != (int)EnableStatusEnum.Disable && x.Depth==1 && x.LocationStatus == LocationStatusEnum.Pallet.ObjToInt());
                     if(locationInfos == null)
                     {
-                        locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.RoadwayNo == RoadwayNo && x.Depth == 2 && x.LocationStatus == LocationStatusEnum.Pallet.ObjToInt());
+                        locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.RoadwayNo == RoadwayNo && x.Depth == 2 && x.EnableStatus != (int)EnableStatusEnum.Disable && x.LocationStatus == LocationStatusEnum.Pallet.ObjToInt());
                     }
 
                     if (locationInfos != null)
@@ -543,6 +544,7 @@
                                     Depth = locationInfos.Depth,
                                     CreateDate = DateTime.Now,
                                     PalletCodequantity = (int)dt_StockInfo.Materialweight,
+                                    MaterialType = dt_StockInfo.MaterialType
                                 };
 
                                 _unitOfWorkManage.BeginTran();
@@ -623,6 +625,7 @@
                             CreateDate = DateTime.Now,
                             PalletCodequantity = (int)dt_StockInfo[i].Materialweight,
                             PLCTo = generate.TargetAddress == "R01-002-041-011-01" ? 1 : 2,
+                            MaterialType = dt_StockInfo[i].MaterialType
                         };
 
                         _unitOfWorkManage.BeginTran();
@@ -712,6 +715,7 @@
                                     Creater = "WMS",
                                     Depth = locationinfo.Depth,
                                     CreateDate = DateTime.Now,
+                                    MaterialType= stockt.MaterialType
                                 };
                                 dtstockt.Add(stockt);
                                 locations.Add(locationinfo);
@@ -812,7 +816,7 @@
                                         Depth = locationinfo.Depth,
                                         CreateDate = DateTime.Now,
                                         PLCTo = int.Parse(saveModel.DelKeys[1].ToString()),
-
+                                        MaterialType=stockt.MaterialType
                                     };
                                     dtstockt.Add(stockt);
                                     locations.Add(locationinfo);

--
Gitblit v1.9.3