From b513ce3a4527e998da66c6f179a279472c7262a8 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 18 十一月 2025 10:59:46 +0800
Subject: [PATCH] 代码更新优化
---
项目代码/WCS/WCSServices/WIDESEAWCS_Tasks/成品仓/ConveyorLineJob_CPH.cs | 60 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 30 insertions(+), 30 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/ConveyorLineJob_CPH.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/ConveyorLineJob_CPH.cs"
index b11f4c0..8ae53f7 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/ConveyorLineJob_CPH.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/ConveyorLineJob_CPH.cs"
@@ -54,14 +54,14 @@
_routerRepository = routerRepository;
_routerService = routerService;
_routerExtension = routerExtension;
- string boxCodes = AppSettings.Get("BoxCodes");
- if (!string.IsNullOrEmpty(boxCodes) && strings.Count<=0)
- {
- foreach (string s in boxCodes.Split(","))
- {
- strings.Add(s);
- }
- }
+ //string boxCodes = AppSettings.Get("BoxCodes");
+ //if (!string.IsNullOrEmpty(boxCodes) && strings.Count<=0)
+ //{
+ // foreach (string s in boxCodes.Split(","))
+ // {
+ // strings.Add(s);
+ // }
+ //}
string? warehouseDevicesStr = _cacheService.Get<string>(nameof(Dt_WarehouseDevice));
if (!string.IsNullOrEmpty(warehouseDevicesStr))
{
@@ -113,31 +113,31 @@
//if (strings.Length==2)
//{
#region todo:涓存椂閫昏緫
- //鍐欏叆鎵ц鏁版嵁
- if (strings.FirstOrDefault(x=>x == conveyorLineInfoRead.R_BoxCode)!=null)
- {
+ ////鍐欏叆鎵ц鏁版嵁
+ //if (strings.FirstOrDefault(x=>x == conveyorLineInfoRead.R_BoxCode)!=null)
+ //{
device.SetValue(W_CLineCPHDB.W_TaskNo, 100 + 5, RequestIn.StationCode);
- device.SetValue(W_CLineCPHDB.W_Channel, 5, RequestIn.StationCode);
- device.SetValue(W_CLineCPHDB.W_Long, 450, RequestIn.StationCode);
- device.SetValue(W_CLineCPHDB.W_Wide, 360, RequestIn.StationCode);
- device.SetValue(W_CLineCPHDB.W_High, 400, RequestIn.StationCode);
+ device.SetValue(W_CLineCPHDB.W_Channel, 14, RequestIn.StationCode);
+ device.SetValue(W_CLineCPHDB.W_Long, 465, RequestIn.StationCode);
+ device.SetValue(W_CLineCPHDB.W_Wide, 375, RequestIn.StationCode);
+ device.SetValue(W_CLineCPHDB.W_High, 690, RequestIn.StationCode);
device.SetValue(W_CLineCPHDB.W_TMID, conveyorLineInfoRead.R_BoxCode, RequestIn.StationCode);
device.SetValue(W_CLineCPHDB.W_Request, 1, RequestIn.StationCode);
- WebResponseContent content = _taskService.MESBoxCodeNotice(conveyorLineInfoRead.R_BoxCode);
- if (content.Message.Contains("true"))
- {
- strings.Remove(conveyorLineInfoRead.R_BoxCode);
- WriteInfo(RequestIn.StationName, content.Message);
- }
- else
- {
- WriteError(RequestIn.StationName, content.Message);
- }
- }
- else
- {
- WriteError(RequestIn.StationName, $"鏈壘鍒版潯鐮亄conveyorLineInfoRead.R_BoxCode}鏁版嵁");
- }
+ // WebResponseContent content = _taskService.MESBoxCodeNotice(conveyorLineInfoRead.R_BoxCode);
+ // if (content.Message.Contains("true"))
+ // {
+ // strings.Remove(conveyorLineInfoRead.R_BoxCode);
+ // WriteInfo(RequestIn.StationName, content.Message);
+ // }
+ // else
+ // {
+ // WriteError(RequestIn.StationName, content.Message);
+ // }
+ //}
+ //else
+ //{
+ // WriteError(RequestIn.StationName, $"鏈壘鍒版潯鐮亄conveyorLineInfoRead.R_BoxCode}鏁版嵁");
+ //}
#endregion
//}
//else
--
Gitblit v1.9.3