From f65c60f600d23538329d72109ac22292b032e8ba Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期三, 03 十二月 2025 18:27:26 +0800
Subject: [PATCH] 蓝宝模具相关维护表更新

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
index 855e6c2..7cd9675 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -43,6 +43,8 @@
            }, tips);
             // 娣诲姞gridView1鐨凴owStyle浜嬩欢锛屽綋閫�璐ф爣璇唗h=1鏃舵暣琛屾爣绾�
             gridView1.RowStyle += GridView1_RowStyle;
+            // 娣诲姞gvMx1鐨凴owStyle浜嬩欢锛屽綋澶勭悊鎰忚clyj涓�"閫�璐�"鏃舵暣琛屾爣绾�
+            gvMx1.RowStyle += GvMx1_RowStyle;
             Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
             {
                 getModel(value);
@@ -141,6 +143,8 @@
                         gvMx1.BestFitColumns();
                         Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1);
                         ConfigureOaColumns();
+                        // 鍒锋柊瑙嗗浘鏍峰紡锛屼娇RowStyle浜嬩欢鐢熸晥
+                        gvMx1.RefreshData();
                     }
                     catch (Exception ex)
                     {
@@ -151,6 +155,11 @@
             };
 
             ConfigureOaColumns();
+
+            // 涓轰簡鏂逛究浣跨敤鏁村悎鍒�  UtilityHelper 绫讳腑鐨� SetupGridSummary 鏂规硶
+            UtilityHelper.SetupGridSummary(gvMx1, "quantity", "okRkqty", "yssl", "wssl", "ljct", "ljyt", "cgsl");
+             
+
         }
 
 
@@ -176,6 +185,37 @@
                     {
                         e.Appearance.BackColor = System.Drawing.Color.Red;
                         e.Appearance.ForeColor = System.Drawing.Color.White;
+                    }
+                }
+            }
+        }
+
+        /// <summary>
+        /// gvMx1鐨凴owStyle浜嬩欢锛屽綋澶勭悊鎰忚clyj涓�"閫�璐�"鏃舵暣琛屾爣绾�
+        /// </summary>
+        private void GvMx1_RowStyle(object sender, RowStyleEventArgs e)
+        {
+            if (e.RowHandle >= 0)
+            {
+                var view = sender as GridView;
+                if (view != null)
+                {
+                    try
+                    {
+                        var clyjValue = view.GetRowCellValue(e.RowHandle, "clyj");
+                        if (clyjValue != null && !string.IsNullOrEmpty(clyjValue.ToString()))
+                        {
+                            string clyj = clyjValue.ToString().Trim();
+                            if (clyj == "閫�璐�")
+                            {
+                                e.Appearance.BackColor = System.Drawing.Color.Red;
+                                e.Appearance.ForeColor = System.Drawing.Color.White;
+                            }
+                        }
+                    }
+                    catch
+                    {
+                        // 濡傛灉鍒椾笉瀛樺湪锛屽拷鐣ラ敊璇�
                     }
                 }
             }
@@ -583,6 +623,8 @@
                         gvMx1.BestFitColumns();
                         Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1);
                         ConfigureOaColumns();
+                        // 鍒锋柊瑙嗗浘鏍峰紡锛屼娇RowStyle浜嬩欢鐢熸晥
+                        gvMx1.RefreshData();
                     }
                     else
                     {

--
Gitblit v1.9.3