1.报错机制增加未扫描上架的提供库位屏蔽机制
2.库位查询增加当前屏蔽模组库位百分比查询 3.货架库位屏蔽、模组屏蔽后增加当前禁用模组库位百分比查询
This commit is contained in:
@ -66,6 +66,19 @@ namespace 智能仓储WCS管理系统
|
||||
return Show(content, title, new string[] { "确认", "忽略" }, _warning, isVisCloseBut);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示提示框
|
||||
/// </summary>
|
||||
/// <param name="content">内容</param>
|
||||
/// <param name="title">标题</param>
|
||||
/// <param name="isVisCloseBut">界面右上角是否显示关闭按钮</param>
|
||||
/// <returns>点击的按钮文本</returns>
|
||||
public static WarningWindow ShowNoScanError(string content, string title, WebSocketMessageModel _warning, bool isVisCloseBut = true, Window owner = null)
|
||||
{
|
||||
content = content + "\r\n确认对应无物料可点击[屏蔽库位]按钮进行库位屏蔽!";
|
||||
return Show(content, title, new string[] { "确认","屏蔽库位", "忽略" }, _warning, isVisCloseBut);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示提示框
|
||||
/// </summary>
|
||||
@ -92,6 +105,14 @@ namespace 智能仓储WCS管理系统
|
||||
Content = item,
|
||||
};
|
||||
button.Margin = new Thickness(10, 0, 10, 0);
|
||||
button.FontSize = 18;
|
||||
if (item == "屏蔽库位")
|
||||
{
|
||||
button.Foreground = Brushes.Red;
|
||||
button.FontWeight = FontWeights.DemiBold;
|
||||
//WaningWindow.Content = WaningWindow.Content + "\r\n确认对应无物料可点击[屏蔽库位]按钮进行库位屏蔽!";
|
||||
}
|
||||
|
||||
button.Click += (s, e) =>
|
||||
{
|
||||
clikename = ((Button)s).Content.ToString();
|
||||
@ -99,10 +120,26 @@ namespace 智能仓储WCS管理系统
|
||||
#region 调用接口处理异常/消除报警
|
||||
try
|
||||
{
|
||||
var solveType = SolveTypeEnum.忽略;
|
||||
switch (clikename)
|
||||
{
|
||||
case "确认":
|
||||
solveType = SolveTypeEnum.处理;
|
||||
break;
|
||||
case "忽略":
|
||||
solveType = SolveTypeEnum.忽略;
|
||||
break;
|
||||
case "屏蔽库位":
|
||||
solveType = SolveTypeEnum.屏蔽库位;
|
||||
break;
|
||||
default:
|
||||
solveType = SolveTypeEnum.忽略;
|
||||
break;
|
||||
}
|
||||
var body = new SolveWarningRequest()
|
||||
{
|
||||
Guid = _warning.Guid,
|
||||
SolveType = clikename == "确认" ? SolveTypeEnum.处理 : SolveTypeEnum.忽略,
|
||||
SolveType = solveType,
|
||||
UserName = LocalStatic.CurrentUser,
|
||||
DeviceType = "WCS前端",
|
||||
};
|
||||
|
Reference in New Issue
Block a user