From 7cdcfee4502f3c4059e3aab964ac215895131b3a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 30 十月 2024 14:38:25 +0800
Subject: [PATCH] 1

---
 DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs |   59 +++++++++++++++++++++++------------------------------------
 1 files changed, 23 insertions(+), 36 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
index 24dd2ee..ebd329d 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -31,6 +31,7 @@
             this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1;
             this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick;
             this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
+            this.toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
             gcMain.MouseDoubleClick += GcMain_MouseDoubleClick;
             gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged;
             getPageList(1, UtilityHelper.GetPageSize());
@@ -49,16 +50,16 @@
                 Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
                 e.Graphics.DrawString(str, f, Brushes.Gray, r);
             };
-
+            //涓婁紶闄勪欢
             btnUpSelect.Click += BtnUpSelect_Click;
             btnUp.Click += BtnUp_Click;
-
             //鍒濆鍖栫墿鏂欓�夋嫨鍜屽悇绉嶄笅鎷�
+            gvMx2.OptionsFind.ShowSearchNavButtons = false;
+            gvMx2.OptionsView.ShowGroupPanel = false;
             _setIno();
         }
 
-     
-
+       
 
         /// <summary>
         /// 鍙屽嚮浜嬩欢
@@ -101,7 +102,14 @@
             _filterList = e.FilterList;
             getPageList(1, pageBar1.RowsCount);
         }
-
+        private void ToolBarMenu1_btnChkClick(object sender, EventArgs e)
+        {
+            toolBarMenu1.guidKey = "";
+            string rowGuid, rowName;
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+                lbGuid, txt_releaseNo, gridView1);
+            toolBarMenu1.guidKey = rowGuid;
+        }
         /// <summary>
         /// 鍙栨秷浜嬩欢
         /// </summary>
@@ -120,7 +128,7 @@
         private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e)
         {
             string rowGuid = "", rowName = "";
-            // (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1);
+             (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_releaseNo, gridView1);
             if (string.IsNullOrEmpty(rowGuid))
             {
                 ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
@@ -166,7 +174,7 @@
         private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e)
         {
             string rowGuid = "", rowName = "";
-            // (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1);
+             (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_releaseNo, gridView1);
             if (string.IsNullOrEmpty(rowGuid))
             {
                 ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
@@ -185,6 +193,7 @@
             lbGuid.Text = "";
             List<DevExpress.XtraGrid.Views.Grid.GridView> gridViews = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
             gridViews.Add(gvMx1);
+            gridViews.Add(gvMx2);
             UtilityHelper.CleanValueByControl(this.panel1.Controls, true, gridViews);
             Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
         }
@@ -384,7 +393,6 @@
 
         #endregion
 
-
         private void _setIno()
         {
             txt_itemId.KeyFile = "id";
@@ -393,39 +401,18 @@
                 txt_itemModel.Text = this.txt_itemId.GetModel();
                 txt_itemNo.Text = this.txt_itemId.GetCode();
             };
-            _getListCyxx();
         }
-        private void _getListCyxx()
-        {
-            //var pgq = new PageQueryModel(1, 999999, "CREATE_DATE", "asc", "",
-            //     " and 1=1");
-            //var json = JsonConvert.SerializeObject(pgq);
-            //try
-            //{
-            //    var strReturn = UtilityHelper.HttpPost("",
-            //        "MesQmAql1Manager/GetListPage", json);
-            //    var rtn = UtilityHelper.ReturnToTablePage(strReturn);
-            //    var dt = rtn.rtnData.list;
-            //    foreach (DataRow dr in dt.Rows)
-            //    {
-            //        rptJYBZ.Items.Add((new CboItemEntity(dr["SampleSizeNo"].ToString(), dr["SampleSizeName"].ToString())));
-            //        //string ddddd = dr["SampleSizeName"].ToString();
-            //    }
-            //}
-            //catch (Exception ex)
-            //{
-            //    MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
-            //    Close();
-            //    Application.Exit();
-            //}
-        }
+        /// <summary>
+        /// 璇诲彇妫�楠岀粨鏋�
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
         private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
         {
             var rowGuid = "";
-            var myDataRow = gridView1.GetDataRow(e.FocusedRowHandle);
+            var myDataRow = gvMx1.GetDataRow(e.FocusedRowHandle);
             if (myDataRow == null) return;
-            rowGuid = myDataRow["guid"].ToString();
-            MessageBox.Show(rowGuid);
+            rowGuid = myDataRow["id"].ToString();
             var json = JsonConvert.SerializeObject(rowGuid);
             try
             {

--
Gitblit v1.9.3