| | |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string _ItemId = txt_itemId.GetId() |
| | | ; if (string.IsNullOrEmpty(_ItemId)) |
| | | ; if (string.IsNullOrEmpty(_ItemId)) |
| | | { |
| | | MsgHelper.Warning("请选择物料!"); |
| | | // txt_account.Focus(); |
| | |
| | | Forder = 1, |
| | | FcheckItem = row["FcheckItem"].ToString(), |
| | | SampleSizeNo = row["SampleSizeNo"].ToString(), |
| | | FcheckTool= row["FcheckTool"].ToString(), |
| | | FcheckTool = row["FcheckTool"].ToString(), |
| | | FcheckLevel = row["FcheckLevel"].ToString(), |
| | | Fstand = row["Fstand"].ToString(), |
| | | FacLevel = row["FacLevel"].ToString(), |
| | |
| | | |
| | | var _obj = new MesQmCheckitem |
| | | { |
| | | Guid = lbGuid.Text.Trim().Length > 0 |
| | | ? Guid.Parse(lbGuid.Text.Trim()) |
| | | : Guid.Empty, |
| | | Guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), |
| | | Memo = txt_memo.Text.Trim(), |
| | | ItemNo =txt_itemNo.Text.Trim(), |
| | | ItemNo = txt_itemNo.Text.Trim(), |
| | | IsEnabled = txt_isenabled.Checked, |
| | | list = lst |
| | | }; |
| | |
| | | { |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, |
| | | false); |
| | | var gridViews = new List<GridView>(); |
| | | gridViews.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, false, |
| | | gridViews); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | private void _getListJygj() |
| | | { |
| | | var json = JsonConvert.SerializeObject("QATOOLS"); |
| | | |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", "MesSysLookupTypesManager/GetItemList", json); |
| | |
| | | var dt = rtn.rtnData.list; |
| | | foreach (DataRow dr in dt.Rows) |
| | | { |
| | | rptJYBZ.Items.Add(dr["SampleSizeNo"].ToString()); |
| | | string ddddd = dr["SampleSizeName"].ToString(); |
| | | rptJYBZ.Items.Add((new CboItemEntity(dr["SampleSizeNo"].ToString(), dr["SampleSizeName"].ToString()))); |
| | | //string ddddd = dr["SampleSizeName"].ToString(); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | ,"4.特殊检验水平(S1)" |
| | | ,"5.特殊检验水平(S2)" |
| | | ,"6.特殊检验水平(S3)" |
| | | ,"7.特殊检验水平(S4)," |
| | | ,"7.特殊检验水平(S4)" |
| | | }); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 关联检验标准名称 |
| | | /// </summary> |
| | |
| | | ComboBoxEdit comboBox = sender as ComboBoxEdit; |
| | | if (comboBox != null) |
| | | { |
| | | CboItemEntity _itm = comboBox.EditValue as CboItemEntity; |
| | | string _val = _itm.Value.ToString(); |
| | | string _txt = _itm.Text.ToString(); |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | GridView myView = (gcMx1.MainView as GridView); |
| | | int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle); |
| | | myView.SetRowCellValue(dataIndex, "sampleSizeName", "sdf"); |
| | | myView.SetRowCellValue(dataIndex, "gridColumn6", "sdf"); |
| | | myView.SetRowCellValue(dataIndex, "sampleSizeNo", _val); |
| | | myView.SetRowCellValue(dataIndex, "sampleSizeName", _txt); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |