Changeset 772 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- May 21, 2010, 9:03:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r627 r772 376 376 // 377 377 this.mnuPrintClinicSchedules.Index = 9; 378 this.mnuPrintClinicSchedules.Shortcut = System.Windows.Forms.Shortcut.CtrlP; 378 379 this.mnuPrintClinicSchedules.Text = "&Print Clinic Schedules"; 379 380 this.mnuPrintClinicSchedules.Click += new System.EventHandler(this.mnuPrintClinicSchedules_Click); … … 2371 2372 } 2372 2373 2373 private void PrintPatientLetter()2374 {2375 //Prompt for patient and2376 //Print letter for individual patient2377 try2378 {2379 //Display a dialog to collect Patient Name2380 DPatientLookup dPat = new DPatientLookup();2381 dPat.DocManager = m_DocManager;2382 if (dPat.ShowDialog(this) == DialogResult.Cancel)2383 {2384 return;2385 }2386 2387 Debug.Assert(dPat.PatientIEN != "");2388 int nPatientID = Convert.ToInt32(dPat.PatientIEN);2389 PrintPatientLetter(nPatientID);2390 2391 }2392 catch (Exception ex)2393 {2394 MessageBox.Show(this, ex.Message, "Clinical Scheduling", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);2395 }2396 }2397 2398 private void PrintPatientLetter(int PatientID)2399 {2400 //Print letter for individual patient2401 try2402 {2403 DPatientLetter dPa = new DPatientLetter();2404 dPa.InitializeForm(DocManager, PatientID);2405 2406 if (dPa.ShowDialog(this) != DialogResult.Cancel)2407 {2408 return;2409 }2410 }2411 catch (Exception ex)2412 {2413 throw ex;2414 }2415 }2416 2417 2374 #endregion Methods 2418 2375 … … 3020 2977 private void mnuPrintPatientLetter_Click(object sender, System.EventArgs e) 3021 2978 { 3022 PrintPatientLetter();2979 ViewPatientAppointments(); 3023 2980 } 3024 2981
Note:
See TracChangeset
for help on using the changeset viewer.