chane - MessageBox弹窗修改,位于所有窗口前面

foamRearStore
wenjy 1 year ago
parent 32d25fc743
commit 45683453ff

Binary file not shown.

@ -34,7 +34,7 @@ namespace Aucma.Scada.UI
mutex = new System.Threading.Mutex(true, System.Diagnostics.Process.GetCurrentProcess().ProcessName, out ret); mutex = new System.Threading.Mutex(true, System.Diagnostics.Process.GetCurrentProcess().ProcessName, out ret);
if (!ret) if (!ret)
{ {
MessageBox.Show("应用程序已开启,禁止重复运行"); MessageBox.Show("应用程序已开启,禁止重复运行", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
Environment.Exit(0); Environment.Exit(0);
} }
else else

@ -268,12 +268,12 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
PlanCode = string.Empty; PlanCode = string.Empty;
ProductModel = string.Empty; ProductModel = string.Empty;
BeginTime = string.Empty; BeginTime = string.Empty;
MessageBox.Show("执行计划删除成功"); MessageBox.Show("执行计划删除成功","提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
else else
{ {
MessageBox.Show("执行计划删除失败"); MessageBox.Show("执行计划删除失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -286,7 +286,7 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
string info = obj as string; string info = obj as string;
if (info == planCode) if (info == planCode)
{ {
MessageBox.Show("该计划正在执行中,请勿重复下传"); MessageBox.Show("该计划正在执行中,请勿重复下传", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
else else
{ {
@ -294,11 +294,11 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
if (result != null) if (result != null)
{ {
RefreshPlanExecute(result); RefreshPlanExecute(result);
MessageBox.Show("执行计划已下达"); MessageBox.Show("执行计划已下达", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
else else
{ {
MessageBox.Show("执行计划下达失败"); MessageBox.Show("执行计划下达失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }

@ -212,7 +212,7 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
bool result = assemblyPlanBusiness.PlanTransmitByProductPlan(_ProductPlanCode, _TransmitAmount); bool result = assemblyPlanBusiness.PlanTransmitByProductPlan(_ProductPlanCode, _TransmitAmount);
if (result) if (result)
{ {
MessageBox.Show("执行计划维护成功"); MessageBox.Show("执行计划维护成功", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }

@ -67,20 +67,20 @@ namespace Aucma.Scada.UI.viewModel.AssemblyPlan
bool shellResult = assemblyPlanBusiness.JudgmentStock(productPlanInfo, Convert.ToInt32(_TransmitAmount), appConfig.foamMaterialType, appConfig.foamStoreCode); bool shellResult = assemblyPlanBusiness.JudgmentStock(productPlanInfo, Convert.ToInt32(_TransmitAmount), appConfig.foamMaterialType, appConfig.foamStoreCode);
if (!shellResult) if (!shellResult)
{ {
MessageBox.Show("计划下达失败,箱体物料库存不足"); MessageBox.Show("计划下达失败,箱体物料库存不足","提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
return; return;
} }
} }
else else
{ {
MessageBox.Show("生产计划获取失败,加载为空"); MessageBox.Show("生产计划获取失败,加载为空", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
return; return;
} }
bool result = assemblyPlanBusiness.PlanTransmitByProductPlan(_PlanInfo.planCode, Convert.ToInt32(_TransmitAmount)); bool result = assemblyPlanBusiness.PlanTransmitByProductPlan(_PlanInfo.planCode, Convert.ToInt32(_TransmitAmount));
if (result) if (result)
{ {
MessageBox.Show("执行计划维护成功"); MessageBox.Show("执行计划维护成功", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }

@ -154,7 +154,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道入库状态修改失败"); MessageBox.Show("货道入库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -173,7 +173,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道出库状态修改失败"); MessageBox.Show("货道出库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -192,7 +192,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道异常标识修改失败"); MessageBox.Show("货道异常标识修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -211,7 +211,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道状态修改失败"); MessageBox.Show("货道状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -264,7 +264,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("出库任务创建失败"); MessageBox.Show("出库任务创建失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
} }

@ -130,7 +130,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道入库状态修改失败"); MessageBox.Show("货道入库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -149,7 +149,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道出库状态修改失败"); MessageBox.Show("货道出库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -168,7 +168,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道异常标识修改失败"); MessageBox.Show("货道异常标识修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -187,7 +187,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道状态修改失败"); MessageBox.Show("货道状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -240,7 +240,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("出库任务创建失败"); MessageBox.Show("出库任务创建失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
} }

@ -130,7 +130,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道入库状态修改失败"); MessageBox.Show("货道入库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -149,7 +149,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道出库状态修改失败"); MessageBox.Show("货道出库状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -168,7 +168,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道异常标识修改失败"); MessageBox.Show("货道异常标识修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -187,7 +187,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("货道状态修改失败"); MessageBox.Show("货道状态修改失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
@ -240,7 +240,7 @@ namespace Aucma.Scada.UI.viewModel.InventoryInfo
} }
else else
{ {
MessageBox.Show("出库任务创建失败"); MessageBox.Show("出库任务创建失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }
} }

@ -138,7 +138,7 @@ namespace Aucma.Scada.UI.viewModel
{ {
try try
{ {
MessageBox.Show("打开系统键盘"); MessageBox.Show("打开系统键盘", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
catch (Exception ex) catch (Exception ex)
{ {

@ -295,12 +295,12 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
if (outStoreBusiness.DeleteTaskInfoByTaskCode(taskCode)) if (outStoreBusiness.DeleteTaskInfoByTaskCode(taskCode))
{ {
MessageBox.Show("任务删除成功"); MessageBox.Show("任务删除成功", "提示", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
Query(); Query();
} }
else else
{ {
MessageBox.Show("任务删除失败"); MessageBox.Show("任务删除失败", "提示", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
} }
} }

Loading…
Cancel
Save