From d86d29361f181fab1b0241af04f4d9fffe068871 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期二, 19 八月 2025 08:11:39 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/UserControl/SelectCgMx.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
index db725f4..6785641 100644
--- a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
+++ b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
@@ -25,6 +25,7 @@
         public SelectCgMx(string _suppId, string _receiveOrgId)
         {
             InitializeComponent();
+            #region MyRegion
             gridView1.Columns["purchaseQty"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
             gridView1.Columns["yssl"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
             gridView1.Columns["wssl"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom;
@@ -43,19 +44,21 @@
                     int status = Convert.ToInt32(view.GetListSourceRowCellValue(e.RowHandle, "chkInt"));
                     if (status == 1)
                     {
-                        string _colCaption=e.Item.ToString();
+                        string _colCaption = e.Item.ToString();
                         if (_colCaption.Contains("閲囪喘"))
                         {
                             decimal amount = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "purchaseQty"));
                             e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount;
                         }
-                        else {
+                        else
+                        {
                             if (_colCaption.Contains("宸叉敹"))
                             {
                                 decimal amount2 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "yssl"));
                                 e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount2;
                             }
-                            else {
+                            else
+                            {
                                 if (_colCaption.Contains("鏈敹"))
                                 {
                                     decimal amount3 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "wssl"));
@@ -71,6 +74,7 @@
                     e.TotalValue = e.TotalValue;
                 }
             };
+            #endregion
             this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
             this.gridView1.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gridView1); };
             this.colChkInt.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;

--
Gitblit v1.9.3