From 0ae97d187cc35bf647a896c184e2afd0c11a870c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 04 十一月 2024 16:30:39 +0800 Subject: [PATCH] iqc --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs | 37 ++++++++++++++++++++++++++++++++++++- 1 files changed, 36 insertions(+), 1 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs index 3724a04..5a3b3ff 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs @@ -5,6 +5,7 @@ using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; +using MES.Service.Modes; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; @@ -161,6 +162,38 @@ 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(labCurrentGuid.Text.Trim()), + Guid = UtilityHelper.ToGuid(row["guid"].ToString()), + FcheckResu = row["fcheckResu"].ToString(), + //Fstand = row["fstand"].ToString(), + FcheckItem = labCurrentItem.Text.Trim(), + GrandpaGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), + }); + } + var _obj = lst; + try + { + var strJson = UtilityHelper.HttpPost("", + _webServiceName + "EdtModelDetail12", + JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + + } + } + catch (Exception ex) + { + MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } } @@ -227,7 +260,7 @@ lbGuid, txt_releaseNo, gridView1); toolBarMenu1.guidKey = rowGuid; } - + /// <summary> /// 鍙栨秷浜嬩欢 /// </summary> @@ -529,6 +562,8 @@ { var myDataRow = gvMx1.GetDataRow(e.FocusedRowHandle); if (myDataRow == null) return; + labCurrentItem.Text = myDataRow["fcheckItem"].ToString(); + labCurrentGuid.Text = myDataRow["guid"].ToString(); var _obj = new { parentGuid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 -- Gitblit v1.9.3