CNAS取数仪器端升级
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

43 líneas
1.2KB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using CnasSynchronusIDAL;
  8. using CnasSynchrousModel;
  9. namespace CnasSynchronusDAL
  10. {
  11. public class SqliteDBService : ISqliteService
  12. {
  13. public Dictionary<string, DataTable> GetInstrumentData(SqliteOpenParams t)
  14. {
  15. SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd);
  16. return SQLiteDAL.ReadSQLiteTables();
  17. }
  18. public DataTable GetInstrumentDataByDate(SqliteOpenParams t, ConditionParams u)
  19. {
  20. SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd);
  21. return SQLiteDAL.ReadSQLiteTablesByDate(
  22. t.autoSql.SqliteViewName,
  23. t.autoSql.SqliteViewSql,
  24. u.TableName,
  25. u.DateColumn,
  26. u.DateValue
  27. );
  28. }
  29. public DataTable GetInstrumentDataStruct(SqliteOpenParams t, ConditionParams u)
  30. {
  31. SQLiteDAL.SetConnectionString(t.StrPath, t.StrPwd);
  32. return SQLiteDAL.ReadSQLiteTableStruct(
  33. t.autoSql.SqliteViewName,
  34. t.autoSql.SqliteViewSql,
  35. u.TableName
  36. );
  37. }
  38. }
  39. }