fyf преди 2 години
родител
ревизия
96925dce98
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. +8
    -2
      BPASmartClient/Control/DataVView.xaml.cs

+ 8
- 2
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":


Зареждане…
Отказ
Запис