Пример #1
0
        protected override void RenderExpandoData(TextWriter writer)
        {
            base.RenderExpandoData(writer);
            ISessionContext sessionContext = OwaContext.Current.SessionContext;

            writer.Write(" sTm=\"");
            writer.Write(DateTimeUtilities.GetJavascriptDate(this.selectedTime));
            writer.Write("\"");
            if (this.endTime != ExDateTime.MinValue)
            {
                writer.Write(" sEndTm=\"");
                writer.Write(DateTimeUtilities.GetJavascriptDate(this.endTime));
                writer.Write("\"");
            }
            writer.Write(" sStf=\"");
            Utilities.SanitizeHtmlEncode(sessionContext.TimeFormat, writer);
            writer.Write("\"");
            writer.Write(" sAmPmRx=\"");
            TimeDropDownList.RenderAmPmRegularExpression(writer);
            writer.Write("\"");
            writer.Write(" L_InvldTm=\"");
            writer.Write(SanitizedHtmlString.FromStringId(-863308736));
            writer.Write("\"");
            writer.Write(" L_Dec=\"");
            writer.Write(SanitizedHtmlString.FromStringId(-1032346272));
            writer.Write("\"");
            writer.Write(" L_AM=\"");
            writer.Write(Utilities.SanitizeHtmlEncode(Culture.AMDesignator));
            writer.Write("\"");
            writer.Write(" L_PM=\"");
            writer.Write(Utilities.SanitizeHtmlEncode(Culture.PMDesignator));
            writer.Write("\"");
        }
Пример #2
0
 public static void RenderTimePicker(TextWriter writer, ExDateTime selectedTime, string id, bool isEnabled, bool isItemEditable)
 {
     TimeDropDownList.RenderTimePicker(writer, selectedTime, id, isEnabled, isItemEditable, ExDateTime.MinValue);
 }
Пример #3
0
 public static void RenderTimePicker(TextWriter writer, ExDateTime selectedTime, string id, bool isEnabled)
 {
     TimeDropDownList.RenderTimePicker(writer, selectedTime, id, isEnabled, true);
 }