1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
|
---|
3 | xmlns:reports="gov.va.med.edp.view.reports.*"
|
---|
4 | xmlns:widget="gov.va.med.edp.widget.*"
|
---|
5 | width="100%" height="100%"
|
---|
6 | creationComplete="{ReportUtil.setExportButtonState(exportButton)}">
|
---|
7 |
|
---|
8 | <mx:Script>
|
---|
9 | <![CDATA[
|
---|
10 | import gov.va.med.edp.control.reports.ReportDownloadEvent;
|
---|
11 | import gov.va.med.edp.util.ReportUtil;
|
---|
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 | printJob.addObject(missedOpSummaryForm);
|
---|
27 | ReportUtil.printDataGrid(printJob,dgMissedOpReportLogEntries.columns, dgMissedOpReportLogEntries.dataProvider, lblReportTitle.text, 7,5);
|
---|
28 | printJob.send();
|
---|
29 | }
|
---|
30 |
|
---|
31 |
|
---|
32 | ]]>
|
---|
33 | </mx:Script>
|
---|
34 | <mx:HBox width="100%">
|
---|
35 | <widget:AccessibleLabel
|
---|
36 | id="lblReportTitle"
|
---|
37 | text="{ReportUtil.buildReportLabelText('Missed Opportunities Report')}"
|
---|
38 | accessibleText="{ReportUtil.accessibleReportLabelText('Missed Opportunities Report')}"
|
---|
39 | paddingTop="0"
|
---|
40 | paddingBottom="0"
|
---|
41 | width="100%"
|
---|
42 | textAlign="center"
|
---|
43 | styleName="viewTitle"
|
---|
44 | tabIndex="1095"/>
|
---|
45 | <mx:HBox id="exportButton">
|
---|
46 | <widget:LinkButton label="Export" click="{ReportUtil.exportReport(ReportDownloadEvent.EVENT_MISSED_OP_REPORT);}" tabIndex="1900"/>
|
---|
47 | <mx:Label text="|" paddingLeft="0" paddingRight="0" textAlign="center"/>
|
---|
48 | </mx:HBox>
|
---|
49 | <widget:LinkButton label="Print" click="{doPrint()}" tabIndex="1901"/>
|
---|
50 | </mx:HBox>
|
---|
51 |
|
---|
52 | <mx:Form width="100%" id="missedOpSummaryForm" backgroundColor="white">
|
---|
53 | <mx:HBox>
|
---|
54 | <widget:AccessibleLabel
|
---|
55 | text="Summary"
|
---|
56 | accessibleText="Summary"
|
---|
57 | styleName="viewTitle"
|
---|
58 | width="225"
|
---|
59 | textAlign="right"
|
---|
60 | tabIndex="1096"/>
|
---|
61 | </mx:HBox>
|
---|
62 |
|
---|
63 | <mx:FormItem label="Total Left Without Being Treated/Seen">
|
---|
64 | <widget:AccessibleLabel
|
---|
65 | text="{model.reports.missedOpReport.leftWithoutTreatment}"
|
---|
66 | accessibleText="{'is ' + model.reports.missedOpReport.leftWithoutTreatment}"
|
---|
67 | tabIndex="1097"/>
|
---|
68 | </mx:FormItem>
|
---|
69 |
|
---|
70 | <mx:FormItem label="Total Left AMA">
|
---|
71 | <widget:AccessibleLabel
|
---|
72 | text="{model.reports.missedOpReport.AMA}"
|
---|
73 | accessibleText="{'is ' + model.reports.missedOpReport.AMA}"
|
---|
74 | tabIndex="1098"/>
|
---|
75 | </mx:FormItem>
|
---|
76 |
|
---|
77 | <mx:FormItem label="Total Eloped">
|
---|
78 | <widget:AccessibleLabel
|
---|
79 | text="{model.reports.missedOpReport.eloped}"
|
---|
80 | accessibleText="{'is ' + model.reports.missedOpReport.eloped}"
|
---|
81 | tabIndex="1099"/>
|
---|
82 | </mx:FormItem>
|
---|
83 | </mx:Form>
|
---|
84 |
|
---|
85 | <mx:DataGrid id="dgMissedOpReportLogEntries"
|
---|
86 | initialize="{AccessibilityTools.accessComponentName(dgMissedOpReportLogEntries,'Missed Opportunities Report')}"
|
---|
87 | dataProvider="{model.reports.missedOpReport.missedOpLogs}"
|
---|
88 | width="100%"
|
---|
89 | height="100%"
|
---|
90 | tabIndex="1100">
|
---|
91 | <mx:columns>
|
---|
92 | <mx:DataGridColumn dataField="id" headerText="IEN" width="45"/>
|
---|
93 | <mx:DataGridColumn dataField="timeIn" labelFunction="ReportUtil.formatReportDate" sortCompareFunction="ReportUtil.sortTimeInDates" headerText="Time In" width="120"/>
|
---|
94 | <mx:DataGridColumn dataField="complaint" headerText="Complaint" width="170"/>
|
---|
95 | <mx:DataGridColumn dataField="provider" headerText="MD" width="140"/>
|
---|
96 | <mx:DataGridColumn dataField="acuity" headerText="Acuity" width="70"/>
|
---|
97 | <mx:DataGridColumn dataField="elapsed" headerText="Elapsed" width="75"/>
|
---|
98 | <mx:DataGridColumn dataField="triage" headerText="Triage" width="75"/>
|
---|
99 | <mx:DataGridColumn dataField="wait" headerText="Wait" width="75"/>
|
---|
100 | <mx:DataGridColumn dataField="disposition" headerText="Disposition" width="78"/>
|
---|
101 | <mx:DataGridColumn dataField="admDec" headerText="Adm Dec" width="70"/>
|
---|
102 | </mx:columns>
|
---|
103 | </mx:DataGrid>
|
---|
104 |
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|
109 | </mx:VBox>
|
---|