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.

88 lines
1.9KB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace CnasSynchrousModel
  6. {
  7. /// <summary>
  8. /// 数据源类型
  9. /// </summary>
  10. public enum DataSourceType
  11. {
  12. None,
  13. Access,
  14. Excel,
  15. SQLLite,
  16. SQL,
  17. MySQL,
  18. Oracle,
  19. FoxPro,
  20. TXT,
  21. PostgreSQL,
  22. Kingbase
  23. }
  24. public enum PathType
  25. {
  26. Local, //本地
  27. Remote //远程
  28. }
  29. /// <summary>
  30. /// 仪表数据源类
  31. /// </summary>
  32. public class InstrumentDataSourceInfo
  33. {
  34. /// <summary>
  35. /// 仪表数据源类型
  36. /// </summary>
  37. public DataSourceType InstrumentDataSourceType { get; set; }
  38. /// <summary>
  39. /// 用户名
  40. /// </summary>
  41. public string UserId { get; set; }
  42. /// <summary>
  43. /// 用户密码
  44. /// </summary>
  45. public string UserPwd { get; set; }
  46. /// <summary>
  47. /// 数据源路径(只有数据源是本地文件时不为空)
  48. /// </summary>
  49. public string Path { get; set; }
  50. /// <summary>
  51. /// 服务器
  52. /// </summary>
  53. public string Host { get; set; }
  54. /// <summary>
  55. /// 数据库名称
  56. /// </summary>
  57. public string ServerName { get; set; }
  58. /// <summary>
  59. /// 数据库端口
  60. /// </summary>
  61. public string Port { get; set; }
  62. /// <summary>
  63. /// 数据源来自本地还是其他电脑
  64. /// </summary>
  65. public PathType DsPathType { get; set; }
  66. /// <summary>
  67. /// 远程电脑的用户名
  68. /// </summary>
  69. public string RemoteUser { get; set; }
  70. /// <summary>
  71. /// 远程电脑的密码
  72. /// </summary>
  73. public string RemotePwd { get; set; }
  74. }
  75. }