From 13c4422bce4e8208826ef422ab4b31c3fe39fb32 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期三, 13 八月 2025 05:59:54 +0800 Subject: [PATCH] 其它入库bug --- DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs index 1aebbbc..b579ad7 100644 --- a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs @@ -67,7 +67,12 @@ rptName = "rpt_SCTL"; 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"; @@ -130,7 +135,8 @@ frm.ShowDialog(); if (string.IsNullOrEmpty(strCodeList)) return; - if (strAction == "print") { + if (strAction == "print") + { try { string rptParameter = rptName + "{" @@ -432,7 +438,12 @@ { toolBarMenu1.isSetBtn = false; string rkckid = txt_rkCkId.GetId(); - if (strType != QcSeason.瓒呮湡妫�.ToString()) + if (strType == QcSeason.瓒呮湡妫�.ToString() + || strType == QcSeason.鍏跺畠鍏ュ簱妫�.ToString()) + { + + } + else { if (string.IsNullOrEmpty(rkckid)) { @@ -484,7 +495,13 @@ /// <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 "); + } PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", " and a.order_type='" + strType + "' " + _sbSqlWhere.ToString()); string json = JsonConvert.SerializeObject(pgq); try @@ -518,7 +535,6 @@ { ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } - } /// <summary> /// 璇诲彇瀹炰綋 -- Gitblit v1.9.3