From 68f0fd0c6bd723bb7e17971539ca152c78d5b8d5 Mon Sep 17 00:00:00 2001 From: "ruoxing.wang" <88384874@qq.com> Date: Mon, 31 Mar 2025 15:22:29 +0800 Subject: [PATCH] 1 --- PaintingScreen/Handler/Function.cs | 25 +- PaintingScreen/Handler/Handler.ashx | 1 + .../Manage/PaintingResultScreen2.html | 16 +- .../Manage/PaintingScreenPaoGuang.html | 11 +- PunchAssemble/PunchAndWeld/BusinessHelper.cs | 5 +- .../PunchAndWeld/DataSouce/ProScreenFunc.cs | 21 +- .../FrmDoorSill_214_3.Designer.cs | 308 ++++++++++-------- .../PunchAndWeld/FrmDoorSill_214_3.cs | 55 ++++ PunchAssemble/PunchAndWeld/FrmProScreenS.cs | 7 +- .../PunchAndWeld/Properties/AssemblyInfo.cs | 4 +- PurchingMistakeNew/UtilityHelper.cs | 252 ++++++++++++++ 11 files changed, 554 insertions(+), 151 deletions(-) create mode 100644 PurchingMistakeNew/UtilityHelper.cs diff --git a/PaintingScreen/Handler/Function.cs b/PaintingScreen/Handler/Function.cs index c2be4af..211cbeb 100644 --- a/PaintingScreen/Handler/Function.cs +++ b/PaintingScreen/Handler/Function.cs @@ -384,6 +384,8 @@ namespace PaintingScreen.Handler public static string GetMiddleTableData(string page) { + + System.Threading.Thread.Sleep(700); string res = ""; try { @@ -391,20 +393,22 @@ namespace PaintingScreen.Handler select * from tb_ReportPaintingScreen "; DataTable dt = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null); + int p = dt.Rows.Count; + string q = page.ToString(); if (Convert.ToInt32(page) * 9 >= dt.Rows.Count) { //查询第一页 page = "0"; } else - { + { //查询下一页(page+1页) page = (Convert.ToInt32(page) + 1).ToString(); } string queryStr = @" declare @pageIndex int; declare @pageSize int; - set @pageIndex = "+ page +@"; + set @pageIndex = " + page + @"; set @pageSize = 9; select * from ( @@ -421,6 +425,11 @@ namespace PaintingScreen.Handler WHERE t.xh between @pageSize*(@pageIndex - 1)+1 and @pageSize*@pageIndex "; DataTable dt_page = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, queryStr, null); + if (dt_page.Rows.Count == 0) + { + LogHelper.WriteErrLogBase(q + " " + p.ToString() + "喷涂下线合格率看板 查询条数为0,语句:" + queryStr, MethodBase.GetCurrentMethod().Name); + + } if (dt_page != null && dt_page.Rows.Count > 0) { res += "