From 84e8197da9284b10eb6fca4cd7a8931406d97ad6 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 12 七月 2025 16:22:14 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs index 5f02b53..366629c 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs @@ -142,7 +142,6 @@ }; frm.ShowDialog(); }; - } @@ -305,12 +304,16 @@ if (xtraTabControl1.SelectedTabPageIndex == 1) { getModel(rowGuid); + ////濡傛灉鏄痵rm,绂佺敤 + setSrm(); } else { List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gvMx1); UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList); + ////濡傛灉鏄痵rm,绂佺敤 + setSrm(); } } @@ -329,7 +332,8 @@ Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); //澧炲姞鏃讹紝榛樿缁勭粐 string deftOrg = UtilityHelper.GetFirstOrg(txt_receiveOrgId); - setSrm(false); + txt_isSrm.Checked = false; + setSrm(); } /// <summary> @@ -515,14 +519,7 @@ { UtilityHelper.SetDefaultTable(gcMx1, gvMx1); } - //濡傛灉鏄痵rm,绂佺敤 - if (txt_isSrm.Checked) - { - setSrm(true); - } - else { - setSrm(false); - } + } else { @@ -684,7 +681,9 @@ frm.ShowDialog(); } - private void setSrm(bool isSrm) { + private void setSrm() + { + bool isSrm = (txt_isSrm.Checked); if (isSrm == true) { gvMx1quantity.OptionsColumn.ReadOnly = true; @@ -694,7 +693,8 @@ txt_suppId.Enabled = false; btnSelect.Enabled = false; } - else { + else + { gvMx1quantity.OptionsColumn.ReadOnly = false; txt_paperBillNo.ReadOnly = false; txt_isSrm.Checked = false; -- Gitblit v1.9.3