source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/control/TrackingController.as

Last change on this file was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 6.1 KB
Line 
1/* TrackingController.as */
2
3package gov.va.med.edp.control
4{
5 import com.adobe.cairngorm.control.FrontController;
6
7 import gov.va.med.edp.command.*;
8 import gov.va.med.edp.command.config.*;
9 import gov.va.med.edp.command.reports.*;
10 import gov.va.med.edp.control.config.*;
11 import gov.va.med.edp.control.reports.ReportDownloadEvent;
12 import gov.va.med.edp.control.reports.ReportEvent;
13
14 public class TrackingController extends FrontController
15 {
16 public function TrackingController()
17 {
18 initializeCommands();
19 }
20
21 public function initializeCommands():void
22 {
23 addCommand(InitAppEvent.EVENT_INIT_APP, InitAppCommand);
24 addCommand(TrackingEvent.EVENT_INIT_TRACKING, InitTrackingCommand);
25 addCommand(SwitchAppViewEvent.EVENT_SWITCH_APP_VIEW, SwitchAppViewCommand);
26 addCommand(TrackingEvent.EVENT_REFRESH_LOG_SELECTOR, RefreshLogSelectorCommand);
27 addCommand(SwitchLogEntryEvent.EVENT_SWITCH_LOG_ENTRY, SwitchLogEntryCommand);
28 addCommand(TrackingEvent.EVENT_SAVE_LOG_ENTRY, SaveLogEntryCommand);
29 addCommand(TrackingEvent.EVENT_CANCEL_EDIT, CancelLogEntryEditCommand);
30 addCommand(TrackingEvent.EVENT_DELETE_STUB_ENTRY, DeleteStubEntryCommand);
31 addCommand(MatchItemsEvent.EVENT_MATCH_CLOSED_VISITS, MatchClosedVisitsCommand);
32 addCommand(InitLogAreaEvent.EVENT_INIT_LOG_AREA, InitLogAreaCommand);
33 addCommand(PatientSelectEvent.EVENT_ADD_PATIENT_TO_LOG, AddPatientToLogCommand);
34 addCommand(ChangeLogEntryFieldEvent.EVENT_CHANGE_LOG_ENTRY_FIELD, ChangeLogEntryFieldCommand);
35 addCommand(DisplayBoardEvent.EVENT_INIT_DISPLAY_BOARD, InitDisplayBoardCommand);
36 addCommand(DisplayBoardEvent.EVENT_REFRESH_DISPLAY_BOARD, RefreshDisplayBoardCommand);
37 addCommand(RemoveLogEntryEvent.EVENT_REMOVE_LOG_ENTRY, RemoveLogEntryCommand);
38 addCommand(SortHeaderEvent.EVENT_SORT_DISPLAY_BOARD, SortHeaderCommand);
39 addCommand(SortHeaderEvent.EVENT_SORT_LOG_SELECTOR, SortHeaderCommand);
40 addCommand(ConfigurationEvent.EVENT_LOAD_CONFIGURATION, LoadConfigurationCommand);
41 addCommand(ConfigurationEvent.EVENT_LOAD_STAFF_CONFIG, LoadConfigStaffCommand);
42 addCommand(BoardConfigEvent.EVENT_ADD_CONFIG_BOARD, AddBoardCommand);
43 addCommand(BoardConfigEvent.EVENT_LOAD_CONFIG_BOARD, LoadBoardConfigCommand);
44 addCommand(BoardConfigEvent.EVENT_SAVE_CONFIG_BOARD, SaveConfigBoardCommand);
45 addCommand(SaveBedConfigEvent.EVENT_SAVE_CONFIG_BEDS, SaveBedConfigCommand);
46 addCommand(ConfigurationEvent.EVENT_SAVE_COLOR_CONFIG, SaveConfigColorsCommand);
47 addCommand(ConfigurationEvent.EVENT_SAVE_PARAM_CONFIG, SaveConfigParamsCommand);
48 addCommand(ConfigurationEvent.EVENT_SAVE_STAFF_CONFIG, SaveConfigStaffCommand);
49 addCommand(ConfigurationEvent.EVENT_LOAD_SELECTION_CONFIG, LoadSelectionConfigCommand);
50 addCommand(ConfigurationEvent.EVENT_SAVE_SELECTION_CONFIG, SaveSelectionConfigCommand);
51 addCommand(ConfigurationEvent.EVENT_BED_MODIFIED, SetModifiedCommand);
52 addCommand(ConfigurationEvent.EVENT_BOARD_MODIFIED, SetModifiedCommand);
53 addCommand(ConfigurationEvent.EVENT_COLOR_MODIFIED, SetModifiedCommand);
54 addCommand(ConfigurationEvent.EVENT_PARAM_MODIFIED, SetModifiedCommand);
55 addCommand(ConfigurationEvent.EVENT_PARAM_MODIFIED_RESET, SetModifiedCommand);
56 addCommand(ConfigurationEvent.EVENT_SELECTION_MODIFIED, SetModifiedCommand);
57 addCommand(ConfigurationEvent.EVENT_STAFF_MODIFIED, SetModifiedCommand);
58 addCommand(ConfigAddColumnEvent.EVENT_CONFIG_ADD_COLUMN, ConfigAddColumnCommand);
59 addCommand(ConfigRemoveColumnEvent.EVENT_CONFIG_REMOVE_COLUMN, ConfigRemoveColumnCommand);
60 addCommand(ConfigChangeColumnEvent.EVENT_CONFIG_CHANGE_COLUMN_SEQ, ConfigChangeColumnCommand);
61 addCommand(ConfigChangeColumnEvent.EVENT_CONFIG_CHANGE_COLUMN_WIDTH, ConfigChangeColumnCommand);
62 addCommand(ConfigChangeColumnEvent.EVENT_CONFIG_CHANGE_ROW_COLOR, ConfigChangeColumnCommand);
63 addCommand(ConfigChangeDisplayBoardPropertiesEvent.EVENT_CONFIG_CHANGE_FONT_SIZE, ConfigChangeDisplayBoardPropertiesCommand);
64 addCommand(ConfigChangeDisplayBoardPropertiesEvent.EVENT_CONFIG_CHANGE_DISPLAY_WIDTH, ConfigChangeDisplayBoardPropertiesCommand);
65 addCommand(ConfigChangeDisplayBoardPropertiesEvent.EVENT_CONFIG_CHANGE_SCROLL_DELAY, ConfigChangeDisplayBoardPropertiesCommand);
66 addCommand(ConfigChangeDisplayBoardPropertiesEvent.EVENT_CONFIG_CHANGE_SQUISH, ConfigChangeDisplayBoardPropertiesCommand);
67 addCommand(ChangeBedSequenceEvent.EVENT_CHANGE_BED_SEQUENCE, ChangeBedSequenceCommand);
68 addCommand(NumberEvent.EVENT_CHANGE_SQUISH_FONT_SIZE, ChangeFontSizeCommand);
69 addCommand(UpdateStaffEvent.EVENT_ADD_STAFF, UpdateStaffCommand);
70 addCommand(UpdateStaffEvent.EVENT_REMOVE_STAFF, UpdateStaffCommand);
71 addCommand(MatchPersonEvent.EVENT_MATCH_PERSON, MatchPersonCommand);
72 addCommand(AddBedEvent.EVENT_ADD_BED, AddBedCommand);
73 addCommand(ChangeFieldEvent.EVENT_CHANGE_PARAM_FIELD, ChangeParamFieldCommand);
74 addCommand(ReportEvent.EVENT_ACTIVITY_REPORT, LoadActivityReportCommand);
75 addCommand(ReportEvent.EVENT_ACUITY_REPORT, LoadAcuityReportCommand);
76 addCommand(ReportEvent.EVENT_DELAY_REPORT, LoadDelayReportCommand);
77 addCommand(ReportEvent.EVENT_SUMMARY_REPORT, LoadSummaryReportCommand);
78 addCommand(ReportEvent.EVENT_MISSED_OP_REPORT, LoadMissedOpReportCommand);
79 addCommand(ReportEvent.EVENT_SHIFT_REPORT, LoadShiftReportCommand);
80 addCommand(ReportEvent.EVENT_PATIENT_XREF_REPORT, LoadPatientXRefReportCommand);
81 addCommand(ReportEvent.EVENT_VA_ADMISSIONS_REPORT, LoadVaAdmissionsReportCommand);
82 addCommand(ReportEvent.EVENT_PROVIDER_REPORT, LoadProviderReportCommand);
83 addCommand(ReportEvent.EVENT_BVAC_REPORT, LoadBVACReportCommand);
84 addCommand(ReportEvent.EVENT_ORDERS_BY_ACUITY_REPORT, LoadOrdersByAcuityReportCommand);
85 addCommand(ReportDownloadEvent.EVENT_DOWNLOAD_REPORT, DownloadReportCommand);
86 addCommand(ReportEvent.EVENT_EXPOSURE_REPORT, LoadExposureReportCommand);
87 addCommand(ReportEvent.EVENT_PATIENT_INTAKE_REPORT, LoadPtIntakeReportCommand);
88 addCommand(MatchItemsEvent.EVENT_MATCH_DIAGNOSES, MatchDiagnosesCommand);
89 addCommand(ClearUnsavedViewsModelEvent.EVENT_CLEAR_UNSAVED_VIEWS, ClearUnsavedViewsModelCommand);
90 }
91 }
92}
Note: See TracBrowser for help on using the repository browser.