Last change
on this file since 1154 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:
- New context menus for Radiology; context menu popup has logic for which menus to display;
- Helper method IsThisARadiologyResource used by ctxCalendarGrid_Popup to decide which menus to display
- Handler ctxCalGridMkRadAppt_Click to make the Radiology Appointment.
CGDocument:
- CreateAppointment now saves RadiologyExamIEN to the DB
- RefreshAppointments now gets RadiologyExamIEN from the DB
CGAppointment:
- Class completely refactored to use auto props rather than old style properties
- 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
|
Rev | Line | |
---|
[1140] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Data;
|
---|
| 5 | using System.Drawing;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
| 8 | using System.Windows.Forms;
|
---|
| 9 |
|
---|
| 10 | namespace 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.