From 3c84755b07eabfb5e87ade9d020a4d3399ab2a53 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期三, 13 八月 2025 17:37:12 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs |   61 +++++++++++++++++++++---------
 1 files changed, 42 insertions(+), 19 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs
index 924dd6a..b579ad7 100644
--- a/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/RkQC/RkDetect01.cs
@@ -67,10 +67,18 @@
                 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";
+            else
+                 if (strType == QcSeason.濮斿閫�鏂欏叆搴撴.ToString())
+                rptName = "rpt_wwtl";
             else
                  if (strType == QcSeason.瓒呮湡妫�.ToString())
             {
@@ -118,32 +126,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,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))
                 {
@@ -477,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
@@ -511,7 +535,6 @@
             {
                 ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message);
             }
-
         }
         /// <summary>
         /// 璇诲彇瀹炰綋

--
Gitblit v1.9.3