|
@@ -60,7 +60,10 @@ namespace BPASmartClient.Control |
|
|
{ |
|
|
{ |
|
|
case "Add": |
|
|
case "Add": |
|
|
istrue = DataVViewModel.GetInstance().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, "提示", $"增加失败!"); |
|
|
else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"增加失败!"); |
|
|
break; |
|
|
break; |
|
|
case "Update": |
|
|
case "Update": |
|
|