From 3ff3c816c74c077a320c4a9cb3094fb0b9fcc2c5 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 16 十一月 2024 15:06:23 +0800
Subject: [PATCH] 1

---
 DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs |   94 ++++++++++++++++++++++++++---------------------
 1 files changed, 52 insertions(+), 42 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
index dc5c818..1bb47c8 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -41,6 +41,22 @@
                     e.Info.DisplayText = (e.RowHandle + 1).ToString();
                 }
             };
+            this.gvMx1.IndicatorWidth = 50;
+            gvMx1.CustomDrawRowIndicator += (s, e) =>
+            {
+                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
+                {
+                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
+                }
+            };
+            this.gvMx2.IndicatorWidth = 50;
+            gvMx2.CustomDrawRowIndicator += (s, e) =>
+            {
+                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
+                {
+                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
+                }
+            };
             gridView1.CustomDrawEmptyForeground += (s, e) =>
             {
                 string str = "鏆傛湭鏌ユ壘鍒板尮閰嶇殑鏁版嵁!";
@@ -146,31 +162,37 @@
                 string _strCmd = txtJianYan.Text.Trim().ToUpper();
                 string _strOK = "OK";
                 string _strNG = "NG";
-                if (!(_strCmd.StartsWith(_strOK) || _strCmd.StartsWith(_strNG)))
+                int n = 0;
+                if ((_strCmd.StartsWith(_strOK) || _strCmd.StartsWith(_strNG)))
                 {
-                    Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴� NG 鍛戒护!");
-                    return;
+                    if (!_strCmd.Contains("-"))
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴� NG 鍛戒护!");
+                        return;
+                    }
+                    string[] _ary = _strCmd.Split('-');
+                    if (_ary.Length != 2)
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氾細璇锋纭娇鐢∣K 鎴�  NG 鍛戒护!");
+                        return;
+                    }
+                    string _str1 = _ary[0];
+                    if (!(_str1 == _strOK || _str1 == _strNG))
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴�  NG 鍛戒护!");
+                        return;
+                    }
+                    string _str2 = _ary[1];
+                    if (int.TryParse(_str2, out n))
+                    {
+                    }
+                    else
+                    {
+                        Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴�  NG 鍛戒护!");
+                        return;
+                    }
                 }
-                if (!_strCmd.Contains("-"))
-                {
-                    Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氱己灏� 涓敾绾�!");
-                    return;
-                }
-                string[] _ary = _strCmd.Split('-');
-                if (_ary.Length != 2)
-                {
-                    Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氾細璇锋纭娇鐢∣K 鎴�  NG 鍛戒护!");
-                    return;
-                }
-                string _str1 = _ary[0];
-                if (!(_str1 == _strOK || _str1 == _strNG))
-                {
-                    Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴�  NG 鍛戒护!");
-                    return;
-                }
-                string _str2 = _ary[1];
-                int n;
-                if (int.TryParse(_str2, out n))
+                if (int.TryParse(_strCmd, out n))
                 {
                 }
                 else
@@ -178,25 +200,12 @@
                     Gs.DevApp.ToolBox.MsgHelper.ShowError("鍛戒护杈撳叆閿欒锛氳姝g‘浣跨敤OK 鎴�  NG 鍛戒护!");
                     return;
                 }
-                for (int i = 0; i < gvMx2.DataRowCount; i++)
+                var _obj = new
                 {
-                    gvMx2.SetRowCellValue(i, "fcheckResu", _str1);
-                    gvMx2.SetRowCellValue(i, "fstand", _str1);
-                }
-                List<MesQaItemsDetectDetail12> lst = new List<MesQaItemsDetectDetail12>();
-                for (var i = 0; i < gvMx2.DataRowCount; i++)
-                {
-                    var row = gvMx2.GetDataRow(i);
-                    if (row != null)
-                        lst.Add(new MesQaItemsDetectDetail12()
-                        {
-                            ParentGuid = UtilityHelper.ToGuid(guid5),
-                            Guid = UtilityHelper.ToGuid(row["guid"].ToString()),
-                            FcheckResu = row["fcheckResu"].ToString(),
-                            GrandpaGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()),
-                        });
-                }
-                var _obj = lst;
+                    inOrderGuid1 = UtilityHelper.ToGuid(lbGuid.Text.Trim()), ////杩欐槸妫�楠屽崟guid
+                    inOrderGuid5 = guid5,//杩欐槸鎶芥牱鐨刧uid
+                    inP1 = _strCmd,//杩欐槸9锛屾湁鍙兘鏄�19锛屾垨鑰�0k-19,鎴栬�卬g-19
+                };
                 try
                 {
                     var strJson = UtilityHelper.HttpPost("",
@@ -206,6 +215,8 @@
                     MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg);
                     if (_rtn.rtnCode > 0)
                     {
+                        txtJianYan.Text = "";
+                        getModel(lbGuid.Text.Trim(), false, 999);
                     }
                 }
                 catch (Exception ex)
@@ -543,7 +554,6 @@
             {
                 ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
             }
-
             _loading.Stop();
         }
 

--
Gitblit v1.9.3