public string userWebinarListingReport(int userID, int NoOfWeeks) { ReportUtils objRptUtil = new ReportUtils(); string styleOut = objRptUtil.getStyleDefinitions(Constant.DocRepoCSS + EnumUtils.stringValueOf(ReportStyles.Tabular600CSS)); if (styleOut != "") styleOut = "<style>" + styleOut + "</style>"; List<WebinarInfoListBO> objWList = objReportDA.getWebinarWeeklyList(userID,NoOfWeeks); StringBuilder sb = new StringBuilder("<div class=\"divTable\">"); sb.Append("<div class=\"headRow\">"); sb.Append("<div class=\"divCell1\" align=\"left\">Your Upcoming Webinars</div>"); sb.Append("<div class=\"divCell2\" align=\"center\">When</div>"); sb.Append("<div class=\"divCell3\" align=\"center\">Registrants</div></div>"); //sb.Append("<div class=\"divCell4\" align=\"center\">Actions</div></div>"); if (objWList.Count > 0) { for (int idx = 0; idx < objWList.Count; idx++) { if (idx % 2 == 0) sb.Append("<div class=\"divAltRow\">"); else sb.Append("<div class=\"divRow\">"); sb.Append("<div class=\"divCell1\" align=\"left\">" + objWList[idx].UpcomingWebinar + "</div>"); sb.Append("<div class=\"divCell2\" align=\"center\">" + objWList[idx].When + "</div>"); sb.Append("<div class=\"divCell3\" align=\"center\">" + objWList[idx].Registrants + "</div></div>"); //sb.Append("<div class=\"divCell4\" align=\"center\">Action</div></div>"); } } sb.Append("</div>"); return styleOut + sb.ToString(); }
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 getHTMLFormattedPasswdChangeNotify(string emailID, int languageID=1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "PasswdChange.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); UserDA objUDA = new UserDA(); List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("Password Changed",languageID); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); strTpl = strTpl.Replace("##PSWDCHANGEDATETIME##", objUBE[0].PasswordChangedOn); } return strTpl; }
public string getHTMLFormattedNewAccountNotify(string emailID, string passwd, string gendate, int languageID=1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "NewUserAccount.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); UserDA objUDA = new UserDA(); List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("New User Account", languageID); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); strTpl = strTpl.Replace("##ACCTDATETIME##", gendate); strTpl = strTpl.Replace("##USEREMAILADDRESS##", emailID); strTpl = strTpl.Replace("##PASSWORD##", passwd); } return strTpl; }
public string getHTMLFormattedGeneralEmail(string reqType,int languageID = 1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "generalEmail1.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault(reqType, languageID); 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; }
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(); }