/// <summary>
 /// Raises the <see cref="E:FrontDeskDashboardDateChanged"/> event.
 /// </summary>
 /// <param name="frontDeskDashboardDateChangedEventArgs">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 public void OnFrontDeskDashboardDateChanged(FrontDeskDashboardDateChangedEventArgs frontDeskDashboardDateChangedEventArgs)
 {
     SelectedDate = frontDeskDashboardDateChangedEventArgs.Date.Date;
     if (_selectedRange.StartDate.Date != _selectedRange.EndDate.Date &&
         (_selectedRange.StartDate.Date > frontDeskDashboardDateChangedEventArgs.Date.Date ||
          _selectedRange.EndDate.Date < frontDeskDashboardDateChangedEventArgs.Date.Date))
     {
         _selectedRange.StartDate =
             frontDeskDashboardDateChangedEventArgs.Date.GetFirstDayOfWeek();
         _selectedRange.EndDate =
             _selectedRange.StartDate.AddDays(6);
     }
     UpdateSchedule(true);
 }
Esempio n. 2
0
 /// <summary>
 /// Raises the <see cref="E:FrontDeskDashboardDateChanged"/> event.
 /// </summary>
 /// <param name="args">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 public void OnFrontDeskDashboardDateChanged(FrontDeskDashboardDateChangedEventArgs args)
 {
     //Need to do this so the Change Date event is not fired again.
     _selectedDate = args.Date;
     RaisePropertyChanged(() => SelectedDate);
 }
Esempio n. 3
0
 /// <summary>
 /// Filters the front desk dashboard date changed.
 /// </summary>
 /// <param name="args">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterFrontDeskDashboardDateChanged(FrontDeskDashboardDateChangedEventArgs args)
 {
     return(args.Source != this && args.LocationKey == CurrentUserContext.Location.Key);
 }
 /// <summary>
 /// Raises the <see cref="E:FrontDeskDashboardDateChanged"/> event.
 /// </summary>
 /// <param name="args">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 public void OnFrontDeskDashboardDateChanged( FrontDeskDashboardDateChangedEventArgs args )
 {
     //Need to do this so the Change Date event is not fired again.
     _selectedDate = args.Date;
     RaisePropertyChanged ( () => SelectedDate );
 }
 /// <summary>
 /// Filters the front desk dashboard date changed.
 /// </summary>
 /// <param name="args">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterFrontDeskDashboardDateChanged( FrontDeskDashboardDateChangedEventArgs args )
 {
     return args.Source != this && args.LocationKey == CurrentUserContext.Location.Key;
 }
 /// <summary>
 /// Raises the <see cref="E:FrontDeskDashboardDateChanged"/> event.
 /// </summary>
 /// <param name="frontDeskDashboardDateChangedEventArgs">The <see cref="Rem.Ria.PatientModule.FrontDeskDashboard.FrontDeskDashboardDateChangedEventArgs"/> instance containing the event data.</param>
 public void OnFrontDeskDashboardDateChanged ( FrontDeskDashboardDateChangedEventArgs frontDeskDashboardDateChangedEventArgs )
 {
     SelectedDate = frontDeskDashboardDateChangedEventArgs.Date.Date;
     if ( _selectedRange.StartDate.Date != _selectedRange.EndDate.Date &&
          ( _selectedRange.StartDate.Date > frontDeskDashboardDateChangedEventArgs.Date.Date ||
            _selectedRange.EndDate.Date < frontDeskDashboardDateChangedEventArgs.Date.Date ) )
     {
         _selectedRange.StartDate =
             frontDeskDashboardDateChangedEventArgs.Date.GetFirstDayOfWeek ();
         _selectedRange.EndDate =
             _selectedRange.StartDate.AddDays ( 6 );
     }
     UpdateSchedule ( true );
 }