Browse Source

删除机构

Lishi
pry 2 years ago
parent
commit
a1d7a1358a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      HKCardManager/UserPages/InstitutionalEntryPage.cs

+ 2
- 2
HKCardManager/UserPages/InstitutionalEntryPage.cs View File

@@ -40,14 +40,14 @@ namespace HKCardManager.UserPages
var res = Global.OrgTables.FirstOrDefault(p => p.Name == dataGridView1.Rows[index].Cells[0].Value?.ToString())?.SId;
if (string.IsNullOrEmpty(res))
{
MessageLogNotify.GetInstance.ShowError("删除机构失败");
MessageLogNotify.GetInstance.ShowError("获取机构ID失败");
return;
}
try
{
Task.Factory.StartNew(() =>
{
if (HKLibHelper.DisableUser(res))
if (HKLibHelper.DelOrg(res))
{
Global.OrgTables.Clear();
Global.OrgTables = HKLibHelper.GetOrg();


Loading…
Cancel
Save