Ejemplo n.º 1
0
        public void filterScheduledAppointments(DateTime startDate, DateTime endDate)
        {
            List <App_ScheduledAppointment> newList = App.Database.GetScheduledAppointments().Where(x => x.ScheduleDate >= startDate && x.ScheduleDate <= endDate).ToList();

            ScheduleDetails.Clear();
            foreach (var item in newList)
            {
                ScheduleDetails.Add(item);
            }
            OnPropertyChanged("ScheduleDetails");
        }
Ejemplo n.º 2
0
        public void filterByTicketNumber(string ticketNumber)
        {
            try
            {
                List <App_ScheduledAppointment> newList = App.Database.GetScheduledAppointments().Where(x => x.ServiceTicketNumber.Contains(ticketNumber)).ToList();
                ScheduleDetails.Clear();
                foreach (var item in newList)
                {
                    ScheduleDetails.Add(item);
                }
            }
            catch (Exception ex)
            {
                ErrorReporting errorReporting = new ErrorReporting();
                errorReporting.sendException(ex, "TechDashboard.SchedulePageViewModel.filterByTicketNumber");
            }

            OnPropertyChanged("ScheduleDetails");
        }
Ejemplo n.º 3
0
        public void filterScheduledAppointments(DateTime startDate, DateTime endDate)
        {
            // dch rkl 12/07/2016 catch exception
            try
            {
                List <App_ScheduledAppointment> newList = App.Database.GetScheduledAppointments().Where(x => x.ScheduleDate >= startDate && x.ScheduleDate <= endDate).ToList();
                ScheduleDetails.Clear();
                foreach (var item in newList)
                {
                    ScheduleDetails.Add(item);
                }
            }
            catch (Exception ex)
            {
                // dch rkl 12/07/2016 Log Error
                ErrorReporting errorReporting = new ErrorReporting();
                errorReporting.sendException(ex, "TechDashboard.SchedulePageViewModel.filterScheduledAppointments");
            }

            OnPropertyChanged("ScheduleDetails");
        }