1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
|
---|
3 | xmlns:reports="gov.va.med.edp.view.reports.*"
|
---|
4 | xmlns:widget="gov.va.med.edp.widget.*"
|
---|
5 | width="100%" height="100%"
|
---|
6 | creationComplete="{ReportUtil.setExportButtonState(exportButton)}">
|
---|
7 |
|
---|
8 | <mx:Script>
|
---|
9 | <![CDATA[
|
---|
10 | import gov.va.med.edp.control.reports.ReportDownloadEvent;
|
---|
11 | import gov.va.med.edp.util.ReportUtil;
|
---|
12 | import mx.core.Application;
|
---|
13 | import gov.va.med.edp.view.reports.print.ReportDataGridPrintView;
|
---|
14 | import mx.printing.FlexPrintJob;
|
---|
15 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
16 | import gov.va.med.edp.util.ChangeWatcher;
|
---|
17 | import gov.va.med.edp.util.AccessibilityTools;
|
---|
18 |
|
---|
19 | [Bindable]
|
---|
20 | private var model: TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
21 |
|
---|
22 | private function doPrint():void {
|
---|
23 | var printJob:FlexPrintJob = new FlexPrintJob();
|
---|
24 | if (printJob.start() != true) return;
|
---|
25 | printJob.addObject(summaryBox);
|
---|
26 |
|
---|
27 | ReportUtil.printDataGrid(printJob,dgSummaryReportDelayChart.columns, dgSummaryReportDelayChart.dataProvider, lblReportTitle.text);
|
---|
28 | printJob.send();
|
---|
29 | }
|
---|
30 |
|
---|
31 | ]]>
|
---|
32 | </mx:Script>
|
---|
33 | <mx:HBox width="100%">
|
---|
34 | <widget:AccessibleLabel
|
---|
35 | id="lblReportTitle"
|
---|
36 | text="{ReportUtil.buildReportLabelText('Delay Summary Report')}"
|
---|
37 | accessibleText="{ReportUtil.accessibleReportLabelText('Delay Summary Report')}"
|
---|
38 | paddingTop="0"
|
---|
39 | paddingBottom="0"
|
---|
40 | width="100%"
|
---|
41 | styleName="viewTitle"
|
---|
42 | textAlign="center"
|
---|
43 | tabIndex="1070"/>
|
---|
44 |
|
---|
45 | <mx:HBox id="exportButton">
|
---|
46 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_SUMMARY_REPORT);}" tabIndex="1900"/>
|
---|
47 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
48 | </mx:HBox>
|
---|
49 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
50 | </mx:HBox>
|
---|
51 |
|
---|
52 | <mx:Spacer height="10"/>
|
---|
53 |
|
---|
54 | <mx:HBox width="100%" height="25%" paddingBottom="0" id="summaryBox" backgroundColor="white">
|
---|
55 |
|
---|
56 | <mx:Form width="35%" >
|
---|
57 | <mx:HBox>
|
---|
58 | <widget:AccessibleLabel
|
---|
59 | text="All ED Visits"
|
---|
60 | accessibleText="All ED Visits"
|
---|
61 | styleName="viewTitle"
|
---|
62 | width="193"
|
---|
63 | textAlign="right"
|
---|
64 | tabIndex="1071"/>
|
---|
65 | </mx:HBox>
|
---|
66 | <mx:FormItem label="Total Visits" tabIndex="1072">
|
---|
67 | <widget:AccessibleLabel
|
---|
68 | text="{model.reports.summaryReport.summaryVO.totAllEDVisits}"
|
---|
69 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totAllEDVisits}"
|
---|
70 | tabIndex="1073" />
|
---|
71 | </mx:FormItem>
|
---|
72 | <mx:FormItem label="Total Visits Over Six Hours" tabIndex="1074">
|
---|
73 | <widget:AccessibleLabel
|
---|
74 | text="{model.reports.summaryReport.summaryVO.totAllVisitOver6Hrs}"
|
---|
75 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totAllVisitOver6Hrs}"
|
---|
76 | tabIndex="1075"/>
|
---|
77 | </mx:FormItem>
|
---|
78 | <mx:FormItem label="Total Visits Over 23 Hours" tabIndex="1076">
|
---|
79 | <widget:AccessibleLabel
|
---|
80 | text="{model.reports.summaryReport.summaryVO.totAllVisitOver23Hrs}"
|
---|
81 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totAllVisitOver23Hrs}"
|
---|
82 | tabIndex="1077" />
|
---|
83 | </mx:FormItem>
|
---|
84 | <mx:FormItem label="Average Visit Time" tabIndex="1078">
|
---|
85 | <widget:AccessibleLabel
|
---|
86 | text="{model.reports.summaryReport.summaryVO.avgAllEDVisitTime}"
|
---|
87 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.avgAllEDVisitTime}"
|
---|
88 | tabIndex="1079"/>
|
---|
89 | </mx:FormItem>
|
---|
90 | <mx:FormItem label="Average Admit Decision Time" tabIndex="1080">
|
---|
91 | <widget:AccessibleLabel
|
---|
92 | text="{model.reports.summaryReport.summaryVO.avgAllAdmitDecisionTime}"
|
---|
93 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.avgAllAdmitDecisionTime}"
|
---|
94 | tabIndex="1081"/>
|
---|
95 | </mx:FormItem>
|
---|
96 | <mx:FormItem label="Number Admitted to Observation" tabIndex="1082">
|
---|
97 | <widget:AccessibleLabel
|
---|
98 | text="{model.reports.summaryReport.summaryVO.numAdmittedToObservation}"
|
---|
99 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.numAdmittedToObservation}"
|
---|
100 | tabIndex="1083"/>
|
---|
101 | </mx:FormItem>
|
---|
102 | </mx:Form>
|
---|
103 |
|
---|
104 | <mx:Form width="35%">
|
---|
105 | <mx:HBox>
|
---|
106 | <widget:AccessibleLabel
|
---|
107 | text="VA Admitted"
|
---|
108 | accessibleText="VA Admitted"
|
---|
109 | styleName="viewTitle"
|
---|
110 | width="220"
|
---|
111 | textAlign="right"
|
---|
112 | tabIndex="1084"/>
|
---|
113 | </mx:HBox>
|
---|
114 | <mx:FormItem label="Total Visits" tabIndex="1085">
|
---|
115 | <widget:AccessibleLabel
|
---|
116 | text="{model.reports.summaryReport.summaryVO.totVaAdmittedEDVisits}"
|
---|
117 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totVaAdmittedEDVisits}"
|
---|
118 | tabIndex="1086"/>
|
---|
119 | </mx:FormItem>
|
---|
120 | <mx:FormItem label="Total Visits Over Six Hours" tabIndex="1087">
|
---|
121 | <widget:AccessibleLabel
|
---|
122 | text="{model.reports.summaryReport.summaryVO.totVaAdmittedDelayOver6Hrs}"
|
---|
123 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totVaAdmittedDelayOver6Hrs}"
|
---|
124 | tabIndex="1088" />
|
---|
125 | </mx:FormItem>
|
---|
126 | <mx:FormItem label="Average Admit Decision Time" tabIndex="1089">
|
---|
127 | <widget:AccessibleLabel
|
---|
128 | text="{model.reports.summaryReport.summaryVO.avgVaAdmittedDecisionTime}"
|
---|
129 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.avgVaAdmittedDecisionTime}"
|
---|
130 | tabIndex="1090" />
|
---|
131 | </mx:FormItem>
|
---|
132 | <mx:FormItem label="Average Delay Time" tabIndex="1091">
|
---|
133 | <widget:AccessibleLabel
|
---|
134 | text="{model.reports.summaryReport.summaryVO.avgVaAdmittedDelayTime}"
|
---|
135 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.avgVaAdmittedDelayTime}"
|
---|
136 | tabIndex="1092"/>
|
---|
137 | </mx:FormItem>
|
---|
138 | <mx:FormItem label="Number of Admit Delays Over Six Hours" tabIndex="1093">
|
---|
139 | <widget:AccessibleLabel
|
---|
140 | text="{model.reports.summaryReport.summaryVO.numVaAdmittedDelayOver6Hrs}"
|
---|
141 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.numVaAdmittedDelayOver6Hrs}"
|
---|
142 | tabIndex="1094"/>
|
---|
143 | </mx:FormItem>
|
---|
144 | </mx:Form>
|
---|
145 |
|
---|
146 | <mx:Form width="30%">
|
---|
147 | <mx:HBox>
|
---|
148 | <widget:AccessibleLabel
|
---|
149 | text="Not VA Admitted"
|
---|
150 | accessibleText="Not VA Admitted"
|
---|
151 | styleName="viewTitle"
|
---|
152 | width="190"
|
---|
153 | tabIndex="1095"/>
|
---|
154 | </mx:HBox>
|
---|
155 | <mx:HBox>
|
---|
156 | <mx:Spacer width="58"/>
|
---|
157 | <mx:FormItem label="Total Visits" tabIndex="1096">
|
---|
158 | <widget:AccessibleLabel
|
---|
159 | text="{model.reports.summaryReport.summaryVO.totNotVaAdmittedVisits}"
|
---|
160 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.totNotVaAdmittedVisits}"
|
---|
161 | tabIndex="1097"/>
|
---|
162 | </mx:FormItem>
|
---|
163 | </mx:HBox>
|
---|
164 | <mx:HBox>
|
---|
165 | <mx:Spacer width="13"/>
|
---|
166 | <mx:FormItem label="Average Visit Time" tabIndex="1098" >
|
---|
167 | <widget:AccessibleLabel
|
---|
168 | text="{model.reports.summaryReport.summaryVO.avgNotVaAdmittedVisitTime}"
|
---|
169 | accessibleText="{'is ' + model.reports.summaryReport.summaryVO.avgNotVaAdmittedVisitTime}"
|
---|
170 | tabIndex="1099"/>
|
---|
171 | </mx:FormItem>
|
---|
172 | </mx:HBox>
|
---|
173 | </mx:Form>
|
---|
174 | </mx:HBox>
|
---|
175 |
|
---|
176 | <mx:Label
|
---|
177 | id="lblDelayChart"
|
---|
178 | text="{ReportUtil.buildReportLabelText('Delay Chart')}"
|
---|
179 | paddingTop="0"
|
---|
180 | paddingBottom="0"
|
---|
181 | width="100%"
|
---|
182 | styleName="viewTitle"
|
---|
183 | textAlign="center" />
|
---|
184 | <mx:DataGrid
|
---|
185 | id="dgSummaryReportDelayChart"
|
---|
186 | initialize="{AccessibilityTools.accessComponentName(dgSummaryReportDelayChart,ReportUtil.accessibleReportLabelText('Delay Chart'))}"
|
---|
187 | dataProvider="{model.reports.summaryReport.delayLogs}"
|
---|
188 | width="100%"
|
---|
189 | height="100%"
|
---|
190 | tabIndex="1100">
|
---|
191 | <mx:columns>
|
---|
192 | <mx:DataGridColumn dataField="reason" headerText="Acuity->" width="190"/>
|
---|
193 | <mx:DataGridColumn dataField="none" headerText="None"/>
|
---|
194 | <mx:DataGridColumn dataField="one" headerText="1"/>
|
---|
195 | <mx:DataGridColumn dataField="two" headerText="2"/>
|
---|
196 | <mx:DataGridColumn dataField="three" headerText="3"/>
|
---|
197 | <mx:DataGridColumn dataField="four" headerText="4"/>
|
---|
198 | <mx:DataGridColumn dataField="five" headerText="5"/>
|
---|
199 | <mx:DataGridColumn dataField="avgTotal" headerText="Total"/>
|
---|
200 | </mx:columns>
|
---|
201 | </mx:DataGrid>
|
---|
202 |
|
---|
203 | </mx:VBox>
|
---|