Constants.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.4.1.0";
  15. //编译日期
  16. public static string compileDate = "20200806";
  17. //加密狗验证所使用的pid
  18. public static string registerPid = "3DE6BA91";
  19. //加密狗验证所使用的uid
  20. public static string registerUid = "587E770BB077E785";
  21. //是否是生产环境
  22. public static bool productionEnvironment = true;
  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. public static string template_custom = System.Environment.CurrentDirectory + "\\custom_template";
  34. public static string template_custom_element = template_custom + "\\elements";
  35. //报告页眉的医院图标
  36. public static string reportHeadPicPath = Constants.imgPath + "\\reportHeadPic.png";
  37. public static readonly Dictionary<string, int> keyboardToDigit = new Dictionary<string, int>
  38. {
  39. { "D1", 1 },
  40. { "D2", 2 },
  41. { "D3", 3 },
  42. { "D4", 4 },
  43. { "D5", 5 },
  44. { "D6", 6 },
  45. { "D7", 7 },
  46. { "D8", 8 },
  47. { "D9", 9 },
  48. { "D0", 10 },
  49. };
  50. //厂家管理员的ID
  51. public static string adminUsername = "superman";
  52. }
  53. }