| | |
| | | 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 |
| | |
| | | }; |
| | | frm.ShowDialog(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |