public static DateTime GetScheduleEndDate(WebDayView dayView) { string srtEndDate = null; SmartDate endDate = null; if (dayView.VisibleDays == 1) { endDate = dayView.WebScheduleInfo.ActiveDayUtc; } else if (dayView.VisibleDays == 5) { endDate = dayView.WebScheduleInfo.ActiveDayUtc.AddDays(4); } srtEndDate = string.Format("{0} 11:59:59 PM", endDate.ToShortDateString()); return(Convert.ToDateTime(srtEndDate)); }
private void InitDayView(WebDayView view) { view.EnableViewState = false; view.WebScheduleInfo = SlxWebScheduleInfo; view.StyleSheetFileName = CalendarCss; view.ActivityWidthMinimum = 30; view.Height = Unit.Percentage(100); view.Width = Unit.Percentage(100); view.ScrollPosition = -1; view.AppointmentFormatString = "<REMINDER_IMAGE> <span class='content'><SUBJECT></span> "; view.AppointmentTooltipFormatString = "<START_DATE_TIME> - <END_DATE_TIME><NEW_LINE><DESCRIPTION>"; view.JavaScriptFileNameCommon = IgJsFileName; view.TimeSlotInterval = Options.DefaultInterval; view.ClientEvents.MouseDown = "GetDateOfEvent"; view.ClientEvents.MouseUp = "Calendar_MouseUp"; view.ClientEvents.NavigateNext = "View_Navigate"; view.ClientEvents.NavigatePrevious = "View_Navigate"; }
public static DateTime GetScheduleEndDate(WebDayView dayView) { string srtEndDate = null; SmartDate endDate = null; if (dayView.VisibleDays == 1) endDate = dayView.WebScheduleInfo.ActiveDayUtc; else if (dayView.VisibleDays == 5) { endDate = dayView.WebScheduleInfo.ActiveDayUtc.AddDays(4); } srtEndDate = string.Format("{0} 11:59:59 PM", endDate.ToShortDateString()); return Convert.ToDateTime(srtEndDate); }