From eedfab0cc6288b09227ee6970c8071114dd831de Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期四, 11 九月 2025 18:52:55 +0800
Subject: [PATCH] 首检

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
index 38dc355..c795e4b 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -1,7 +1,9 @@
+using DevExpress.Utils.VisualEffects;
 using DevExpress.XtraEditors;
 using DevExpress.XtraEditors.Controls;
 using DevExpress.XtraGrid.Views.Grid;
 using Gs.DevApp.DevFrm.Rk;
+using Gs.DevApp.DevFrm.Rpt;
 using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Gs.DevApp.UserControl;
@@ -36,8 +38,12 @@
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
             toolBarMenu1.btnHbClick += ToolBarMenu1_btnHbClick;
+            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
+
             this.toolBarMenu1.getXmlConfig();
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1);
+            
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "fstatus", "", (value) =>
            {
                Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
@@ -124,9 +130,38 @@
             //鍏ュ簱姣斾緥
             UtilityHelper.SetSimpleGridColor(gridView1, "rkbl", "=100.00%", "Cell", Color.Green);
         }
+        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
+        {
+            string rowGuid, rowName;
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1);
+            if (string.IsNullOrEmpty(rowGuid))
+            {
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎵撳嵃鐨勫崟鎹紒");
+                return;
+            }
 
-
-
+            try
+            {
+                string rptParameter = "rpt_Cgrk{"
+                + rowGuid  // @inOrderGuid - 鍗曟嵁guid
+                + "," + "100"  // @isDesign - 閲嶆墦閮芥槸浼�100
+                + "," + ""  // @in1 - 鍏ュ簱鏃堕棿锛堟墿灞曠敤锛�
+                + "," + ""  // @in2 - 鐗归噰锛堟墿灞曠敤锛�
+                + "," + ""  // @in3 - 渚涘簲鍟唅d锛堟墿灞曠敤锛�
+                + "," + ""  // @in4 - 寮犳暟锛堟墿灞曠敤锛�
+                + "," + ""  // @in5 - 鏁伴噺锛堟墿灞曠敤锛�
+                + "," + ""  // @in6 - 鎵╁睍鐢�
+                + "}";
+                using (Form rpt = new RptPreview(rowGuid, rptParameter))
+                {
+                    rpt.ShowDialog();
+                }
+            }
+            catch (Exception ex)
+            {
+                MsgHelper.ShowError(ex.Message);
+            }
+        }
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
             _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -364,6 +399,7 @@
                 {
                     Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString());
                     string _msl = row["quantity"].ToString();
+                    
                     if (string.IsNullOrEmpty(_msl))
                     {
                         MsgHelper.ShowError("鏁伴噺涓嶈兘涓虹┖锛�");
@@ -375,6 +411,7 @@
                         AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["aboutGuid"].ToString()),
                         ItemId = int.Parse(row["itemId"].ToString()),
                         Quantity = decimal.Parse(row["quantity"].ToString()),
+                        
                         UrgentFlag = Gs.DevApp.ToolBox.UtilityHelper.ToBit(row["urgentFlag"].ToString()),
                         Remark = row["memo"].ToString(),
                     });
@@ -400,7 +437,7 @@
                     // 鍒锋柊褰撳墠鍗曟嵁璇︽儏
                     getModel(lbGuid.Text.Trim());
                     // 鍒锋柊鍒楄〃椤垫暟鎹�
-                    getPageList(this.pageBar1.CurrentPage);
+                    //getPageList(this.pageBar1.CurrentPage);
 
                     // 璺宠浆鍒版煡鐪嬬粨鏋滈〉闈�
                     Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6);

--
Gitblit v1.9.3