From 9c5a8f56a90afcd1822763a4875834fcf67b2209 Mon Sep 17 00:00:00 2001 From: lilili Date: Sun, 8 Oct 2023 09:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9C=8B=E6=9D=BF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KanBan/NFine.Application/SRM/WatchPanelApp.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KanBan/NFine.Application/SRM/WatchPanelApp.cs b/KanBan/NFine.Application/SRM/WatchPanelApp.cs index 4863bcf..6d596d7 100644 --- a/KanBan/NFine.Application/SRM/WatchPanelApp.cs +++ b/KanBan/NFine.Application/SRM/WatchPanelApp.cs @@ -19,6 +19,7 @@ namespace NFine.Application.WMS private static string StratTimecfg = ConfigurationManager.ConnectionStrings["StratTime"].ConnectionString; private static string EndTimecfg = ConfigurationManager.ConnectionStrings["EndTime"].ConnectionString; private static string advDays = ConfigurationManager.ConnectionStrings["advDays"].ConnectionString; + private static string workPoint = ConfigurationManager.ConnectionStrings["WorkPoint"].ConnectionString; string StratTime = DateTime.Parse(DateTime.Now.AddDays(-1).ToString()).ToString("yyyy-MM-dd") + ' ' + StratTimecfg; string EndTime = DateTime.Parse(DateTime.Now.ToString()).ToString("yyyy-MM-dd") + ' ' + EndTimecfg; @@ -241,10 +242,10 @@ and CreatedOn>CAST(CAST(GETDATE() as date) as varchar(10)) + ' 00:00:00' and st c.TransType= '15' AND a.Sequence= c.TransSequence INNER JOIN ( SELECT DISTINCT e.StartLocation,e.EndLocation FROM - ICSForkLiftTaskLog e WHERE e.EndLocation is not null AND e.EndLocation!='' ) e ON c.FromLocationCode= e.StartLocation + ICSForkLiftTaskLog e WHERE e.EndLocation is not null AND e.EndLocation!=''AND (e.EATTRIBUTE1 IS NULL OR e.EATTRIBUTE1!='己回库') ) e ON c.FromLocationCode= e.StartLocation WHERE - a.WorkPoint='1701'"; + a.WorkPoint in({workPoint})"; //if (!string.IsNullOrWhiteSpace(StratTime)) //{