1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace WpfTest1.Toolkits
- {
- //各种系统需要使用的常值
- public class Constants
- {
- //编译版本
- public static string version = "0.1.0.0";
- //编译日期
- public static string compileDate = "20200301";
- //数据库物理地址
- public static string dbPath = System.Environment.CurrentDirectory + "\\Junde.db3";
- //数据库连接直接实用的连接字符串
- public static string Connstr = @"Data Source=" + System.Environment.CurrentDirectory + "\\Junde.db3";
- //默认的公钥位置
- public static string pubkeyPath = System.Environment.CurrentDirectory + "\\pubkey.xml";
- //报告存放目录
- public static string reportPath = System.Environment.CurrentDirectory + "\\reports";
- //报告生成所需要临时存放素材的目录
- public static string tmpPath = System.Environment.CurrentDirectory + "\\tmp";
- //各种静态素材
- public static string imgPath = System.Environment.CurrentDirectory + "\\image";
- //报告页眉的医院图标
- public static string reportHeadPicPath = Constants.imgPath + "\\reportHeadPic.png";
- public static readonly Dictionary<string, int> keyboardToDigit = new Dictionary<string, int>
- {
- { "D1", 1 },
- { "D2", 2 },
- { "D3", 3 },
- { "D4", 4 },
- { "D5", 5 },
- { "D6", 6 },
- { "D7", 7 },
- { "D8", 8 },
- { "D9", 9 },
- };
- //厂家管理员的ID
- public static string adminUsername = "superman";
- }
- }
|