1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:reports="gov.va.med.edp.view.reports.*"
|
---|
3 | xmlns:widget="gov.va.med.edp.widget.*" width="100%"
|
---|
4 | height="100%" creationComplete="{ReportUtil.setExportButtonState(exportButton)}">
|
---|
5 |
|
---|
6 | <mx:Script>
|
---|
7 | <![CDATA[
|
---|
8 | import gov.va.med.edp.control.reports.ReportDownloadEvent;
|
---|
9 | import gov.va.med.edp.util.ReportUtil;
|
---|
10 | import mx.core.Application;
|
---|
11 | import gov.va.med.edp.view.reports.print.ReportDataGridPrintView;
|
---|
12 | import mx.printing.FlexPrintJob;
|
---|
13 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
14 | import gov.va.med.edp.util.ChangeWatcher;
|
---|
15 | import gov.va.med.edp.util.AccessibilityTools;
|
---|
16 |
|
---|
17 | [Bindable]
|
---|
18 | private var model: TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
19 |
|
---|
20 | private function doPrint():void {
|
---|
21 | var printJob:FlexPrintJob = new FlexPrintJob();
|
---|
22 | if (printJob.start() != true) return;
|
---|
23 |
|
---|
24 | ReportUtil.printDataGrid(printJob,dgContagiousPtInfo.columns, dgContagiousPtInfo.dataProvider, lblContagiousPtInfo.text);
|
---|
25 | ReportUtil.printDataGrid(printJob,dgExposedInTreatmentRoom.columns, dgExposedInTreatmentRoom.dataProvider, lblExposedInTreatmentRoom.text);
|
---|
26 | ReportUtil.printDataGrid(printJob,dgOtherEDPatients.columns, dgOtherEDPatients.dataProvider, lblOtherEDPatients.text);
|
---|
27 | ReportUtil.printDataGrid(printJob,dgOnDutyDocs.columns, dgOnDutyDocs.dataProvider, "On Duty Doctors");
|
---|
28 | ReportUtil.printDataGrid(printJob,dgOnDutyNurses.columns, dgOnDutyNurses.dataProvider, "On Duty Nurses");
|
---|
29 | ReportUtil.printDataGrid(printJob,dgOnDutyResidents.columns, dgOnDutyResidents.dataProvider, "On Duty Residents");
|
---|
30 | printJob.send();
|
---|
31 | }
|
---|
32 |
|
---|
33 | ]]>
|
---|
34 | </mx:Script>
|
---|
35 | <mx:HBox width="100%">
|
---|
36 | <mx:Label
|
---|
37 | id="lblReportTitle"
|
---|
38 | text="ED Exposure Report"
|
---|
39 | paddingTop="0"
|
---|
40 | paddingBottom="0"
|
---|
41 | width="100%"
|
---|
42 | styleName="viewTitle"
|
---|
43 | textAlign="center" />
|
---|
44 | <mx:HBox id="exportButton">
|
---|
45 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_EXPOSURE_REPORT, model.reports.exposureReport.id);}" tabIndex="1900"/>
|
---|
46 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
47 | </mx:HBox>
|
---|
48 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
49 | </mx:HBox>
|
---|
50 |
|
---|
51 | <mx:Spacer height="3%"/>
|
---|
52 | <mx:Label
|
---|
53 | id="lblContagiousPtInfo"
|
---|
54 | text="Contagious Patient Information"
|
---|
55 | paddingTop="0"
|
---|
56 | paddingBottom="0"
|
---|
57 | styleName="subTitle"
|
---|
58 | textAlign="center"
|
---|
59 | width="100%"/>
|
---|
60 | <mx:DataGrid id="dgContagiousPtInfo"
|
---|
61 | initialize="{AccessibilityTools.accessComponentName(dgContagiousPtInfo,'Contagious Patient Information')}"
|
---|
62 | dataProvider="{model.reports.exposureReport.contagiousPtRoomList}"
|
---|
63 | rowCount="3"
|
---|
64 | width="100%"
|
---|
65 | tabIndex="1100">
|
---|
66 | <mx:columns>
|
---|
67 | <mx:DataGridColumn dataField="id" headerText="IEN" width="45"/>
|
---|
68 | <mx:DataGridColumn dataField="roomName" headerText="Room"/>
|
---|
69 | <mx:DataGridColumn dataField="shiftIn" headerText="Shift In" width="70"/>
|
---|
70 | <mx:DataGridColumn dataField="timeIn" labelFunction="ReportUtil.formatReportDate" headerText="Time In" width="105" sortCompareFunction="ReportUtil.sortTimeInDates"/>
|
---|
71 | <mx:DataGridColumn dataField="shiftOut" headerText="Shift Out" width="70"/>
|
---|
72 | <mx:DataGridColumn dataField="timeOut" labelFunction="ReportUtil.formatReportDate" headerText="Time Out" width="105" sortCompareFunction="ReportUtil.sortTimeOutDates"/>
|
---|
73 | <mx:DataGridColumn dataField="dx" headerText="Diagnoses"/>
|
---|
74 | <mx:DataGridColumn dataField="disposition" headerText="Disposition"/>
|
---|
75 | <mx:DataGridColumn dataField="arrival" headerText="Arrival Mode"/>
|
---|
76 | <mx:DataGridColumn dataField="notes" headerText="Notes"/>
|
---|
77 | </mx:columns>
|
---|
78 | </mx:DataGrid>
|
---|
79 |
|
---|
80 | <mx:Spacer height="3%"/>
|
---|
81 | <mx:Label
|
---|
82 | id="lblExposedInTreatmentRoom"
|
---|
83 | text="Patients Directly Exposed in Different Treatment Rooms"
|
---|
84 | paddingTop="0"
|
---|
85 | paddingBottom="0"
|
---|
86 | styleName="subTitle"
|
---|
87 | textAlign="center"
|
---|
88 | width="100%"/>
|
---|
89 | <mx:DataGrid id="dgExposedInTreatmentRoom"
|
---|
90 | initialize="{AccessibilityTools.accessComponentName(dgExposedInTreatmentRoom,'Patients Directly Exposed in Different Treatment Rooms')}"
|
---|
91 | dataProvider="{model.reports.exposureReport.ptsExposedinTreatmentRoomList}"
|
---|
92 | rowCount="4"
|
---|
93 | width="100%"
|
---|
94 | tabIndex="1101">
|
---|
95 | <mx:columns>
|
---|
96 | <mx:DataGridColumn dataField="id" headerText="IEN" width="40"/>
|
---|
97 | <mx:DataGridColumn dataField="roomName" headerText="Room"/>
|
---|
98 | <mx:DataGridColumn dataField="shiftIn" headerText="Shift In" width="70"/>
|
---|
99 | <mx:DataGridColumn dataField="timeIn" labelFunction="ReportUtil.formatReportDate" headerText="Time In" width="105" sortCompareFunction="ReportUtil.sortTimeInDates"/>
|
---|
100 | <mx:DataGridColumn dataField="shiftOut" headerText="Shift Out" width="70"/>
|
---|
101 | <mx:DataGridColumn dataField="timeOut" labelFunction="ReportUtil.formatReportDate" headerText="Time Out" width="105" sortCompareFunction="ReportUtil.sortTimeOutDates"/>
|
---|
102 | <mx:DataGridColumn dataField="dx" headerText="Diagnoses"/>
|
---|
103 | <mx:DataGridColumn dataField="disposition" headerText="Disposition"/>
|
---|
104 | <mx:DataGridColumn dataField="arrival" headerText="Arrival Mode"/>
|
---|
105 | <mx:DataGridColumn dataField="notes" headerText="Notes"/>
|
---|
106 | </mx:columns>
|
---|
107 | </mx:DataGrid>
|
---|
108 |
|
---|
109 | <mx:Spacer height="3%"/>
|
---|
110 | <mx:Label
|
---|
111 | id="lblOtherEDPatients"
|
---|
112 | text="Other ED Patients"
|
---|
113 | paddingTop="0"
|
---|
114 | paddingBottom="0"
|
---|
115 | styleName="subTitle"
|
---|
116 | textAlign="center"
|
---|
117 | width="100%"/>
|
---|
118 | <mx:DataGrid id="dgOtherEDPatients"
|
---|
119 | initialize="{AccessibilityTools.accessComponentName(dgOtherEDPatients,'Other ED Patients')}"
|
---|
120 | dataProvider="{model.reports.exposureReport.allOtherPatientsList}"
|
---|
121 | rowCount="4"
|
---|
122 | width="100%"
|
---|
123 | tabIndex="1102">
|
---|
124 | <mx:columns>
|
---|
125 | <mx:DataGridColumn dataField="id" headerText="IEN" width="40"/>
|
---|
126 | <mx:DataGridColumn dataField="roomName" headerText="Room"/>
|
---|
127 | <mx:DataGridColumn dataField="shiftIn" headerText="Shift In" width="70"/>
|
---|
128 | <mx:DataGridColumn dataField="timeIn" labelFunction="ReportUtil.formatReportDate" headerText="Time In" width="105" sortCompareFunction="ReportUtil.sortTimeInDates"/>
|
---|
129 | <mx:DataGridColumn dataField="shiftOut" headerText="Shift Out" width="70"/>
|
---|
130 | <mx:DataGridColumn dataField="timeOut" labelFunction="ReportUtil.formatReportDate" headerText="Time Out" width="105" sortCompareFunction="ReportUtil.sortTimeOutDates"/>
|
---|
131 | <mx:DataGridColumn dataField="dx" headerText="Diagnoses"/>
|
---|
132 | <mx:DataGridColumn dataField="disposition" headerText="Disposition"/>
|
---|
133 | <mx:DataGridColumn dataField="arrival" headerText="Arrival Mode"/>
|
---|
134 | <mx:DataGridColumn dataField="notes" headerText="Notes"/>
|
---|
135 | </mx:columns>
|
---|
136 | </mx:DataGrid>
|
---|
137 |
|
---|
138 |
|
---|
139 | <mx:Spacer height="3%"/>
|
---|
140 | <mx:Label
|
---|
141 | id="lblOnDutyStaff"
|
---|
142 | text="On Duty Staff"
|
---|
143 | paddingTop="0"
|
---|
144 | paddingBottom="0"
|
---|
145 | styleName="subTitle"
|
---|
146 | textAlign="center"
|
---|
147 | width="100%"/>
|
---|
148 | <mx:HBox width="100%">
|
---|
149 | <mx:DataGrid id="dgOnDutyDocs"
|
---|
150 | initialize="{AccessibilityTools.accessComponentName(dgOnDutyDocs,'On Duty Staff')}"
|
---|
151 | dataProvider="{model.reports.exposureReport.exposedMDsList}"
|
---|
152 | rowCount="3"
|
---|
153 | width="33%"
|
---|
154 | tabIndex="1103">
|
---|
155 | <mx:columns>
|
---|
156 | <mx:DataGridColumn dataField="name" headerText="Doctors"/>
|
---|
157 | </mx:columns>
|
---|
158 | </mx:DataGrid>
|
---|
159 | <mx:DataGrid id="dgOnDutyNurses"
|
---|
160 | dataProvider="{model.reports.exposureReport.exposedNursesList}"
|
---|
161 | rowCount="3"
|
---|
162 | width="33%"
|
---|
163 | tabIndex="1104">
|
---|
164 | <mx:columns>
|
---|
165 | <mx:DataGridColumn dataField="name" headerText="Nurses"/>
|
---|
166 | </mx:columns>
|
---|
167 | </mx:DataGrid>
|
---|
168 | <mx:DataGrid id="dgOnDutyResidents"
|
---|
169 | dataProvider="{model.reports.exposureReport.exposedResidentsList}"
|
---|
170 | rowCount="3"
|
---|
171 | width="34%"
|
---|
172 | tabIndex="1105">
|
---|
173 | <mx:columns>
|
---|
174 | <mx:DataGridColumn dataField="name" headerText="Residents"/>
|
---|
175 | </mx:columns>
|
---|
176 | </mx:DataGrid>
|
---|
177 | </mx:HBox>
|
---|
178 |
|
---|
179 | </mx:VBox>
|
---|