Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         ReportUtils objRptUtil = new ReportUtils();
         ltrStyle.Text = objRptUtil.getCSSDefns(1);
         WeeklyReports objRpt = new WeeklyReports();
         ltrContent.Text = objRpt.userWebinarReport(Convert.ToInt32(Session["UserID"]));
         ltrHeader.Text = objRptUtil.getEmailRptHeader();
         ltrFooter.Text = objRptUtil.getEmailRptFooter();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     //TemplateMgmt objTemplateMgmt = new TemplateMgmt();
     //string tpl = objTemplateMgmt.GetWeeklyStatusReport(Constant.DocTemplate + "weeklyStatusReportEmail.tpl");
     //if (tpl != "")
     //{
     //    ReportDA objReportDA = new ReportDA();
     //    List<DailyStatusReportBO> objRpt = objReportDA.getDailyStatusReport(Convert.ToInt32(Session["UserID"]));
     //    if (objRpt.Count > 0)
     //    {
     //        tpl = tpl.Replace("##FIRSTNAME##", objRpt[0].userFirstName);
     //        tpl = tpl.Replace("#WEBINARCOUNT", objRpt[0].NoOfWebinar.ToString() );
     //        tpl = tpl.Replace("##NEXTWEBINAR##", objRpt[0].NextWebinar);
     //        tpl = tpl.Replace("##DAYSAWAY##", objRpt[0].LastWebinarDaysAway.ToString());
     //    }
     //}
     ReportUtils objRptUtil = new ReportUtils();
     ltrStyle.Text = objRptUtil.getCSSDefns(0);
     WeeklyReports objRpt = new WeeklyReports();
     ltrContent.Text = objRpt.userWebinarReport(Convert.ToInt32(Session["UserID"]));
 }
Exemple #3
0
        public string getHTMLFormattedEmailContent(string contentWithTags, string emailType, int webinarID, string dateformat="")
        {
            TemplateMgmt objTpl = new TemplateMgmt();
            string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "generalEmail.tpl");
            if (strTpl != "")
            {
                ReportUtils objRptUtil = new ReportUtils();
                WeeklyReports objRpt = new WeeklyReports();
                List<WebinarEmailBE> objWBEmail = new List<WebinarEmailBE>();

                objWBEmail = objEmailDA.GetWebinarEmail(webinarID, emailType);
                strTpl = objRptUtil.getCSSDefns(objWBEmail[0].ThemeID, strTpl);
                //strTpl = strTpl.Replace("##STYLE##", objRptUtil.getCSSDefns(objWBEmail[0].ThemeID));
                strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader(webinarID));
                strTpl = strTpl.Replace("##CONTENT##", getFormedEmailContent(contentWithTags, emailType, webinarID, dateformat));
                if (objWBEmail[0].IsSystemReq)
                    strTpl = strTpl.Replace("##SYSREQ##", objRptUtil.getSystemRequirement(AudiUrl));
                else
                    strTpl = strTpl.Replace("##SYSREQ##", "");
                strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter());
            }
            return strTpl;
        }
        private void SetContent(int webinarID, string sType)
        {
            ReportUtils objRptUtil = new ReportUtils();
            WeeklyReports objRpt = new WeeklyReports();
            List<WebinarEmailBE> objWBEmail = new List<WebinarEmailBE>();

            objWBEmail = objEmailDA.GetWebinarEmail(webinarID, sType);
            if (objWBEmail.Count > 0)
            {
                //ltrContent.Text = getFormedEmailContent(objWBEmail[0].EmailContent, sType, webinarID);
                ltrSubject.Text = "Subject: " + objEmailing.getFormedEmailSubjectLine(objWBEmail[0].Subject, webinarID);
                ltrContent.Text = getContent(objWBEmail[0].EmailContent, sType, webinarID);
                //ltrStyle.Text = objRptUtil.getCSSDefns(objWBEmail[0].ThemeID);
                //if (objWBEmail[0].IsSystemReq)
                //    lblSys.Text = objRptUtil.getSystemRequirement();
            }
            //ltrHeader.Text = objRptUtil.getEmailRptHeader(webinarID);
            //ltrFooter.Text = objRptUtil.getEmailRptFooter();
        }