| | |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | toolBarMenu1.xlsInService = "XlsInItemJyxm&"+ strType; |
| | | //类型,iqc,ipqc巡检,ipqc首检查,fqc,iqc的样品值默认为5,其它为1 |
| | | txt_ftype.Text = strType; |
| | | if (strType == "iqc") |
| | | dfValue = 5; |
| | | //如果是ipqc巡检,显示工位 |
| | | if (strType != "ipqc巡检") |
| | | { |
| | | gvMx1.Columns["stationName"].Visible = false; |
| | | } |
| | | //新行初始值 |
| | | this.gvMx1.InitNewRow += (s, e) => |
| | | { |
| | | this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue); |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string _orgId = txt_fSubsidiary.GetId(); |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | { |
| | | MsgHelper.Warning("请选择使用组织!"); |
| | | txt_fSubsidiary.Focus(); |
| | | return; |
| | | } |
| | | string _ItemId = txt_itemId.GetId(); |
| | | if (string.IsNullOrEmpty(_ItemId)) |
| | | { |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读取实体 |
| | | /// </summary> |
| | | /// <param name="strGuid"></param> |
| | | private void getModel(string strGuid) |
| | | { |
| | | bool isEdit = false; |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 读取检验工具 |
| | |
| | | gvMx1.SetRowCellValue(dataIndex, "sampleSizeName", _txt); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 移出明细 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | gvMx1.CloseEditor(); |