source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/view/reports/PtIntakeReportView.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.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,dgPtIntakeReport.columns, dgPtIntakeReport.dataProvider, lblReportTitle.text, 6,5);
25 printJob.send();
26 }
27
28 ]]>
29 </mx:Script>
30 <mx:HBox width="100%">
31 <mx:Label
32 id="lblReportTitle"
33 text="{ReportUtil.buildReportLabelText('Patient Intake Report')}"
34 paddingTop="0"
35 paddingBottom="0"
36 width="100%"
37 styleName="viewTitle"
38 textAlign="center" />
39 <mx:HBox id="exportButton">
40 <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_PATIENT_INTAKE_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="dgPtIntakeReport"
46 initialize="{AccessibilityTools.accessComponentName(dgPtIntakeReport,ReportUtil.accessibleReportLabelText('Patient Intake Report'))}"
47 dataProvider="{model.reports.ptIntakeReport.ptIntakeVOList}"
48 width="100%"
49 sortableColumns="false"
50 height="100%"
51 tabIndex="1100">
52 <mx:columns>
53 <mx:DataGridColumn dataField="time" headerText="Time of Day"/>
54 <mx:DataGridColumn dataField="sun" headerText="Sun"/>
55 <mx:DataGridColumn dataField="mon" headerText="Mon"/>
56 <mx:DataGridColumn dataField="tue" headerText="Tue"/>
57 <mx:DataGridColumn dataField="wed" headerText="Wed"/>
58 <mx:DataGridColumn dataField="thu" headerText="Thu"/>
59 <mx:DataGridColumn dataField="fri" headerText="Fri"/>
60 <mx:DataGridColumn dataField="sat" headerText="Sat"/>
61 <mx:DataGridColumn dataField="total" headerText="Total"/>
62 <mx:DataGridColumn dataField="average" headerText="Avg/Day"/>
63 </mx:columns>
64 </mx:DataGrid>
65
66</mx:VBox>
Note: See TracBrowser for help on using the repository browser.