From 878aad490fc15b11d63fb4fa7ab7ada260f66310 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期六, 09 八月 2025 10:03:59 +0800
Subject: [PATCH] iqc称重

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 67b3d33..fbf24e5 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -62,13 +62,17 @@
         /// <returns></returns>
         public static string HttpPost(string url, string meth, string param, bool isLoading = true)
         {
-            Size _size; string _caption; Color _color; Padding _pad;
-            (_size, _caption, _color, _pad) = getLoading();
-            DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("鍔犺浇杩涘害:" + meth, _caption, _size);
-            wdf.BackColor = _color;
-            wdf.Padding = _pad;
-            wdf.SetCaption("鍔犺浇杩涘害:" + meth);
-            wdf.Visible = isLoading;
+            DevExpress.Utils.WaitDialogForm wdf = null;
+            if (isLoading == true)
+            {
+                Size _size; string _caption; Color _color; Padding _pad;
+                (_size, _caption, _color, _pad) = getLoading();
+                wdf = new DevExpress.Utils.WaitDialogForm("鍔犺浇杩涘害:" + meth, _caption, _size);
+                wdf.BackColor = _color;
+                wdf.Padding = _pad;
+                wdf.SetCaption("鍔犺浇杩涘害:" + meth);
+                wdf.Visible = isLoading;
+            }
             HttpWebRequest request = null;
             StreamWriter requestStream = null;
             WebResponse response = null;
@@ -103,7 +107,8 @@
             }
             catch (Exception ex)
             {
-                wdf.Close();
+                if (wdf != null)
+                    wdf.Close();
                 LogHelper.Debug(url, param + ":" + ex.Message);
                 throw ex;
             }
@@ -113,7 +118,8 @@
                 requestStream = null;
                 response = null;
             }
-            wdf.Close();
+            if (wdf != null)
+                wdf.Close();
             return responseStr;
         }
 
@@ -268,7 +274,8 @@
                         {
                             colmn.Visible = true;
                             colmn.OptionsColumn.ReadOnly = false;
-                        };
+                        }
+                        ;
                         if (colmn.Name.ToString().Contains("gvMxDel") || colmn.Name.ToString().Contains("gvMxTui"))
                         {
                             colmn.Visible = !isEdt;
@@ -458,7 +465,7 @@
                         {
                             var txt = colType as RadioGroup;
                             if (txt != null)
-                                txt.SelectedIndex =int.Parse( strVal);
+                                txt.SelectedIndex = int.Parse(strVal);
                             txt.ReadOnly = isEdt;
                             continue;
                         }
@@ -1933,7 +1940,8 @@
                 {
                     int _handle = gridView1.FocusedRowHandle;
                     bool _bl = xtraTabControl1.TabPages[0].PageEnabled;
-                    if (_bl == false) { return; };
+                    if (_bl == false) { return; }
+                    ;
                     if (_handle < 0)
                     {
                         xtraTabControl1.SelectedTabPageIndex = -1;
@@ -2477,6 +2485,8 @@
         濮斿閫�鏂欏叆搴撴,
         cqcjyes,//閲嶆鏂规
         cqcjno,//閲嶆鏂规
+        浜х嚎绉伴噸,
+        iqc绉伴噸,
     }
 
 

--
Gitblit v1.9.3