添加资源,修改机台设置页面,添加任务开始页面,修改网络连接错误
This commit is contained in:
commit
daaa2b5514
14 files changed
+295
-20
No files matched your search
@@ -94,7 +94,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
public static int ERR_c = 0;//错误计数器
|
||||
public bool UPort1, UPort2, UPort3;
|
||||
public static bool[] USER_Capacity { set; get; } = new bool[99];
|
||||
|
||||
|
||||
public MainWindowViewModel()
|
||||
{
|
||||
try
|
||||
@@ -108,19 +108,21 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
SN_KEY = Configini.IniReadvalue("SN", "SN1");
|
||||
DyelotsDispenser = Convert.ToBoolean(Configini.IniReadvalue("SYS", "DyelotsDispenser"));
|
||||
|
||||
SQLiteChartAdress = new SQLiteHelper(ChartAdress); //数据库连接路径
|
||||
SQLiteChartAdress.Open(); //打开数据库
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
Machines = SQLiteHelpers.ExecuteDataSet("select * from Machines Order by id", null).Tables[0]; //读取表写入缓存
|
||||
USER_data = SQLiteHelpers.ExecuteDataSet("select * from USER order by Name desc", null).Tables[0];
|
||||
Dyelot_CALL = SQLiteHelpers.ExecuteDataSet("select * from Dyelot", null).Tables[0].Clone();
|
||||
SQLiteChartAdress = new SQLiteHelper(ChartAdress); //数据库连接路径
|
||||
SQLiteChartAdress.Open(); //打开数据库
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
Machines = SQLiteHelpers.ExecuteDataSet("select * from Machines Order by id", null).Tables[0]; //读取表写入缓存
|
||||
USER_data = SQLiteHelpers.ExecuteDataSet("select * from USER order by Name desc", null).Tables[0];
|
||||
Dyelot_CALL = SQLiteHelpers.ExecuteDataSet("select * from Dyelot", null).Tables[0].Clone();
|
||||
|
||||
Whole_dat.Columns.Add("Machine", Type.GetType("System.String"));
|
||||
Whole_dat.Columns.Add("DateTime", Type.GetType("System.DateTime"));
|
||||
Whole_dat.Columns.Add("DAT", Type.GetType("System.Double"));
|
||||
}
|
||||
catch (Exception ex) { LogGing.ERRDATA(ex);
|
||||
Whole_dat.Columns.Add("DateTime", Type.GetType("System.DateTime"));
|
||||
Whole_dat.Columns.Add("DAT", Type.GetType("System.Double"));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogGing.ERRDATA(ex);
|
||||
}
|
||||
|
||||
USERCapacity(App.USER_Purview);//App.USER_Purview);
|
||||
|
||||
Reference in new issue
Block a user