/// <summary>
        /// 系统信息配置
        /// </summary>
        public static void Config(int UserID, int DeptID)
        {
            UIPublicClass.PublicClass.UserID = UserID;
            UIPublicClass.PublicClass.DeptID = DeptID;

            UIPublicClass.PublicClass.CheckSystemManager = PermissionInfo.ExistSystemManager(UserID);

            UIPublicClass.PublicClass.OpenYj = UIPublicClass.YjOpenModel.OpenFile;

            //UIPublicClass.PublicClass.IsRegister = true;
            //UIPublicClass.PublicClass.RegisterDept = "安阳市社保局";
            //UIPublicClass.PublicClass.RegisterNum = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX";
            UIPublicClass.PublicClass.IsRegister = true;
            //UIPublicClass.PublicClass.IsSingleClent ? SingleCheckReg() : CheckReg();//设置注册
            UIPublicClass.PublicClass.UserName = getUserName(UserID);
            UIPublicClass.PublicClass.DeptName = getDeptName(DeptID);
            SystemPermission.PermissionInfo.getPermission(UserID, DeptID);//获取权限
            UIPublicClass.PublicClass.AddressMask = getAddressMask();

            //判断是否FTP原件存储格式
            string yjversion = System.Configuration.ConfigurationManager.AppSettings["yjDataVersion"];

            UIPublicClass.PublicClass.IsFTP = (yjversion == "FTP") ? true : false;
            UIPublicClass.PublicClass.IsWCF = (yjversion == "WCF") ? true : false;

            if (UIPublicClass.PublicClass.IsRegister)
            {
                if (UIPublicClass.PublicClass.IsFTP)
                {
                    UIPublicClass.UpLoadDownLoad.FtpServerIP   = getFtpYjIP();
                    FotoVision.PhotoUpLoadDownLoad.FtpServerIP = getFtpPhotoIP();
                    FotoVision.VideoUpLoadDownLoad.FtpServerIP = getFtpVideoIP();
                }

                if (UIPublicClass.PublicClass.IsWCF)
                {
                    UIPublicClass.UpLoadDownLoad.WcfServerIP = getWcfYjIP();
                }
            }
            else
            {
                //获取本地存储原件的路径
                UIPublicClass.UpLoadDownLoad.CustomDirectory = getCustomDirectory();
            }

            //版本信息
            UIPublicClass.PublicClass.VersionType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["versionType"]);


            UIPublicClass.PublicClass.WcfUri = System.Configuration.ConfigurationManager.AppSettings["WcfUri"];
            //原件数据库名称
            UIPublicClass.PublicClass.SqlPdfConnect = System.Configuration.ConfigurationManager.AppSettings["SqlPdfConnect"];
            //电子案卷数据库名称
            UIPublicClass.PublicClass.SqlYjConnect = System.Configuration.ConfigurationManager.AppSettings["SqlYjConnect"];
            //社保业务脊背顶部文本
            UIPublicClass.PublicClass.SbjbWords = System.Configuration.ConfigurationManager.AppSettings["SBJB"];
            //设置全宗数量的上限
            UIPublicClass.PublicClass.DeptMaxCount = 11;
            //是否允许从Excel中导入数据
            UIPublicClass.PublicClass.ImportFromExcel = System.Configuration.ConfigurationManager.AppSettings["ImportFromExcel"];
            //是否允许从Access中导入数据
            UIPublicClass.PublicClass.ImportFromAccess = System.Configuration.ConfigurationManager.AppSettings["ImportFromAccess"];
            //是否支持密集架
            UIPublicClass.PublicClass.MoveRock = System.Configuration.ConfigurationManager.AppSettings["MoveRock"];
            //是否支持显示最后录入信息
            UIPublicClass.PublicClass.LastInfo = System.Configuration.ConfigurationManager.AppSettings["LastInfo"];
            //文件级是否按页次进行录入
            string isInputForPageIndex = System.Configuration.ConfigurationManager.AppSettings["IsInputForPageIndex"];

            UIPublicClass.PublicClass.IsInputForPageIndex = (isInputForPageIndex == "True") ? true : false;
        }