From 45658068e0fb7bc4359c9ec4ce194f17aaab5e3e Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 17 十一月 2025 18:00:56 +0800
Subject: [PATCH] ID转人名:计时单价、异常工时、部门产线对应维护、排班管理、工艺设置、现场修理

---
 DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
index 2dbd766..715f7aa 100644
--- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs
@@ -30,6 +30,8 @@
             toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
+            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
+            toolBarMenu1.btnWjClick += ToolBarMenu1_btnWjClick;
             this.toolBarMenu1.getXmlConfig();
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "status", "", (value) =>
@@ -51,6 +53,8 @@
                 var orgId = txt_thOrgId.GetId();
                 if (string.IsNullOrEmpty(orgId))
                     return;
+                txt_fRequireOrgId.SetIdOrCode(orgId);
+                txt_fOwnerIdHead.SetIdOrCode(orgId);
                 txt_suppId.getSuppler(orgId, _ucGys);
                 txt_fPurchaseDeptId.getSuppler(orgId, _ucBm);
             };
@@ -156,6 +160,8 @@
                 setSrm();
             };
         }
+
+      
         private async void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
             _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -174,6 +180,27 @@
             (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                 lbGuid, txt_billNo, gridView1);
             toolBarMenu1.guidKey = rowGuid;
+        }
+        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
+        {
+            //guidKey, rptParameter
+            string rowGuid, rowName;
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+                lbGuid, txt_billNo, gridView1, "billNo");
+            if (string.IsNullOrEmpty(rowGuid))
+            {
+                MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+                return;
+            }
+            this.toolBarMenu1.rptParameter = "rpt_CGTH{"
+                                               + ""
+                                               + "," + ""
+                                               + "," + ""
+                                               + "," + ""
+                                               + "," + ""
+                                               + "}";
+            this.toolBarMenu1.guidKey = rowGuid;
+
         }
         /// <summary>
         /// 鍒嗛〉浜嬩欢
@@ -208,6 +235,11 @@
             _filterList = e.FilterList;
             getPageList(1);
         }
+        private void ToolBarMenu1_btnWjClick(object sender, EventArgs e)
+        {
+            _toolCk(2);
+        }
+
         /// <summary>
         ///     瀹℃牳浜嬩欢
         /// </summary>
@@ -634,6 +666,9 @@
                 case 0:
                     strMsg = "鍙嶅鏍�";
                     break;
+                case 2:
+                    strMsg = "瀹岀粨";
+                    break;
             }
             ;
             toolBarMenu1.guidKey = "";

--
Gitblit v1.9.3