diff --git a/HKCardManager/UserPages/InstitutionalEntryPage.cs b/HKCardManager/UserPages/InstitutionalEntryPage.cs index e35f94d..a955c0d 100644 --- a/HKCardManager/UserPages/InstitutionalEntryPage.cs +++ b/HKCardManager/UserPages/InstitutionalEntryPage.cs @@ -53,6 +53,7 @@ namespace HKCardManager.UserPages //{ try { + var tempname = dataGridView1.Rows[index].Cells[0].Value?.ToString(); if (await HKLibHelper.DelOrg(res)) { //Global.OrgTables.Clear(); @@ -69,10 +70,10 @@ namespace HKCardManager.UserPages //}); } - MessageLogNotify.GetInstance.Show($"机构:【{dataGridView1.Rows[index].Cells[0].Value?.ToString()}】 删除成功"); + MessageLogNotify.GetInstance.Show($"机构:【{tempname}】 删除成功"); } else - MessageLogNotify.GetInstance.ShowError($"机构:【{dataGridView1.Rows[index].Cells[0].Value?.ToString()}】 删除失败"); + MessageLogNotify.GetInstance.ShowError($"机构:【{tempname}】 删除失败"); } catch (Exception ex) {