更新库位信息

This commit is contained in:
hehaibing-1996
2025-05-06 18:45:50 +08:00
parent 9cc4299b91
commit 87b2a34bb4

View File

@ -50,7 +50,7 @@ namespace WCS.BLL.HardWare
IsEnable = module.IsEnable, IsEnable = module.IsEnable,
CurrentMode = TaskModeEnum., CurrentMode = TaskModeEnum.,
IsNeedRefresh = false, IsNeedRefresh = true,
}); });
} }
ModulesStr = string.Join(";", MXL4Modules.Select(t => t.ModuleCode)); ModulesStr = string.Join(";", MXL4Modules.Select(t => t.ModuleCode));
@ -347,7 +347,7 @@ namespace WCS.BLL.HardWare
{ {
var jsonString = result.data; var jsonString = result.data;
Logs.Write($"3333{jsonString}", LogsType.StartBoot);
if (!string.IsNullOrEmpty(jsonString)) if (!string.IsNullOrEmpty(jsonString))
{ {
Logs.Write($"44", LogsType.StartBoot); Logs.Write($"44", LogsType.StartBoot);
@ -376,10 +376,13 @@ namespace WCS.BLL.HardWare
} }
catch (Exception) catch (Exception)
{ {
Logs.Write($"模组[{module.ModuleCode}],未发送成功!!!", LogsType.StartBoot);
module.Reset(TcpCleint); module.Reset(TcpCleint);
} }
module.IsNeedRefresh = false; finally
{
module.IsNeedRefresh = false;
}
continue; continue;
} }
//库存里面无数据 //库存里面无数据
@ -387,8 +390,18 @@ namespace WCS.BLL.HardWare
{ {
Logs.Write($"6666", LogsType.StartBoot); Logs.Write($"6666", LogsType.StartBoot);
//获取成功 无数据 //获取成功 无数据
module.StandbyNoInfoDisplay(TcpCleint); try
module.IsNeedRefresh = false;//未获取到库存数据 回没有库位显示信息给硬件 {
module.StandbyNoInfoDisplay(TcpCleint);
}
catch
{
Logs.Write($"模组[{module.ModuleCode}],未发送成功!!!", LogsType.StartBoot);
}
finally
{
module.IsNeedRefresh = false;//未获取到库存数据 回没有库位显示信息给硬件
}
continue; continue;
} }
} }