|
@@ -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": |
|
@@ -70,7 +73,10 @@ namespace BPASmartClient.Control |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
istrue = DataVViewModel.GetInstance().Update(); |
|
|
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, "提示", $"修改失败!"); |
|
|
else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"修改失败!"); |
|
|
break; |
|
|
break; |
|
|
case "Delete": |
|
|
case "Delete": |
|
@@ -80,7 +86,10 @@ namespace BPASmartClient.Control |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
istrue = DataVViewModel.GetInstance().Delete(); |
|
|
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, "提示", $"删除失败!"); |
|
|
else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"删除失败!"); |
|
|
break; |
|
|
break; |
|
|
case "SetUrl": |
|
|
case "SetUrl": |
|
|