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/UserControl/SelectHz.cs |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/SelectHz.cs b/DevApp/Gs.DevApp/UserControl/SelectHz.cs
index fcd0fa5..719f39d 100644
--- a/DevApp/Gs.DevApp/UserControl/SelectHz.cs
+++ b/DevApp/Gs.DevApp/UserControl/SelectHz.cs
@@ -24,22 +24,19 @@
             _strOrgGuid = strOrgGuid;
             _strHzType = strHzType;
             InitializeComponent();
-            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);
             switch (_strHzType)
             {
-                case "1":
+                case "0":
                     gv_Name.FieldName = "name";
                     gv_no.FieldName = "fNumber";
                     getPageList(1);
                     break;
-                case "2":
+                case "1":
                     gv_Name.FieldName = "suppName";
                     gv_no.FieldName = "suppNo";
                     getPageListGys(1);
                     break;
-                case "3":
+                case "2":
                     gv_Name.FieldName = "custName";
                     gv_no.FieldName = "custNo";
                     getPageListCus(1);
@@ -70,7 +67,7 @@
                     {
                         gcMain.DataSource = dt;
                         gcMain.ForceInitialize();
-                        gridView1.BestFitColumns();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain, gridView1);
@@ -103,15 +100,15 @@
                 var mxName = "";
                 switch (_strHzType)
                 {
-                    case "1":
+                    case "0":
                         mxName = dr["name"].ToString();
                         mxFid = dr["fid"].ToString();
                         break;
-                    case "2":
+                    case "1":
                         mxName = dr["suppName"].ToString();
                         mxFid = dr["id"].ToString();
                         break;
-                    case "3":
+                    case "2":
                         mxName = dr["custName"].ToString();
                         mxFid = dr["id"].ToString();
                         break;
@@ -157,7 +154,7 @@
                     {
                         gcMain.DataSource = dt;
                         gcMain.ForceInitialize();
-                        gridView1.BestFitColumns();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain, gridView1);
@@ -197,7 +194,7 @@
                     {
                         gcMain.DataSource = dt;
                         gcMain.ForceInitialize();
-                        gridView1.BestFitColumns();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain, gridView1);

--
Gitblit v1.9.3