12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Collections.Generic;
- namespace UAS_MES.Entity
- {
- class SystemInf
- {
- /// <summary>
- /// 连接字符串,用户登录的时候选择了数据库之后会使用该字符串作为连接字符串
- /// </summary>
- public static string ConnectionString;
- /// <summary>
- /// 用户登录的时间
- /// </summary>
- public static string LoginTime;
- /// <summary>
- /// 当前的连接数据库
- /// </summary>
- public static string CurrentDB;
- /// <summary>
- /// 配置文件默认的数据库
- /// </summary>
- public static string DefaultDB;
- /// <summary>
- /// 屏幕的宽度
- /// </summary>
- public static int ScreenWidth;
- /// <summary>
- /// 屏幕的高度
- /// </summary>
- public static int ScreenHeight;
- /// <summary>
- /// 当前岗位资源对应的Caller
- /// </summary>
- public static Dictionary<string, Dictionary<string, bool>> Caller = new Dictionary<string, Dictionary<string, bool>>();
- /// <summary>
- /// 打开的串口的名称
- /// </summary>
- public static List<string> OpenPort=new List<string>();
- /// <summary>
- /// 检测音频是否可用
- /// </summary>
- public static bool CheckAudioEnable=true;
- /// <summary>
- /// 导航宽度
- /// </summary>
- public static int NavWidth = 0;
- /// <summary>
- /// HeadBar的高度
- /// </summary>
- public static int HeadBarHeight = 0;
- /// <summary>
- /// 当前程序进程ID
- /// </summary>
- public static int ProcessesID;
- /// <summary>
- /// 是否允许打印程序
- /// </summary>
- public static bool EnablePrint;
- /// <summary>
- /// 缓存数据的文件夹
- /// </summary>
- public static string CacheFolder= Environment.GetEnvironmentVariable("windir").Substring(0, 1)+@":\UAS_MES\CacheFile\";
- /// <summary>
- /// 日志文件的缓存路径
- /// </summary>
- public static string LogFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\Log\";
- /// <summary>
- /// 缓存的XML文件的路径和名称
- /// </summary>
- public static string CacheFilePath= Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\CacheFile\CacheInfo.xml";
- public static bool UpperCollection = true;
- public static bool GetRelation = false;
- public static DataOperate.DataHelper dh;
- }
- }
|