| | |
| | | gvMx1.UpdateCurrentRow(); |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | } |
| | | 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(); |
| | | } |
| | |
| | | if (row != null) |
| | | { |
| | | Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString()); |
| | | //string _LineId = row["daa015"].ToString(); |
| | | //if (string.IsNullOrEmpty(_LineId)) |
| | | //{ |
| | | // MsgHelper.ShowError("产线编码不能为空!"); |
| | | // return; |
| | | //} |
| | | string _Pcsl = row["daa008"].ToString(); |
| | | if (string.IsNullOrEmpty(_Pcsl)) |
| | | string _LineId = row["daa015"].ToString(); |
| | | if (string.IsNullOrEmpty(_LineId)) |
| | | { |
| | | MsgHelper.ShowError("排产数量不能为空!"); |
| | | MsgHelper.ShowError("线别不能为空!"); |
| | | return; |
| | | } |
| | | if (Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(row["daa008"].ToString()) <= 0) |
| | | { |
| | | MsgHelper.ShowError("请输入正确的排产数量!"); |
| | | return; |
| | | } |
| | | string _Yjkgsj = row["mesStartProd"].ToString(); |
| | |
| | | gcMx1.DataSource = dt; |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | } |
| | | else |
| | | { |