| | |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | toolBarMenu1.btnJianYanClick += ToolBarMenu1_btnJianYanClick; |
| | | gcMx1.MouseClick += GcMx1_MouseClick; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | |
| | | this.btnLoad.Click += BtnLoad_Click; |
| | | ucUpFile1.UpChanged += UcUpFile1_UpChanged; |
| | | xtraTabControl2.SelectedPageChanged += XtraTabControl2_SelectedPageChanged; |
| | | gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; |
| | | //有性能问题 |
| | | this.txt_suppId.getSuppler(""); |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | Task.Delay(100); |
| | | getPageList(1); |
| | | } |
| | | private void GcMx1_MouseClick(object sender, MouseEventArgs e) |
| | | private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | | { |
| | | string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gvMx1, e, "guid"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | return; |
| | | var info = gvMx1.CalcHitInfo(e.Location); |
| | | this._currentHandle5 = info.RowHandle; |
| | | getList12(rowGuid); |
| | | if (e.FocusedRowHandle >= 0) |
| | | { |
| | | DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); |
| | | string rowGuid = row["guid"].ToString(); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | return; |
| | | getList12(rowGuid); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 重新加载检验 |
| | | /// </summary> |
| | |
| | | private void TxtJianYan_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | int intHandle = this.gvMx1.FocusedRowHandle; |
| | | this._currentHandle5 = intHandle; |
| | | if (intHandle < 0) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:请选择检验项目!"); |
| | |
| | | /// <param name="guid5"></param> |
| | | private void getList12(string guid5) |
| | | { |
| | | |
| | | var _obj = new |
| | | { |
| | | parentGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |