source: Scheduling/branches/BMX4Support/UserPreferences.cs@ 1419

Last change on this file since 1419 was 1174, checked in by Sam Habiel, 14 years ago

Absorbed all changed from Radiology Support branch.
Patient and Provider classes now serializable to address new bug: Availablity slots cannot be saved b/c these classes are not serializable.

File size: 1.3 KB
Line 
1/*Licensed under LGPL*/
2
3using System;
4using System.Collections.Generic;
5using System.Linq;
6using System.Text;
7
8namespace IndianHealthService.ClinicalScheduling
9{
10 /// <summary>
11 /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
12 /// </summary>
13 public class UserPreferences
14 {
15 bool _printAppointmentSlipAutomacially;
16 bool _printRoutingSlipAutomatically;
17
18 public UserPreferences()
19 {
20 _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
21 _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
22
23 }
24
25 public bool PrintAppointmentSlipAutomacially {
26 get { return _printAppointmentSlipAutomacially; }
27 set
28 {
29 CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip = _printAppointmentSlipAutomacially = value;
30 }
31 }
32
33 public bool PrintRoutingSlipAutomatically
34 {
35 get { return _printRoutingSlipAutomatically; }
36 set
37 {
38 CGDocumentManager.Current.DAL.AutoPrintRoutingSlip = _printRoutingSlipAutomatically = value;
39 }
40 }
41 }
42}
Note: See TracBrowser for help on using the repository browser.