Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.LoadResources();

            if (!IsPostBack)
            {
                DateTime currDate = DateTime.UtcNow;
                DatePickerStartDate.SelectedDate        = currDate;
                DatePickerEndDate.SelectedDate          = currDate.AddHours(1);
                ComboBoxYearly_EveryMonth.SelectedValue = currDate.ToString("MMMM", new CultureInfo("en-US"));
                NumericTextBoxDayOfMonth.Text           = currDate.Day.ToString(CultureInfo.CurrentCulture);
                ComboBoxYearly_TheMonth.SelectedValue   = currDate.ToString("MMMM", new CultureInfo("en-US"));
                ComboBoxLocalEntityType.DataSource      = Micajah.Common.Bll.Providers.RecurringScheduleProvider.GetEntityTypes(this.OrganizationId, this.InstanceId);
                ComboBoxLocalEntityType.DataBind();
            }

            AutoGeneratedButtonsField.InsertButtonSeparator(ButtonsSeparator);
        }
Ejemplo n.º 2
0
        private TableFooterRow GetFooterRow(bool showRequiredTable)
        {
            TableFooterRow footerRow = new TableFooterRow();

            TableCell cell = new TableCell();

            cell.ColumnSpan = this.RepeatColumns * 2;

            Control container = ((showRequiredTable && (this.Theme != MasterPageTheme.Modern)) ? MagicForm.AddRequiredTable(cell) : cell);

            container.Controls.Add(this.UpdateButton);
            AutoGeneratedButtonsField.InsertButtonSeparator(container);
            if (this.ShowCloseButtonSeparate)
            {
                container.Controls.Add(this.CloseButton);
                AutoGeneratedButtonsField.InsertButtonSeparator(container);
            }
            container.Controls.Add(this.CancelLink);

            footerRow.Cells.Add(cell);

            return(footerRow);
        }