|
@@ -870,5 +870,19 @@ namespace MOKA_Factory_Tools
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ public static bool AddReportOnlineData(SQLiteConnection connection, string url, string order, string content)
|
|
|
+ {
|
|
|
+ if (connection == null)
|
|
|
+ return false;
|
|
|
+
|
|
|
+ SQLiteCommand cmd = new SQLiteCommand();
|
|
|
+ cmd.Connection = connection;
|
|
|
+ cmd.CommandText = string.Format("insert into ReportData(order,url,content) values('{0}','{1}','{2}')", order, url, content);
|
|
|
+ int result = cmd.ExecuteNonQuery();
|
|
|
+ cmd.Dispose();
|
|
|
+
|
|
|
+ return result > 0 ? true : false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|