Ignore:
Timestamp:
Jan 27, 2011, 2:46:45 AM (13 years ago)
Author:
Sam Habiel
Message:

CGDocument: On Delete Appointment, no update done by Document method. View responsible for this request.
CGView:

  1. Drag and Dropped code made to be the same as the rest. Call Document for updating appointments, but not redraw the grid. Drag Drop does not request a refresh directly; but rather, it shoots RPMS events which when they are raised back update the grid.
  2. Fixed bug in Drag and Drop where the source appointment resource is changed before passing it to Document.CreateAppointment() which saves it to the database. This causes the appointments maintained by Document to be temporarily corrupted if CreateAppointment fails during drag and drop.
  3. View calls refershdocumentasync now after Document.DeleteAppointment call.

Last but not least: new version of ClinicalScheduling.exe and BMXNet23.dll (release).

File:
1 edited

Legend:

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

    r1083 r1084  
    799799            sErrorID = r["ERRORID"].ToString();
    800800            if ((sErrorID != "") || (nApptID < 1))
     801            {
    801802                throw new Exception(sErrorID);
     803            }
    802804            aCopy.AppointmentKey = nApptID;
    803805            this.m_appointments.AddAppointment(aCopy);
     
    885887            {
    886888                this.m_appointments.RemoveAppointment(nApptID);
    887                 bool bRet = RefreshAvailabilitySchedule();
    888                 UpdateAllViews();
     889               
     890                // View responsible for deciding to redraw the grid; not the document now.
     891                //bool bRet = RefreshAvailabilitySchedule();
     892                //UpdateAllViews();
    889893            }
    890894            return "";
Note: See TracChangeset for help on using the changeset viewer.