Ejemplo n.º 1
0
        public void setInfo()
        {
            DateTime date = new DateTime(2018, 10, 30);

            bBUS = new BookingBUS();
            List <DTO.Booking> list = bBUS.getList(date);

            foreach (DTO.Booking b in list)
            {
                loadInfo(b);
            }
        }
Ejemplo n.º 2
0
        public void setSchedule()
        {
            DateTime date = DateTime.Now;

            bBUS = new BookingBUS();

            List <DTO.Booking> list = bBUS.getList(date);

            foreach (DTO.Booking b in list)
            {
                LoadSchedule(b);
            }

            //schedulerControl1.DayView.TimeRulers.Clear();
            schedulerControl1.DayView.TimeSlots.Add(new TimeSlot(TimeSpan.FromHours(10), "5 hours"));
            schedulerControl1.DayView.TimeScale = TimeSpan.FromHours(10);
            //schedulerStorage1.Appointments.Mappings
            schedulerControl1.DayView.DayCount = 3;
            schedulerControl1.Views.DayView.AppointmentDisplayOptions.StartTimeVisibility = DevExpress.XtraScheduler.AppointmentTimeVisibility.Never;
            schedulerControl1.Views.DayView.AppointmentDisplayOptions.EndTimeVisibility   = DevExpress.XtraScheduler.AppointmentTimeVisibility.Never;
        }
Ejemplo n.º 3
0
        private void SchedulerControl1_MouseClick(object sender, MouseEventArgs e)
        {
            DateTime date = DateTime.Now;

            bBUS = new BookingBUS();
            List <DTO.Booking> list = bBUS.getList(date);

            SchedulerHitInfo hitInfo = schedulerControl1.ActiveView.ViewInfo.CalcHitInfo(e.Location, false);



            if (hitInfo.HitTest == SchedulerHitTest.AppointmentContent)
            {
                foreach (DTO.Booking b in list)
                {
                    foreach (Appointment myAppt in schedulerControl1.SelectedAppointments)
                    {
                        //MessageBox.Show(myAppt.Description);
                        loadInfo(b);
                    }
                }
            }
        }