|
|
@@ -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(); |
|
|
|