CNAS取数仪器端升级
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 line
1.1KB

  1. using CnasSynchronusIDAL;
  2. using CnasSynchrousModel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. namespace CnasSynchronusDAL
  9. {
  10. public class FoxProDBService : IFoxProService
  11. {
  12. public Dictionary<string, DataTable> GetInstrumentData(FoxProOpenParams t)
  13. {
  14. return FoxProDAL.ReadFoxProTables(t);
  15. }
  16. public DataTable GetInstrumentDataByDate(FoxProOpenParams t, ConditionParams u)
  17. {
  18. return FoxProDAL.ReadFoxProTablesByDate(t,u);
  19. }
  20. public DataTable GetInstrumentDataByTableName(FoxProOpenParams t, ConditionParams u)
  21. {
  22. return FoxProDAL.ReadFoxProTablesByTableName(
  23. t.StrPath,
  24. t.StrUser,
  25. t.StrPwd,
  26. t.autosql.FoxProViewName,
  27. t.autosql.FoxProViewSql,
  28. u.TableName
  29. );
  30. }
  31. public DataTable GetInstrumentDataStruct(FoxProOpenParams t, ConditionParams u)
  32. {
  33. return FoxProDAL.ReadFoxProTableStruct(t, u);
  34. }
  35. }
  36. }