Beispiel #1
0
 /// <summary>
 /// 浏览器初始化
 /// </summary>
 private void WebInit()
 {
     try
     {
         this.fileOpenManage = new FileOpenManage(SpaceCodeEnterEntity.WebLoginUserName, SpaceCodeEnterEntity.WebLoginPassword, SpaceCodeEnterEntity.LocalTempRoot, SpaceCodeEnterEntity.LoginUserName, SpaceCodeEnterEntity.UserDomain, false);
         //生成凭据通过智存空间验证
         this.WebCManage = new WebCredentialManage(this.webBrowser, SpaceCodeEnterEntity.WebLoginUserName, SpaceCodeEnterEntity.WebLoginPassword);
         //导航到个人空间
         this.WebCManage.Navicate(SpaceCodeEnterEntity.SpaceWebSiteUri);
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
Beispiel #2
0
        /// <summary>
        /// 构建会议纪要
        /// </summary>
        public void BuildMeetSummary()
        {
            try
            {
                //获取打开文件管理
                FileOpenManage fileOpenManage = TreeCodeEnterEntity.fileOpenManage;

                //通过浏览器的方式打开
                TreeCodeEnterEntity.webView = fileOpenManage.OpenFileByBrowser(TreeCodeEnterEntity.FileRoot + "/" + TreeCodeEnterEntity.ConferenceCommentHtmlTemp);

                TimerJob.StartRun(new Action(() =>
                {
                    if (TreeCodeEnterEntity.webView.WebBrowser.Document != null)
                    {
                        //获取当前的会议信息
                        ConferenceModel.ConferenceInfoWebService.ConferenceInformationEntityPC ConferenceInformationEntityPC = TreeCodeEnterEntity.TempConferenceInformationEntity;
                        //获取会议名称
                        System.Windows.Forms.HtmlElement htmlElement = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetName");
                        htmlElement.InnerHtml = ConferenceInformationEntityPC.MeetingName;
                        //获取开始时间
                        System.Windows.Forms.HtmlElement htmlElement2 = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetTime1");
                        htmlElement2.InnerHtml = ConferenceInformationEntityPC.BeginTime.ToString("yyyy-MM-dd hh:mm");
                        //获取结束时间
                        System.Windows.Forms.HtmlElement htmlElement3 = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetTime2");
                        htmlElement3.InnerHtml = ConferenceInformationEntityPC.EndTime.ToString("yyyy-MM-dd hh:mm");
                        //获取会议室名称
                        System.Windows.Forms.HtmlElement htmlElement4 = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetPlace");
                        htmlElement4.InnerHtml = ConferenceInformationEntityPC.RoomName;
                        //获取主持人
                        System.Windows.Forms.HtmlElement htmlElement5 = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetChair");
                        htmlElement5.InnerHtml = ConferenceInformationEntityPC.ApplyPeople;

                        StringBuilder builder = new StringBuilder();
                        foreach (var item in ConferenceInformationEntityPC.JoinPeopleName)
                        {
                            builder.Append(item + "   ");
                        }
                        //获取所有参会人
                        System.Windows.Forms.HtmlElement htmlElement6 = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("txtMeetPartical");
                        htmlElement6.InnerHtml = builder.ToString();

                        System.Windows.Forms.HtmlElement tdPanel = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("tdPanel");

                        var p1 = tdPanel.InnerHtml;

                        StringBuilder builder2 = new StringBuilder();
                        builder2.Append(p1);
                        string pParent = @"<p class=MsoNormal align=center style='text-align:center'><b><span lang=EN-US
  style='font-size:15pt'>" + ConferenceTreeView.conferenceTreeView.ConferenceTreeItem.ACA_Tittle + "</span></span></b></p>";
                        builder2.Append(pParent);

                        this.SetNextLineAboutMeetSummary(ConferenceTreeView.conferenceTreeView.ConferenceTreeItem, "1", ref builder2);

                        tdPanel.InnerHtml = builder2.ToString();
                    }
                }), 1000);
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(this.GetType(), ex);
            }
        }