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,dgActivityReportLogEnteries.columns, dgActivityReportLogEnteries.dataProvider, lblReportTitle.text, 7,6);
|
---|
25 | ReportUtil.printDataGrid(printJob,dgActivityReportAvegares.columns, dgActivityReportAvegares.dataProvider, lblActivityAverages.text, 7, 6);
|
---|
26 | printJob.send();
|
---|
27 | }
|
---|
28 |
|
---|
29 |
|
---|
30 | ]]>
|
---|
31 | </mx:Script>
|
---|
32 | <mx:HBox width="100%">
|
---|
33 | <mx:Label
|
---|
34 | id="lblReportTitle"
|
---|
35 | text="{ReportUtil.buildReportLabelText('ED to VA Admission Report')}"
|
---|
36 | paddingTop="0"
|
---|
37 | paddingBottom="0"
|
---|
38 | width="100%"
|
---|
39 | styleName="viewTitle"
|
---|
40 | textAlign="center" />
|
---|
41 | <mx:HBox id="exportButton">
|
---|
42 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_VA_ADMISSIONS_REPORT);}" tabIndex="1900"/>
|
---|
43 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
44 | </mx:HBox>
|
---|
45 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
46 | </mx:HBox>
|
---|
47 | <mx:DataGrid id="dgActivityReportLogEnteries"
|
---|
48 | initialize="{AccessibilityTools.accessComponentName(dgActivityReportLogEnteries,ReportUtil.accessibleReportLabelText('ED to VA Admission Report'))}"
|
---|
49 | dataProvider="{model.reports.vaAdmissionsReport.admissionLogs}"
|
---|
50 | width="100%"
|
---|
51 | height="50%"
|
---|
52 | tabIndex="1100">
|
---|
53 | <mx:columns>
|
---|
54 | <mx:DataGridColumn dataField="id" headerText="IEN" width="45"/>
|
---|
55 | <mx:DataGridColumn dataField="timeOut" labelFunction="ReportUtil.formatReportDate" sortCompareFunction="ReportUtil.sortTimeOutDates" headerText="Time Out" width="113"/>
|
---|
56 | <mx:DataGridColumn dataField="complaint" headerText="Complaint" width="170"/>
|
---|
57 | <mx:DataGridColumn dataField="provider" headerText="MD" width="140"/>
|
---|
58 | <mx:DataGridColumn dataField="acuity" headerText="Acuity" width="55"/>
|
---|
59 | <mx:DataGridColumn dataField="disposition" headerText="Disposition" width="82"/>
|
---|
60 | <mx:DataGridColumn dataField="admDec" headerText="Adm Dec" width="70"/>
|
---|
61 | <mx:DataGridColumn dataField="admDel" headerText="Adm Delay" width="75"/>
|
---|
62 | <mx:DataGridColumn dataField="diagnoses" headerText="Diagnoses" width="140"/>
|
---|
63 | <mx:DataGridColumn dataField="icd9" headerText="ICD9" width="50"/>
|
---|
64 | </mx:columns>
|
---|
65 | </mx:DataGrid>
|
---|
66 |
|
---|
67 | <mx:Spacer height="3%"/>
|
---|
68 | <mx:Label
|
---|
69 | id="lblActivityAverages"
|
---|
70 | text="{ReportUtil.buildReportLabelText('Averages for Different Categories')}"
|
---|
71 | paddingTop="0"
|
---|
72 | paddingBottom="0"
|
---|
73 | styleName="viewTitle"
|
---|
74 | textAlign="center"
|
---|
75 | width="100%"/>
|
---|
76 | <mx:DataGrid id="dgActivityReportAvegares"
|
---|
77 | initialize="{AccessibilityTools.accessComponentName(dgActivityReportAvegares,ReportUtil.accessibleReportLabelText('Averages for Different Categories'))}"
|
---|
78 | dataProvider="{model.reports.vaAdmissionsReport.admissionAverages}"
|
---|
79 | width="100%"
|
---|
80 | height="30%"
|
---|
81 | tabIndex="1101">
|
---|
82 | <mx:columns>
|
---|
83 | <mx:DataGridColumn dataField="type" headerText="Category"/>
|
---|
84 | <mx:DataGridColumn dataField="total" headerText="Total"/>
|
---|
85 | <mx:DataGridColumn dataField="wait" headerText="Wait"/>
|
---|
86 | <mx:DataGridColumn dataField="triage" headerText="Triage"/>
|
---|
87 | <mx:DataGridColumn dataField="admDel" headerText="Admission Delay"/>
|
---|
88 | <mx:DataGridColumn dataField="admDec" headerText="Admission Decision"/>
|
---|
89 | <mx:DataGridColumn dataField="elapsed" headerText="Elapsed"/>
|
---|
90 | </mx:columns>
|
---|
91 | </mx:DataGrid>
|
---|
92 |
|
---|
93 | </mx:VBox>
|
---|