|
@ -73,6 +73,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
public static DataTable Machines = new DataTable(); //设备表缓存
|
|
|
public static DataTable Machines = new DataTable(); //设备表缓存
|
|
|
// public static DataRow MachinesROW;
|
|
|
// public static DataRow MachinesROW;
|
|
|
public static DataTable USER_data = new DataTable(); |
|
|
public static DataTable USER_data = new DataTable(); |
|
|
|
|
|
public static DataTable Dyelot_CALL = new DataTable(); |
|
|
public static UserControls.info[] inf = new UserControls.info[999]; //定义总览信息卡
|
|
|
public static UserControls.info[] inf = new UserControls.info[999]; //定义总览信息卡
|
|
|
public static int ERR_c = 0;//错误计数器
|
|
|
public static int ERR_c = 0;//错误计数器
|
|
|
public static bool[] USER_Capacity { set; get; } = new bool[99]; |
|
|
public static bool[] USER_Capacity { set; get; } = new bool[99]; |
|
@ -318,7 +319,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
/**染机用户信息**/ |
|
|
/**染机用户信息**/ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
if (Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'").ToString() == "901") |
|
|
if ((int)Selet_Machines(Machines, "UserInfoStart", "ID='" + i + "'") == 901) |
|
|
{ |
|
|
{ |
|
|
MainWindow.InfData.Rows.Add(new object[] { |
|
|
MainWindow.InfData.Rows.Add(new object[] { |
|
|
Selet_Machines(Machines, "Name", "ID='" + i + "'"), |
|
|
Selet_Machines(Machines, "Name", "ID='" + i + "'"), |
|
@ -333,9 +334,22 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
catch (Exception) { } |
|
|
catch (Exception) { } |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
if ((bool)Selet_Machines(Machines, "CALL", "ID='" + i + "'")) |
|
|
|
|
|
{ |
|
|
|
|
|
stringQueue.Enqueue(new QueueString |
|
|
|
|
|
{ |
|
|
|
|
|
ID = i, |
|
|
|
|
|
DAT = "SC827" + Selet_Machines(Machines, "SYSKEY", "ID='" + i + "'") |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
void Tick_Event_60S() |
|
|
void Tick_Event_60S() |
|
|
{ |
|
|
{ |
|
|