更新库位信息
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user