示例#1
0
 public CustomAppointmentForm(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm)
     : base(control, apt, openRecurrenceForm)
 {
     InitializeComponent();
     this.edtStartTime.Properties.Mask.EditMask = "T";
     this.edtEndTime.Properties.Mask.EditMask   = "T";
 }
        public OutlookAppointmentForm(DevExpress.XtraScheduler.SchedulerControl control, Appointment apt, bool openRecurrenceForm)
        {
            Guard.ArgumentNotNull(control, "control");
            Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
            Guard.ArgumentNotNull(apt, "apt");

            this.openRecurrenceForm = openRecurrenceForm;
            this.controller         = CreateController(control, apt);
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            SetupPredefinedConstraints();

            LoadIcons();

            this.control = control;
            this.storage = control.DataStorage;

            this.edtResource.SchedulerControl  = control;
            this.edtResource.Storage           = this.storage;
            this.edtResources.SchedulerControl = control;

            this.riAppointmentResource.SchedulerControl = control;
            this.riAppointmentResource.Storage          = this.storage;
            this.riAppointmentStatus.Storage            = this.storage;

            this.riAppointmentLabel.Storage = this.storage;

            BindControllerToControls();

            LookAndFeel.ParentLookAndFeel = control.LookAndFeel;

            this.supressCancelCore = false;
        }
 private void scheduler_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     sample_5_4.OutlookAppointmentForm         form      = new sample_5_4.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally {
         form.Dispose();
     }
 }
示例#4
0
 private void schedulerControl1_EditAppointmentFormShowing_1(object sender, AppointmentFormEventArgs e)
 {
     try
     {
         DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
         var form = new OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(MiscStuff.GetAllMessages(ex));
     }
 }
示例#5
0
 private void schedulerControl1_EditAppointmentFormShowing(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     WF_Principal.CustomAppointmentForm        form      = new WF_Principal.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
示例#6
0
 private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl         scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     QuanLyDaiHocGiaDinh.Views.OutlookAppointmentForm1 form      = new QuanLyDaiHocGiaDinh.Views.OutlookAppointmentForm1(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
示例#7
0
 //Call OutlookAppointmentForm
 private void schedulerControl1_EditAppointmentFormShowing_3(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl         scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     Production.LAMINATION._LAB.OutlookAppointmentForm form      = new Production.LAMINATION._LAB.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
示例#8
0
 private void sch_appointment_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl         scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     POS_System.Customer_Management.AppointmentBooking form      = new AppointmentBooking();
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
 private void schedulerControl1_EditAppointmentFormShowing_1(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl       scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     RibbonSimplePad.AppointmentFormOutlook2007Style form      = new RibbonSimplePad.AppointmentFormOutlook2007Style(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
 private void schedulerControl_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     DXApplication5.CustomAppointmentForm      form      = new DXApplication5.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     form.AvailablePriorities = priorities;
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
示例#11
0
        private void schedulerControl1_EditAppointmentFormShowing(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
            sistema.CustomAppointmentForm             form      = new sistema.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
            try
            {
                e.DialogResult = form.ShowDialog();
//                if (!(e.DialogResult == System.Windows.Forms.DialogResult.Cancel || e.DialogResult == System.Windows.Forms.DialogResult.Abort)) schedulerControl1.Refresh();
                e.Handled = true;
            }
            finally
            {
                form.Dispose();
            }
        }
示例#12
0
        private void schedulerControl1_EditAppointmentFormShowing_1(object sender, AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
            OutlookAppointmentForm form = new OutlookAppointmentForm(scheduler, e.Appointment, this.schedulerService.TaskTemplateId, e.OpenRecurrenceForm);

            try
            {
                e.DialogResult = form.ShowDialog();
                e.Handled      = true;
            }
            finally
            {
                form.Dispose();
            }
        }
        private void schedulerControl_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));

            //Bunu showingten önce yapmazsam enddate i default olan yarım saat sonrasına atıyor.
            if (e.Appointment.Id != null) //güncellemedir.
            {
                //MessageBox.Show(e.Appointment.Id.ToString());
                //MessageBox.Show(e.Appointment.Duration.ToString());
                int id      = Convert.ToInt32(e.Appointment.Id);
                var randevu = (from inc in veri.RANDEVULAR_TBL where inc.RAN_ID == id select inc).SingleOrDefault();
                var calisma = (from p in veri.CALISMALAR_TBL where p.CAL_SIL != true && p.CAL_ID == randevu.RAN_CAL_ID select p).SingleOrDefault();

                e.Appointment.Duration = new TimeSpan(0, Convert.ToInt32(calisma.CAL_RANDEVUARALIK.Value.TotalMinutes), 0);
            }
            else //eklemedir.
            {
                if (AnaForm.cal_id != 0)
                {
                    e.Appointment.Duration = new TimeSpan(0, AnaForm.randk, 0);
                }
                //MessageBox.Show("null");
            }



            CustomAppointmentForm form = new CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);

            kapat = false;


            try
            {
                e.DialogResult = form.ShowDialog();
                e.Handled      = true;
            }
            finally
            {
                form.Dispose();
            }

            if (kapat == true)
            {
                this.Close();
                kapat = false;
            }
        }
示例#14
0
 private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     if (String.IsNullOrEmpty(this.planId))      //  不在计划内不能创建任务
     {
         e.Handled = false;
         return;
     }
     DevExpress.XtraScheduler.SchedulerControl    scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     WindowsFormsApp1.项目计划.OutlookAppointmentForm form      = new WindowsFormsApp1.项目计划.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
示例#15
0
 private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
     //传值
     if (focusedID == null || focusedID == Guid.Empty)
     {
         CommonServices.ErrorTrace.SetErrorInfo(this.FindForm(), "请先选择职工。");
         return;
     }
     e.Appointment.CustomFields["UserID"] = focusedID;
     USL.AttAppointmentForm form = new USL.AttAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
     try
     {
         e.DialogResult = form.ShowDialog();
         e.Handled      = true;
     }
     finally
     {
         form.Dispose();
     }
 }
        public AppointmentFormOutlook2007Style(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm)
            : base()
        {
            if (control == null)
            {
                Exceptions.ThrowArgumentException("control", control);
            }
            if (control.Storage == null)
            {
                Exceptions.ThrowArgumentException("control.Storage", control.Storage);
            }
            if (apt == null)
            {
                Exceptions.ThrowArgumentException("apt", apt);
            }

            this.openRecurrenceForm = openRecurrenceForm;
            this.controller         = CreateController(control, apt);
            this.sourceAppointment  = apt;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            SchedulerStorage storage = (SchedulerStorage)control.Storage;

            repItemAppointmentStatus.Storage = storage;
            repItemAppointmentLabel.Storage  = storage;
            edtResource.SchedulerControl     = control;
            edtResource.Storage           = storage;
            edtResources.SchedulerControl = control;

            barAndDockingController.LookAndFeel.ParentLookAndFeel = LookAndFeel;
            this.spellChecker.LookAndFeel.ParentLookAndFeel       = this.LookAndFeel;
            LoadIcons();

            this.control = control;
            this.storage = control.Storage;
        }
        private void schedulerControl1_CustomDrawTimeCell(object sender, CustomDrawObjectEventArgs e)
        {
            DevExpress.XtraScheduler.SchedulerControl control = (DevExpress.XtraScheduler.SchedulerControl)sender;
            if (control.ActiveViewType != DevExpress.XtraScheduler.SchedulerViewType.Timeline)
            {
                return;
            }

            DevExpress.XtraScheduler.Drawing.TimeCell cell = (DevExpress.XtraScheduler.Drawing.TimeCell)e.ObjectInfo;
            if (cell.Selected && (control.Focused || !control.OptionsView.HideSelection))
            {
                cell.SelectionAppearance.FillRectangle(cell.Cache, cell.ContentBounds);
                e.Handled = true;
                return;
            }

            bool containsWeekDays = schedulerControl1.WorkDays.IsWorkDay(cell.Interval.Start);

            Color color = containsWeekDays ? this.schedulerControl1.ResourceColorSchemas[0].CellLight : this.schedulerControl1.ResourceColorSchemas[0].Cell;

            cell.Cache.FillRectangle(cell.Cache.GetSolidBrush(color), cell.ContentBounds);
            Color borderColor;

            if (containsWeekDays)
            {
                borderColor = cell.EndOfHour ? this.schedulerControl1.ResourceColorSchemas[0].CellBorderDark : this.schedulerControl1.ResourceColorSchemas[0].CellBorder;
            }
            else
            {
                borderColor = cell.EndOfHour ? this.schedulerControl1.ResourceColorSchemas[0].CellLightBorderDark : this.schedulerControl1.ResourceColorSchemas[0].CellLightBorder;
            }
            cell.Cache.FillRectangle(cell.Cache.GetSolidBrush(borderColor), cell.BottomBorderBounds);
            cell.Cache.FillRectangle(cell.Cache.GetSolidBrush(borderColor), cell.LeftBorderBounds);
            cell.Cache.FillRectangle(cell.Cache.GetSolidBrush(borderColor), cell.RightBorderBounds);

            e.Handled = true;
        }
示例#18
0
        private void SchedulerControl_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
            this.CurrentAppointmentArgs = e;
            WindowsUIView uiView = this.MainDocumentManager.View as WindowsUIView;

            if (uiView != null)
            {
                Flyout flyout = uiView.ContentContainers.FirstOrDefault(x => x.Name == Resources.FlyoutSchedulerAppointmentForm) as Flyout;
                if (flyout != null)
                {
                    FlyoutAction action = new FlyoutAction();
                    action.Commands.Add(new FlyoutCommand
                    {
                        Result = DialogResult.Abort,
                        Text   = Resources.ButtonDelete
                    });
                    flyout.Action        = action;
                    uiView.FlyoutHidden += View_FlyoutHidden;
                    uiView.ActivateContainer(flyout);
                    e.Handled = true;
                }
            }
        }
示例#19
0
 public CustomAppointmentForm1(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm)
     : base(control, apt, openRecurrenceForm)
 {
     InitializeComponent();
 }
示例#20
0
 public CustomAppointmentForm1(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt)
     : base(control, apt)
 {
     InitializeComponent();
 }
示例#21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler();
     DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler();
     System.Resources.ResourceManager   resources  = new System.Resources.ResourceManager(typeof(SpaBookingControl));
     this.schedulerStorage1  = new DevExpress.XtraScheduler.SchedulerStorage(this.components);
     this.dateNavigator1     = new DevExpress.XtraScheduler.DateNavigator();
     this.schedulerControl1  = new DevExpress.XtraScheduler.SchedulerControl();
     this.toolTipController1 = new DevExpress.Utils.ToolTipController(this.components);
     this.splitterControl1   = new DevExpress.XtraEditors.SplitterControl();
     this.pnlCtrlScheduler   = new DevExpress.XtraEditors.PanelControl();
     this.pnlCtrlTop         = new DevExpress.XtraEditors.PanelControl();
     this.sBtnRefresh        = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnWaitingList    = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnSubtract       = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnForfeit        = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton61     = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton62     = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton63     = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnAdd            = new DevExpress.XtraEditors.SimpleButton();
     this.imageList1         = new System.Windows.Forms.ImageList(this.components);
     this.resourcesCheckedListBoxControl1 = new DevExpress.XtraScheduler.UI.ResourcesCheckedListBoxControl();
     this.splitContainerControl1          = new DevExpress.XtraEditors.SplitContainerControl();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlScheduler)).BeginInit();
     this.pnlCtrlScheduler.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlTop)).BeginInit();
     this.pnlCtrlTop.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesCheckedListBoxControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // schedulerStorage1
     //
     this.schedulerStorage1.Appointments.DataMember           = "tblServiceSession";
     this.schedulerStorage1.Appointments.Mappings.Description = "strRemarks";
     this.schedulerStorage1.Appointments.Mappings.End         = "dtEndTime";
     this.schedulerStorage1.Appointments.Mappings.ResourceId  = "nServiceEmployeeID";
     this.schedulerStorage1.Appointments.Mappings.Start       = "dtStartTime";
     this.schedulerStorage1.Appointments.Mappings.Status      = "nStatusID";
     this.schedulerStorage1.Appointments.Mappings.Subject     = "strServiceCode";
     this.schedulerStorage1.AppointmentsInserted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     this.schedulerStorage1.AppointmentsDeleted  += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     this.schedulerStorage1.AppointmentsChanged  += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     //
     // dateNavigator1
     //
     this.dateNavigator1.AppearanceCalendar.Font            = new System.Drawing.Font("Tahoma", 8F);
     this.dateNavigator1.AppearanceCalendar.Options.UseFont = true;
     this.dateNavigator1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.dateNavigator1.Location         = new System.Drawing.Point(0, 0);
     this.dateNavigator1.Name             = "dateNavigator1";
     this.dateNavigator1.SchedulerControl = this.schedulerControl1;
     this.dateNavigator1.ShowWeekNumbers  = false;
     this.dateNavigator1.Size             = new System.Drawing.Size(142, 296);
     this.dateNavigator1.TabIndex         = 1;
     this.dateNavigator1.DoubleClick     += new System.EventHandler(this.dateNavigator1_EditDateModified);
     //
     // schedulerControl1
     //
     this.schedulerControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.schedulerControl1.Location = new System.Drawing.Point(0, 0);
     this.schedulerControl1.Name     = "schedulerControl1";
     this.schedulerControl1.OptionsCustomization.AllowAppointmentConflicts            = DevExpress.XtraScheduler.AppointmentConflictsMode.Forbidden;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentCopy                 = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDelete               = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDrag                 = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDragBetweenResources = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentMultiSelect          = false;
     this.schedulerControl1.OptionsCustomization.AllowInplaceEditor = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsView.ToolTipVisibility           = DevExpress.XtraScheduler.ToolTipVisibility.Always;
     this.schedulerControl1.Size              = new System.Drawing.Size(684, 372);
     this.schedulerControl1.Start             = new System.DateTime(2006, 4, 22, 0, 0, 0, 0);
     this.schedulerControl1.Storage           = this.schedulerStorage1;
     this.schedulerControl1.TabIndex          = 0;
     this.schedulerControl1.Text              = "schedulerControl1";
     this.schedulerControl1.ToolTipController = this.toolTipController1;
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Font            = new System.Drawing.Font("Tahoma", 10F);
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.TimeRulers.AddRange(new DevExpress.XtraScheduler.TimeRuler[] {
         timeRuler1
     });
     this.schedulerControl1.Views.DayView.TimeScale            = System.TimeSpan.Parse("00:15:00");
     this.schedulerControl1.Views.DayView.VisibleTime.Duration = System.TimeSpan.Parse("1.00:00:00");
     this.schedulerControl1.Views.DayView.WorkTime.Duration    = System.TimeSpan.Parse("09:00:00");
     this.schedulerControl1.Views.WorkWeekView.TimeRulers.AddRange(new DevExpress.XtraScheduler.TimeRuler[] {
         timeRuler2
     });
     this.schedulerControl1.Views.WorkWeekView.VisibleTime.Duration = System.TimeSpan.Parse("1.00:00:00");
     this.schedulerControl1.Views.WorkWeekView.WorkTime.Duration    = System.TimeSpan.Parse("09:00:00");
     this.schedulerControl1.SelectionChanged += new System.EventHandler(this.schedulerControl1_SelectionChanged);
     this.schedulerControl1.CustomDrawAppointmentBackground += new DevExpress.XtraScheduler.CustomDrawObjectEventHandler(this.schedulerControl1_CustomDrawAppointmentBackground);
     this.schedulerControl1.CustomDrawResourceHeader        += new DevExpress.XtraScheduler.CustomDrawObjectEventHandler(this.schedulerControl1_CustomDrawResourceHeader);
     this.schedulerControl1.EditAppointmentFormShowing      += new DevExpress.XtraScheduler.AppointmentFormEventHandler(this.schedulerControl1_EditAppointmentFormShowing_1);
     //
     // toolTipController1
     //
     this.toolTipController1.ShowShadow  = false;
     this.toolTipController1.BeforeShow += new DevExpress.Utils.ToolTipControllerBeforeShowEventHandler(this.toolTipController1_BeforeShow);
     //
     // splitterControl1
     //
     this.splitterControl1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.splitterControl1.Location = new System.Drawing.Point(684, 0);
     this.splitterControl1.Name     = "splitterControl1";
     this.splitterControl1.Size     = new System.Drawing.Size(4, 408);
     this.splitterControl1.TabIndex = 2;
     this.splitterControl1.TabStop  = false;
     //
     // pnlCtrlScheduler
     //
     this.pnlCtrlScheduler.AutoScroll  = true;
     this.pnlCtrlScheduler.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlCtrlScheduler.Controls.Add(this.schedulerControl1);
     this.pnlCtrlScheduler.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlCtrlScheduler.Location = new System.Drawing.Point(0, 36);
     this.pnlCtrlScheduler.Name     = "pnlCtrlScheduler";
     this.pnlCtrlScheduler.Size     = new System.Drawing.Size(684, 372);
     this.pnlCtrlScheduler.TabIndex = 4;
     this.pnlCtrlScheduler.Text     = "panelControl2";
     //
     // pnlCtrlTop
     //
     this.pnlCtrlTop.Appearance.BackColor            = System.Drawing.Color.White;
     this.pnlCtrlTop.Appearance.ForeColor            = System.Drawing.Color.Transparent;
     this.pnlCtrlTop.Appearance.Options.UseBackColor = true;
     this.pnlCtrlTop.Appearance.Options.UseForeColor = true;
     this.pnlCtrlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlCtrlTop.Controls.Add(this.sBtnRefresh);
     this.pnlCtrlTop.Controls.Add(this.sBtnWaitingList);
     this.pnlCtrlTop.Controls.Add(this.sBtnSubtract);
     this.pnlCtrlTop.Controls.Add(this.sBtnForfeit);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton61);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton62);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton63);
     this.pnlCtrlTop.Controls.Add(this.sBtnAdd);
     this.pnlCtrlTop.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnlCtrlTop.Location = new System.Drawing.Point(0, 0);
     this.pnlCtrlTop.Name     = "pnlCtrlTop";
     this.pnlCtrlTop.Size     = new System.Drawing.Size(684, 36);
     this.pnlCtrlTop.TabIndex = 5;
     this.pnlCtrlTop.Text     = "panelControl2";
     //
     // sBtnRefresh
     //
     this.sBtnRefresh.Anchor                     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnRefresh.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnRefresh.Appearance.Options.UseFont = true;
     this.sBtnRefresh.Location                   = new System.Drawing.Point(538, 8);
     this.sBtnRefresh.Name     = "sBtnRefresh";
     this.sBtnRefresh.Size     = new System.Drawing.Size(82, 24);
     this.sBtnRefresh.TabIndex = 57;
     this.sBtnRefresh.Text     = "Refresh";
     this.sBtnRefresh.Click   += new System.EventHandler(this.sBtnRefresh_Click);
     //
     // sBtnWaitingList
     //
     this.sBtnWaitingList.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnWaitingList.Appearance.Options.UseFont = true;
     this.sBtnWaitingList.Location = new System.Drawing.Point(276, 8);
     this.sBtnWaitingList.Name     = "sBtnWaitingList";
     this.sBtnWaitingList.Size     = new System.Drawing.Size(82, 20);
     this.sBtnWaitingList.TabIndex = 56;
     this.sBtnWaitingList.Text     = "Waiting List";
     this.sBtnWaitingList.Click   += new System.EventHandler(this.sBtnWaitingList_Click);
     //
     // sBtnSubtract
     //
     this.sBtnSubtract.Anchor                            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnSubtract.Appearance.Font                   = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.sBtnSubtract.Appearance.Options.UseFont        = true;
     this.sBtnSubtract.Appearance.Options.UseTextOptions = true;
     this.sBtnSubtract.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnSubtract.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnSubtract.Appearance.TextOptions.WordWrap   = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnSubtract.ImageIndex                        = 1;
     this.sBtnSubtract.Location                          = new System.Drawing.Point(654, 8);
     this.sBtnSubtract.Name     = "sBtnSubtract";
     this.sBtnSubtract.Size     = new System.Drawing.Size(28, 25);
     this.sBtnSubtract.TabIndex = 54;
     this.sBtnSubtract.Text     = ">>";
     this.sBtnSubtract.Click   += new System.EventHandler(this.sBtnSubtract_Click);
     //
     // sBtnForfeit
     //
     this.sBtnForfeit.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnForfeit.Appearance.Options.UseFont = true;
     this.sBtnForfeit.Location = new System.Drawing.Point(126, 8);
     this.sBtnForfeit.Name     = "sBtnForfeit";
     this.sBtnForfeit.Size     = new System.Drawing.Size(54, 20);
     this.sBtnForfeit.TabIndex = 15;
     this.sBtnForfeit.Text     = "Forfeit";
     this.sBtnForfeit.Click   += new System.EventHandler(this.sBtnForfeit_Click);
     //
     // SimpleButton61
     //
     this.SimpleButton61.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton61.Appearance.Options.UseFont = true;
     this.SimpleButton61.Location = new System.Drawing.Point(184, 8);
     this.SimpleButton61.Name     = "SimpleButton61";
     this.SimpleButton61.Size     = new System.Drawing.Size(88, 20);
     this.SimpleButton61.TabIndex = 14;
     this.SimpleButton61.Text     = "Mark Service";
     this.SimpleButton61.Click   += new System.EventHandler(this.SimpleButton61_Click);
     //
     // SimpleButton62
     //
     this.SimpleButton62.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton62.Appearance.Options.UseFont = true;
     this.SimpleButton62.Location = new System.Drawing.Point(64, 8);
     this.SimpleButton62.Name     = "SimpleButton62";
     this.SimpleButton62.Size     = new System.Drawing.Size(58, 20);
     this.SimpleButton62.TabIndex = 13;
     this.SimpleButton62.Text     = "Delete";
     this.SimpleButton62.Click   += new System.EventHandler(this.SimpleButton62_Click);
     //
     // SimpleButton63
     //
     this.SimpleButton63.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton63.Appearance.Options.UseFont = true;
     this.SimpleButton63.Location = new System.Drawing.Point(10, 8);
     this.SimpleButton63.Name     = "SimpleButton63";
     this.SimpleButton63.Size     = new System.Drawing.Size(50, 20);
     this.SimpleButton63.TabIndex = 12;
     this.SimpleButton63.Text     = "New";
     this.SimpleButton63.Click   += new System.EventHandler(this.SimpleButton63_Click);
     //
     // sBtnAdd
     //
     this.sBtnAdd.Anchor                            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnAdd.Appearance.Font                   = new System.Drawing.Font("Verdana", 8F);
     this.sBtnAdd.Appearance.Options.UseFont        = true;
     this.sBtnAdd.Appearance.Options.UseTextOptions = true;
     this.sBtnAdd.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnAdd.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnAdd.Appearance.TextOptions.WordWrap   = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnAdd.ImageIndex                        = 0;
     this.sBtnAdd.Location                          = new System.Drawing.Point(624, 8);
     this.sBtnAdd.Name     = "sBtnAdd";
     this.sBtnAdd.Size     = new System.Drawing.Size(28, 25);
     this.sBtnAdd.TabIndex = 55;
     this.sBtnAdd.Text     = "<<";
     this.sBtnAdd.Click   += new System.EventHandler(this.sBtnAdd_Click);
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Magenta;
     //
     // resourcesCheckedListBoxControl1
     //
     this.resourcesCheckedListBoxControl1.CheckOnClick     = true;
     this.resourcesCheckedListBoxControl1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.resourcesCheckedListBoxControl1.Location         = new System.Drawing.Point(0, 0);
     this.resourcesCheckedListBoxControl1.Name             = "resourcesCheckedListBoxControl1";
     this.resourcesCheckedListBoxControl1.SchedulerControl = this.schedulerControl1;
     this.resourcesCheckedListBoxControl1.Size             = new System.Drawing.Size(142, 92);
     this.resourcesCheckedListBoxControl1.TabIndex         = 6;
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.Dock       = System.Windows.Forms.DockStyle.Right;
     this.splitContainerControl1.Horizontal = false;
     this.splitContainerControl1.Location   = new System.Drawing.Point(688, 0);
     this.splitContainerControl1.Name       = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Controls.Add(this.resourcesCheckedListBoxControl1);
     this.splitContainerControl1.Panel1.Text = "splitContainerControl1_Panel1";
     this.splitContainerControl1.Panel2.Controls.Add(this.dateNavigator1);
     this.splitContainerControl1.Panel2.Text = "splitContainerControl1_Panel2";
     this.splitContainerControl1.Size        = new System.Drawing.Size(150, 408);
     this.splitContainerControl1.TabIndex    = 57;
     this.splitContainerControl1.Text        = "splitContainerControl1";
     //
     // SpaBookingControl
     //
     this.Controls.Add(this.pnlCtrlScheduler);
     this.Controls.Add(this.pnlCtrlTop);
     this.Controls.Add(this.splitterControl1);
     this.Controls.Add(this.splitContainerControl1);
     this.Name = "SpaBookingControl";
     this.Size = new System.Drawing.Size(838, 408);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlScheduler)).EndInit();
     this.pnlCtrlScheduler.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlTop)).EndInit();
     this.pnlCtrlTop.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.resourcesCheckedListBoxControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 //apt.CustomFields["ParentTaskTemplateId"].ToString()
 public OutlookAppointmentForm(DevExpress.XtraScheduler.SchedulerControl control, Appointment apt, bool openRecurrenceForm)
     : this(control, apt, apt.CustomFields["ParentTaskTemplateId"].ToString(), openRecurrenceForm)
 {
 }
 public OutlookAppointmentForm(DevExpress.XtraScheduler.SchedulerControl control, Appointment apt)
     : this(control, apt, false)
 {
 }
示例#24
0
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler();
     DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SpaBookingControl));
     this.schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerStorage(this.components);
     this.dateNavigator1 = new DevExpress.XtraScheduler.DateNavigator();
     this.schedulerControl1 = new DevExpress.XtraScheduler.SchedulerControl();
     this.toolTipController1 = new DevExpress.Utils.ToolTipController(this.components);
     this.splitterControl1 = new DevExpress.XtraEditors.SplitterControl();
     this.pnlCtrlScheduler = new DevExpress.XtraEditors.PanelControl();
     this.pnlCtrlTop = new DevExpress.XtraEditors.PanelControl();
     this.sBtnRefresh = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnWaitingList = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnSubtract = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnForfeit = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton61 = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton62 = new DevExpress.XtraEditors.SimpleButton();
     this.SimpleButton63 = new DevExpress.XtraEditors.SimpleButton();
     this.sBtnAdd = new DevExpress.XtraEditors.SimpleButton();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.resourcesCheckedListBoxControl1 = new DevExpress.XtraScheduler.UI.ResourcesCheckedListBoxControl();
     this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlScheduler)).BeginInit();
     this.pnlCtrlScheduler.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlTop)).BeginInit();
     this.pnlCtrlTop.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.resourcesCheckedListBoxControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // schedulerStorage1
     //
     this.schedulerStorage1.Appointments.DataMember = "tblServiceSession";
     this.schedulerStorage1.Appointments.Mappings.Description = "strRemarks";
     this.schedulerStorage1.Appointments.Mappings.End = "dtEndTime";
     this.schedulerStorage1.Appointments.Mappings.ResourceId = "nServiceEmployeeID";
     this.schedulerStorage1.Appointments.Mappings.Start = "dtStartTime";
     this.schedulerStorage1.Appointments.Mappings.Status = "nStatusID";
     this.schedulerStorage1.Appointments.Mappings.Subject = "strServiceCode";
     this.schedulerStorage1.AppointmentsInserted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     this.schedulerStorage1.AppointmentsDeleted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     this.schedulerStorage1.AppointmentsChanged += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(this.schedulerStorage1_AppointmentsChanged);
     //
     // dateNavigator1
     //
     this.dateNavigator1.AppearanceCalendar.Font = new System.Drawing.Font("Tahoma", 8F);
     this.dateNavigator1.AppearanceCalendar.Options.UseFont = true;
     this.dateNavigator1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dateNavigator1.Location = new System.Drawing.Point(0, 0);
     this.dateNavigator1.Name = "dateNavigator1";
     this.dateNavigator1.SchedulerControl = this.schedulerControl1;
     this.dateNavigator1.ShowWeekNumbers = false;
     this.dateNavigator1.Size = new System.Drawing.Size(142, 296);
     this.dateNavigator1.TabIndex = 1;
     this.dateNavigator1.DoubleClick += new System.EventHandler(this.dateNavigator1_EditDateModified);
     //
     // schedulerControl1
     //
     this.schedulerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.schedulerControl1.Location = new System.Drawing.Point(0, 0);
     this.schedulerControl1.Name = "schedulerControl1";
     this.schedulerControl1.OptionsCustomization.AllowAppointmentConflicts = DevExpress.XtraScheduler.AppointmentConflictsMode.Forbidden;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentCopy = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDelete = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDrag = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentDragBetweenResources = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsCustomization.AllowAppointmentMultiSelect = false;
     this.schedulerControl1.OptionsCustomization.AllowInplaceEditor = DevExpress.XtraScheduler.UsedAppointmentType.None;
     this.schedulerControl1.OptionsView.ToolTipVisibility = DevExpress.XtraScheduler.ToolTipVisibility.Always;
     this.schedulerControl1.Size = new System.Drawing.Size(684, 372);
     this.schedulerControl1.Start = new System.DateTime(2006, 4, 22, 0, 0, 0, 0);
     this.schedulerControl1.Storage = this.schedulerStorage1;
     this.schedulerControl1.TabIndex = 0;
     this.schedulerControl1.Text = "schedulerControl1";
     this.schedulerControl1.ToolTipController = this.toolTipController1;
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Font = new System.Drawing.Font("Tahoma", 10F);
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.TimeRulers.AddRange(new DevExpress.XtraScheduler.TimeRuler[] {
                                                                                                           timeRuler1});
     this.schedulerControl1.Views.DayView.TimeScale = System.TimeSpan.Parse("00:15:00");
     this.schedulerControl1.Views.DayView.VisibleTime.Duration = System.TimeSpan.Parse("1.00:00:00");
     this.schedulerControl1.Views.DayView.WorkTime.Duration = System.TimeSpan.Parse("09:00:00");
     this.schedulerControl1.Views.WorkWeekView.TimeRulers.AddRange(new DevExpress.XtraScheduler.TimeRuler[] {
                                                                                                                timeRuler2});
     this.schedulerControl1.Views.WorkWeekView.VisibleTime.Duration = System.TimeSpan.Parse("1.00:00:00");
     this.schedulerControl1.Views.WorkWeekView.WorkTime.Duration = System.TimeSpan.Parse("09:00:00");
     this.schedulerControl1.SelectionChanged += new System.EventHandler(this.schedulerControl1_SelectionChanged);
     this.schedulerControl1.CustomDrawAppointmentBackground += new DevExpress.XtraScheduler.CustomDrawObjectEventHandler(this.schedulerControl1_CustomDrawAppointmentBackground);
     this.schedulerControl1.CustomDrawResourceHeader += new DevExpress.XtraScheduler.CustomDrawObjectEventHandler(this.schedulerControl1_CustomDrawResourceHeader);
     this.schedulerControl1.EditAppointmentFormShowing += new DevExpress.XtraScheduler.AppointmentFormEventHandler(this.schedulerControl1_EditAppointmentFormShowing_1);
     //
     // toolTipController1
     //
     this.toolTipController1.ShowShadow = false;
     this.toolTipController1.BeforeShow += new DevExpress.Utils.ToolTipControllerBeforeShowEventHandler(this.toolTipController1_BeforeShow);
     //
     // splitterControl1
     //
     this.splitterControl1.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitterControl1.Location = new System.Drawing.Point(684, 0);
     this.splitterControl1.Name = "splitterControl1";
     this.splitterControl1.Size = new System.Drawing.Size(4, 408);
     this.splitterControl1.TabIndex = 2;
     this.splitterControl1.TabStop = false;
     //
     // pnlCtrlScheduler
     //
     this.pnlCtrlScheduler.AutoScroll = true;
     this.pnlCtrlScheduler.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlCtrlScheduler.Controls.Add(this.schedulerControl1);
     this.pnlCtrlScheduler.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlCtrlScheduler.Location = new System.Drawing.Point(0, 36);
     this.pnlCtrlScheduler.Name = "pnlCtrlScheduler";
     this.pnlCtrlScheduler.Size = new System.Drawing.Size(684, 372);
     this.pnlCtrlScheduler.TabIndex = 4;
     this.pnlCtrlScheduler.Text = "panelControl2";
     //
     // pnlCtrlTop
     //
     this.pnlCtrlTop.Appearance.BackColor = System.Drawing.Color.White;
     this.pnlCtrlTop.Appearance.ForeColor = System.Drawing.Color.Transparent;
     this.pnlCtrlTop.Appearance.Options.UseBackColor = true;
     this.pnlCtrlTop.Appearance.Options.UseForeColor = true;
     this.pnlCtrlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.pnlCtrlTop.Controls.Add(this.sBtnRefresh);
     this.pnlCtrlTop.Controls.Add(this.sBtnWaitingList);
     this.pnlCtrlTop.Controls.Add(this.sBtnSubtract);
     this.pnlCtrlTop.Controls.Add(this.sBtnForfeit);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton61);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton62);
     this.pnlCtrlTop.Controls.Add(this.SimpleButton63);
     this.pnlCtrlTop.Controls.Add(this.sBtnAdd);
     this.pnlCtrlTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlCtrlTop.Location = new System.Drawing.Point(0, 0);
     this.pnlCtrlTop.Name = "pnlCtrlTop";
     this.pnlCtrlTop.Size = new System.Drawing.Size(684, 36);
     this.pnlCtrlTop.TabIndex = 5;
     this.pnlCtrlTop.Text = "panelControl2";
     //
     // sBtnRefresh
     //
     this.sBtnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnRefresh.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnRefresh.Appearance.Options.UseFont = true;
     this.sBtnRefresh.Location = new System.Drawing.Point(538, 8);
     this.sBtnRefresh.Name = "sBtnRefresh";
     this.sBtnRefresh.Size = new System.Drawing.Size(82, 24);
     this.sBtnRefresh.TabIndex = 57;
     this.sBtnRefresh.Text = "Refresh";
     this.sBtnRefresh.Click += new System.EventHandler(this.sBtnRefresh_Click);
     //
     // sBtnWaitingList
     //
     this.sBtnWaitingList.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnWaitingList.Appearance.Options.UseFont = true;
     this.sBtnWaitingList.Location = new System.Drawing.Point(276, 8);
     this.sBtnWaitingList.Name = "sBtnWaitingList";
     this.sBtnWaitingList.Size = new System.Drawing.Size(82, 20);
     this.sBtnWaitingList.TabIndex = 56;
     this.sBtnWaitingList.Text = "Waiting List";
     this.sBtnWaitingList.Click += new System.EventHandler(this.sBtnWaitingList_Click);
     //
     // sBtnSubtract
     //
     this.sBtnSubtract.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnSubtract.Appearance.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.sBtnSubtract.Appearance.Options.UseFont = true;
     this.sBtnSubtract.Appearance.Options.UseTextOptions = true;
     this.sBtnSubtract.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnSubtract.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnSubtract.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnSubtract.ImageIndex = 1;
     this.sBtnSubtract.Location = new System.Drawing.Point(654, 8);
     this.sBtnSubtract.Name = "sBtnSubtract";
     this.sBtnSubtract.Size = new System.Drawing.Size(28, 25);
     this.sBtnSubtract.TabIndex = 54;
     this.sBtnSubtract.Text = ">>";
     this.sBtnSubtract.Click += new System.EventHandler(this.sBtnSubtract_Click);
     //
     // sBtnForfeit
     //
     this.sBtnForfeit.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.sBtnForfeit.Appearance.Options.UseFont = true;
     this.sBtnForfeit.Location = new System.Drawing.Point(126, 8);
     this.sBtnForfeit.Name = "sBtnForfeit";
     this.sBtnForfeit.Size = new System.Drawing.Size(54, 20);
     this.sBtnForfeit.TabIndex = 15;
     this.sBtnForfeit.Text = "Forfeit";
     this.sBtnForfeit.Click += new System.EventHandler(this.sBtnForfeit_Click);
     //
     // SimpleButton61
     //
     this.SimpleButton61.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton61.Appearance.Options.UseFont = true;
     this.SimpleButton61.Location = new System.Drawing.Point(184, 8);
     this.SimpleButton61.Name = "SimpleButton61";
     this.SimpleButton61.Size = new System.Drawing.Size(88, 20);
     this.SimpleButton61.TabIndex = 14;
     this.SimpleButton61.Text = "Mark Service";
     this.SimpleButton61.Click += new System.EventHandler(this.SimpleButton61_Click);
     //
     // SimpleButton62
     //
     this.SimpleButton62.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton62.Appearance.Options.UseFont = true;
     this.SimpleButton62.Location = new System.Drawing.Point(64, 8);
     this.SimpleButton62.Name = "SimpleButton62";
     this.SimpleButton62.Size = new System.Drawing.Size(58, 20);
     this.SimpleButton62.TabIndex = 13;
     this.SimpleButton62.Text = "Delete";
     this.SimpleButton62.Click += new System.EventHandler(this.SimpleButton62_Click);
     //
     // SimpleButton63
     //
     this.SimpleButton63.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.SimpleButton63.Appearance.Options.UseFont = true;
     this.SimpleButton63.Location = new System.Drawing.Point(10, 8);
     this.SimpleButton63.Name = "SimpleButton63";
     this.SimpleButton63.Size = new System.Drawing.Size(50, 20);
     this.SimpleButton63.TabIndex = 12;
     this.SimpleButton63.Text = "New";
     this.SimpleButton63.Click += new System.EventHandler(this.SimpleButton63_Click);
     //
     // sBtnAdd
     //
     this.sBtnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sBtnAdd.Appearance.Font = new System.Drawing.Font("Verdana", 8F);
     this.sBtnAdd.Appearance.Options.UseFont = true;
     this.sBtnAdd.Appearance.Options.UseTextOptions = true;
     this.sBtnAdd.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.sBtnAdd.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
     this.sBtnAdd.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
     this.sBtnAdd.ImageIndex = 0;
     this.sBtnAdd.Location = new System.Drawing.Point(624, 8);
     this.sBtnAdd.Name = "sBtnAdd";
     this.sBtnAdd.Size = new System.Drawing.Size(28, 25);
     this.sBtnAdd.TabIndex = 55;
     this.sBtnAdd.Text = "<<";
     this.sBtnAdd.Click += new System.EventHandler(this.sBtnAdd_Click);
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Magenta;
     //
     // resourcesCheckedListBoxControl1
     //
     this.resourcesCheckedListBoxControl1.CheckOnClick = true;
     this.resourcesCheckedListBoxControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.resourcesCheckedListBoxControl1.Location = new System.Drawing.Point(0, 0);
     this.resourcesCheckedListBoxControl1.Name = "resourcesCheckedListBoxControl1";
     this.resourcesCheckedListBoxControl1.SchedulerControl = this.schedulerControl1;
     this.resourcesCheckedListBoxControl1.Size = new System.Drawing.Size(142, 92);
     this.resourcesCheckedListBoxControl1.TabIndex = 6;
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitContainerControl1.Horizontal = false;
     this.splitContainerControl1.Location = new System.Drawing.Point(688, 0);
     this.splitContainerControl1.Name = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Controls.Add(this.resourcesCheckedListBoxControl1);
     this.splitContainerControl1.Panel1.Text = "splitContainerControl1_Panel1";
     this.splitContainerControl1.Panel2.Controls.Add(this.dateNavigator1);
     this.splitContainerControl1.Panel2.Text = "splitContainerControl1_Panel2";
     this.splitContainerControl1.Size = new System.Drawing.Size(150, 408);
     this.splitContainerControl1.TabIndex = 57;
     this.splitContainerControl1.Text = "splitContainerControl1";
     //
     // SpaBookingControl
     //
     this.Controls.Add(this.pnlCtrlScheduler);
     this.Controls.Add(this.pnlCtrlTop);
     this.Controls.Add(this.splitterControl1);
     this.Controls.Add(this.splitContainerControl1);
     this.Name = "SpaBookingControl";
     this.Size = new System.Drawing.Size(838, 408);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlScheduler)).EndInit();
     this.pnlCtrlScheduler.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pnlCtrlTop)).EndInit();
     this.pnlCtrlTop.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.resourcesCheckedListBoxControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#25
0
        /// <summary>
        /// 甘特图初始化设置
        /// </summary>
        /// <param name="sc"></param>
        private void InitGrantView(DevExpress.XtraScheduler.SchedulerControl sc)
        {
            //设置资源
            sc.GroupType = SchedulerGroupType.Resource;

            //设置甘特图
            sc.ActiveViewType = SchedulerViewType.Gantt;

            //设置资源+-按钮不可见

            sc.ResourceNavigator.Visibility = ResourceNavigatorVisibility.Auto;

            //设置Resource 字体不旋转
            sc.OptionsView.ResourceHeaders.RotateCaption = false;
            sc.OptionsView.ResourceHeaders.Height        = 60;
            sc.OptionsView.ShowOnlyResourceAppointments  = true;


            //行为设置

            sc.OptionsBehavior.MouseWheelScrollAction = MouseWheelScrollAction.Auto;

            sc.OptionsBehavior.RecurrentAppointmentDeleteAction = RecurrentAppointmentAction.Cancel;
            sc.OptionsBehavior.RecurrentAppointmentEditAction   = RecurrentAppointmentAction.Cancel;
            sc.OptionsBehavior.RemindersFormDefaultAction       = RemindersFormDefaultAction.DismissAll;

            //自定义动作设置

            //禁止块冲突
            sc.OptionsCustomization.AllowAppointmentConflicts = AppointmentConflictsMode.Allowed;
            //不允许复制
            sc.OptionsCustomization.AllowAppointmentCopy = UsedAppointmentType.None;
            //不允许创建
            sc.OptionsCustomization.AllowAppointmentCreate = UsedAppointmentType.None;
            //不允许删除
            sc.OptionsCustomization.AllowAppointmentDelete = UsedAppointmentType.None;
            //不允许拖到
            sc.OptionsCustomization.AllowAppointmentDrag = UsedAppointmentType.None;
            //不允许不同资源间创建
            sc.OptionsCustomization.AllowAppointmentDragBetweenResources = UsedAppointmentType.None;
            //允许编辑
            //sc.OptionsCustomization.AllowAppointmentEdit = UsedAppointmentType.All;
            //不允许多个选择
            sc.OptionsCustomization.AllowAppointmentMultiSelect = false;
            //不允许改变大小
            sc.OptionsCustomization.AllowAppointmentResize = UsedAppointmentType.None;
            //不允许依赖窗体弹出
            sc.OptionsCustomization.AllowDisplayAppointmentDependencyForm = AllowDisplayAppointmentDependencyForm.Never;
            //允许Appointment窗体弹出
            sc.OptionsCustomization.AllowDisplayAppointmentForm = AllowDisplayAppointmentForm.Never;
            //不允许编辑文字
            sc.OptionsCustomization.AllowInplaceEditor = UsedAppointmentType.None;

            //GrantView
            //sc.Views.GanttView.CellsAutoHeightOptions.Enabled = false;//设置单元格不自适应高度

            //sc.Views.GanttView.CellsAutoHeightOptions.MinHeight = 40;//设置最小高度


            //设置Appointment 的高度不自适应
            //sc.Views.GanttView.AppointmentDisplayOptions.AppointmentAutoHeight = false;
            sc.Views.GanttView.AppointmentDisplayOptions.AppointmentHeight = 40;
            //sc.Views.GanttView.AppointmentDisplayOptions.AppointmentInterspacing = 1;
            sc.Views.GanttView.AppointmentDisplayOptions.ContinueArrowDisplayType = AppointmentContinueArrowDisplayType.Never;
            //不显示开始时间
            sc.Views.GanttView.AppointmentDisplayOptions.StartTimeVisibility = AppointmentTimeVisibility.Never;
            //不显示结束时间
            sc.Views.GanttView.AppointmentDisplayOptions.EndTimeVisibility = AppointmentTimeVisibility.Never;
            //不显示进度条
            sc.Views.GanttView.AppointmentDisplayOptions.PercentCompleteDisplayType = PercentCompleteDisplayType.None;
            //不显示恢复
            sc.Views.GanttView.AppointmentDisplayOptions.ShowRecurrence = false;
            //不显示提醒
            sc.Views.GanttView.AppointmentDisplayOptions.ShowReminder    = false;
            sc.Views.GanttView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never;
            //不显示状态
            sc.Views.GanttView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never;
            //显示样式
            sc.Views.GanttView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Text;


            //显示颜色

            sc.Views.GanttView.Appearance.Dependency.ForeColor = Color.Red;

            sc.Views.GanttView.Appearance.SelectedDependency.ForeColor = Color.Blue;


            sc.Views.GanttView.Scales.Clear();//清空

            DevExpress.XtraScheduler.TimeScaleDay td = new TimeScaleDay();
            td.DisplayFormat = "yyyy-MM-dd";
            td.Enabled       = true;


            DevExpress.XtraScheduler.TimeScaleHour tm = new TimeScaleHour();
            tm.Enabled = true;


            sc.Views.GanttView.Scales.Add(td);
            sc.Views.GanttView.Scales.Add(tm);
        }
示例#26
0
 private void schedulerControl_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
 {
     DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler();
     DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler();
     this.schedulerControl1          = new DevExpress.XtraScheduler.SchedulerControl();
     this.schedulerDataStorage1      = new DevExpress.XtraScheduler.SchedulerDataStorage(this.components);
     this.carSchedulingBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.carsDBDataSet                = new SchedulerGridSync.CarsDBDataSet();
     this.carSchedulingTableAdapter    = new SchedulerGridSync.CarsDBDataSetTableAdapters.CarSchedulingTableAdapter();
     this.repImgPriority               = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.repSpinDuration              = new DevExpress.XtraEditors.Repository.RepositoryItemSpinEdit();
     this.repImgSeverity               = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.splitterControl2             = new DevExpress.XtraEditors.SplitterControl();
     this.repositoryItemImageComboBox1 = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.repositoryItemSpinEdit1      = new DevExpress.XtraEditors.Repository.RepositoryItemSpinEdit();
     this.repositoryItemImageComboBox2 = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.repositoryItemImageComboBox3 = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.repositoryItemSpinEdit2      = new DevExpress.XtraEditors.Repository.RepositoryItemSpinEdit();
     this.repositoryItemImageComboBox4 = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
     this.gridControl1   = new DevExpress.XtraGrid.GridControl();
     this.gridView1      = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.colStatus      = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colSubject     = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colDescription = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colLabel       = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colStartTime   = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colEndTime     = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colLocation    = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colAllDay      = new DevExpress.XtraGrid.Columns.GridColumn();
     this.panel1         = new System.Windows.Forms.Panel();
     this.label1         = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerDataStorage1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.carSchedulingBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.carsDBDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repImgPriority)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repSpinDuration)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repImgSeverity)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // schedulerControl1
     //
     this.schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Month;
     this.schedulerControl1.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.schedulerControl1.Location       = new System.Drawing.Point(0, 24);
     this.schedulerControl1.Name           = "schedulerControl1";
     this.schedulerControl1.Size           = new System.Drawing.Size(808, 298);
     this.schedulerControl1.Start          = new System.DateTime(2010, 7, 11, 0, 0, 0, 0);
     this.schedulerControl1.DataStorage    = this.schedulerDataStorage1;
     this.schedulerControl1.TabIndex       = 0;
     this.schedulerControl1.Text           = "schedulerControl1";
     this.schedulerControl1.Views.DayView.NavigationButtonVisibility = DevExpress.XtraScheduler.NavigationButtonVisibility.Never;
     this.schedulerControl1.Views.DayView.TimeRulers.Add(timeRuler1);
     this.schedulerControl1.Views.MonthView.NavigationButtonVisibility = DevExpress.XtraScheduler.NavigationButtonVisibility.Never;
     this.schedulerControl1.Views.MonthView.WeekCount = 3;
     this.schedulerControl1.Views.TimelineView.NavigationButtonVisibility = DevExpress.XtraScheduler.NavigationButtonVisibility.Never;
     this.schedulerControl1.Views.WeekView.NavigationButtonVisibility     = DevExpress.XtraScheduler.NavigationButtonVisibility.Never;
     this.schedulerControl1.Views.WorkWeekView.NavigationButtonVisibility = DevExpress.XtraScheduler.NavigationButtonVisibility.Never;
     this.schedulerControl1.Views.WorkWeekView.TimeRulers.Add(timeRuler2);
     //
     // schedulerDataStorage1
     //
     this.schedulerDataStorage1.Appointments.DataSource           = this.carSchedulingBindingSource;
     this.schedulerDataStorage1.Appointments.Mappings.AllDay      = "AllDay";
     this.schedulerDataStorage1.Appointments.Mappings.Description = "Description";
     this.schedulerDataStorage1.Appointments.Mappings.End         = "EndTime";
     this.schedulerDataStorage1.Appointments.Mappings.Label       = "Label";
     this.schedulerDataStorage1.Appointments.Mappings.Location    = "Location";
     this.schedulerDataStorage1.Appointments.Mappings.Start       = "StartTime";
     this.schedulerDataStorage1.Appointments.Mappings.Status      = "Status";
     this.schedulerDataStorage1.Appointments.Mappings.Subject     = "Subject";
     this.schedulerDataStorage1.FilterAppointment                  += new DevExpress.XtraScheduler.PersistentObjectCancelEventHandler(this.schedulerDataStorage1_FilterAppointment);
     this.schedulerDataStorage1.AppointmentCollectionCleared       += new System.EventHandler(this.schedulerDataStorage1_AppointmentCollectionCleared);
     this.schedulerDataStorage1.AppointmentCollectionAutoReloading += new DevExpress.XtraScheduler.CancelListChangedEventHandler(this.schedulerDataStorage1_AppointmentCollectionAutoReloading);
     //
     // carSchedulingBindingSource
     //
     this.carSchedulingBindingSource.DataMember = "CarScheduling";
     this.carSchedulingBindingSource.DataSource = this.carsDBDataSet;
     //
     // carsDBDataSet
     //
     this.carsDBDataSet.DataSetName             = "CarsDBDataSet";
     this.carsDBDataSet.Locale                  = new System.Globalization.CultureInfo("");
     this.carsDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // carSchedulingTableAdapter
     //
     this.carSchedulingTableAdapter.ClearBeforeFill = true;
     //
     // repImgPriority
     //
     this.repImgPriority.AutoHeight = false;
     this.repImgPriority.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repImgPriority.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Low", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Normal", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("High", 2, -1)
     });
     this.repImgPriority.Name = "repImgPriority";
     //
     // repSpinDuration
     //
     this.repSpinDuration.AutoHeight = false;
     this.repSpinDuration.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton()
     });
     this.repSpinDuration.IsFloatValue  = false;
     this.repSpinDuration.Mask.EditMask = "N00";
     this.repSpinDuration.MaxValue      = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.repSpinDuration.MinValue = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.repSpinDuration.Name = "repSpinDuration";
     //
     // repImgSeverity
     //
     this.repImgSeverity.AutoHeight = false;
     this.repImgSeverity.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repImgSeverity.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Minor", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Moderate", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Severe", 2, -1)
     });
     this.repImgSeverity.Name = "repImgSeverity";
     //
     // splitterControl2
     //
     this.splitterControl2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.splitterControl2.Location = new System.Drawing.Point(0, 322);
     this.splitterControl2.Name     = "splitterControl2";
     this.splitterControl2.Size     = new System.Drawing.Size(808, 6);
     this.splitterControl2.TabIndex = 8;
     this.splitterControl2.TabStop  = false;
     //
     // repositoryItemImageComboBox1
     //
     this.repositoryItemImageComboBox1.AutoHeight = false;
     this.repositoryItemImageComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemImageComboBox1.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Low", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Normal", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("High", 2, -1)
     });
     this.repositoryItemImageComboBox1.Name = "repositoryItemImageComboBox1";
     //
     // repositoryItemSpinEdit1
     //
     this.repositoryItemSpinEdit1.AutoHeight = false;
     this.repositoryItemSpinEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton()
     });
     this.repositoryItemSpinEdit1.IsFloatValue  = false;
     this.repositoryItemSpinEdit1.Mask.EditMask = "N00";
     this.repositoryItemSpinEdit1.MaxValue      = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.repositoryItemSpinEdit1.MinValue = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.repositoryItemSpinEdit1.Name = "repositoryItemSpinEdit1";
     //
     // repositoryItemImageComboBox2
     //
     this.repositoryItemImageComboBox2.AutoHeight = false;
     this.repositoryItemImageComboBox2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemImageComboBox2.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Minor", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Moderate", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Severe", 2, -1)
     });
     this.repositoryItemImageComboBox2.Name = "repositoryItemImageComboBox2";
     //
     // repositoryItemImageComboBox3
     //
     this.repositoryItemImageComboBox3.AutoHeight = false;
     this.repositoryItemImageComboBox3.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemImageComboBox3.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Low", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Normal", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("High", 2, -1)
     });
     this.repositoryItemImageComboBox3.Name = "repositoryItemImageComboBox3";
     //
     // repositoryItemSpinEdit2
     //
     this.repositoryItemSpinEdit2.AutoHeight = false;
     this.repositoryItemSpinEdit2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton()
     });
     this.repositoryItemSpinEdit2.IsFloatValue  = false;
     this.repositoryItemSpinEdit2.Mask.EditMask = "N00";
     this.repositoryItemSpinEdit2.MaxValue      = new decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.repositoryItemSpinEdit2.MinValue = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.repositoryItemSpinEdit2.Name = "repositoryItemSpinEdit2";
     //
     // repositoryItemImageComboBox4
     //
     this.repositoryItemImageComboBox4.AutoHeight = false;
     this.repositoryItemImageComboBox4.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.repositoryItemImageComboBox4.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Minor", 0, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Moderate", 1, -1),
         new DevExpress.XtraEditors.Controls.ImageComboBoxItem("Severe", 2, -1)
     });
     this.repositoryItemImageComboBox4.Name = "repositoryItemImageComboBox4";
     //
     // gridControl1
     //
     this.gridControl1.DataSource             = this.carSchedulingBindingSource;
     this.gridControl1.Dock                   = System.Windows.Forms.DockStyle.Bottom;
     this.gridControl1.EmbeddedNavigator.Name = "";
     this.gridControl1.Location               = new System.Drawing.Point(0, 328);
     this.gridControl1.MainView               = this.gridView1;
     this.gridControl1.Name                   = "gridControl1";
     this.gridControl1.Size                   = new System.Drawing.Size(808, 233);
     this.gridControl1.TabIndex               = 9;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView1
     });
     //
     // gridView1
     //
     this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.colStatus,
         this.colSubject,
         this.colDescription,
         this.colLabel,
         this.colStartTime,
         this.colEndTime,
         this.colLocation,
         this.colAllDay
     });
     this.gridView1.GridControl = this.gridControl1;
     this.gridView1.Name        = "gridView1";
     this.gridView1.OptionsSelection.MultiSelect = true;
     //
     // colStatus
     //
     this.colStatus.Caption      = "Status";
     this.colStatus.FieldName    = "Status";
     this.colStatus.Name         = "colStatus";
     this.colStatus.Visible      = true;
     this.colStatus.VisibleIndex = 0;
     //
     // colSubject
     //
     this.colSubject.Caption      = "Subject";
     this.colSubject.FieldName    = "Subject";
     this.colSubject.Name         = "colSubject";
     this.colSubject.Visible      = true;
     this.colSubject.VisibleIndex = 1;
     //
     // colDescription
     //
     this.colDescription.Caption      = "Description";
     this.colDescription.FieldName    = "Description";
     this.colDescription.Name         = "colDescription";
     this.colDescription.Visible      = true;
     this.colDescription.VisibleIndex = 2;
     //
     // colLabel
     //
     this.colLabel.Caption      = "Label";
     this.colLabel.FieldName    = "Label";
     this.colLabel.Name         = "colLabel";
     this.colLabel.Visible      = true;
     this.colLabel.VisibleIndex = 3;
     //
     // colStartTime
     //
     this.colStartTime.Caption      = "StartTime";
     this.colStartTime.FieldName    = "StartTime";
     this.colStartTime.Name         = "colStartTime";
     this.colStartTime.Visible      = true;
     this.colStartTime.VisibleIndex = 4;
     //
     // colEndTime
     //
     this.colEndTime.Caption      = "EndTime";
     this.colEndTime.FieldName    = "EndTime";
     this.colEndTime.Name         = "colEndTime";
     this.colEndTime.Visible      = true;
     this.colEndTime.VisibleIndex = 5;
     //
     // colLocation
     //
     this.colLocation.Caption      = "Location";
     this.colLocation.FieldName    = "Location";
     this.colLocation.Name         = "colLocation";
     this.colLocation.Visible      = true;
     this.colLocation.VisibleIndex = 6;
     //
     // colAllDay
     //
     this.colAllDay.Caption      = "AllDay";
     this.colAllDay.FieldName    = "AllDay";
     this.colAllDay.Name         = "colAllDay";
     this.colAllDay.Visible      = true;
     this.colAllDay.VisibleIndex = 7;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(808, 24);
     this.panel1.TabIndex = 10;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(4, 4);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(642, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Click to select grid rows and scheduler appointments. Use CTRL key to perform mul" +
                            "ti-select. Use TAB to switch between appointments.";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(808, 561);
     this.Controls.Add(this.schedulerControl1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.splitterControl2);
     this.Controls.Add(this.gridControl1);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "How to get XtraScheduler synchronized with XtraGrid";
     this.Load         += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerDataStorage1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.carSchedulingBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.carsDBDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repImgPriority)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repSpinDuration)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repImgSeverity)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemImageComboBox4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
示例#28
0
        private void InitGrantView(DevExpress.XtraScheduler.SchedulerControl sc)
        {
            //设置资源
            sc.GroupType = SchedulerGroupType.Resource;

            //设置甘特图
            sc.ActiveViewType = SchedulerViewType.Gantt;

            //设置Resource 字体不旋转
            sc.OptionsView.ResourceHeaders.RotateCaption = false;
            sc.OptionsView.ResourceHeaders.Height        = 60;
            sc.OptionsView.ShowOnlyResourceAppointments  = true;

            sc.Start = DateTime.Now;

            sc.DataStorage.Appointments.Labels.Clear();
            var label1 = sc.DataStorage.Appointments.Labels.CreateNewLabel("1", "Label");

            label1.SetColor(Color.LightBlue);
            sc.DataStorage.Appointments.Labels.Add(label1);
            var label2 = sc.DataStorage.Appointments.Labels.CreateNewLabel("0", "Label");

            label2.SetColor(Color.Yellow);
            sc.DataStorage.Appointments.Labels.Add(label2);

            //禁止块冲突
            sc.OptionsCustomization.AllowAppointmentConflicts = AppointmentConflictsMode.Allowed;
            //不允许复制
            sc.OptionsCustomization.AllowAppointmentCopy = UsedAppointmentType.None;
            //不允许创建
            sc.OptionsCustomization.AllowAppointmentCreate = UsedAppointmentType.None;
            //不允许删除
            sc.OptionsCustomization.AllowAppointmentDelete = UsedAppointmentType.None;
            //不允许拖到
            sc.OptionsCustomization.AllowAppointmentDrag = UsedAppointmentType.None;
            //不允许不同资源间创建
            sc.OptionsCustomization.AllowAppointmentDragBetweenResources = UsedAppointmentType.None;
            //允许编辑
            //sc.OptionsCustomization.AllowAppointmentEdit = UsedAppointmentType.All;
            //不允许多个选择
            sc.OptionsCustomization.AllowAppointmentMultiSelect = false;
            //不允许改变大小
            sc.OptionsCustomization.AllowAppointmentResize = UsedAppointmentType.None;
            //不允许依赖窗体弹出
            sc.OptionsCustomization.AllowDisplayAppointmentDependencyForm = AllowDisplayAppointmentDependencyForm.Never;
            //允许Appointment窗体弹出
            sc.OptionsCustomization.AllowDisplayAppointmentForm = AllowDisplayAppointmentForm.Never;
            //不允许编辑文字
            sc.OptionsCustomization.AllowInplaceEditor = UsedAppointmentType.None;


            //设置Appointment 的高度不自适应
            //sc.Views.GanttView.AppointmentDisplayOptions.AppointmentAutoHeight = false;
            //高度
            sc.Views.GanttView.AppointmentDisplayOptions.AppointmentHeight = 40;
            //sc.Views.GanttView.AppointmentDisplayOptions.AppointmentInterspacing = 1;
            sc.Views.GanttView.AppointmentDisplayOptions.ContinueArrowDisplayType = AppointmentContinueArrowDisplayType.Never;
            //不显示开始时间
            sc.Views.GanttView.AppointmentDisplayOptions.StartTimeVisibility = AppointmentTimeVisibility.Never;
            //不显示结束时间
            sc.Views.GanttView.AppointmentDisplayOptions.EndTimeVisibility = AppointmentTimeVisibility.Never;
            //不显示进度条
            sc.Views.GanttView.AppointmentDisplayOptions.PercentCompleteDisplayType = PercentCompleteDisplayType.None;
            //不显示恢复
            sc.Views.GanttView.AppointmentDisplayOptions.ShowRecurrence = false;
            //不显示提醒
            sc.Views.GanttView.AppointmentDisplayOptions.ShowReminder    = false;
            sc.Views.GanttView.AppointmentDisplayOptions.SnapToCellsMode = AppointmentSnapToCellsMode.Never;
            //不显示状态
            sc.Views.GanttView.AppointmentDisplayOptions.StatusDisplayType = AppointmentStatusDisplayType.Never;
            //显示样式
            sc.Views.GanttView.AppointmentDisplayOptions.TimeDisplayType = AppointmentTimeDisplayType.Text;


            sc.Views.GanttView.Scales.Clear();//清空

            DevExpress.XtraScheduler.TimeScaleDay td = new TimeScaleDay();
            td.DisplayFormat = "yyyy-MM-dd";
            td.Enabled       = true;


            DevExpress.XtraScheduler.TimeScaleHour tm = new TimeScaleHour();
            tm.Enabled = true;


            sc.Views.GanttView.Scales.Add(td);
            sc.Views.GanttView.Scales.Add(tm);
        }
 public AppointmentFormOutlook2007Style(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt)
     : this(control, apt, false)
 {
 }
 protected internal virtual AppointmentFormController CreateController(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt)
 {
     return(new AppointmentFormController(control, apt));
 }