Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
7e03f4805b
4 files changed
+88
-17
No files matched your search
@@ -450,6 +450,78 @@ namespace DyeingComputer.UserClass
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
}//缓存表
|
||||
else if (SYSAPI == "SC854")
|
||||
{
|
||||
if (SYSKEY == MainWindowViewModel.SYSKEY)
|
||||
{
|
||||
try
|
||||
{
|
||||
client.SendAsync("SC854" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_ParameterSet.ToJsonString());//缓存信息
|
||||
}
|
||||
catch { client.SendAsync("SC954"); }
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
}//程序设置表
|
||||
else if (SYSAPI == "SC855")
|
||||
{
|
||||
if (SYSKEY == MainWindowViewModel.SYSKEY)
|
||||
{
|
||||
try
|
||||
{
|
||||
client.SendAsync("SC855" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_SysSet.ToJsonString());//缓存信息
|
||||
}
|
||||
catch { client.SendAsync("SC955"); }
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
}//系统设置表
|
||||
else if (SYSAPI == "SC861")
|
||||
{
|
||||
if (SYSKEY == MainWindowViewModel.SYSKEY)
|
||||
{
|
||||
try
|
||||
{
|
||||
Dictionary<string, object> dat_861;
|
||||
dat_861 = SerializeConvert.JsonDeserializeFromString<Dictionary<string, object>>(SYSDAT);
|
||||
|
||||
Dictionary<string, object> datagrid_v = new Dictionary<string, object>();//缓存函数
|
||||
datagrid_v.Add("Value", dat_861.GetValue("Value"));
|
||||
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
SQLiteHelpers.Update("Parameters", datagrid_v, "ParameterID ='" + dat_861.GetValue("ID") + "'", null);//更新
|
||||
MainWindowViewModel.dt_ParameterSet = SQLiteHelpers.ExecuteDataSet("select * from Parameters order by ParameterID asc", null).Tables[0];
|
||||
SQLiteHelpers.Close();//关闭数据库
|
||||
|
||||
client.SendAsync("SC854" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_ParameterSet.ToJsonString());//缓存信息
|
||||
}
|
||||
catch { client.SendAsync("SC961"); }
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
}//修改软件设置
|
||||
else if (SYSAPI == "SC862")
|
||||
{
|
||||
if (SYSKEY == MainWindowViewModel.SYSKEY)
|
||||
{
|
||||
try
|
||||
{
|
||||
Dictionary<string, object> dat_862;
|
||||
dat_862 = SerializeConvert.JsonDeserializeFromString<Dictionary<string, object>>(SYSDAT);
|
||||
|
||||
Dictionary<string, object> datagrid_v = new Dictionary<string, object>();//缓存函数
|
||||
datagrid_v.Add("Value", dat_862.GetValue("Value"));
|
||||
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
SQLiteHelpers.Update("System", datagrid_v, "ParameterID ='" + dat_862.GetValue("ID") + "'", null);//更新
|
||||
MainWindowViewModel.dt_SysSet = SQLiteHelpers.ExecuteDataSet("select * from System order by ParameterID asc", null).Tables[0];
|
||||
SQLiteHelpers.Close();//关闭数据库
|
||||
|
||||
client.SendAsync("SC855" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_SysSet.ToJsonString());//缓存信息
|
||||
}
|
||||
catch { client.SendAsync("SC962"); }
|
||||
}
|
||||
else { client.SendAsync("SC999"); }
|
||||
}//修改系统
|
||||
|
||||
return EasyTask.CompletedTask;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user