From 5122d2122d7d1d5ed51c726724d4604507df902a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com> Date: Tue, 18 Oct 2022 14:27:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardManager/UserPages/InstitutionalEntryPage.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HKCardManager/UserPages/InstitutionalEntryPage.cs b/HKCardManager/UserPages/InstitutionalEntryPage.cs index e35f94d..4848a03 100644 --- a/HKCardManager/UserPages/InstitutionalEntryPage.cs +++ b/HKCardManager/UserPages/InstitutionalEntryPage.cs @@ -58,6 +58,7 @@ namespace HKCardManager.UserPages //Global.OrgTables.Clear(); //Global.OrgTables = HKLibHelper.GetOrg(); var result = await HKLibHelper.GetOrg(); + var tempname = dataGridView1.Rows[index].Cells[0].Value?.ToString(); if (result != null) { //this.Invoke(() => @@ -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) { From 931805065234908f9bb9ecef2f068402f18b1dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com> Date: Tue, 18 Oct 2022 14:28:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardManager/UserPages/InstitutionalEntryPage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HKCardManager/UserPages/InstitutionalEntryPage.cs b/HKCardManager/UserPages/InstitutionalEntryPage.cs index 4848a03..a955c0d 100644 --- a/HKCardManager/UserPages/InstitutionalEntryPage.cs +++ b/HKCardManager/UserPages/InstitutionalEntryPage.cs @@ -53,12 +53,12 @@ namespace HKCardManager.UserPages //{ try { + var tempname = dataGridView1.Rows[index].Cells[0].Value?.ToString(); if (await HKLibHelper.DelOrg(res)) { //Global.OrgTables.Clear(); //Global.OrgTables = HKLibHelper.GetOrg(); var result = await HKLibHelper.GetOrg(); - var tempname = dataGridView1.Rows[index].Cells[0].Value?.ToString(); if (result != null) { //this.Invoke(() =>