终端一体化运控平台
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.
 
 
 

48 lines
1.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmart.Model
  8. {
  9. public class FileConfigModel
  10. {
  11. public static string ConstPath { get; set; } = string.Empty;
  12. /// <summary>
  13. /// 变量配置路径
  14. /// </summary>
  15. public static string VarConfigPath
  16. {
  17. get
  18. {
  19. string ReturnValue = null;
  20. if (Directory.Exists(ConstPath))
  21. {
  22. string path = $"{ConstPath}\\{ConfigDirName}\\JSON";
  23. Directory.CreateDirectory(path);
  24. ReturnValue = $"{ConstPath}\\{ConfigDirName}\\JSON\\CommunicationPar.json";
  25. }
  26. return ReturnValue;
  27. }
  28. }
  29. /// <summary>
  30. /// 变量管理器路径
  31. /// </summary>
  32. public static string VarManagerPath => $"{AppDomain.CurrentDomain.BaseDirectory}BPASmart.VariableManager.exe";
  33. /// <summary>
  34. /// 页面文件夹名称
  35. /// </summary>
  36. public const string PageDirName = "Layouts";
  37. /// <summary>
  38. /// 配置文件文件夹名称
  39. /// </summary>
  40. public const string ConfigDirName = "AccessFile";
  41. }
  42. }