From 730ae1a961047b097fc3167b3418e899e0be2507 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 09 十一月 2024 18:08:00 +0800 Subject: [PATCH] Merge branch 'master' of http://43.142.96.171:8080/r/~tjx/GsMesClient --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs index 1dc64ea..e21b553 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Check.cs @@ -8,6 +8,7 @@ using System.Data; using System.Drawing; using System.Windows.Forms; +using static DevExpress.XtraPrinting.Native.PageSizeInfo; namespace Gs.DevApp.DevFrm.QC { @@ -165,6 +166,28 @@ (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_releaseNo, gridView1); toolBarMenu1.guidKey = rowGuid; + + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾璐ㄩ噺瀹℃牳鍚楋紵")) + return; + + try + { + var strJson = UtilityHelper.HttpPost("", _webServiceName + "IqcQcSubmit11", + JsonConvert.SerializeObject(rowGuid)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + + MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } /// <summary> /// 璐ㄩ噺瀹℃牳 @@ -178,6 +201,28 @@ (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_releaseNo, gridView1); toolBarMenu1.guidKey = rowGuid; + + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾璐ㄩ噺瀹℃牳鍚楋紵")) + return; + + try + { + var strJson = UtilityHelper.HttpPost("", _webServiceName + "IqcQcSubmit", + JsonConvert.SerializeObject(rowGuid)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + + MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } /// <summary> -- Gitblit v1.9.3