From 4ac3f08f416685db0e218df55750d94556030330 Mon Sep 17 00:00:00 2001
From: HuBingJie <3146306518@qq.com>
Date: 星期四, 06 十一月 2025 20:25:17 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs | 29 ++++++++++++++++++++++-------
1 files changed, 22 insertions(+), 7 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
index fb978c5..a8836b5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
@@ -67,6 +67,20 @@
dt_StockInfo.StockStatus = (int)StockStatusEmun.鍑哄簱閿佸畾;
locationInfo.LocationStatus = (int)LocationStatusEnum.InStockLock;
+
+
+ string TaregtAddres = "";
+ if (outbound.NodeCode != "2011" && outbound.NodeCode != "2009")
+ {
+ int nextTaregt = int.Parse(outbound.NodeCode);
+ //纭鐩爣绔欏彴锛堝浐瀹氾級
+ TaregtAddres = (nextTaregt + 1).ToString();
+ }
+ else
+ {
+ TaregtAddres = locationInfo.RoadwayNo == "SC01" ? "2021" : "2020";
+ }
+
//鐢熸垚绉诲姩浠诲姟
Dt_Task dt_Task = new()
{
@@ -76,16 +90,17 @@
TaskType = TaskOutboundTypeEnum.Outbound.ObjToInt(),
TaskStatus = TaskOutStatusEnum.OutNew.ObjToInt(),
SourceAddress = locationInfo.LocationCode,
- TargetAddress = outbound.NodeCode,
+ TargetAddress = TaregtAddres,
CurrentAddress = locationInfo.LocationCode,
- NextAddress = outbound.NodeCode,
+ NextAddress = TaregtAddres,
Grade = 1,
Creater = "MES",
Depth = locationInfo.Depth,
CreateDate = DateTime.Now,
- MEStaskId= outbound.TaskId,
- MESbusinessId= outbound.BusinessId,
- MESsubPalletCode= dt_StockInfo.MESsubPalletCode
+ MEStaskId = outbound.TaskId,
+ MESbusinessId = outbound.BusinessId,
+ MESsubPalletCode = dt_StockInfo.MESsubPalletCode,
+ OutboundPlatform = outbound.NodeCode
};
Adddtstockt.Add(dt_StockInfo);
Addlocations.Add(locationInfo);
@@ -96,9 +111,9 @@
_unitOfWorkManage.BeginTran();
- _stockRepository.DeleteData(Adddtstockt);
+ _stockRepository.UpdateData(Adddtstockt);
_locationInfoRepository.UpdateData(Addlocations);
- BaseDal.DeleteData(Addtaskdt);
+ BaseDal.AddData(Addtaskdt);
var respon = PushTasksToWCS(Addtaskdt,"");
if (respon.Status)
--
Gitblit v1.9.3