From 6ac046a0e37536e5f1f111c1095fe35fc71884cb Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 02 八月 2025 13:06:19 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs index 1b732ef..0fe4a98 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs @@ -100,6 +100,10 @@ gcMx1.DataSource = _oldTable; gcMx1.ForceInitialize(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); + gvMx1.CloseEditor(); + gvMx1.PostEditor(); + gvMx1.UpdateCurrentRow(); + gridView1.BestFitColumns(); } catch (Exception ex) { @@ -441,6 +445,12 @@ txt_tbl005.Focus(); return; } + if ((txt_tbl005.Text.Trim()=="鑹搧閫�鏂�") && txt_chkOut.Checked) + { + Gs.DevApp.ToolBox.MsgHelper.ShowError("鑹搧閫�鏂欎笉鑳借嚜鍔ㄧ敓鎴愯ˉ鏂欏崟锛岃妫�鏌ワ紒"); + txt_tbl005.Focus(); + return; + } var _obj = new { guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 @@ -779,6 +789,8 @@ { DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); lbMxGuid.Text = row["tlid"].ToString(); + if (string.IsNullOrEmpty(lbMxGuid.Text)) + return; toolBarMenu1.guidKey = row["tlid"].ToString(); txtWlid.Text = row["tld002"].ToString(); txtWlgg.Text = row["tld004"].ToString(); -- Gitblit v1.9.3