Constants.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WpfTest1.Toolkits
  7. {
  8. //各种系统需要使用的常值
  9. public class Constants
  10. {
  11. //编译版本
  12. public static string version = "0.1.0.0";
  13. //编译日期
  14. public static string compileDate = "20200301";
  15. //数据库物理地址
  16. public static string dbPath = System.Environment.CurrentDirectory + "\\Junde.db3";
  17. //数据库连接直接实用的连接字符串
  18. public static string Connstr = @"Data Source=" + System.Environment.CurrentDirectory + "\\Junde.db3";
  19. //默认的公钥位置
  20. public static string pubkeyPath = System.Environment.CurrentDirectory + "\\pubkey.xml";
  21. //报告存放目录
  22. public static string reportPath = System.Environment.CurrentDirectory + "\\reports";
  23. //报告生成所需要临时存放素材的目录
  24. public static string tmpPath = System.Environment.CurrentDirectory + "\\tmp";
  25. //各种静态素材
  26. public static string imgPath = System.Environment.CurrentDirectory + "\\image";
  27. //报告页眉的医院图标
  28. public static string reportHeadPicPath = Constants.imgPath + "\\reportHeadPic.png";
  29. public static readonly Dictionary<string, int> keyboardToDigit = new Dictionary<string, int>
  30. {
  31. { "D1", 1 },
  32. { "D2", 2 },
  33. { "D3", 3 },
  34. { "D4", 4 },
  35. { "D5", 5 },
  36. { "D6", 6 },
  37. { "D7", 7 },
  38. { "D8", 8 },
  39. { "D9", 9 },
  40. };
  41. //厂家管理员的ID
  42. public static string adminUsername = "superman";
  43. }
  44. }