添加类型修改
This commit is contained in:
commit
ec76dc6ae4
1 file changed
+2
-1
@@ -81,6 +81,7 @@ namespace ProcessManageUI
|
|||||||
private static DataTable Gram = new DataTable();
|
private static DataTable Gram = new DataTable();
|
||||||
private static int Count = 0;
|
private static int Count = 0;
|
||||||
private static readonly int _intervalMs = int.Parse(Configini.IniReadvalue("SQL_SERVER", "SQL6"));
|
private static readonly int _intervalMs = int.Parse(Configini.IniReadvalue("SQL_SERVER", "SQL6"));
|
||||||
|
private static readonly int _type = int.Parse(Configini.IniReadvalue("SQL_SERVER", "SQL7"));
|
||||||
private static SQLiteHelper SQLiteHelpers = null; //定义数据库
|
private static SQLiteHelper SQLiteHelpers = null; //定义数据库
|
||||||
private readonly static string DBAddress = Environment.CurrentDirectory + "\\ProcessManage.db"; //数据库路径
|
private readonly static string DBAddress = Environment.CurrentDirectory + "\\ProcessManage.db"; //数据库路径
|
||||||
private int DATAGRID_TABLE;
|
private int DATAGRID_TABLE;
|
||||||
@@ -129,7 +130,7 @@ namespace ProcessManageUI
|
|||||||
string Connstr_SC;
|
string Connstr_SC;
|
||||||
string DyelotsBulkedRecipe_sql =
|
string DyelotsBulkedRecipe_sql =
|
||||||
"SELECT * FROM [dbo].[DyelotsBulkedRecipe] WHERE Created > '" + DateTime.Now.AddDays(-1).ToString("yyyy/MM/dd") +
|
"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";
|
"' 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")
|
if (SQMOD == "Windows Authentication")
|
||||||
{
|
{
|
||||||
Connstr_SC = "server=" + SQLIP + ";database=" + SQLNAME + ";Trusted_Connection=SSPI";
|
Connstr_SC = "server=" + SQLIP + ";database=" + SQLNAME + ";Trusted_Connection=SSPI";
|
||||||
|
|||||||
Reference in new issue
Block a user