Constants.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.1";
  15. //编译日期
  16. public static string compileDate = "20200311";
  17. //加密狗验证所使用的pid
  18. public static string registerPid = "3DE6BA91";
  19. //加密狗验证所使用的uid
  20. public static string registerUid = "587E770BB077E785";
  21. //是否是生产环境
  22. public static bool productionEnvironment = false;
  23. //数据库物理地址
  24. public static string dbPath = System.Environment.CurrentDirectory + "\\Junde.db3";
  25. //数据库连接直接实用的连接字符串
  26. public static string Connstr = @"Data Source=" + System.Environment.CurrentDirectory + "\\Junde.db3";
  27. //报告存放目录
  28. public static string reportPath = System.Environment.CurrentDirectory + "\\reports";
  29. //各种静态素材
  30. public static string imgPath = System.Environment.CurrentDirectory + "\\image";
  31. //各种模板材料
  32. public static string template = System.Environment.CurrentDirectory + "\\template";
  33. //报告页眉的医院图标
  34. public static string reportHeadPicPath = Constants.imgPath + "\\reportHeadPic.png";
  35. public static readonly Dictionary<string, int> keyboardToDigit = new Dictionary<string, int>
  36. {
  37. { "D1", 1 },
  38. { "D2", 2 },
  39. { "D3", 3 },
  40. { "D4", 4 },
  41. { "D5", 5 },
  42. { "D6", 6 },
  43. { "D7", 7 },
  44. { "D8", 8 },
  45. { "D9", 9 },
  46. { "D0", 10 },
  47. };
  48. //厂家管理员的ID
  49. public static string adminUsername = "superman";
  50. }
  51. }