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.*" xmlns:widget="gov.va.med.edp.widget.*" width="100%"
|
---|
3 | height="100%" creationComplete="{ReportUtil.setExportButtonState(exportButton)}">
|
---|
4 |
|
---|
5 | <mx:Script>
|
---|
6 | <![CDATA[
|
---|
7 | import gov.va.med.edp.control.reports.ReportDownloadEvent;
|
---|
8 | import gov.va.med.edp.util.ReportUtil;
|
---|
9 | import mx.core.Application;
|
---|
10 | import gov.va.med.edp.view.reports.print.ReportDataGridPrintView;
|
---|
11 | import mx.printing.FlexPrintJob;
|
---|
12 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
13 | import gov.va.med.edp.util.ChangeWatcher;
|
---|
14 | import gov.va.med.edp.util.AccessibilityTools;
|
---|
15 |
|
---|
16 | [Bindable]
|
---|
17 | private var model: TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
18 |
|
---|
19 | private function doPrint():void {
|
---|
20 | var printJob:FlexPrintJob = new FlexPrintJob();
|
---|
21 | if (printJob.start() != true) return;
|
---|
22 | ReportUtil.printDataGrid(printJob,dgDelayReportLogEntries.columns, dgDelayReportLogEntries.dataProvider, lblReportTitle.text, 7, 7);
|
---|
23 | printJob.send();
|
---|
24 | }
|
---|
25 |
|
---|
26 | ]]>
|
---|
27 | </mx:Script>
|
---|
28 | <mx:HBox width="100%">
|
---|
29 | <mx:Label
|
---|
30 | id="lblReportTitle"
|
---|
31 | text="{ReportUtil.buildReportLabelText('Delay Report')}"
|
---|
32 | paddingTop="0"
|
---|
33 | paddingBottom="0"
|
---|
34 | width="100%"
|
---|
35 | styleName="viewTitle"
|
---|
36 | textAlign="center" />
|
---|
37 | <mx:HBox id="exportButton">
|
---|
38 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_DELAY_REPORT);}" tabIndex="1900"/>
|
---|
39 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
40 | </mx:HBox>
|
---|
41 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
42 | </mx:HBox>
|
---|
43 | <mx:DataGrid id="dgDelayReportLogEntries"
|
---|
44 | initialize="{AccessibilityTools.accessComponentName(dgDelayReportLogEntries,ReportUtil.accessibleReportLabelText('Delay Report'))}"
|
---|
45 | dataProvider="{model.reports.delayReport.delayLogs}"
|
---|
46 | width="100%"
|
---|
47 | height="100%"
|
---|
48 | tabIndex="1100">
|
---|
49 | <mx:columns>
|
---|
50 | <mx:DataGridColumn dataField="id" headerText="IEN" width="45"/>
|
---|
51 | <mx:DataGridColumn dataField="timeIn" labelFunction="ReportUtil.formatReportDate" sortCompareFunction="ReportUtil.sortTimeInDates" headerText="Time In" width="110"/>
|
---|
52 | <mx:DataGridColumn dataField="elapsed" headerText="Elapsed" width="60"/>
|
---|
53 | <mx:DataGridColumn dataField="disposition" headerText="Disposition" width="70"/>
|
---|
54 | <mx:DataGridColumn dataField="delayReason" headerText="Delay Reason" width="110"/>
|
---|
55 | <mx:DataGridColumn dataField="provider" headerText="MD" width="150"/>
|
---|
56 | <mx:DataGridColumn dataField="admDec" headerText="Adm Dec" width="68"/>
|
---|
57 | <mx:DataGridColumn dataField="admDel" headerText="Adm Delay" width="75"/>
|
---|
58 | <mx:DataGridColumn dataField="acuity" headerText="Acuity" width="48"/>
|
---|
59 | <mx:DataGridColumn dataField="diagnoses" headerText="Diagnoses" width="140"/>
|
---|
60 | </mx:columns>
|
---|
61 | </mx:DataGrid>
|
---|
62 |
|
---|
63 | </mx:VBox>
|
---|