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

    r1112 r1117  
    12461246        }
    12471247
    1248         public string AppointmentNoShow(int nApptID, bool bNoShow)
     1248        public string AppointmentNoShow(CGAppointment a, bool bNoShow)
    12491249        {
    12501250            /*
     
    12531253             *
    12541254             */
    1255 
     1255            int nApptID = a.AppointmentKey;
    12561256            string sTest = bNoShow.ToString();
    12571257            string sNoShow = (bNoShow == true) ? "1" : "0";
     
    12701270            }
    12711271
    1272             bool bRet = RefreshSchedule();
     1272            //All okay over here... then set appointment noshow or not no show...
     1273            a.NoShow = bNoShow ? true : false;
     1274
     1275            //bool bRet = RefreshSchedule();
    12731276
    12741277            return sErrorID;
     1278        }
     1279
     1280        public bool AppointmentUndoCheckin(CGAppointment a, out string msg)
     1281        {
     1282            msg = "";
     1283            //zero good, anything else bad
     1284            DataTable dt = CGDocumentManager.Current.DAL.RemoveCheckIn(a.AppointmentKey);
     1285            if (dt.Rows[0][0].ToString() == "0")
     1286            {
     1287                a.CheckInTime = DateTime.MinValue; // remove check-in time.
     1288                return true;
     1289            }
     1290
     1291            else
     1292            {
     1293                msg = dt.Rows[0][0].ToString();
     1294                return false;
     1295            }
    12751296        }
    12761297
Note: See TracChangeset for help on using the changeset viewer.