source: Scheduling/branches/Radiology-Support/cs/bsdx0200GUISourceCode/DRadExamsSelect.cs@ 1150

Last change on this file since 1150 was 1140, checked in by Sam Habiel, 14 years ago

DRadExamsSelect: New form to let user select exam.
RadiologyExam: Class for a Radiology Exam
DAL: new DB communication methods: GetRadiologyExamsForPatientinHL and ScheduleRadiologyExam
CGView:

  1. New context menus for Radiology; context menu popup has logic for which menus to display;
  2. Helper method IsThisARadiologyResource used by ctxCalendarGrid_Popup to decide which menus to display
  3. Handler ctxCalGridMkRadAppt_Click to make the Radiology Appointment.

CGDocument:

  1. CreateAppointment now saves RadiologyExamIEN to the DB
  2. RefreshAppointments now gets RadiologyExamIEN from the DB

CGAppointment:

  1. Class completely refactored to use auto props rather than old style properties
  2. Added property RadiologyExamIEN

CalendarGrid: Class was wrongly using supposed private members of CGAppointment. Refactored to fix that as private members don't exist anymore.

Last but not least, new exe,dll

File size: 1.7 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9
10namespace IndianHealthService.ClinicalScheduling
11{
12 /// <summary>
13 /// Form which displays exams for User so that the user would pick one of them
14 /// for which to make an appointment
15 /// </summary>
16 public partial class DRadExamsSelect : Form
17 {
18 //return values
19 public int ExamIEN { get; private set; }
20 public string ProcedureName { get; private set; }
21 //end return values
22
23 /// <summary>
24 /// ctor
25 /// </summary>
26 /// <param name="_radExams">Strongly Typed Table of Exams</param>
27 public DRadExamsSelect(List<RadiologyExam> _radExams)
28 {
29 InitializeComponent();
30
31 this.lstExams.DataSource = _radExams;
32 this.lstExams.SelectionMode = SelectionMode.One;
33 }
34
35 private void btnOK_Click(object sender, EventArgs e)
36 {
37 SharedFinishLine();
38 }
39
40 private void lstExams_MouseDoubleClick(object sender, MouseEventArgs e)
41 {
42 SharedFinishLine();
43 }
44
45 private void SharedFinishLine()
46 {
47 if (lstExams.SelectedIndex < 0)
48 {
49 this.DialogResult = DialogResult.None;
50 return;
51 }
52
53 ExamIEN = (lstExams.Items[lstExams.SelectedIndex] as RadiologyExam).IEN;
54 ProcedureName = (lstExams.Items[lstExams.SelectedIndex] as RadiologyExam).Procedure;
55 this.DialogResult = DialogResult.OK;
56 }
57
58
59 }
60}
Note: See TracBrowser for help on using the repository browser.