diff --git a/ProcessManageUI/MainWindow.xaml.cs b/ProcessManageUI/MainWindow.xaml.cs index d6a56f8..8371275 100644 --- a/ProcessManageUI/MainWindow.xaml.cs +++ b/ProcessManageUI/MainWindow.xaml.cs @@ -37,7 +37,7 @@ namespace ProcessManageUI { nIcon.Visible = true; nIcon.Icon = new Icon("./sunlight_logo.ico"); - nIcon.Text = "测试程序"; + nIcon.Text = "溶解流程自动选择"; nIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(show_Click); nIcon.ContextMenu = new System.Windows.Forms.ContextMenu(); System.Windows.Forms.MenuItem show = new System.Windows.Forms.MenuItem("打开"); @@ -121,8 +121,9 @@ namespace ProcessManageUI { disTimer.Stop();//停止计时 string Connstr_SC; - string DyelotsBulkedRecipe_sql = "SELECT * FROM [dbo].[DyelotsBulkedRecipe] WHERE Created > '" - + DateTime.Now.AddDays(-1).ToString("yyyy/MM/dd") + "' AND ProductType = '1' AND Process IS NULL"; + string DyelotsBulkedRecipe_sql = + "SELECT * FROM [dbo].[DyelotsBulkedRecipe] WHERE Created > '" + DateTime.Now.AddDays(-1).ToString("yyyy/MM/dd") + + "' AND ProductType = '1' 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"; @@ -172,7 +173,7 @@ namespace ProcessManageUI string NAME = "Process"; try { - NAME = Gram.Select("Type='" + type_id + "' and min<='" + gram + "' and max>'" + gram + "'").First().Field("name"); + NAME = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field("name"); } catch (Exception ex) {