SystemInf.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. namespace UAS_PLCDataReader.Entity
  4. {
  5. class SystemInf
  6. {
  7. /// <summary>
  8. /// 当前岗位资源对应的Caller
  9. /// </summary>
  10. public static Dictionary<string, Dictionary<string, bool>> Caller = new Dictionary<string, Dictionary<string, bool>>();
  11. /// <summary>
  12. /// 打开的串口的名称
  13. /// </summary>
  14. public static List<string> OpenPort=new List<string>();
  15. /// <summary>
  16. /// 检测音频是否可用
  17. /// </summary>
  18. public static bool CheckAudioEnable=true;
  19. /// <summary>
  20. /// 导航宽度
  21. /// </summary>
  22. public static int NavWidth = 0;
  23. /// <summary>
  24. /// HeadBar的高度
  25. /// </summary>
  26. public static int HeadBarHeight = 0;
  27. /// <summary>
  28. /// 缓存数据的文件夹
  29. /// </summary>
  30. public static string CacheFolder= Environment.GetEnvironmentVariable("windir").Substring(0, 1)+@":\UAS_MES\CacheFile\";
  31. /// <summary>
  32. /// 日志文件的缓存路径
  33. /// </summary>
  34. public static string LogFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\Log\";
  35. /// <summary>
  36. /// 缓存的XML文件的路径和名称
  37. /// </summary>
  38. public static string CacheFilePath= Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\CacheFile\CacheInfo.xml";
  39. public static bool UpperCollection = true;
  40. public static DataOperate.DataHelper dh;
  41. public static string CheckedColumnName = "CHECKEDCOLUMN";
  42. }
  43. }