[1240] | 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 | private function doPrint():void {
|
---|
| 20 | var printJob:FlexPrintJob = new FlexPrintJob();
|
---|
| 21 | if (printJob.start() != true) return;
|
---|
| 22 |
|
---|
| 23 | ReportUtil.printDataGrid(printJob,ptXRefDataGrid.columns, ptXRefDataGrid.dataProvider, lblReportTitle.text, 8,5);
|
---|
| 24 | printJob.send();
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | ]]>
|
---|
| 29 | </mx:Script>
|
---|
| 30 | <mx:HBox width="100%">
|
---|
| 31 | <mx:Label
|
---|
| 32 | id="lblReportTitle"
|
---|
| 33 | text="{ReportUtil.buildReportLabelText('ED IEN to Patient ID Cross Reference Report')}"
|
---|
| 34 | paddingTop="0"
|
---|
| 35 | paddingBottom="0"
|
---|
| 36 | width="100%"
|
---|
| 37 | fontWeight="bold"
|
---|
| 38 | textAlign="center" />
|
---|
| 39 | <mx:HBox id="exportButton">
|
---|
| 40 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_PATIENT_XREF_REPORT);}" tabIndex="1900"/>
|
---|
| 41 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
| 42 | </mx:HBox>
|
---|
| 43 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
| 44 | </mx:HBox>
|
---|
| 45 | <mx:DataGrid id="ptXRefDataGrid"
|
---|
| 46 | dataProvider="{model.reports.patientXRefReport.patientXRefList}"
|
---|
| 47 | initialize="{AccessibilityTools.accessComponentName(ptXRefDataGrid,ReportUtil.accessibleReportLabelText('ED IEN to Patient ID Cross Reference Report'))}"
|
---|
| 48 | width="100%"
|
---|
| 49 | height="100%"
|
---|
| 50 | tabIndex="1100">
|
---|
| 51 | <mx:columns>
|
---|
| 52 | <mx:DataGridColumn dataField="id" headerText="ED ID"/>
|
---|
| 53 | <mx:DataGridColumn dataField="patientId" headerText="Patient ID"/>
|
---|
| 54 | <mx:DataGridColumn dataField="patientDfn" headerText="Patient DFN"/>
|
---|
| 55 | </mx:columns>
|
---|
| 56 | </mx:DataGrid>
|
---|
| 57 |
|
---|
| 58 | </mx:VBox>
|
---|