From f54b7815d8451f362554e3d2d09b4991ce13d4ff Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 12 十一月 2025 09:01:16 +0800
Subject: [PATCH] 前端优化,PDA更新,分配库存优化
---
项目代码/WCS/WCSServices/WIDESEAWCS_Tasks/成品仓/AGV_CPExtend.cs | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
index 0af81dc..aafff19 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
@@ -38,6 +38,16 @@
MapCode="01",
Variables=new List<PointDetail>()
};
+ if (task.NextAddress== "涓�妤兼湀鍙扮爜澶�")
+ {
+ string? address =_taskService.RequestTargetAddress(task.TaskNum);
+ if (address.IsNullOrEmpty())
+ {
+ task.ExceptionMessage = "鏈壘鍒癆GV绔欑偣";
+ continue;
+ }
+ task.NextAddress = address;
+ }
Dt_StationManger stationMangerStart = _stationMangerRepository.QueryFirst(x=>x.StationCode==task.CurrentAddress);
Dt_StationManger stationMangerEnd = _stationMangerRepository.QueryFirst(x => x.StationCode == task.NextAddress);
//娣诲姞浠诲姟璺緞鍙婇珮搴�
@@ -138,6 +148,10 @@
};
agvTaskSend.Variables.Add(pointDetail2);
}
+ if (task.TaskType==TaskTypeEnum.OutCarton.ObjToInt())
+ {
+ agvTaskSend.AgvGroupCode = "GAOc";
+ }
//寤舵椂
Thread.Sleep(500);
//鍙戦�丄GV浠诲姟
--
Gitblit v1.9.3