提供给员工手动处理货架状态不一致的按钮
This commit is contained in:
@ -61,6 +61,37 @@ namespace 智能仓储WCS管理系统.ViewModel
|
||||
Growl.Error("打开文件夹失败。");
|
||||
}
|
||||
}
|
||||
|
||||
public ICommand NoResponseResetCommand { get => new DelegateCommand(NoResponseReset); }
|
||||
/// <summary>
|
||||
/// 打开用户
|
||||
/// </summary>
|
||||
public void NoResponseReset()
|
||||
{
|
||||
var result = HandyControl.Controls.MessageBox.Show("此功能用于“未成功退出入库、出库”等异常提示\r\n建议所有货架都处于待机模式时使用,继续复位请点击[确定]", "提示", MessageBoxButton.OKCancel);
|
||||
if (result == MessageBoxResult.Cancel)
|
||||
return;
|
||||
#region 调用接口 请求重置所有货架的状态
|
||||
var body = new RequestBase()
|
||||
{
|
||||
UserName = LocalStatic.CurrentUser,
|
||||
DeviceType = LocalFile.Config.DeviceType,
|
||||
};
|
||||
var Result = ApiHelp.GetDataFromHttp<ResponseBase>(LocalFile.Config.ApiIpHost + "home/noResponseReset", body, "POST");
|
||||
if (Result != null && Result.Code == 200)
|
||||
{
|
||||
Growl.Warning("已给状态不一致的板子发送复位指令,建议点击第一个按钮[货架状态初始化]重置所有货架状态!");
|
||||
}
|
||||
else if (Result != null)
|
||||
{
|
||||
Growl.Warning(Result.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
Growl.Warning("调用接口失败!");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
public class DeviceReadModel : BindableBase
|
||||
|
Reference in New Issue
Block a user