lu
2024-10-28 bc4493dec762784f6695dd0723cbb0973f68a0ef
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQmCheckitemDt.cs
@@ -205,7 +205,7 @@
        {
            toolBarMenu1.isSetBtn = false;
            string _ItemId = txt_itemId.GetId()
;            if (string.IsNullOrEmpty(_ItemId))
; if (string.IsNullOrEmpty(_ItemId))
            {
                MsgHelper.Warning("请选择物料!");
                // txt_account.Focus();
@@ -224,7 +224,7 @@
                        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(),
@@ -233,11 +233,9 @@
            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
            };
@@ -507,8 +505,8 @@
                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)
@@ -555,7 +553,7 @@
                ,"7.特殊检验水平(S4),"
            });
        }
        /// <summary>
        /// 关联检验标准名称
        /// </summary>
@@ -566,12 +564,20 @@
            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
    }
}