From 6ca92d27db6af7e402c141d63f17054254c9d179 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 29 十月 2024 14:28:04 +0800
Subject: [PATCH] 来料检验申请

---
 DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs |   46 +++++++++-------------------------------------
 1 files changed, 9 insertions(+), 37 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
index 24dd2ee..9daa5cf 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -49,17 +49,14 @@
                 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>
         /// 鍙屽嚮浜嬩欢
         /// </summary>
@@ -120,7 +117,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 +163,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 +182,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 +382,6 @@
 
         #endregion
 
-
         private void _setIno()
         {
             txt_itemId.KeyFile = "id";
@@ -393,39 +390,14 @@
                 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();
-            //}
-        }
+     
         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