| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "modifyFlagTxt", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | | }); |
| | | }, tips); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => |
| | | { |
| | | getModel(value); |
| | | }, (value) => |
| | | { |
| | | getPageList(this.pageBar1.CurrentPage); |
| | | }); |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | ucUpFile1.UpChanged += UcUpFile1_UpChanged; |
| | |
| | | } |
| | | 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(); |
| | | } |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | 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 == 1) |
| | | { |
| | | if ((txt_fmrmode.SelectedIndex <= 0)) |
| | | if ((txt_fmrmode.SelectedIndex > 0) || txt_fngHandle.SelectedIndex > 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择退料方式!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("你判定了合格,就不能再选择其它处理方式了!"); |
| | | txt_fmrmode.Focus(); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | _fmrmode = ""; |
| | | |
| | | { |
| | | //当选择不合格时,要填写原因 |
| | | if (txt_freceQty.SelectedIndex == 2) |
| | | { |
| | | if ((txt_fngHandle.SelectedIndex <= 0)) |
| | | { |
| | | 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 |
| | | { |
| | | if ((txt_fmrmode.SelectedIndex > 0)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("你选择了特采使用,就不能再选择退料方式了!"); |
| | | txt_fmrmode.Focus(); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | string _fmrmode = txt_fmrmode.SelectedIndex > 0 ? txt_fmrmode.Text.Trim() : ""; |
| | | string _freceQty = txt_freceQty.SelectedIndex > 0 ? txt_freceQty.Text.Trim() : ""; |
| | | string _fngHandle = txt_fngHandle.SelectedIndex > 0 ? txt_fngHandle.Text.Trim() : ""; |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | fngHandle = txt_fngHandle.Text.Trim(), |
| | | freceQty = _freceQty, |
| | | fngHandle = _fngHandle, |
| | | fmrmode = _fmrmode, |
| | | }; |
| | | try |
| | |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); |
| | | toolBarMenu1.currentAction = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); |
| | | } |
| | | } |
| | | catch (Exception ex) |