diff --git a/ProcessManageUI/MainWindow.xaml.cs b/ProcessManageUI/MainWindow.xaml.cs index 1ea5880..1d5a29c 100644 --- a/ProcessManageUI/MainWindow.xaml.cs +++ b/ProcessManageUI/MainWindow.xaml.cs @@ -130,7 +130,8 @@ namespace ProcessManageUI string Connstr_SC; string DyelotsBulkedRecipe_sql = "SELECT * FROM [dbo].[DyelotsBulkedRecipe] WHERE Created > '" + DateTime.Now.AddDays(-1).ToString("yyyy/MM/dd") + - "' AND ProductType = '"+ _type + "' AND Process IS NULL AND StepNumber IS NOT NULL AND ProductCode IS NOT NULL AND ReDye IS NOT NULL"; + " ' and Created <'" + DateTime.Now.AddMinutes(-1).ToString("yyyy/MM/dd") + + "' AND ProductType = '" + _type + "' AND Process IS NULL AND StepNumber IS NOT NULL AND ProductCode IS NOT NULL AND ReDye IS NOT NULL"; if (SQMOD == "Windows Authentication") { Connstr_SC = "server=" + SQLIP + ";database=" + SQLNAME + ";Trusted_Connection=SSPI";