Ignore:
Timestamp:
Mar 21, 2011, 8:47:45 AM (13 years ago)
Author:
Sam Habiel
Message:

CGDocument:

CGDocumentManager:

CGView: (Changes to support printing of Appointment Slip)

  • Changed name and text of context menu to say "print appointment slip"
  • Logic to Print Appointment Slip

CustomPrinting.cs renamed to Printing.cs; old Printing.Cs removed.
DAppointPage:

  • New checkbox to request printing of Appointment Slip
  • Sex of patient now pulled and included in form.

DPatientLetter:

  • Redirected to use new Printing framework.

Patient:

Printing:

File:
1 edited

Legend:

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

    r1106 r1110  
    177177        /// <returns>Clears and repopluates m_appointments</returns>
    178178        /// </summary>
    179         private bool RefreshDaysSchedule()
     179        private bool RefreshAppointments()
    180180        {
    181181            try
     
    239239                    bWalkIn = (sWalkIn == "1") ? true : false;
    240240
     241                    Patient pt = new Patient()
     242                    {
     243                        DFN = Convert.ToInt32(sPatientID),
     244                        Name = sPatientName,
     245                        DOB = (DateTime)r["DOB"],
     246                        ID = r["PID"].ToString(),
     247                        HRN = sHRN,
     248                        Sex = r["SEX"].ToString() == "MALE" ? Sex.Male : Sex.Female
     249                    };
     250
    241251                    pAppointment = new CGAppointment();
     252                    pAppointment.Patient = pt;
    242253                    pAppointment.CreateAppointment(dStart, dEnd, sNote, nKeyID, sResource);
    243254                    pAppointment.PatientName = sPatientName;
     
    396407        {
    397408            this.RefreshAvailabilitySchedule();
    398             this.RefreshDaysSchedule();
     409            this.RefreshAppointments();
    399410            return true;
    400411        }
Note: See TracChangeset for help on using the changeset viewer.