2011-05-08 05:17:53 -04:00
|
|
|
|
/*Licensed under LGPL*/
|
|
|
|
|
|
|
|
|
|
using System;
|
2011-03-23 05:15:51 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace IndianHealthService.ClinicalScheduling
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2011-03-29 05:38:18 -04:00
|
|
|
|
/// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
|
2011-03-23 05:15:51 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class UserPreferences
|
|
|
|
|
{
|
2011-03-29 05:38:18 -04:00
|
|
|
|
bool _printAppointmentSlipAutomacially;
|
|
|
|
|
bool _printRoutingSlipAutomatically;
|
|
|
|
|
|
2011-03-23 05:15:51 -04:00
|
|
|
|
public UserPreferences()
|
|
|
|
|
{
|
2011-03-29 05:38:18 -04:00
|
|
|
|
_printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
|
|
|
|
|
_printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
|
|
|
|
|
|
2011-03-23 05:15:51 -04:00
|
|
|
|
}
|
|
|
|
|
|
2011-03-29 05:38:18 -04:00
|
|
|
|
public bool PrintAppointmentSlipAutomacially {
|
|
|
|
|
get { return _printAppointmentSlipAutomacially; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip = _printAppointmentSlipAutomacially = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool PrintRoutingSlipAutomatically
|
|
|
|
|
{
|
|
|
|
|
get { return _printRoutingSlipAutomatically; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
CGDocumentManager.Current.DAL.AutoPrintRoutingSlip = _printRoutingSlipAutomatically = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-03-23 05:15:51 -04:00
|
|
|
|
}
|
|
|
|
|
}
|