From 96925dce987741efed3f3316438f52191d8b22ec Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 28 May 2022 10:23:42 +0800 Subject: [PATCH 1/2] 222 --- BPASmartClient/Control/DataVView.xaml.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BPASmartClient/Control/DataVView.xaml.cs b/BPASmartClient/Control/DataVView.xaml.cs index 9b09729b..4265ebe9 100644 --- a/BPASmartClient/Control/DataVView.xaml.cs +++ b/BPASmartClient/Control/DataVView.xaml.cs @@ -70,7 +70,10 @@ namespace BPASmartClient.Control return; } istrue = DataVViewModel.GetInstance().Update(); - if (istrue) NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"修改成功!"); + if (istrue) { + NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"修改成功!"); + DataVClient.GetInstance().RefreshTheListOfStores(); + } else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"修改失败!"); break; case "Delete": @@ -80,7 +83,10 @@ namespace BPASmartClient.Control return; } istrue = DataVViewModel.GetInstance().Delete(); - if (istrue) NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"删除成功!"); + if (istrue) { + NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"删除成功!"); + DataVClient.GetInstance().RefreshTheListOfStores(); + } else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"删除失败!"); break; case "SetUrl": From 4e52c385d5502edd1c7998963eff82a9e5d80318 Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 28 May 2022 10:24:14 +0800 Subject: [PATCH 2/2] 1 --- BPASmartClient/Control/DataVView.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BPASmartClient/Control/DataVView.xaml.cs b/BPASmartClient/Control/DataVView.xaml.cs index 4265ebe9..09047adb 100644 --- a/BPASmartClient/Control/DataVView.xaml.cs +++ b/BPASmartClient/Control/DataVView.xaml.cs @@ -60,7 +60,10 @@ namespace BPASmartClient.Control { case "Add": istrue = DataVViewModel.GetInstance().Add(); - if (istrue) NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"增加成功!"); + if (istrue) { + NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"增加成功!"); + DataVClient.GetInstance().RefreshTheListOfStores(); + } else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"增加失败!"); break; case "Update":