From 1f99c554ffc67f599fbce5981a3da584945b3b16 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期一, 18 八月 2025 14:24:07 +0800 Subject: [PATCH] Merge branch 'master' of http://git.gs-mes.com:8080/r/~tjx/GsMesClient --- DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs | 83 +++++++++++++++++++++++++++++------------ 1 files changed, 59 insertions(+), 24 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs index 34e2189..ab740fd 100644 --- a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs @@ -63,14 +63,26 @@ gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; btnIpt.Click += BtnIpt_Click; string rptName = ""; - if (strType == QcSeason.鐢熶骇閫�鏂欏叆搴撴.ToString()) - rptName = "rpt_SCTL"; + if (strType == QcSeason.鍙楁墭鍏ュ簱.ToString()) + { + rptName = "rpt_Strk"; + layoutControlItem25.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + layoutControlItem27.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + } else if (strType == QcSeason.鍏跺畠鍏ュ簱妫�.ToString()) + { rptName = "rpt_Qtrk"; + layoutControlItem25.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + layoutControlItem27.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + } + else if (strType == QcSeason.閿�鍞��璐у叆搴撴.ToString()) rptName = "rpt_Xsth"; + else + if (strType == QcSeason.濮斿閫�鏂欏叆搴撴.ToString()) + rptName = "rpt_wwtl"; else if (strType == QcSeason.瓒呮湡妫�.ToString()) { @@ -118,32 +130,37 @@ string rowGuid = txt_aboutGuid.Text.Trim(); SelectDeleteBar frm = new SelectDeleteBar(rowGuid, strType); string strCodeList = ""; + string strAction = ""; frm.UpdateParent += (ss, ee) => { strCodeList = ee.StringSingle; + strAction = ee.Data; }; frm.ShowDialog(); if (string.IsNullOrEmpty(strCodeList)) return; - try + if (strAction == "print") { - string rptParameter = rptName + "{" - + "100" - + "," + "" - + "," + "" - + "," + "" - + "," + "" - + "," + strCodeList - + "}"; - using (Form rpt = new RptPreview(rowGuid, rptParameter)) + try { - rpt.ShowDialog(); + string rptParameter = rptName + "{" + + "100" + + "," + "" + + "," + "" + + "," + "" + + "," + "" + + "," + strCodeList + + "}"; + using (Form rpt = new RptPreview(rowGuid, rptParameter)) + { + rpt.ShowDialog(); + } + frm.Close(); } - frm.Close(); - } - catch (Exception ex) - { - MsgHelper.ShowError(ex.Message); + catch (Exception ex) + { + MsgHelper.ShowError(ex.Message); + } } }; //鑷姩璁$畻鎵撳嵃閲� @@ -425,11 +442,20 @@ { toolBarMenu1.isSetBtn = false; string rkckid = txt_rkCkId.GetId(); - if (string.IsNullOrEmpty(rkckid)) + if (strType == QcSeason.瓒呮湡妫�.ToString() + || strType == QcSeason.鍏跺畠鍏ュ簱妫�.ToString() + || strType == QcSeason.鍙楁墭鍏ュ簱.ToString()) { - Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浠撳簱锛�"); - txt_rkCkId.Focus(); - return; + + } + else + { + if (string.IsNullOrEmpty(rkckid)) + { + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浠撳簱锛�"); + txt_rkCkId.Focus(); + return; + } } if (txt_fcheckResu.Text.Trim() == _strTag && string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim())) { @@ -474,7 +500,17 @@ /// <param name="pageSize">姣忛〉鍑犳潯</param> private void getPageList(int curPage) { - gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + gcMain1.DataSource = null; + System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); + _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); + if (strType == QcSeason.鍏跺畠鍏ュ簱妫�.ToString()) + { + _sbSqlWhere.Append(" and isnull(qtrk.qt028,0)=1 and isnull(qtrk.qt032,0)=1 and isnull(qtrk.qt015,0)=1 "); + } + if (strType == QcSeason.鍙楁墭鍏ュ簱.ToString()) + { + _sbSqlWhere.Append(" and isnull(st.isCheck,0)=1 and isnull(st.qt032,0)=1"); + } PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", " and a.order_type='" + strType + "' " + _sbSqlWhere.ToString()); string json = JsonConvert.SerializeObject(pgq); try @@ -508,7 +544,6 @@ { ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } - } /// <summary> /// 璇诲彇瀹炰綋 -- Gitblit v1.9.3