private void RenderCell(TextWriter writer, ExDateTime date, IList <PrintCalendarVisual> visuals, bool inThisMonth) { writer.Write("<td"); if (date.Equals(ExDateTime.Now.Date)) { writer.Write(" class=\"today\""); } writer.Write(">"); writer.Write("<div class=\"printVisualContainer\">"); if (!inThisMonth) { PrintCalendarVisual.RenderBackground(writer, "bgNotInThisMonth"); } writer.Write("<div class=\"monthlyViewDay\">"); writer.Write("<div class=\"monthlyViewDayName\">"); writer.Write(date.ToString((date.Day == 1) ? this.firstDayFormat : this.daysFormat, base.SessionContext.UserCulture)); writer.Write("</div>"); if (visuals != null) { foreach (PrintCalendarVisual printCalendarVisual in visuals) { printCalendarVisual.Render(writer); } } writer.Write("</div>"); writer.Write("</div></td>"); }
protected void RenderFreeBusy(TextWriter writer, bool fixHeight) { writer.Write("<div class=\"freeBusyContainer"); if (fixHeight) { writer.Write(" fixHeightFB"); } writer.Write("\">"); switch (this.BusyType) { case BusyTypeWrapper.Free: PrintCalendarVisual.RenderBackground(writer, "free"); break; case BusyTypeWrapper.Tentative: this.SessionContext.RenderThemeImage(writer, fixHeight ? ThemeFileId.PrintTentativeForAgenda : ThemeFileId.PrintTentative); break; case BusyTypeWrapper.Busy: PrintCalendarVisual.RenderBackground(writer, "busy"); break; case BusyTypeWrapper.OOF: PrintCalendarVisual.RenderBackground(writer, "oof"); break; } writer.Write("</div>"); }
// Token: 0x060024B1 RID: 9393 RVA: 0x000D4ABC File Offset: 0x000D2CBC public void RenderView(TextWriter writer) { if (writer == null) { throw new ArgumentNullException("writer"); } writer.Write("<table>"); writer.Write("<tr class=\"dayHeader\">"); writer.Write("<td class=\"timeStrip\"> </td>"); this.RenderDayHeader(writer); writer.Write("</tr>"); if (base.EventAreaRowCount > 0) { this.RenderEventArea(writer); } writer.Write("<tr><td><table class=\"dailyViewInnerTable\">"); for (int i = this.startTime; i < this.endTime; i++) { writer.Write("<tr><td>"); DateTime dateTime = new DateTime(2000, 1, 1, i, 0, 0); writer.Write(dateTime.ToString("t", base.SessionContext.UserCulture)); writer.Write("</td></tr>"); } writer.Write("</table></td>"); for (int j = 0; j < this.printDateRange.Length; j++) { ExDateTime date = this.printDateRange[j].Start.Date; WorkingHours.WorkingPeriod[] workingHoursOnDay = base.DataSource.WorkingHours.GetWorkingHoursOnDay(date); writer.Write("<td><div class=\"printVisualContainer\">"); writer.Write("<table class=\"dailyViewInnerTable\">"); for (int k = this.startTime; k < this.endTime; k++) { writer.Write("<tr><td><div class=\"printVisualContainer bgContainer\">"); ExDateTime t = new ExDateTime(date.TimeZone, date.Year, date.Month, date.Day, k, 30, 0); if ((workingHoursOnDay.Length > 0 && t >= workingHoursOnDay[0].Start && t <= workingHoursOnDay[0].End) || (workingHoursOnDay.Length == 2 && t >= workingHoursOnDay[1].Start && t <= workingHoursOnDay[1].End)) { PrintCalendarVisual.RenderBackground(writer, "bgWorkingHour"); } else { PrintCalendarVisual.RenderBackground(writer, "bgFreeHour"); } writer.Write("</div>"); if (base.SessionContext.BrowserType == BrowserType.IE) { writer.Write(" "); } writer.Write("</td></tr>"); } writer.Write("</table>"); for (int l = 0; l < base.ViewDays[j].Count; l++) { SchedulingAreaVisual schedulingAreaVisual = (SchedulingAreaVisual)base.ViewDays[j][l]; if (!base.IsItemRemoved(schedulingAreaVisual.DataIndex)) { new PrintSchedulingAreaVisual(base.SessionContext, schedulingAreaVisual, base.DataSource, this.startTime, this.endTime).Render(writer); } } writer.Write("</div>"); writer.Write("</td>"); } writer.Write("</tr></table>"); }
protected void RenderBackground(TextWriter writer) { PrintCalendarVisual.RenderBackground(writer, this.CssClass); }