|
|
@ -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<string>("name"); |
|
|
|
NAME = Gram.Select("Type='" + type_id + "' and min<=" + (int)gram + " and max>" + (int)gram + "").First().Field<string>("name"); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|