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/DAppointPage.cs

    r1111 r1117  
    671671        private string          m_sCountry;
    672672        private int          m_iAccessTypeID;
     673        private bool _myCodeIsFiringIstheCheckBoxChangedEvent;
    673674
    674675                #endregion //fields
     
    719720                groupBox4.Controls.Add(UC);
    720721
     722                _myCodeIsFiringIstheCheckBoxChangedEvent = true;
    721723                chkPrint.Checked = CGDocumentManager.Current.UserPreferences.PrintAppointmentSlipAutomacially;
     724                _myCodeIsFiringIstheCheckBoxChangedEvent = false;
    722725            }
    723726                        catch(Exception e)
     
    862865
    863866        /// <summary>
    864         /// Save Print Slip preference in UserPreferences object. For now, it always starts false since
    865         /// it isn't saved in the DB; but that will change in the future.
     867        /// Save Print Slip preference in UserPreferences object.
    866868        /// </summary>
    867869        /// <param name="sender"></param>
     
    869871        private void chkPrint_CheckedChanged(object sender, EventArgs e)
    870872        {
     873            if (_myCodeIsFiringIstheCheckBoxChangedEvent) return;
     874
    871875            CGDocumentManager.Current.UserPreferences.PrintAppointmentSlipAutomacially = chkPrint.Checked;
    872876        }
Note: See TracChangeset for help on using the changeset viewer.