From 90c199edf9c98a66f0ba3f42577bff797073fce1 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 13 四月 2025 17:11:12 +0800
Subject: [PATCH] 打印按钮自动计算,选择窗体取消分页

---
 DevApp/Gs.DevApp/UserControl/SelectOrg.cs |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/SelectOrg.cs b/DevApp/Gs.DevApp/UserControl/SelectOrg.cs
index 286ae02..4edf9ef 100644
--- a/DevApp/Gs.DevApp/UserControl/SelectOrg.cs
+++ b/DevApp/Gs.DevApp/UserControl/SelectOrg.cs
@@ -15,11 +15,8 @@
         public SelectOrg()
         {
             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);
             getPageList(1);
-            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false);
         }
         /// <summary>
         /// 鏌ヨ浜嬩欢
@@ -63,7 +60,7 @@
                     {
                         gcMain.DataSource = dt;
                         gcMain.ForceInitialize();
-                        gridView1.BestFitColumns();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain, gridView1);
@@ -89,7 +86,7 @@
             if (e.Button.Index == 0)
             {
                 var dr = gridView1.GetDataRow(rowhandle);
-                var mxGuid = dr["guid"].ToString();
+                var mxGuid = dr["fid"].ToString();
                 if (string.IsNullOrEmpty(mxGuid))
                 {
                     return;

--
Gitblit v1.9.3