fqc
lu
2025-04-09 13119fa78167af87f5743cb71bc06c65acc58fdb
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs
@@ -515,24 +515,28 @@
                if (row != null)
                {
                    Guid _guid = UtilityHelper.ToGuid(row["guid"].ToString());
                    string defectLevel = row["defectLevel"].ToString();
                    string defectDetails = row["defectDetails"].ToString();
                    if (string.IsNullOrEmpty(defectLevel))
                    string _defectLevel = row["defectLevel"].ToString();
                    string _defectDetails = row["defectDetails"].ToString();
                    string _fcheckResu = row["fcheckResu"].ToString();
                    if (_fcheckResu == "不合格")
                    {
                        MsgHelper.ShowError("请选择缺陷等级!");
                        return;
                        if (string.IsNullOrEmpty(_defectLevel))
                        {
                            MsgHelper.ShowError("请选择缺陷等级!");
                            return;
                        }
                        if (string.IsNullOrEmpty(_defectDetails))
                        {
                            MsgHelper.ShowError("请填写缺陷描述!");
                            return;
                        }
                        _obj.list.Add(new
                        {
                            guid5 = _guid,
                            defectLevel = _defectLevel,
                            defectDetails = _defectDetails,
                        });
                    }
                    if (string.IsNullOrEmpty(defectDetails))
                    {
                        MsgHelper.ShowError("请填写缺陷描述!");
                        return;
                    }
                    _obj.list.Add(new
                    {
                        guid5 = _guid,
                        defectLevel = defectLevel,
                        defectDetails = defectDetails,
                    });
                }
            }
            try
@@ -777,7 +781,7 @@
            };
            frm.ShowDialog();
        }
    }
}