| | |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | | _filterList=Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); |
| | | _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); |
| | | Task.Delay(100); |
| | | getPageList(1); |
| | | } |
| | |
| | | gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; |
| | | gridView1.ActiveFilter.Clear(); |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | frm.UpdateParent += Frm_UpdateParent; |
| | | frm.ShowDialog(); |
| | | } |
| | |
| | | { |
| | | string _fmrmode = txt_fmrmode.Text.Trim(); |
| | | toolBarMenu1.isSetBtn = false; |
| | | if ((txt_fngHandle.SelectedIndex <= 0)) |
| | | if (txt_freceQty.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择处理方式!"); |
| | | txt_fngHandle.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择判定结果!"); |
| | | txt_freceQty.Focus(); |
| | | return; |
| | | } |
| | | if (txt_fngHandle.SelectedIndex == 1) |
| | | //当选择不合格时,要填写原因 |
| | | if (txt_freceQty.SelectedIndex == 2) |
| | | { |
| | | if ((txt_fmrmode.SelectedIndex <= 0)) |
| | | if ((txt_fngHandle.SelectedIndex <= 0)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择退料方式!"); |
| | | txt_fmrmode.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择处理结果!"); |
| | | txt_fngHandle.Focus(); |
| | | return; |
| | | } |
| | | if (txt_fngHandle.SelectedIndex == 1) |
| | | { |
| | | if ((txt_fmrmode.SelectedIndex <= 0)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择处理方式!"); |
| | | txt_fmrmode.Focus(); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | _fmrmode = ""; |
| | | |
| | | } |
| | | else |
| | | _fmrmode = ""; |
| | | |
| | | var _obj = new |
| | | { |