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"])); }
public string getHTMLFormattedWebinarPresenterContact(string emailType, int webinarID) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "PresenterContact.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); //WeeklyReports objRpt = new WeeklyReports(); List<WebinarTheme> objWBTheme = new List<WebinarTheme>(); List<WebinarEmailBE> objWBE = objEmailDA.GetWebinarEmailDefault(1, "Presenter Contact"); objWBTheme = objWebinarDA.getWebinarTheme(webinarID); strTpl = objRptUtil.getCSSDefns(objWBTheme[0].ThemeLayoutID, strTpl); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); } return strTpl; }
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; }