Ignore:
Timestamp:
Jul 10, 2010, 11:30:32 AM (14 years ago)
Author:
Sam Habiel
Message:

More refactoring.

File:
1 edited

Legend:

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

    r789 r848  
    5353                                        throw new Exception("At least one clinic must be selected.");
    5454                                }
    55                 _dtBegin = dtBegin;
    56                 _dtEnd = dtEnd;
    57                                 string sBegin = dtBegin.ToShortDateString();
    58                                 string sEnd = dtEnd.ToShortDateString();
    59                                 this.Text="Clinic Schedules";
    60 
    61                                 string sSql = "BSDX CLINIC LETTERS^" + sClinicList + "^" + sBegin + "^" + sEnd;
    62                 string sSql2 = "BSDX RESOURCE LETTERS^" + sClinicList;
    63 
     55
     56                _dtBegin = dtBegin; // Global variable to use in Printing method below
     57                _dtEnd = dtEnd; // ditto
     58
     59                this.Text="Clinic Schedules";
     60
     61                // Get Data
     62                DataTable PatientAppts = docManager.DAL.GetClinicSchedules(sClinicList, dtBegin, dtEnd);
     63                DataTable Resources = docManager.DAL.GetResourceLetters(sClinicList);
     64
     65                // Merge tables into typed dataset
    6466                _dsApptDisplay = new dsPatientApptDisplay2();
    65                 _dsApptDisplay.BSDXResource.Merge(docManager.RPMSDataTable(sSql2, "Resources"));
    66                 _dsApptDisplay.PatientAppts.Merge(docManager.RPMSDataTable(sSql, "PatientAppts"));
     67                _dsApptDisplay.PatientAppts.Merge(PatientAppts);
     68                _dsApptDisplay.BSDXResource.Merge(Resources);
    6769
    6870                this.PrintPreviewControl.Document = printAppts;
     
    8183        /// <param name="dtBegin">Beginning Date</param>
    8284        /// <param name="dtEnd">End Date</param>
     85        /// working on moving this over...
    8386        public void InitializeFormRebookLetters(CGDocumentManager docManager,
    8487                        string sClinicList,
Note: See TracChangeset for help on using the changeset viewer.