1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using System;
- using System.Collections.Generic;
- namespace UAS_MES_NEW.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 DataOperate.DataHelper dh;
- }
- }
|