From ded9c653b4bd5f45cb23124068687135c29e6915 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 12 一月 2026 15:06:11 +0800
Subject: [PATCH] 多个功能优化,逻辑修改等
---
项目代码/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Completed.cs | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Completed.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Completed.cs"
index b4485f9..a134326 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Completed.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Completed.cs"
@@ -97,6 +97,7 @@
try
{
Dt_Task wmsTask = BaseDal.QueryFirst(x=>x.TaskNum == task.TaskNum);
+ string oldPalletCode = wmsTask.PalletCode;
if (wmsTask != null)
{
wmsTask.PalletCode= task.PalletCode;
@@ -108,6 +109,31 @@
wmsTask.TaskType = task.TaskType;
wmsTask.TargetAddress = task.TargetAddress;
BaseDal.UpdateData(wmsTask);
+ //鎺ㄩ�丮ES鎺ラ┏鎴愬姛鎺ュ彛
+ if (wmsTask.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup && !wmsTask.WorkCentreCode.IsNullOrEmpty() && wmsTask.TaskStatus == TaskStatusEnum.AGV_TakeFinish.ObjToInt())
+ {
+ Dt_AGVStationInfo? aGVStationInfo = null;
+ if (wmsTask.CurrentAddress== "603" || wmsTask.CurrentAddress == "613" || wmsTask.CurrentAddress == "102" || wmsTask.CurrentAddress == "614" || wmsTask.CurrentAddress == "615" || wmsTask.CurrentAddress == "604" || wmsTask.CurrentAddress == "605")
+ {
+ aGVStationInfo = _basicRepository.AGVStationInfoRepository.QueryFirst(x=>x.AGVStationCode==wmsTask.CurrentAddress);
+ }
+ else
+ {
+ aGVStationInfo= _basicRepository.AGVStationInfoRepository.QueryFirst(x => x.MESPointCode == wmsTask.CurrentAddress);
+ }
+ MESRecepNoticeModel mESRecepNoticeModel = new MESRecepNoticeModel()
+ {
+ WorkCentreEmptyPalletNotice = new List<RecepNotice>()
+ {
+ new RecepNotice()
+ {
+ LocationCode = aGVStationInfo.MESPointCode,
+ CompleteFlag=true
+ }
+ }
+ };
+ }
+ //鎺ㄩ�丒RP鍗婃垚鍝佸叆搴�
if (wmsTask.TaskType>=TaskTypeEnum.WFBYLInbound.ObjToInt() && wmsTask.TaskType <= TaskTypeEnum.PrintYLInbound.ObjToInt() && wmsTask.TaskStatus==TaskStatusEnum.AGV_TakeFinish.ObjToInt())
{
Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.QueryFirst(x=>x.PalletCode== wmsTask.PalletCode);
@@ -126,6 +152,13 @@
}
}) ?? throw new Exception("鍗婃垚鍝佸叆搴撴帴鍙h姹傚け璐�");
}
+ //鎴愬搧鍏ュ簱鏇存柊鎵樼洏鏉$爜
+ if (wmsTask.TaskType == TaskTypeEnum.InProduct.ObjToInt() && oldPalletCode!=task.PalletCode)
+ {
+ Dt_ProStockInfo stockInfo = _stockRepository.ProStockInfoRepository.QueryFirst(x => x.PalletCode == oldPalletCode);
+ stockInfo.PalletCode = task.PalletCode;
+ _stockRepository.ProStockInfoRepository.UpdateData(stockInfo);
+ }
}
return WebResponseContent.Instance.OK();
}
--
Gitblit v1.9.3