Changeset 788 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- Jun 4, 2010, 10:19:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r772 r788 83 83 private System.Windows.Forms.MenuItem menuItem6; 84 84 private System.Windows.Forms.MenuItem menuItem7; 85 private System.Windows.Forms.MenuItem mnuPrint ClinicLetters;85 private System.Windows.Forms.MenuItem mnuPrintReminderLetters; 86 86 private System.Windows.Forms.MenuItem mnuPrintPatientLetter; 87 87 private System.Windows.Forms.MenuItem mnuPrintClinicSchedules; … … 213 213 this.menuItem6 = new System.Windows.Forms.MenuItem(); 214 214 this.mnuPrintClinicSchedules = new System.Windows.Forms.MenuItem(); 215 this.mnuPrint ClinicLetters = new System.Windows.Forms.MenuItem();215 this.mnuPrintReminderLetters = new System.Windows.Forms.MenuItem(); 216 216 this.mnuPrintRebookLetters = new System.Windows.Forms.MenuItem(); 217 217 this.mnuPrintCancellationLetters = new System.Windows.Forms.MenuItem(); … … 311 311 this.menuItem6, 312 312 this.mnuPrintClinicSchedules, 313 this.mnuPrint ClinicLetters,313 this.mnuPrintReminderLetters, 314 314 this.mnuPrintRebookLetters, 315 315 this.mnuPrintCancellationLetters, … … 365 365 // 366 366 this.mnuSchedulingManagment.Index = 7; 367 this.mnuSchedulingManagment.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftM; 367 368 this.mnuSchedulingManagment.Text = "Scheduling &Management"; 368 369 this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click); … … 380 381 this.mnuPrintClinicSchedules.Click += new System.EventHandler(this.mnuPrintClinicSchedules_Click); 381 382 // 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); 387 389 // 388 390 // mnuPrintRebookLetters … … 395 397 // 396 398 this.mnuPrintCancellationLetters.Index = 12; 399 this.mnuPrintCancellationLetters.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftC; 397 400 this.mnuPrintCancellationLetters.Text = "Print C&ancellation Letters"; 398 401 this.mnuPrintCancellationLetters.Click += new System.EventHandler(this.mnuPrintCancellationLetters_Click); … … 1787 1790 sClinicList = sClinicList + sRes + "|"; 1788 1791 } 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); 1794 1794 dpl.ShowDialog(this); 1795 1795 } … … 2915 2915 } 2916 2916 2917 private void mnuPrint ClinicLetters_Click(object sender, System.EventArgs e)2917 private void mnuPrintReminderLetters_Click(object sender, System.EventArgs e) 2918 2918 { 2919 2919 try … … 2931 2931 2932 2932 DPatientLetter dpl = new DPatientLetter(); 2933 dpl.InitializeForm ClinicLetters(this.DocManager, sClinics, dtBegin, dtEnd);2933 dpl.InitializeFormPatientReminderLetters(this.DocManager, sClinics, dtBegin, dtEnd); 2934 2934 dpl.ShowDialog(this); 2935 2935 … … 2951 2951 return; 2952 2952 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 2961 2954 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); 2968 2956 dpl.ShowDialog(this); 2969 2957 … … 3060 3048 DateTime dtBegin = ds.BeginDate; 3061 3049 DateTime dtEnd = ds.EndDate; 3062 string sBegin = dtBegin.ToString("M/d/yyyy@HH:mm");3063 string sEnd = dtEnd.ToString("M/d/yyyy@HH:mm");3064 3050 3065 3051 DPatientLetter dpl = new DPatientLetter(); 3066 3052 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); 3072 3054 dpl.ShowDialog(this); 3073 3074 3055 } 3075 3056 catch(Exception ex)
Note:
See TracChangeset
for help on using the changeset viewer.