Пример #1
0
        /// <summary>
        /// 配置信息加载2(包含本地信息)
        /// </summary>
        /// <param name="clientConfigEntity"></param>
        private void AppconfigSetting2(ConferenceModel.ConferenceInfoWebService.ClientConfigEntity clientConfigEntity)
        {
            try
            {
                //本地个人笔记名称
                Constant.LocalPersonalNoteFile = clientConfigEntity.LocalPersonalNoteFile;
                //ftp服务地址
                Constant.ConferenceFtpWebAddressFront = clientConfigEntity.ConferenceFtpWebAddressFront;
                //语音文件上传目录
                Constant.FtpServerceAudioName = clientConfigEntity.FtpServerceAudioName;
                //用户头像上传目录
                Constant.FtpServercePersonImgName = clientConfigEntity.FtpServercePersonImgName;
                //智慧树新节点默认名称
                Constant.TreeItemEmptyName = clientConfigEntity.TreeItemEmptyName;
                //录播文件存放地址
                Constant.RecordFolderName = clientConfigEntity.RecordFolderName;
                //录播文件扩展名
                Constant.RecordExtention = clientConfigEntity.RecordExtention;
                //上传的录制视频名称
                Constant.ReacordUploadFileName = clientConfigEntity.ReacordUploadFileName;
                //触摸键盘设置区域(64)
                Constant.KeyboardSettingFile_64 = clientConfigEntity.KeyboardSettingFile_64;
                //触摸键盘设置区域(32)
                Constant.KeyboardSettingFile_32 = clientConfigEntity.KeyboardSettingFile_32;
                //ftp用户
                Constant.FtpUserName = clientConfigEntity.FtpUserName;
                //ftp用户密码
                Constant.FtpPassword = clientConfigEntity.FtpPassword;

                #region 本地完成(不依赖服务获取的信息)

                string strHostName = Dns.GetHostName();
                Constant.LocalIp = System.Net.Dns.GetHostAddresses(strHostName).GetValue(1).ToString();

                //获取屏幕分辨率
                System.Windows.Forms.Screen screen = System.Windows.Forms.Screen.PrimaryScreen;
                //获取宽度
                Constant.FirstRunScreenWidth = screen.Bounds.Width;
                //获取高度
                Constant.FirstRunScreenHeight = screen.Bounds.Height;

                #endregion
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(this.GetType(), ex);
            }
            finally
            {
            }
        }
Пример #2
0
        /// <summary>
        /// 配置信息加载2
        /// </summary>
        public void AppconfigSetting(ConferenceModel.ConferenceInfoWebService.ClientConfigEntity clientConfigEntity)
        {
            try
            {
                //首用dns
                Constant.DNS1 = clientConfigEntity.DNS1;
                //备用dns
                Constant.DNS2 = clientConfigEntity.DNS2;
                //lync名称
                Constant.LyncName = clientConfigEntity.LyncName;
                //lync证书文件名称
                Constant.Certification = Environment.CurrentDirectory + "\\" + clientConfigEntity.Certification;
                //lync证书秘钥
                Constant.CertificationSerial = clientConfigEntity.CertificationSerial;
                //域名
                Constant.UserDomain = clientConfigEntity.UserDomain;
                //域名前名称  -----------
                Constant.UserDoaminPart1Name = clientConfigEntity.UserDoaminPart1Name;
                //lync服务1IP地址
                Constant.LyncIP1 = clientConfigEntity.LyncIP1;
                //lync服务2IP地址
                Constant.LyncIP2 = clientConfigEntity.LyncIP2;
                //Sharepoint服务IP地址
                Constant.SPSiteAddressFront = clientConfigEntity.SPSiteAddressFront;
                //智慧树文件保存名称
                Constant.TreeXmlFileName = clientConfigEntity.TreeXmlFileName;
                //研讨图片文件保存名称
                Constant.TreeJpgFileName = clientConfigEntity.TreeJpgFileName;
                //会议空间文件夹
                Constant.MeetingFolderName = clientConfigEntity.MeetingFolderName;
                //个人空间文件夹
                Constant.PesonalFolderName = clientConfigEntity.PesonalFolderName;
                //智存空间网站集
                Constant.SpaceWebSiteUri = clientConfigEntity.SpaceWebSiteUri;

                //分辨率宽度
                Constant.ScreenResulotionWidth = clientConfigEntity.ScreenResulotionWidth;
                //分辨率高度
                Constant.ScreenResulotionHeight = clientConfigEntity.ScreenResulotionHeight;
                //大屏幕名称
                //Constant.BigScreenName = clientConfigEntity.BigScreenName;
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(this.GetType(), ex);
            }
            finally
            {
            }
        }