From 9bf3c63bde1ecbcd13a21c297ae7abe991aece5d Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 19 二月 2025 16:48:01 +0800 Subject: [PATCH] 委外排产 --- DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs index e488fdd..3f56171 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs @@ -1,14 +1,21 @@ 锘縰sing System; using System.Collections.Generic; using System.Data; +using System.Drawing; using System.Windows.Forms; +using DevExpress.Office.Utils; +using DevExpress.XtraBars.Ribbon; +using DevExpress.XtraBars; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; using DevExpress.XtraGrid.Columns; +using DevExpress.XtraGrid.Menu; +using DevExpress.XtraGrid.Views.Grid; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; using Newtonsoft.Json; +using System.Linq; namespace Gs.DevApp.DevFrm.Sys { @@ -26,6 +33,9 @@ toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; toolBarMenu1.btnLayoutClick += ToolBarMenu1_btnLayoutClick; + 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.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); @@ -49,9 +59,8 @@ txt_noLength.ValueChanged += (s, e) => { DoPreviewCode(); }; txt_isIncludeDoc.CheckedChanged += (s, e) => { DoPreviewCode(); }; txt_isSpilit.CheckedChanged += (s, e) => { DoPreviewCode(); }; + } - - /// <summary> /// 鍒嗛〉浜嬩欢 @@ -64,7 +73,7 @@ } private void ToolBarMenu1_btnLayoutClick(object sender, EventArgs e) { - string _formNamespace=this.GetType().FullName; + string _formNamespace = this.GetType().FullName; List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gridView1); Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace, gvList); @@ -294,6 +303,8 @@ pageBar1.CurrentPage = curPage;//褰撳墠椤� pageBar1.RecordCount = dd.rtnData.total;//鎬昏褰曟暟 gridView1.BestFitColumns(); + + } else { @@ -496,6 +507,6 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - + } } \ No newline at end of file -- Gitblit v1.9.3