From 3cad85b98fff4ef5f45a1dc488c6620aa2f082e2 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 25 二月 2025 11:03:36 +0800 Subject: [PATCH] 销售通知单 --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs index bd9bd6a..a31ef24 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesItemQt.cs @@ -34,11 +34,14 @@ toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(this.GetType().FullName, gvMx1); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(this.GetType().FullName,gridView1,picCheckBox, this, "isChk", "", (value) => - { - Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); - }); + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gridView1); + Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "isChk", "", (value) => + { + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); + }); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { getModel(value); @@ -64,8 +67,7 @@ var json = JsonConvert.SerializeObject(_obj); try { - var strReturn = UtilityHelper.HttpPost("", - "MesItemsManager/GetListSelect", json); + var strReturn = UtilityHelper.HttpPost("", "MesItemsManager/GetListSelect", json); var rtn = UtilityHelper.ReturnToTablePage(strReturn); var dt = rtn.rtnData.list; this.repositoryItemSearchLookUpEdit1.DataSource = dt; @@ -82,9 +84,9 @@ if (string.IsNullOrEmpty(_orgId)) return; txt_qt013.getSuppler(_orgId, _ucKh); - txt_qt009.getSuppler(_orgId,_ucBm); + txt_qt009.getSuppler(_orgId, _ucBm); }; - + } private void GridView1_ColumnFilterChanged(object sender, EventArgs e) { @@ -445,9 +447,9 @@ { dynamic dy = _rtn.rtnData; _ucKh = dy.qt013; - _ucBm= dy.qt009; - _ucCk=dy.qt008; - _ucHzlx= dy.qt025; + _ucBm = dy.qt009; + _ucCk = dy.qt008; + _ucHzlx = dy.qt025; _ucHz = dy.qt018; lbGuid.Text = strGuid; List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); @@ -556,8 +558,7 @@ } int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); gridView1.FocusedRowHandle = rowHandle; - Form parentForm = this.FindForm(); - UtilityHelper.SetCheckIco(gridView1, "isChk", "qt016", "qt002", picCheckBox, parentForm, _inFieldValue.ToString()); + UtilityHelper.SetCheckIco(gridView1, "isChk", "qt016", "qt002", picCheckBox, this, _inFieldValue.ToString()); } } catch (Exception ex) -- Gitblit v1.9.3