Constants.cs 1.8 KB

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