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

    r884 r1110  
    302302           
    303303            // _currentResourcePrinting starts with zero. There will be at least this one.
    304             ClinicalScheduling.Printing.PrintAppointments(_dsApptDisplay, e, _dtBegin, _dtEnd,
     304            CGDocumentManager.Current.PrintingObject.PrintAppointments(_dsApptDisplay, e, _dtBegin, _dtEnd,
    305305                    _currentResourcePrinting, ref _currentApptPrinting, _pageNumber);
    306306
     
    332332            if (_dsApptDisplay.PatientAppts.Count == 0)
    333333            {
    334                 ClinicalScheduling.Printing.PrintMessage("No Appointments found", e);
     334                CGDocumentManager.Current.PrintingObject.PrintMessage("No Appointments found", e);
    335335                return;
    336336            }
     
    340340                dsPatientApptDisplay2.BSDXResourceRow c = (dsPatientApptDisplay2.BSDXResourceRow)
    341341                   _dsApptDisplay.PatientAppts[_currentApptPrinting].GetParentRow(_dsApptDisplay.Relations[0]);
    342                 ClinicalScheduling.Printing.PrintReminderLetter(_dsApptDisplay.PatientAppts[_currentApptPrinting], e, c.LETTER_TEXT, "Reminder Letter");
     342                CGDocumentManager.Current.PrintingObject.PrintReminderLetter(_dsApptDisplay.PatientAppts[_currentApptPrinting], e, c.LETTER_TEXT, "Reminder Letter");
    343343                _currentApptPrinting++;
    344344                if (_currentApptPrinting < _dsApptDisplay.PatientAppts.Count)
     
    359359            if (_dsRebookAppts.PatientAppts.Count == 0)
    360360            {
    361                 ClinicalScheduling.Printing.PrintMessage("No Appointments found", e);
     361                CGDocumentManager.Current.PrintingObject.PrintMessage("No Appointments found", e);
    362362                return;
    363363            }
     
    367367                dsRebookAppts.BSDXResourceRow c = (dsRebookAppts.BSDXResourceRow)
    368368                   _dsRebookAppts.PatientAppts[_currentApptPrinting].GetParentRow(_dsRebookAppts.Relations[0]);
    369                 ClinicalScheduling.Printing.PrintCancelLetter(_dsRebookAppts.PatientAppts[_currentApptPrinting], e, c.CLINIC_CANCELLATION_LETTER, "Cancellation Letter");
     369                CGDocumentManager.Current.PrintingObject.PrintCancelLetter(_dsRebookAppts.PatientAppts[_currentApptPrinting], e, c.CLINIC_CANCELLATION_LETTER, "Cancellation Letter");
    370370                _currentApptPrinting++;
    371371                if (_currentApptPrinting < _dsRebookAppts.PatientAppts.Count)
     
    384384            if (_dsRebookAppts.PatientAppts.Count == 0)
    385385            {
    386                 ClinicalScheduling.Printing.PrintMessage("No Appointments found", e);
     386                CGDocumentManager.Current.PrintingObject.PrintMessage("No Appointments found", e);
    387387                return;
    388388            }
     
    393393                   _dsRebookAppts.PatientAppts[_currentApptPrinting].GetParentRow(_dsRebookAppts.Relations[0]);
    394394                //XXX: Rebook letter rather oddly currently stored in NO SHOW LETTER field. What gives???
    395                 ClinicalScheduling.Printing.PrintRebookLetter(_dsRebookAppts.PatientAppts[_currentApptPrinting], e, c.NO_SHOW_LETTER, "Rebook Letter");
     395                CGDocumentManager.Current.PrintingObject.PrintRebookLetter(_dsRebookAppts.PatientAppts[_currentApptPrinting], e, c.NO_SHOW_LETTER, "Rebook Letter");
    396396                _currentApptPrinting++;
    397397                if (_currentApptPrinting < _dsRebookAppts.PatientAppts.Count)
Note: See TracChangeset for help on using the changeset viewer.