From 906f79ff500541dda3626f12c1a05f2d2e57f7a8 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 23 六月 2025 10:46:30 +0800
Subject: [PATCH] 超期重检

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 0d5a642..e2c6889 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -163,6 +163,7 @@
             gc.BindingContext = new BindingContext();
             gc.DataSource = dt;
             gc.ForceInitialize();
+            gv.BestFitColumns();
         }
 
         /// <summary>
@@ -2329,6 +2330,32 @@
             }
         }
         #endregion
+
+
+        //璇诲彇榛樿缁勭粐
+        public static string GetFirstOrg(UserControl.UcLookOrg txt_erpSczz)
+        {
+            string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid;
+            var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1");
+            var json = JsonConvert.SerializeObject(pgq);
+            try
+            {
+                var strReturn = UtilityHelper.HttpPost("", "Organization/GetListPage", json);
+                var _obj = UtilityHelper.ReturnToDynamic(strReturn);
+                string _extendText = _obj.rtnData.extendText;
+                string[] _dftOrg = _extendText.Split(',');
+                if (_dftOrg.Length > 0)
+                {
+                    txt_erpSczz.SetIdOrCode(_dftOrg[0].Trim());
+                    return _dftOrg[0].Trim();
+                }
+                return "";
+            }
+            catch (Exception ex)
+            {
+                return "";
+            }
+        }
     }
 
     /// <summary>
@@ -2401,4 +2428,20 @@
 
         public string fileType { get; set; }
     }
+
+
+    public enum QcSeason
+    {
+        iqc,
+        ipqc宸℃,
+        ipqc棣栨,
+        fqc,
+        鐢熶骇閫�鏂欏叆搴撴,
+        鍏跺畠鍏ュ簱妫�,
+        閿�鍞��璐у叆搴撴,
+        瓒呮湡妫�
+    }
+
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.3