From 48ff014392dbb512ed141383a4a3ed8b43a57ff0 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 09 四月 2025 08:46:53 +0800
Subject: [PATCH] 异常处置单

---
 DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs |   51 +++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 43 insertions(+), 8 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs b/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs
index 6570002..b1c51d0 100644
--- a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs
+++ b/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs
@@ -166,7 +166,6 @@
             Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1);
         }
 
-
         /// <summary>
         /// 鍒锋柊浜嬩欢
         /// </summary>
@@ -228,18 +227,54 @@
         private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
         {
             toolBarMenu1.isSetBtn = false;
-            string _txt_fngHandle = txt_fngHandle.Text.Trim();
             string _freceQty = txt_freceQty.Text.Trim();
+            string _txt_fngHandle = txt_fngHandle.Text.Trim();
             string _txt_fmrmode = txt_fmrmode.GetCode();
             string _txt_fzrId = txt_fzrId.GetId();
             string _txt_workNo = txt_workNo.Text.Trim();
             string _txt_msg = txt_msg.TextTxt;
-            //if (string.IsNullOrEmpty(_txt_fbatchQty.Trim()))
-            //{
-            //    Gs.DevApp.ToolBox.MsgHelper.Warning("鎶芥鏁伴噺涓嶈兘涓虹┖锛�");
-            //    txt_fbatchQty.Focus();
-            //    return;
-            //}
+            if (txt_freceQty.SelectedIndex <= 0)
+            {
+                Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍒ゅ畾缁撴灉锛�");
+                txt_freceQty.Focus();
+                return;
+            }
+            //褰撲负涓嶅悎鏍兼椂锛岃閫夋嫨澶勭疆缁撴灉
+            if (txt_freceQty.SelectedIndex != 1)
+            {
+                if (txt_fngHandle.SelectedIndex <= 0)
+                {
+                    Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨澶勭疆缁撴灉锛�");
+                    txt_fngHandle.Focus();
+                    return;
+                }
+                //褰撳缃粨鏋滀负鍙嶅伐鏃讹紝瑕侀�夋嫨宸ュ簭鍜屽弽宸ョ紪鍙�
+                if (txt_fngHandle.SelectedIndex == 1)
+                {
+                    if (string.IsNullOrEmpty(_txt_workNo))
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.Warning("璇峰~鍐欏弽宸ュ崟鍙凤紒");
+                        txt_workNo.Focus();
+                        return;
+                    }
+                    if (string.IsNullOrEmpty(_txt_fmrmode))
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.Warning("璇峰~閫夋嫨鍙嶅伐宸ュ簭锛�");
+                        txt_fmrmode.Focus();
+                        return;
+                    }
+                }
+            }
+            //褰撲负鍚堟牸鏃讹紝灏变笉搴旇閫夋嫨鍏跺畠椤圭洰浜�
+            else {
+                if ((_txt_fngHandle.Length + _txt_fmrmode.Length + _txt_fzrId.Length + _txt_workNo.Length) > 0)
+                {
+                    Gs.DevApp.ToolBox.MsgHelper.Warning("褰撳垽瀹氱粨鏋滀负鍚堟牸鏃讹紝灏变笉搴旇閫夋嫨鍏跺畠椤圭洰浜嗭紒锛�");
+                    txt_freceQty.Focus();
+                    return;
+                }
+            }
+
             var _obj = new
             {
                 guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓

--
Gitblit v1.9.3