Ignore:
Timestamp:
Jun 4, 2010, 10:19:48 PM (14 years ago)
Author:
Sam Habiel
Message:

Some debugging code to attach the program to the console to print messages.
Letters:

  • Cancellation letters now work.
  • Initial work on Rebook Letters.
File:
1 edited

Legend:

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

    r772 r788  
    8383                private System.Windows.Forms.MenuItem menuItem6;
    8484                private System.Windows.Forms.MenuItem menuItem7;
    85                 private System.Windows.Forms.MenuItem mnuPrintClinicLetters;
     85                private System.Windows.Forms.MenuItem mnuPrintReminderLetters;
    8686                private System.Windows.Forms.MenuItem mnuPrintPatientLetter;
    8787                private System.Windows.Forms.MenuItem mnuPrintClinicSchedules;
     
    213213            this.menuItem6 = new System.Windows.Forms.MenuItem();
    214214            this.mnuPrintClinicSchedules = new System.Windows.Forms.MenuItem();
    215             this.mnuPrintClinicLetters = new System.Windows.Forms.MenuItem();
     215            this.mnuPrintReminderLetters = new System.Windows.Forms.MenuItem();
    216216            this.mnuPrintRebookLetters = new System.Windows.Forms.MenuItem();
    217217            this.mnuPrintCancellationLetters = new System.Windows.Forms.MenuItem();
     
    311311            this.menuItem6,
    312312            this.mnuPrintClinicSchedules,
    313             this.mnuPrintClinicLetters,
     313            this.mnuPrintReminderLetters,
    314314            this.mnuPrintRebookLetters,
    315315            this.mnuPrintCancellationLetters,
     
    365365            //
    366366            this.mnuSchedulingManagment.Index = 7;
     367            this.mnuSchedulingManagment.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftM;
    367368            this.mnuSchedulingManagment.Text = "Scheduling &Management";
    368369            this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click);
     
    380381            this.mnuPrintClinicSchedules.Click += new System.EventHandler(this.mnuPrintClinicSchedules_Click);
    381382            //
    382             // mnuPrintClinicLetters
    383             //
    384             this.mnuPrintClinicLetters.Index = 10;
    385             this.mnuPrintClinicLetters.Text = "Print Rem&inder Letters";
    386             this.mnuPrintClinicLetters.Click += new System.EventHandler(this.mnuPrintClinicLetters_Click);
     383            // mnuPrintReminderLetters
     384            //
     385            this.mnuPrintReminderLetters.Index = 10;
     386            this.mnuPrintReminderLetters.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
     387            this.mnuPrintReminderLetters.Text = "Print Rem&inder Letters";
     388            this.mnuPrintReminderLetters.Click += new System.EventHandler(this.mnuPrintReminderLetters_Click);
    387389            //
    388390            // mnuPrintRebookLetters
     
    395397            //
    396398            this.mnuPrintCancellationLetters.Index = 12;
     399            this.mnuPrintCancellationLetters.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftC;
    397400            this.mnuPrintCancellationLetters.Text = "Print C&ancellation Letters";
    398401            this.mnuPrintCancellationLetters.Click += new System.EventHandler(this.mnuPrintCancellationLetters_Click);
     
    17871790                                        sClinicList = sClinicList + sRes + "|";
    17881791                                }
    1789                                 string sSql = "BSDX REBOOK LIST^" + sApptIDList;
    1790                                 DataTable dtLetters = m_DocManager.RPMSDataTable(sSql, "PatientAppts");
    1791                                 DPatientLetter dpl = new DPatientLetter();
    1792                                        
    1793                                 dpl.InitializeFormRebookLetters(this.DocManager, sClinicList, dtLetters);
     1792                                DPatientLetter dpl = new DPatientLetter();                                     
     1793                                dpl.InitializeFormRebookLetters(this.DocManager, sClinicList, sApptIDList);
    17941794                                dpl.ShowDialog(this);
    17951795                        }               
     
    29152915                }
    29162916
    2917                 private void mnuPrintClinicLetters_Click(object sender, System.EventArgs e)
     2917                private void mnuPrintReminderLetters_Click(object sender, System.EventArgs e)
    29182918                {
    29192919                        try
     
    29312931
    29322932                                DPatientLetter dpl = new DPatientLetter();
    2933                                 dpl.InitializeFormClinicLetters(this.DocManager, sClinics, dtBegin, dtEnd);
     2933                                dpl.InitializeFormPatientReminderLetters(this.DocManager, sClinics, dtBegin, dtEnd);
    29342934                                dpl.ShowDialog(this);
    29352935
     
    29512951                                        return;
    29522952
    2953                                 //get the resource names and call the letter printer
    2954 
    2955                                 string sClinics = ds.SelectedClinics;
    2956                                 DateTime dtBegin = ds.BeginDate;
    2957                                 DateTime dtEnd = ds.EndDate;
    2958                                 string sBegin = dtBegin.ToString("M/d/yyyy@HH:mm");
    2959                                 string sEnd = dtEnd.ToString("M/d/yyyy@HH:mm");
    2960 
     2953                                //Call the letter printer
    29612954                                DPatientLetter dpl = new DPatientLetter();
    2962                                
    2963                                 //Call RPC to get list of appt ids that have been rebooked for these clinics on these dates
    2964                                 string sSql = "BSDX REBOOK CLINIC LIST^" + sClinics + "^" + sBegin + "^" + sEnd;
    2965                                 DataTable dtLetters = DocManager.RPMSDataTable(sSql, "PatientAppts");
    2966 
    2967                                 dpl.InitializeFormRebookLetters(this.DocManager, sClinics, dtLetters);
     2955                dpl.InitializeFormRebookLetters(this.DocManager, ds.SelectedClinics, ds.BeginDate, ds.EndDate);
    29682956                                dpl.ShowDialog(this);
    29692957
     
    30603048                                DateTime dtBegin = ds.BeginDate;
    30613049                                DateTime dtEnd = ds.EndDate;
    3062                                 string sBegin = dtBegin.ToString("M/d/yyyy@HH:mm");
    3063                                 string sEnd = dtEnd.ToString("M/d/yyyy@HH:mm");
    30643050
    30653051                                DPatientLetter dpl = new DPatientLetter();
    30663052                               
    3067                                 //Call RPC to get list of appt ids that have been cancelled for these clinics on these dates
    3068                                 string sSql = "BSDX CANCEL CLINIC LIST^" + sClinics + "^" + sBegin + "^" + sEnd;
    3069                                 DataTable dtLetters = DocManager.RPMSDataTable(sSql, "PatientAppts");
    3070 
    3071                                 dpl.InitializeFormCancellationLetters(this.DocManager, sClinics, dtLetters);
     3053                                dpl.InitializeFormCancellationLetters(this.DocManager, sClinics, dtBegin, dtEnd);
    30723054                                dpl.ShowDialog(this);
    3073 
    30743055                        }
    30753056                        catch(Exception ex)
Note: See TracChangeset for help on using the changeset viewer.