| | |
| | | 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) => |
| | |
| | | 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> |
| | |
| | | lbGuid, txt_releaseNo, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | | private void ToolBarMenu1_btnCaiGouChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | |
| | | gcMx1.DataSource = dt; |
| | | gcMx1.ForceInitialize(); |
| | | ucUpFile1.parentGuid = lbGuid.Text.Trim(); |
| | | getList12(dt.Rows[0]["guid"].ToString()); |
| | | } |
| | | else |
| | | { |
| | |
| | | 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 |
| | | { |