From 13119fa78167af87f5743cb71bc06c65acc58fdb Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 09 四月 2025 11:26:46 +0800 Subject: [PATCH] fqc --- DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs | 40 ++++++++++++++++++++++------------------ 1 files changed, 22 insertions(+), 18 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs b/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs index 8c1224e..fc5edf2 100644 --- a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs +++ b/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(); } - - + + } } \ No newline at end of file -- Gitblit v1.9.3