From 11b5d554fba0b5a74be3eceed11350d367525a91 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期四, 25 九月 2025 10:55:49 +0800
Subject: [PATCH] 增加需求单据号

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs |   53 ++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 38 insertions(+), 15 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
index 7d5db43..20af9e3 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
@@ -1,3 +1,4 @@
+using Gs.DevApp.DevFrm.Rpt;
 using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Gs.DevApp.UserControl;
@@ -25,9 +26,13 @@
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
             toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1;
+            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
             this.toolBarMenu1.getXmlConfig();
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2);
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL2);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1);
+
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) =>
            {
                Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
@@ -43,24 +48,41 @@
             }, lbGuid);
             getPageList(1);
             pageBar1.PagerEvent += PageBar1_PagerEvent;
+            //鎵撳嵃姣斾緥
+            UtilityHelper.SetSimpleGridColor(gridView1, "barcodeProgress", "=100.00%", "Cell", Color.Green);
+            //鍏ュ簱姣斾緥
+            UtilityHelper.SetSimpleGridColor(gridView1, "rkbl", "=100.00%", "Cell", Color.Green);
 
-            // 浣跨敤鏂扮殑绠�鍖栨牸寮忚缃鏍哥姸鎬侀鑹�
-            this.Load += (s, e) => {
-                System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
-                timer.Interval = 1000; // 1绉掑悗鎵ц
-                timer.Tick += (sender, args) => {
-                    timer.Stop();
-                    timer.Dispose();
-                    
-                    // 璁剧疆瀹℃牳鐘舵�侀鑹� - 鏀寔澶氱bit绫诲瀷鐨勫�兼牸寮�
-                 
-                    UtilityHelper.SetSimpleGridColor(gridView1, "checkStatus", "=True", "Cell", Color.Blue);
-                   
-                };
-                timer.Start();
-            };
 
         }
+
+        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
+        {
+            string rowGuid, rowName;
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1);
+            if (string.IsNullOrEmpty(rowGuid))
+            {
+                this.toolBarMenu1.rptParameter = "return false";
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎵撳嵃鐨勫崟鎹紒");
+                return;
+            }
+            string rptParameter = "rpt_Cgrk{"
+            + rowGuid  // @inOrderGuid - 鍗曟嵁guid
+            + "," + "100"  // @isDesign - 閲嶆墦閮芥槸浼�100
+            + "," + ""  // @in1 - 鍏ュ簱鏃堕棿锛堟墿灞曠敤锛�
+            + "," + ""  // @in2 - 鐗归噰锛堟墿灞曠敤锛�
+            + "," + ""  // @in3 - 渚涘簲鍟唅d锛堟墿灞曠敤锛�
+            + "," + ""  // @in4 - 寮犳暟锛堟墿灞曠敤锛�
+            + "," + ""  // @in5 - 鏁伴噺锛堟墿灞曠敤锛�
+            + "," + ""  // @in6 - 鎵╁睍鐢�
+            + "}";
+            this.toolBarMenu1.rptParameter = rptParameter;
+            this.toolBarMenu1.guidKey = rowGuid;
+
+        }
+
+
+
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
             _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -353,6 +375,7 @@
                     }
                     int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid);
                     gridView1.FocusedRowHandle = rowHandle;
+                    int _meth = (( _inFieldValue == 1) ? 1 : -1);
                     UtilityHelper.SetCheckIco(gridView1, "checkStatus", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString());
                 }
             }

--
Gitblit v1.9.3