From ecb7a60de1639f520712ce95f99414b0dd2c9713 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 14 四月 2025 08:30:40 +0800
Subject: [PATCH] 自动打印

---
 DevApp/Gs.DevApp/DevFrm/QC/Frm_IQCLookups.cs |   39 +++++++++++++++++++--------------------
 1 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_IQCLookups.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_IQCLookups.cs
index c90ce66..9696cbe 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_IQCLookups.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_IQCLookups.cs
@@ -1,9 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
 using DevExpress.XtraEditors;
 using DevExpress.XtraEditors.Controls;
 using DevExpress.XtraGrid.Views.Grid;
@@ -12,6 +6,11 @@
 using Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Linq;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Text;
+using System.Windows.Forms;
 
 namespace Gs.DevApp.DevFrm.QC
 {
@@ -30,11 +29,11 @@
             toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             this.toolBarMenu1.getXmlConfig();
-            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx( gvMx1);
-             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1,picCheckBox, this, "checkStatus", "", (value) =>
-            {
-                Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
-            },tips);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
+            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);
@@ -44,7 +43,7 @@
             }, lbGuid);
             getPageList(1);
             pageBar1.PagerEvent += PageBar1_PagerEvent;
-           
+
         }
         /// <summary>
         ///     鍒嗛〉浜嬩欢
@@ -55,7 +54,7 @@
         {
             getPageList(curPage);
         }
-      
+
         /// <summary>
         ///     鍙嶅鏍�
         /// </summary>
@@ -85,7 +84,7 @@
         {
             Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1);
         }
- 
+
         /// <summary>
         ///     鍒锋柊浜嬩欢
         /// </summary>
@@ -169,7 +168,7 @@
 
             var _obj = new MesSysLookupTypes
             {
-                
+
                 Guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()),
                 LookupTypeCode = txt_lookupTypeCode.Text,
                 LookupTypeName = txt_lookupTypeName.Text,
@@ -190,7 +189,7 @@
                     toolBarMenu1.isSetBtn = true;
                     var gridViews = new List<GridView>();
                     gridViews.Add(gvMx1);
-                    UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false,gridViews);
+                    UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gridViews);
                     toolBarMenu1.currentAction = "";
                     Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6);
                 }
@@ -207,7 +206,7 @@
         /// <param name="pageSize">姣忛〉鍑犳潯</param>
         private void getPageList(int curPage)
         {
-            System.Text.StringBuilder _sbSqlWhere = new StringBuilder( UtilityHelper.GetSearchWhere(_filterList));
+            System.Text.StringBuilder _sbSqlWhere = new StringBuilder(UtilityHelper.GetSearchWhere(_filterList));
             _sbSqlWhere.Append("and LOOKUP_TYPE_CODE = 'QCITEM'");
             var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);
@@ -219,7 +218,7 @@
                 {
                     DataTable dt = dd.rtnData.list;
                     gcMain1.BindingContext = new BindingContext();
-                   
+
                     if (dt.Rows.Count > 0)
                     {
                         gcMain1.DataSource = dt;
@@ -228,7 +227,7 @@
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain1, gridView1);
-                  
+
                     pageBar1.TotalPages = dd.rtnData.pages;//鎬婚〉
                     pageBar1.CurrentPage = curPage;//褰撳墠椤�
                     pageBar1.RecordCount = dd.rtnData.total;//鎬昏褰曟暟
@@ -288,7 +287,7 @@
                     }
                     else
                     {
-                        UtilityHelper.SetDefaultTable(gcMx1,gvMx1);
+                        UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
                     }
                 }
                 else

--
Gitblit v1.9.3