| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | using MES.Service.Modes; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | |
| | | namespace Gs.DevApp.DevFrm.QC |
| | |
| | | toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick; |
| | | if (strType == "iqc") |
| | | dfValue = 5; |
| | | this.gvMx1.InitNewRow += (s, e) => { |
| | | this.gvMx1.InitNewRow += (s, e) => |
| | | { |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); |
| | | int newIndex = gvMx1.DataRowCount + 1; |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex); |
| | |
| | | |
| | | 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, parentForm.GetType().FullName); |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, parentForm.GetType().FullName); |
| | | frm.UpdateParent += Frm_UpdateParent; |
| | | frm.ShowDialog(); |
| | | } |
| | |
| | | gcMain1.DataSource = dt; |
| | | gcMain1.ForceInitialize(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | |
| | | |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain1, gridView1); |
| | |
| | | { |
| | | sourceGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), |
| | | itemGuids = _sbGuids.ToString(), |
| | | iqcType=this.strType, |
| | | ypsl=this.dfValue |
| | | iqcType = this.strType, |
| | | ypsl = this.dfValue |
| | | }; |
| | | try |
| | | { |