AutoBackupToolConfig.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WanYuKeFuData.Model
  6. {
  7. public class AutoBackupToolConfig
  8. {
  9. public AutoBackupToolConfig()
  10. {
  11. }
  12. int bakHH = 21;
  13. /// <summary>
  14. /// 备份开始 小时数
  15. /// </summary>
  16. public int BakHH
  17. {
  18. get { return bakHH; }
  19. set { bakHH = value; }
  20. }
  21. int bakMM = 0;
  22. /// <summary>
  23. /// 备份开始 分钟数
  24. /// </summary>
  25. public int BakMM
  26. {
  27. get { return bakMM; }
  28. set { bakMM = value; }
  29. }
  30. #region 本机数据库配置
  31. string _BenJi_DataBaseServer = "";
  32. /// <summary>
  33. /// 本机数据库服务器地址(服务器名)
  34. /// </summary>
  35. public string BenJi_DataBaseServer
  36. {
  37. get { return _BenJi_DataBaseServer; }
  38. set { _BenJi_DataBaseServer = value; }
  39. }
  40. int _BenJi_DataBasePort = 0;
  41. /// <summary>
  42. /// 本机数据库端口
  43. /// </summary>
  44. public int BenJi_DataBasePort
  45. {
  46. get { return _BenJi_DataBasePort; }
  47. set { _BenJi_DataBasePort = value; }
  48. }
  49. string _BenJi_DataBaseUser = "";
  50. /// <summary>
  51. /// 本机数据库用户
  52. /// </summary>
  53. public string BenJi_DataBaseUser
  54. {
  55. get { return _BenJi_DataBaseUser; }
  56. set { _BenJi_DataBaseUser = value; }
  57. }
  58. string _BenJi_DataBasePass = "";
  59. /// <summary>
  60. /// 本机数据库密码
  61. /// </summary>
  62. public string BenJi_DataBasePass
  63. {
  64. get { return _BenJi_DataBasePass; }
  65. set { _BenJi_DataBasePass = value; }
  66. }
  67. #endregion
  68. string _DatabaseBackupPath = "";
  69. /// <summary>
  70. /// 数据库备份目录路径
  71. /// </summary>
  72. public string DatabaseBackupPath
  73. {
  74. get { return _DatabaseBackupPath; }
  75. set { _DatabaseBackupPath = value; }
  76. }
  77. string _UploadFileDirPath = "";
  78. /// <summary>
  79. /// 上传文件存放目录
  80. /// </summary>
  81. public string UploadFileDirPath
  82. {
  83. get { return _UploadFileDirPath; }
  84. set { _UploadFileDirPath = value; }
  85. }
  86. string _BakUploadFileDirPath = "";
  87. /// <summary>
  88. /// 上传文件备份目录
  89. /// </summary>
  90. public string BakUploadFileDirPath
  91. {
  92. get { return _BakUploadFileDirPath; }
  93. set { _BakUploadFileDirPath = value; }
  94. }
  95. bool _BakDataBase = true;
  96. /// <summary>
  97. /// 是否备份数据库
  98. /// </summary>
  99. public bool BakDataBase
  100. {
  101. get { return _BakDataBase; }
  102. set { _BakDataBase = value; }
  103. }
  104. bool _BakFiles = true;
  105. /// <summary>
  106. /// 是否备份文件
  107. /// </summary>
  108. public bool BakFiles
  109. {
  110. get { return _BakFiles; }
  111. set { _BakFiles = value; }
  112. }
  113. }
  114. }