예제 #1
0
        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));
        }
예제 #2
0
 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>&nbsp;<span class='content'><SUBJECT></span>&nbsp;";
     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";
 }
예제 #3
0
 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>&nbsp;<span class='content'><SUBJECT></span>&nbsp;";
     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";
 }
예제 #4
0
        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);
        }