diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 9069351..68e1b02 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -546,6 +546,15 @@ namespace DyeingComputer.Properties { } } + /// + /// 查找类似 Jump 的本地化字符串。 + /// + public static string Jump { + get { + return ResourceManager.GetString("Jump", resourceCulture); + } + } + /// /// 查找类似 Language 的本地化字符串。 /// diff --git a/Properties/Resources.en-US.resx b/Properties/Resources.en-US.resx index 9ed0f4e..d89421e 100644 --- a/Properties/Resources.en-US.resx +++ b/Properties/Resources.en-US.resx @@ -507,4 +507,7 @@ + + Jump + \ No newline at end of file diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 0a331d2..74de88f 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -507,4 +507,7 @@ CylinderBottom + + Jump + \ No newline at end of file diff --git a/Properties/Resources.zh-CN.resx b/Properties/Resources.zh-CN.resx index 321e450..8849d06 100644 --- a/Properties/Resources.zh-CN.resx +++ b/Properties/Resources.zh-CN.resx @@ -507,4 +507,7 @@ 缸底 + + 跳步 + \ No newline at end of file diff --git a/Properties/Resources.zh-TW.resx b/Properties/Resources.zh-TW.resx index 3bcc04a..cb72bda 100644 --- a/Properties/Resources.zh-TW.resx +++ b/Properties/Resources.zh-TW.resx @@ -507,4 +507,7 @@ + + + \ No newline at end of file diff --git a/UserClass/APILog.cs b/UserClass/APILog.cs index 4dc7826..398c71c 100644 --- a/UserClass/APILog.cs +++ b/UserClass/APILog.cs @@ -17,6 +17,7 @@ namespace DyeingComputer.UserClass { private static SQLiteHelper SQLiteHelpers = null; //定义数据库 private readonly static string DBAddress = Environment.CurrentDirectory + "\\DataBase\\800COMPUTER.db"; //数据库路径 + private readonly static string LOGAddress = Environment.CurrentDirectory + "\\DataBase\\LOG.db"; //数据库路径 public async static void DBlog(string Name ,string ID ,string Api,string MESSAGE) { @@ -36,7 +37,24 @@ namespace DyeingComputer.UserClass API_LOG.Clear(); }); } - + public async static void LOGlog(string WorkOrder, string TYPE, string Command, string MESSAGE) + { + await Task.Run(() => + { + Dictionary API_LOG = new Dictionary();//缓存函数 + API_LOG.Add("WorkOrder", WorkOrder); + API_LOG.Add("TYPE", TYPE); + API_LOG.Add("Command", Command); + API_LOG.Add("MESSAGE", MESSAGE); + API_LOG.Add("TIME", MainWindowViewModel.SYSTime); + + SQLiteHelpers = new SQLiteHelper(LOGAddress); //数据库连接路径 + SQLiteHelpers.Open(); //打开数据库 + SQLiteHelpers.InsertData("OperationLog", API_LOG);//行插入 + SQLiteHelpers.Close(); //关闭连接 + API_LOG.Clear(); + }); + } } } diff --git a/View/TechnologicalProcessView.xaml b/View/TechnologicalProcessView.xaml index 1283374..7680f08 100644 --- a/View/TechnologicalProcessView.xaml +++ b/View/TechnologicalProcessView.xaml @@ -194,6 +194,8 @@ Click="ProgramgroupView_del_Click" IsEnabled="{Binding UserButton}"/>