Ignore:
Timestamp:
Mar 29, 2011, 5:38:18 AM (13 years ago)
Author:
Sam Habiel
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/UserPreferences.cs

    r1111 r1117  
    77{
    88    /// <summary>
    9     /// Designed to keep user preferences. Very basic for now.
     9    /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
    1010    /// </summary>
    1111    public class UserPreferences
    1212    {
     13        bool _printAppointmentSlipAutomacially;
     14        bool _printRoutingSlipAutomatically;
     15       
    1316        public UserPreferences()
    1417        {
    15             PrintAppointmentSlipAutomacially = false;
    16             PrintRoutingSlipAutomatically = false;
     18            _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
     19            _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
     20           
    1721        }
    1822
    19         public bool PrintAppointmentSlipAutomacially { get; set; }
    20         public bool PrintRoutingSlipAutomatically { get; set; }
     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        }
    2139    }
    2240}
Note: See TracChangeset for help on using the changeset viewer.