| | |
| | | txt_ftype.Text = strType; |
| | | if (strType == "iqc") |
| | | dfValue = 5; |
| | | this.gvMx1.InitNewRow += (s, e) => |
| | | if (strType != "ipqc巡检") |
| | | { |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); |
| | | int newIndex = gvMx1.DataRowCount + 1; |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex); |
| | | }; |
| | | gvMx1.Columns["stationName"].Visible = false; |
| | | } |
| | | this.gvMx1.InitNewRow += (s, e) => |
| | | { |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); |
| | | int newIndex = gvMx1.DataRowCount + 1; |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "forder", newIndex); |
| | | }; |
| | | this.toolBarMenu1.getXmlConfig(); |
| | | Form parentForm = this.FindForm(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("请先保存当前信息!"); |
| | | return; |
| | | } |
| | | if ((txt_foneChecked.Checked==false)) |
| | | if ((txt_foneChecked.Checked == false)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该项目未审核,暂不能复制到其它物料!"); |
| | | return; |
| | |
| | | FupAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FupAllow"].ToString()), |
| | | FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()), |
| | | ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()), |
| | | stationName = row["stationName"].ToString(), |
| | | }); |
| | | } |
| | | } |
| | |
| | | _getListJybz(); |
| | | _getListJssp(); |
| | | _getListJysp(); |
| | | _getListStation(); |
| | | } |
| | | /// <summary> |
| | | /// 读取检验项目 |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 读取检验工位 |
| | | /// </summary> |
| | | private void _getListStation() |
| | | { |
| | | string _where = " and 1=1 and s_type='工位信息' and pid<>'00000000-0000-0000-0000-000000000000'"; |
| | | var pgq = new PageQueryModel(1, 999999, "a.defect_name", "asc", "", _where); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | | var strReturn = |
| | | UtilityHelper.HttpPost("", "MesDefectCodeManager/GetListPage", json); |
| | | var dd = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = dd.rtnData.list; |
| | | foreach (DataRow dr in dt.Rows) |
| | | { |
| | | //tlMenu.KeyFieldName = "guid"; |
| | | //tlMenu.ParentFieldName = "pid"; |
| | | rptStation.Items.Add(dr["defectName"].ToString()); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 读取检验工具 |
| | | /// </summary> |
| | |
| | | { |
| | | rptJSSP.Items.AddRange(new string[] { |
| | | "0.010---(AQL_0_0010)" |
| | | , "0.015---(AQL_0_0015)" |
| | | , "0.025---(AQL_0_0025)" |
| | | ,"0.015---(AQL_0_0015)" |
| | | ,"0.025---(AQL_0_0025)" |
| | | ,"0.040---(AQL_0_0040)" |
| | | ,"0.065---(AQL_0_0065)" |
| | | ,"0.10---(AQL_0_010)" |