From eb8b6a99037546567e542885efc5783ed5e0d2f1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 06 十一月 2024 14:04:47 +0800 Subject: [PATCH] 附件上传 --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs | 41 +++++++++++++++++++---------------------- 1 files changed, 19 insertions(+), 22 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs index a5f261f..fa83bd9 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs @@ -27,7 +27,7 @@ this.toolBarMenu1.btnBoHuiClick += ToolBarMenu1_btnBoHuiClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; - gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; + gcMx1.MouseClick += GcMx1_MouseClick; getPageList(1, UtilityHelper.GetPageSize()); pageBar1.PagerEvent += PageBar1_PagerEvent; gridView1.CustomDrawRowIndicator += (s, e) => @@ -49,11 +49,22 @@ gvMx2.OptionsView.ShowGroupPanel = false; gvMx3.OptionsFind.ShowSearchNavButtons = false; gvMx3.OptionsView.ShowGroupPanel = false; - _setIno(); + txt_itemId.KeyFile = "id"; + txt_itemId.EditChanged += (s, e) => + { + txt_itemModel.Text = this.txt_itemId.GetModel(); + txt_itemNo.Text = this.txt_itemId.GetCode(); + }; ucUpFile1.UpChanged += UcUpFile1_UpChanged; xtraTabControl2.SelectedPageChanged += XtraTabControl2_SelectedPageChanged; } - + private void GcMx1_MouseClick(object sender, MouseEventArgs e) + { + string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gvMx1, e, "guid"); + if (string.IsNullOrEmpty(rowGuid)) + return; + getList12(rowGuid); + } /// <summary> /// 鍙屽嚮浜嬩欢 /// </summary> @@ -119,7 +130,6 @@ lbGuid, txt_releaseNo, gridView1); toolBarMenu1.guidKey = rowGuid; } - private void ToolBarMenu1_btnCaiGouChkClick(object sender, EventArgs e) { toolBarMenu1.guidKey = ""; @@ -237,6 +247,7 @@ gcMx1.DataSource = dt; gcMx1.ForceInitialize(); ucUpFile1.parentGuid = lbGuid.Text.Trim(); + getList12(dt.Rows[0]["guid"].ToString()); } else { @@ -299,30 +310,16 @@ ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - private void _setIno() - { - txt_itemId.KeyFile = "id"; - //txt_itemId.EditChanged += (s, e) => - //{ - // txt_itemModel.Text = this.txt_itemId.GetModel(); - // txt_itemNo.Text = this.txt_itemId.GetCode(); - //}; - } /// <summary> - /// 璇诲彇妫�楠岀粨鏋� + /// 鏍规嵁妫�楠岄」鐩鍙栨娊鏍风粨鏋� /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) + /// <param name="guid5"></param> + private void getList12(string guid5) { - var myDataRow = gvMx1.GetDataRow(e.FocusedRowHandle); - if (myDataRow == null) return; var _obj = new { parentGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 - guid = UtilityHelper.ToGuid(myDataRow["guid"].ToString()), //涓诲缓 - checkQyt = myDataRow["checkQyt"].ToString(), - chkItem = myDataRow["fcheckItem"].ToString() + guid = UtilityHelper.ToGuid(guid5), //涓诲缓 }; try { -- Gitblit v1.9.3