// Token: 0x06003125 RID: 12581 RVA: 0x001217A0 File Offset: 0x0011F9A0
        public static void RenderReminderTimeDropDownList(UserContext userContext, TextWriter output, Item item, bool isEnabled)
        {
            ExDateTime today = ExDateTime.Today;

            if (item == null)
            {
                TimeDropDownList.RenderTimePicker(output, today.AddMinutes((double)userContext.WorkingHours.WorkDayStartTimeInWorkingHoursTimeZone), "divRemindTime", isEnabled);
                return;
            }
            object obj = item.TryGetProperty(ItemSchema.ReminderDueBy);

            if (obj is ExDateTime)
            {
                TimeDropDownList.RenderTimePicker(output, (ExDateTime)obj, "divRemindTime", isEnabled);
                return;
            }
            TimeDropDownList.RenderTimePicker(output, today.AddMinutes((double)userContext.WorkingHours.WorkDayStartTimeInWorkingHoursTimeZone), "divRemindTime", isEnabled);
        }
Example #2
0
 protected void RenderEndTimeDropdownList()
 {
     TimeDropDownList.RenderTimePicker(base.SanitizingResponse, this.endTime, "divETime");
 }
Example #3
0
 protected void RenderStartTimeDropdownList()
 {
     TimeDropDownList.RenderTimePicker(base.SanitizingResponse, this.startTime, "divSTime");
 }
Example #4
0
 // Token: 0x06002BB3 RID: 11187 RVA: 0x000F45A5 File Offset: 0x000F27A5
 protected void RenderEndTime()
 {
     TimeDropDownList.RenderTimePicker(base.SanitizingResponse, DateTimeUtilities.GetLocalTime(), "divETR");
 }
 protected void RenderEndTimeDropdownList()
 {
     TimeDropDownList.RenderTimePicker(base.SanitizingResponse, this.endTime, "divETime", true, false, this.beginTimeofDay.IncrementDays(1));
 }
Example #6
0
        public void GetFlagDialog()
        {
            ExDateTime       date                      = DateTimeUtilities.GetLocalTime().Date;
            ExDateTime       exDateTime                = ExDateTime.MinValue;
            ExDateTime       exDateTime2               = ExDateTime.MinValue;
            ExDateTime       exDateTime3               = ExDateTime.MinValue;
            bool             flag                      = false;
            FlagStatus       flagStatus                = FlagStatus.NotFlagged;
            bool             flag2                     = true;
            OwaStoreObjectId owaStoreObjectId          = base.GetParameter("fldrId") as OwaStoreObjectId;
            OwaStoreObjectId latestFlaggedOrNormalItem = this.GetLatestFlaggedOrNormalItem();

            if (latestFlaggedOrNormalItem != null)
            {
                using (Item item = Utilities.GetItem <Item>(base.UserContext, latestFlaggedOrNormalItem, FlagEventHandler.prefetchProperties))
                {
                    flag2      = (!Utilities.IsPublic(item) && !(item is MeetingMessage));
                    flagStatus = FlagEventHandler.GetFlagStatus(item);
                    exDateTime = ItemUtility.GetProperty <ExDateTime>(item, TaskSchema.StartDate, ExDateTime.MinValue);
                    if (exDateTime.Year <= 1601)
                    {
                        exDateTime = ExDateTime.MinValue;
                    }
                    exDateTime2 = ItemUtility.GetProperty <ExDateTime>(item, TaskSchema.DueDate, ExDateTime.MinValue);
                    if (exDateTime2.Year <= 1601)
                    {
                        exDateTime2 = ExDateTime.MinValue;
                    }
                    flag = ItemUtility.GetProperty <bool>(item, ItemSchema.ReminderIsSet, false);
                    if (flag)
                    {
                        exDateTime3 = ItemUtility.GetProperty <ExDateTime>(item, ItemSchema.ReminderDueBy, ExDateTime.MinValue);
                        if (exDateTime3.Year <= 1601)
                        {
                            exDateTime3 = ExDateTime.MinValue;
                        }
                    }
                }
            }
            if (owaStoreObjectId != null)
            {
                flag2 = !owaStoreObjectId.IsPublic;
            }
            if (flagStatus == FlagStatus.NotFlagged)
            {
                if (exDateTime2 == ExDateTime.MinValue)
                {
                    exDateTime2 = DateTimeUtilities.GetLocalTime().Date;
                }
                if (exDateTime == ExDateTime.MinValue || exDateTime > exDateTime2)
                {
                    exDateTime = exDateTime2;
                }
            }
            if (exDateTime3 == ExDateTime.MinValue)
            {
                if (exDateTime == ExDateTime.MinValue || exDateTime == date)
                {
                    exDateTime3 = date;
                    int num = base.UserContext.WorkingHours.GetWorkDayEndTime(exDateTime3) - 60;
                    exDateTime3 = exDateTime3.AddMinutes((double)num);
                }
                else
                {
                    exDateTime3 = exDateTime;
                    exDateTime3 = exDateTime3.AddMinutes((double)base.UserContext.WorkingHours.GetWorkDayStartTime(exDateTime3));
                }
            }
            RenderingUtilities.RenderStringVariable(this.Writer, "sDT", LocalizedStrings.GetNonEncoded(-941242639));
            StringBuilder stringBuilder = new StringBuilder();
            StringWriter  stringWriter  = new StringWriter(stringBuilder);

            stringWriter.Write("<table class=flgDtRm><col><col class=pkr><tr><td nowrap>");
            stringWriter.Write(LocalizedStrings.GetHtmlEncoded(1089701318));
            stringWriter.Write("</td><td nowrap>");
            DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgSD", exDateTime, date, DatePicker.Features.TodayButton | DatePicker.Features.NoneButton);
            stringWriter.Write("</td></tr>");
            stringWriter.Write("<tr><td>");
            stringWriter.Write(LocalizedStrings.GetHtmlEncoded(1012104992));
            stringWriter.Write("</td><td>");
            DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgDD", exDateTime2, date, DatePicker.Features.TodayButton | DatePicker.Features.NoneButton);
            stringWriter.Write("</td></tr>");
            if (flag2)
            {
                stringWriter.Write("<tr><td colspan=2 nowrap><input type=checkbox id=chkRM");
                if (flag)
                {
                    stringWriter.Write(" checked");
                }
                stringWriter.Write("><label for=chkRM> ");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-1024614879));
                stringWriter.Write("</label></td></tr>");
                stringWriter.Write("<tr><td nowrap class=rmd>");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-1966747526));
                stringWriter.Write("</td><td>");
                DatePickerDropDownCombo.RenderDatePicker(stringWriter, "tblFlgRD", exDateTime3);
                stringWriter.Write("</td></tr>");
                stringWriter.Write("<tr><td nowrap class=rmd>");
                stringWriter.Write(LocalizedStrings.GetHtmlEncoded(-837446999));
                stringWriter.Write("</td><td>");
                TimeDropDownList.RenderTimePicker(stringWriter, exDateTime3, "divFlgRT");
                stringWriter.Write("</td></tr>");
            }
            stringWriter.Write("</table>");
            stringWriter.Close();
            RenderingUtilities.RenderStringVariable(this.Writer, "sD", stringBuilder.ToString());
        }