SystemInf.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace UAS_DXFORM
  6. {
  7. class SystemInf
  8. {
  9. /// <summary>
  10. /// 连接字符串,用户登录的时候选择了数据库之后会使用该字符串作为连接字符串
  11. /// </summary>
  12. public static string ConnectionString;
  13. /// <summary>
  14. /// 用户登录的时间
  15. /// </summary>
  16. public static string LoginTime;
  17. /// <summary>
  18. /// 当前的连接数据库
  19. /// </summary>
  20. public static string CurrentDB;
  21. /// <summary>
  22. /// 配置文件默认的数据库
  23. /// </summary>
  24. public static string DefaultDB;
  25. /// <summary>
  26. /// 屏幕的宽度
  27. /// </summary>
  28. public static int ScreenWidth;
  29. /// <summary>
  30. /// 屏幕的高度
  31. /// </summary>
  32. public static int ScreenHeight;
  33. /// <summary>
  34. /// 当前岗位资源对应的Caller
  35. /// </summary>
  36. public static Dictionary<string, Dictionary<string, bool>> Caller = new Dictionary<string, Dictionary<string, bool>>();
  37. /// <summary>
  38. /// 打开的串口的名称
  39. /// </summary>
  40. public static List<string> OpenPort = new List<string>();
  41. /// <summary>
  42. /// 检测音频是否可用
  43. /// </summary>
  44. public static bool CheckAudioEnable = true;
  45. /// <summary>
  46. /// 导航宽度
  47. /// </summary>
  48. public static int NavWidth = 0;
  49. /// <summary>
  50. /// HeadBar的高度
  51. /// </summary>
  52. public static int HeadBarHeight = 0;
  53. /// <summary>
  54. /// 当前程序进程ID
  55. /// </summary>
  56. public static int ProcessesID;
  57. /// <summary>
  58. /// 是否允许打印程序
  59. /// </summary>
  60. public static bool EnablePrint;
  61. /// <summary>
  62. /// 日志文件的缓存路径
  63. /// </summary>
  64. public static string LogFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_DXMES\Log\";
  65. public static bool UpperCollection = true;
  66. }
  67. }