修改判断逻辑缺陷
This commit is contained in:
commit
b7dde23675
1 file changed
+5
-4
@@ -37,7 +37,7 @@ namespace ProcessManageUI
|
|||||||
{
|
{
|
||||||
nIcon.Visible = true;
|
nIcon.Visible = true;
|
||||||
nIcon.Icon = new Icon("./sunlight_logo.ico");
|
nIcon.Icon = new Icon("./sunlight_logo.ico");
|
||||||
nIcon.Text = "测试程序";
|
nIcon.Text = "溶解流程自动选择";
|
||||||
nIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(show_Click);
|
nIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(show_Click);
|
||||||
nIcon.ContextMenu = new System.Windows.Forms.ContextMenu();
|
nIcon.ContextMenu = new System.Windows.Forms.ContextMenu();
|
||||||
System.Windows.Forms.MenuItem show = new System.Windows.Forms.MenuItem("打开");
|
System.Windows.Forms.MenuItem show = new System.Windows.Forms.MenuItem("打开");
|
||||||
@@ -121,8 +121,9 @@ namespace ProcessManageUI
|
|||||||
{
|
{
|
||||||
disTimer.Stop();//停止计时
|
disTimer.Stop();//停止计时
|
||||||
string Connstr_SC;
|
string Connstr_SC;
|
||||||
string DyelotsBulkedRecipe_sql = "SELECT * FROM [dbo].[DyelotsBulkedRecipe] WHERE Created > '"
|
string DyelotsBulkedRecipe_sql =
|
||||||
+ DateTime.Now.AddDays(-1).ToString("yyyy/MM/dd") + "' AND ProductType = '1' AND Process IS NULL";
|
"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")
|
if (SQMOD == "Windows Authentication")
|
||||||
{
|
{
|
||||||
Connstr_SC = "server=" + SQLIP + ";database=" + SQLNAME + ";Trusted_Connection=SSPI";
|
Connstr_SC = "server=" + SQLIP + ";database=" + SQLNAME + ";Trusted_Connection=SSPI";
|
||||||
@@ -172,7 +173,7 @@ namespace ProcessManageUI
|
|||||||
string NAME = "Process";
|
string NAME = "Process";
|
||||||
try
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user