Exemplo n.º 1
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lbItems, lblClickSnooze, cbSnooze
     };
     return edits;
 }
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lbItems, lblClickSnooze, cbSnooze
     };
     return(edits);
 }
    void PrepareChildControls()
    {
        AppointmentFormTemplateContainer container = (AppointmentFormTemplateContainer)Parent;
        ASPxScheduler control = container.Control;

        AppointmentRecurrenceForm1.EditorsInfo = new EditorsInfo(control, control.Styles.FormEditors, control.Images.FormEditors);

        ASPxEditBase[] edits = new ASPxEditBase[] {
            lblSubject, tbSubject,
            lblLocation, tbLocation,
            lblLabel, edtLabel,
            lblStartDate, edtStartDate,
            lblEndDate, edtEndDate,
            lblStatus, edtStatus,
            lblAllDay, chkAllDay,
            lblResource, edtResource,
            tbDescription
        };
        foreach (ASPxEditBase edit in edits)
        {
            edit.ParentSkinOwner = control;
            edit.ParentStyles    = control.Styles.FormEditors;
            edit.ParentImages    = control.Images.FormEditors;
        }

        ASPxButton[] buttons = new ASPxButton[] {
            btnOk, btnCancel, btnDelete
        };
        foreach (ASPxButton button in buttons)
        {
            button.ParentSkinOwner = control;
            button.ControlStyle.CopyFrom(control.Styles.FormButton);
        }
    }
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lblDate, edtDate,
         lblView, cbView
     };
     return(edits);
 }
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lblDate, edtDate,
         lblView, cbView
     };
     return edits;
 }
        public override void ApplyEditorSettings(ASPxEditBase baseEditor, GridViewDataColumn column)
        {
            base.ApplyEditorSettings(baseEditor, column);

            if (column.ReadOnly == false)
            {
                baseEditor.ReadOnly(false);
            }
        }
Exemplo n.º 7
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lblSubject, tbSubject,
         lblLocation, tbLocation, lblStartTime, edtStartDate,
         lblEndTime, edtEndDate, lblDescription, ddlPatient, ddlDoctor, ddlVisit
     };
     return(edits);
 }
Exemplo n.º 8
0
 private void EditModeDisableColumns(string column, ASPxEditBase e)
 {
     if (column == "Status" || column == "BasePart" || column == "ParentCustomer" || column == "Program" || column == "Vehicle" || column == "EmpireSop" ||
         column == "MidModelYear" || column == "EmpireEop" || column == "EmpireEopNote" || column == "VerifiedEopDate" || column == "CsmSop" ||
         column == "CsmEop" || column == "Sales2016" || column == "Sales2017" || column == "Sales2018" || column == "Sales2019" || column == "Sales2020" ||
         column == "Sales2021" || column == "Sales2022" || column == "Sales2023" || column == "Sales2024" || column == "Sales2025")
     {
         e.ReadOnly      = true;
         e.ClientEnabled = false;
     }
 }
Exemplo n.º 9
0
        protected override ASPxEditBase[] GetChildEditors()
        {
            ASPxEditBase[] edits = new ASPxEditBase[] {
                lblStartDate, edtStartDate,
                lblEndDate, edtEndDate,

                tbDescription, GetMultiResourceEditor()
            };

            return(edits);
        }
Exemplo n.º 10
0
        private void EditModePopulateVerifiedEop(ASPxEditBase e)
        {
            List <String> eopTypes = new List <string> {
                "", "CSM", "Empire", "MidModel"
            };

            var cmb = e as ASPxComboBox;

            cmb.DataSource = eopTypes;
            cmb.DataBind();
        }
Exemplo n.º 11
0
        private static bool RequireFullCellEditorHeight(ASPxEditBase cellEditor)
        {
            var aspxMemo = cellEditor as ASPxMemo;

            if (aspxMemo != null)
            {
                return(aspxMemo.Height.IsEmpty && aspxMemo.Rows == 0);
            }

            return(false);
        }
Exemplo n.º 12
0
        private void ProcessItem(LayoutItemBase item)
        {
            LayoutItem layoutItem = item as LayoutItem;

            if (layoutItem != null)
            {
                ASPxEditBase editBase = layoutItem.GetNestedControl() as ASPxEditBase;
                if (editBase != null)
                {
                    this.newValues[layoutItem.FieldName] = editBase.Value;
                }
            }
        }
Exemplo n.º 13
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     // Required to implement client-side functionality
     ASPxEditBase[] edits = new ASPxEditBase[] {
         ASPxLabelSubject, ASPxTextBoxSubject,
         ASPxLabelStart, ASPxDateEditStart,
         ASPxLabelEnd, ASPxLabelStart,
         ASPxMemoDescription,
         ASPxLabelContact, ASPxComboBoxContact,
         ASPxLabelCompany, ASPxComboBoxCompany
     };
     return(edits);
 }
        protected override void AssignEditorProperties(ASPxEditBase edit)
        {
            base.AssignEditorProperties(edit);
            
            var aspxCheckBox = edit as ASPxCheckBox;

            if (aspxCheckBox != null)
            {
                aspxCheckBox.Text = DisplayText;
                aspxCheckBox.TextAlign = DisplayTextAlign;
                aspxCheckBox.TextSpacing = DisplayTextSpacing;
                aspxCheckBox.Width = Width;
            }
        }
Exemplo n.º 15
0
	protected override ASPxEditBase[] GetChildEditors() {
		ASPxEditBase[] edits = new ASPxEditBase[] {
			lblSubject, tbSubject,
			lblLocation, tbLocation,
			lblLabel, edtLabel,
			lblStartDate, edtStartDate,
			lblEndDate, edtEndDate,
			lblStatus, edtStatus,
			lblAllDay, chkAllDay,
			lblResource, edtResource,
			tbDescription, cbReminder
		};
		return edits;
	}
        protected override void AssignEditorProperties(ASPxEditBase edit)
        {
            base.AssignEditorProperties(edit);

            var aspxCheckBox = edit as ASPxCheckBox;

            if (aspxCheckBox != null)
            {
                aspxCheckBox.Text        = DisplayText;
                aspxCheckBox.TextAlign   = DisplayTextAlign;
                aspxCheckBox.TextSpacing = DisplayTextSpacing;
                aspxCheckBox.Width       = Width;
            }
        }
Exemplo n.º 17
0
        private void EditModePopulateSchedulerResponsible(ASPxEditBase e)
        {
            if (GetSchedulers() == 0)
            {
                return;
            }

            var cmb = e as ASPxComboBox;

            cmb.DataSource = ViewModel.SchedulersList;
            cmb.ValueField = "Scheduler";
            cmb.TextField  = "Scheduler";
            cmb.DataBind();
        }
    void PrepareChildControls()
    {
        RecurrentAppointmentEditFormTemplateContainer container = (RecurrentAppointmentEditFormTemplateContainer)Parent;
        ASPxScheduler control = container.Control;

        ASPxEditBase[] edits = new ASPxEditBase[] { lblConfirm, rbAction };

        foreach (ASPxEditBase edit in edits)
        {
            edit.ParentSkinOwner = control;
            edit.ParentStyles    = control.Styles.FormEditors;
            edit.ParentImages    = control.Images.FormEditors;
        }

        btnOk.ParentSkinOwner = btnCancel.ParentSkinOwner = control;
    }
Exemplo n.º 19
0
        protected void gvSalesForecastUpdated_CellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e)
        {
            if (gvSalesForecastUpdated.IsNewRowEditing)
            {
                return;
            }
            string       column = e.Column.FieldName;
            ASPxEditBase editor = e.Editor;

            EditModeDisableColumns(column, editor); // Disable editing of non-base-part-closeout columns

            if (column == "VerifiedEop")
            {
                EditModePopulateVerifiedEop(editor);                          // Populate the VerifiedEOP combobox
            }
            //if (column == "SchedulerResponsible") EditModePopulateSchedulerResponsible(editor); // Populate the SchedulerResponsible combobox
        }
    protected override ASPxEditBase[] GetChildEditors()
    {
        ASPxEditBase[] edits = new ASPxEditBase[] {
            lblSubject, tbSubject,
            lblLocation, tbLocation,
            lblLabel, edtLabel,
            lblStartDate, edtStartDate,
            lblEndDate, edtEndDate,
            lblStatus, edtStatus,
            lblAllDay, chkAllDay,
            lblResource, edtResource,
            tbDescription, cbReminder, lblReminder,
            ddResource, chkReminder, GetMultiResourceEditor(),
            edtStartTime, edtEndTime
        };

        return(edits);
    }
Exemplo n.º 21
0
    void PrepareChildControls()
    {
        GotoDateFormTemplateContainer container = (GotoDateFormTemplateContainer)Parent;
        ASPxScheduler control = container.Control;

        ASPxEditBase[] edits = new ASPxEditBase[] {
            lblDate, edtDate,
            lblView, cbView
        };

        foreach (ASPxEditBase edit in edits)
        {
            edit.ParentSkinOwner = control;
            edit.ParentStyles    = control.Styles.FormEditors;
            edit.ParentImages    = control.Images.FormEditors;
        }

        btnOk.ParentSkinOwner = btnCancel.ParentSkinOwner = control;
    }
    void InitializeSpinEdit(ASPxEditBase editor, object value)
    {
        var spinEdit = editor as ASPxSpinEdit;
        var intValue = (int)value;

        spinEdit.BackColor = Color.LightGreen;
        if (intValue > 10)
        {
            spinEdit.BackColor = Color.Orange;
        }
        if (intValue > 100)
        {
            spinEdit.BackColor = Color.Red;
        }
        if (intValue > 1000)
        {
            spinEdit.BackColor = Color.DarkRed;
        }
        if (intValue > 10000)
        {
            spinEdit.BackColor = Color.Black;
        }
    }
Exemplo n.º 23
0
 private static bool RequireFullCellEditorWidth(ASPxEditBase cellEditor)
 {
     return(cellEditor.Width.IsEmpty);
 }
 public ASPxSmartGridViewEditorEventArgs(GridViewDataColumn column, int visibleIndex, ASPxEditBase editor, object keyValue, object value) : base(column, visibleIndex, editor, keyValue, value)
 {
 }
Exemplo n.º 25
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] { memSubject };
     return(edits);
 }
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] { lblConfirm, rbAction };
     return edits;
 }
        public override void ApplyEditorSettings(ASPxEditBase baseEditor, GridViewDataColumn column)
        {
            base.ApplyEditorSettings(baseEditor, column);

            if (column.ReadOnly == false)
            {
                baseEditor.ReadOnly(false);
            }
        }
 public ASPxSmartGridViewEditorEventArgs(GridViewDataColumn column, int visibleIndex, ASPxEditBase editor, object keyValue, object value) : base(column, visibleIndex, editor, keyValue, value)
 {
 }
Exemplo n.º 29
0
 public static void EditorApplyTheme(ASPxEditBase Editor, string theTheme)
 {
     Editor.CssFilePath = "~/App_Themes/Glass/{0}/styles.css";
     Editor.CssPostfix = "Glass";
 }
Exemplo n.º 30
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] { lblConfirm, rbAction };
     return(edits);
 }
Exemplo n.º 31
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] {
         lblSubject, tbSubject,
         lblLocation, tbLocation,
         lblLabel, edtLabel,
         lblStartDate, edtStartDate,
         lblEndDate, edtEndDate,
         lblStatus, edtStatus,
         lblAllDay, chkAllDay,
         lblResource, edtResource,
         tbDescription, cbReminder
     };
     return edits;
 }
Exemplo n.º 32
0
 protected override ASPxEditBase[] GetChildEditors()
 {
     ASPxEditBase[] edits = new ASPxEditBase[] { memSubject };
     return edits;
 }