播报信息页面逻辑
This commit is contained in:
commit
9bcffdc6df
10 files changed
+108
-49
No files matched your search
@@ -71,12 +71,12 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
private SQLiteHelper SQLiteHelpers = null; //定义数据库
|
||||
private readonly string DBAddress = Environment.CurrentDirectory + "\\DataBase\\SCCM.db"; //数据库路径
|
||||
public static DataTable Machines = new DataTable(); //设备表缓存
|
||||
public static DataTable InfData = new DataTable();
|
||||
// public static DataRow MachinesROW;
|
||||
public static DataTable USER_data = new DataTable();
|
||||
public static UserControls.info[] inf = new UserControls.info[999]; //定义总览信息卡
|
||||
public static int ERR_c = 0;//错误计数器
|
||||
public static bool[] USER_Capacity { set; get; } = new bool[99];
|
||||
// private SpeechSynthesizer synth = new SpeechSynthesizer();//语音
|
||||
|
||||
public MainWindowViewModel()
|
||||
{
|
||||
@@ -90,10 +90,6 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
SN_ID = Configini.IniReadvalue("SN", "SN2");
|
||||
SN_KEY = Configini.IniReadvalue("SN", "SN1");
|
||||
DyelotsDispenser = Convert.ToBoolean(Configini.IniReadvalue("SYS", "DyelotsDispenser"));
|
||||
|
||||
// synth.Rate = int.Parse( Configini.IniReadvalue("VOICE", "V1"));
|
||||
// synth.Volume = int.Parse( Configini.IniReadvalue("VOICE", "V2"));
|
||||
|
||||
}
|
||||
catch (Exception ex) { LogGing.ERRDATA(ex); }
|
||||
|
||||
@@ -103,13 +99,17 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
|
||||
USER_data = SQLiteHelpers.ExecuteDataSet("select * from USER order by Name desc", null).Tables[0];
|
||||
SQLiteHelpers.Close();
|
||||
|
||||
// MachinesROW = Machines.NewRow();
|
||||
|
||||
USERCapacity(App.USER_Purview);//App.USER_Purview);
|
||||
CountDown();
|
||||
TcpClientNEW();
|
||||
SQL_LINK();
|
||||
|
||||
|
||||
/**添加提示信息栏**/
|
||||
InfData.Columns.Add("Machine", Type.GetType("System.String"));
|
||||
InfData.Columns.Add("Information", Type.GetType("System.String"));
|
||||
InfData.Columns.Add("Code", Type.GetType("System.String"));
|
||||
InfData.Columns.Add("ID", Type.GetType("System.Int32"));
|
||||
|
||||
}
|
||||
public static void USERCapacity(string user) //权限
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user