From baef454ef7dc66bc1dfbe7abef57f497ae1e05a1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 04 六月 2025 08:28:15 +0800 Subject: [PATCH] iqc巡检导出 --- DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs index ba1f74b..d90434b 100644 --- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs +++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkTechnique.cs @@ -1,4 +1,5 @@ 锘� +using Gs.DevApp.DevFrm.QC; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -82,6 +83,22 @@ frm.ShowDialog(); }; _getListJyxm(); + //澶嶅埗 + btnCopy.Click += (s, e) => + { + if ((lbGuid.Text.Trim().Length < 10)) + { + Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇峰厛淇濆瓨褰撳墠淇℃伅锛�"); + return; + } + if ((txt_isCheck.Checked == false)) + { + Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇ラ」鐩湭瀹℃牳锛屾殏涓嶈兘澶嶅埗鍒板叾瀹冪墿鏂欙紒"); + return; + } + Frm_WorkTechniqueShow frm = new Frm_WorkTechniqueShow(lbGuid.Text.Trim()); + frm.ShowDialog(); + }; } private void GridView1_ColumnFilterChanged(object sender, EventArgs e) @@ -156,7 +173,7 @@ private void getPageList(int curPage) { gcMain1.DataSource = null; - var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "org.FNumber asc ,a.item_no asc", "", "", _sbSqlWhere.ToString()); var json = JsonConvert.SerializeObject(pgq); @@ -224,6 +241,7 @@ List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gvMx1); UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gvList); + this.btnCopy.Enabled = true; } /// <summary> /// 淇濆瓨浜嬩欢 @@ -256,7 +274,8 @@ } decimal num = 0; int num2 = 0; - if (!int.TryParse(txt_fSumPeople.Text.Trim(), out num2)) { + if (!int.TryParse(txt_fSumPeople.Text.Trim(), out num2)) + { Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇疯緭鍏ユ纭殑瀹氬憳锛�"); txt_fSumPeople.Focus(); return; } @@ -274,6 +293,12 @@ { Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇疯緭鍏ユ纭殑閲嶉噺涓嬮檺锛�"); txt_fMinWeight.Focus(); return; + } + //涓婇檺涓嶈兘浣庝簬涓嬮檺 + if (decimal.Parse(txt_fMaxWeight.Text.Trim()) < decimal.Parse(txt_fMinWeight.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.ShowInformation("涓婇檺涓嶈兘浣庝簬涓嬮檺锛�"); + txt_fMaxWeight.Focus(); return; } var _obj = new { @@ -320,7 +345,7 @@ gvList.Add(gvMx1); UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false, gvList); toolBarMenu1.currentAction = ""; - Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); + //Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); } } catch (Exception ex) @@ -346,6 +371,11 @@ getModel(rowGuid); } + + /// <summary> + /// 璇诲彇瀹炰綋 + /// </summary> + /// <param name="strGuid"></param> private void getModel(string strGuid) { bool isEdit = false; @@ -373,6 +403,7 @@ List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gvMx1); UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); + this.btnCopy.Enabled = true; JObject _job = JObject.Parse(strJson); JArray array = new JArray(); foreach (var a in _job["rtnData"]["list"]) -- Gitblit v1.9.3