From 9ec7cf906a983509fccd9ab360e1ac0e46a904eb Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 12 四月 2025 15:38:48 +0800 Subject: [PATCH] 生产退料 --- DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs | 29 +++++++++++------------------ 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs index f973356..e9d5c44 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs @@ -1,21 +1,12 @@ 锘縰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 { @@ -32,20 +23,18 @@ toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; - 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); + this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); - }); + },tips); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { getModel(value); }, (value) => { getPageList(this.pageBar1.CurrentPage); - }); + }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; getTree(); @@ -58,9 +47,9 @@ txt_noLength.ValueChanged += (s, e) => { DoPreviewCode(); }; txt_isIncludeDoc.CheckedChanged += (s, e) => { DoPreviewCode(); }; txt_isSpilit.CheckedChanged += (s, e) => { DoPreviewCode(); }; - + } - + /// <summary> /// 鍒嗛〉浜嬩欢 /// </summary> @@ -70,7 +59,7 @@ { getPageList(curPage); } - + /// <summary> /// 鍙嶅鏍� /// </summary> @@ -186,7 +175,7 @@ Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); if (xtraTabControl1.SelectedTabPageIndex == 1) { - getModel(lbGuid.Text.Trim()); + getModel(rowGuid); } else { @@ -264,6 +253,8 @@ lbGuid.Text = _rtn.rtnData; toolBarMenu1.isSetBtn = true; UtilityHelper.ChangeEnableByControl(panel1.Controls, false); + toolBarMenu1.currentAction = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); } } catch (Exception ex) @@ -415,6 +406,8 @@ dataTable.Rows.Add("IQCYC(IQC寮傚父)"); dataTable.Rows.Add("IPQCYC(IPQC寮傚父)"); dataTable.Rows.Add("FQCYC(FQC寮傚父)"); + dataTable.Rows.Add("ZSM(杩芥函鐮�)"); + dataTable.Rows.Add("TB(鎵樻澘鐮�)"); txt_docCode.Properties.DataSource = dataTable; txt_docCode.Properties.DisplayMember = "docCode"; // 鏄剧ず鐨勫垪 txt_docCode.Properties.ValueMember = "docCode"; // 瀹為檯鍊肩殑鍒� -- Gitblit v1.9.3