修改pmroutine
This commit is contained in:
@@ -1514,22 +1514,27 @@ namespace SicUI.Models.PMs
|
||||
InvokeClient.Instance.Service.DoOperation($"{Module}.{strPMOP}");
|
||||
return;
|
||||
}
|
||||
|
||||
//去除strPMOP中To关键字
|
||||
string strCleanTo = strPMOP.Replace("To", "");
|
||||
var selection = DialogBox.ShowDialog(DialogButton.Yes | DialogButton.Cancel, DialogType.CONFIRM, $"Are you sure perform the operation {strCleanTo}");
|
||||
if (selection == DialogButton.Yes)
|
||||
if (strPMOP.Contains("MOExchange"))
|
||||
{
|
||||
if (strPMOP.Contains("ExchangeMO"))
|
||||
var vm = new ExchangeMoSelectDialogViewModel();
|
||||
var _windowmanager = new WindowManager();
|
||||
_windowmanager.ShowDialog(vm);
|
||||
if (!vm.IsCancel)
|
||||
{
|
||||
string strMOType = strPMOP.Replace("ExchangeMO", "");
|
||||
InvokeClient.Instance.Service.DoOperation($"{Module}.ExchangeMO", $"{strMOType}");
|
||||
InvokeClient.Instance.Service.DoOperation($"{Module}.ExchangeMO", vm.DialogResult);
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
//去除strPMOP中To关键字
|
||||
string strCleanTo = strPMOP.Replace("To", "");
|
||||
var selection = DialogBox.ShowDialog(DialogButton.Yes | DialogButton.Cancel, DialogType.CONFIRM, $"Are you sure perform the operation {strCleanTo}");
|
||||
if (selection == DialogButton.Yes)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{Module}.{strPMOP}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user