123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using System;
- using System.Collections.Generic;
- namespace FileWatcher
- {
- 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;
- public static string IP;
- /// <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 DataHelper dh;
- public static Boolean OpenByNet = false;
- }
- }
|