source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/view/reports/OrdersByAcuityReportView.mxml@ 1227

Last change on this file since 1227 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 2.8 KB
Line 
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.controls.dataGridClasses.DataGridColumn;
11 import gov.va.med.edp.vo.reports.ShiftReportColumnVO;
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
26 ReportUtil.printDataGrid(printJob,ordersByAcuityReportDataGrid.columns, ordersByAcuityReportDataGrid.dataProvider, lblReportTitle.text);
27 printJob.send();
28 }
29
30
31
32 ]]>
33 </mx:Script>
34 <mx:HBox width="100%">
35 <mx:Label
36 id="lblReportTitle"
37 text="{ReportUtil.buildReportLabelText('Orders By Acuity Report')}"
38 paddingTop="0"
39 paddingBottom="0"
40 width="100%"
41 styleName="viewTitle"
42 textAlign="center" />
43 <mx:HBox id="exportButton">
44 <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_ORDERS_BY_ACUITY_REPORT);}" tabIndex="1900"/>
45 <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
46 </mx:HBox>
47 <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
48 </mx:HBox>
49 <mx:DataGrid id="ordersByAcuityReportDataGrid"
50 initialize="{AccessibilityTools.accessComponentName(ordersByAcuityReportDataGrid,ReportUtil.accessibleReportLabelText('Orders By Acuity Report'))}"
51 dataProvider="{model.reports.ordersByAcuityReport.ordersByAcuityLogs}"
52 width="100%"
53 height="100%"
54 tabIndex="1100">
55 <mx:columns>
56 <mx:DataGridColumn dataField="acuity" headerText="Acuity/Display Group-&gt; " width="160"/>
57 <mx:DataGridColumn dataField="meds" headerText="Meds" width="80"/>
58 <mx:DataGridColumn dataField="labs" headerText="Labs" width="80"/>
59 <mx:DataGridColumn dataField="images" headerText="Images" width="80"/>
60 <mx:DataGridColumn dataField="consults" headerText="Consults" width="80"/>
61 <mx:DataGridColumn dataField="others" headerText="Others" width="80"/>
62 </mx:columns>
63 </mx:DataGrid>
64</mx:VBox>
Note: See TracBrowser for help on using the repository browser.