From 3c97c383d25bdab9eab249b4d44b3539f67ba6db Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 14 一月 2025 17:31:23 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs index 150e04b..2ddc04f 100644 --- a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs +++ b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs @@ -1,3 +1,4 @@ +using DevExpress.Utils.Extensions; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -124,7 +125,7 @@ /// <param name="e"></param> private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) { - _toolCk(1, "EditModelSubmit"); + _toolCk(1); } /// <summary> @@ -135,7 +136,7 @@ /// <exception cref="NotImplementedException"></exception> private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) { - _toolCk(0, "EditModelSubmitFSH"); + _toolCk(0); } /// <summary> @@ -229,7 +230,7 @@ Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gvMx1); - UtilityHelper.ChangeEnableByControl(panel1.Controls, true); + UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList); } /// <summary> /// 鏂板浜嬩欢 @@ -240,7 +241,9 @@ { lbGuid.Text = ""; Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); - UtilityHelper.CleanValueByControl(panel1.Controls, true); + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gvMx1); + UtilityHelper.CleanValueByControl(panel1.Controls, true, gvList); Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); } /// <summary> @@ -343,6 +346,7 @@ { gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); } else UtilityHelper.SetDefaultTable(gcMain, gridView1); @@ -403,6 +407,7 @@ gcMx1.BindingContext = new BindingContext(); gcMx1.DataSource = dt; gcMx1.ForceInitialize(); + gvMx1.BestFitColumns(); } else { @@ -423,7 +428,7 @@ /// 宸ュ叿鏉′簨浠� /// </summary> /// <param name="inFieldValue"></param> - private void _toolCk(int _inFieldValue, string _mth) + private void _toolCk(int _inFieldValue) { string strMsg = ""; switch (_inFieldValue) @@ -453,7 +458,7 @@ try { var strJson = UtilityHelper.HttpPost("", - _webServiceName + _mth, + _webServiceName + "EditModelSubmit", JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); -- Gitblit v1.9.3