Last change
on this file since 1134 was 1117, checked in by Sam Habiel, 14 years ago |
CGAVDocument: Don't Update Grid. Leave that to CGAVView.
CGAVView: When updating grid, make a copy of appointments, and use the copy, so there won't be clashes when updating appointments in the background.
CGDocument: Minor Changes in AppointmentNoShow; New method AppointmentUndoCheckIn
CGDocumentManager: Resequenced load order b/c UserPreferences now talks to DB.
DAL: New Methods to save autoprint preferences; new delegate to enable some async stuff
DCheckIn & DAppointPage: _myCodeIsFiringIstheCheckBoxChangedEvent added to protect against firing event when setting checkbox in the code.
DPatientLetter: No changes.
UserPreferences: Now gets and saves user preferences from DB.
|
File size:
1.3 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace IndianHealthService.ClinicalScheduling
|
---|
7 | {
|
---|
8 | /// <summary>
|
---|
9 | /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
|
---|
10 | /// </summary>
|
---|
11 | public class UserPreferences
|
---|
12 | {
|
---|
13 | bool _printAppointmentSlipAutomacially;
|
---|
14 | bool _printRoutingSlipAutomatically;
|
---|
15 |
|
---|
16 | public UserPreferences()
|
---|
17 | {
|
---|
18 | _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
|
---|
19 | _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
|
---|
20 |
|
---|
21 | }
|
---|
22 |
|
---|
23 | public bool PrintAppointmentSlipAutomacially {
|
---|
24 | get { return _printAppointmentSlipAutomacially; }
|
---|
25 | set
|
---|
26 | {
|
---|
27 | CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip = _printAppointmentSlipAutomacially = value;
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public bool PrintRoutingSlipAutomatically
|
---|
32 | {
|
---|
33 | get { return _printRoutingSlipAutomatically; }
|
---|
34 | set
|
---|
35 | {
|
---|
36 | CGDocumentManager.Current.DAL.AutoPrintRoutingSlip = _printRoutingSlipAutomatically = value;
|
---|
37 | }
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.