| | |
| | | { |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesQmCheckitemManager/"; |
| | | public string strType = ""; |
| | | public string strType = "";//iqc type |
| | | public decimal dfValue = 1; //iqc的样品数量默认5,否则1 |
| | | public Jyxm(string _strType) |
| | | { |
| | | InitializeComponent(); |
| | |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick; |
| | | //iqc的样品数量默认5,否则1 |
| | | decimal _dfValue = 1; |
| | | if (strType == "iqc") |
| | | _dfValue = 5; |
| | | dfValue = 5; |
| | | this.gvMx1.InitNewRow += (s, e) => { |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", _dfValue); |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); |
| | | int newIndex = gvMx1.DataRowCount + 1; |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex); |
| | | }; |
| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, parentForm, "foneChecked", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | | }); |
| | | }, tips); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => |
| | | { |
| | | getModel(value); |
| | |
| | | parentForm = this.Parent as Form; |
| | | else |
| | | parentForm = this.Parent.Parent as Form; |
| | | |
| | | gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; |
| | | gridView1.ActiveFilter.Clear(); |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | |
| | | //假如三个都为空通过 |
| | | if (string.IsNullOrEmpty(_Fstand) && string.IsNullOrEmpty(_FupAllow) && string.IsNullOrEmpty(_FdownAllow)) |
| | | { |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | var _obj = new |
| | | { |
| | | sourceGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), |
| | | itemGuids = _sbGuids.ToString() |
| | | itemGuids = _sbGuids.ToString(), |
| | | iqcType=this.strType, |
| | | ypsl=this.dfValue |
| | | }; |
| | | try |
| | | { |