Line | |
---|
1 | /* LoadActivityReportCommand.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.command.reports
|
---|
4 | {
|
---|
5 | import gov.va.med.edp.control.reports.ReportEvent;
|
---|
6 | import gov.va.med.edp.factory.ReportFactory;
|
---|
7 |
|
---|
8 | import mx.rpc.events.ResultEvent;
|
---|
9 |
|
---|
10 | public class LoadAcuityReportCommand extends BaseReportCommand
|
---|
11 | {
|
---|
12 |
|
---|
13 | override public function result(data:Object):void
|
---|
14 | {
|
---|
15 | var xml:XML = ResultEvent(data).result as XML;
|
---|
16 | // process the xml
|
---|
17 | //add acuity stats to model
|
---|
18 | model.reports.acuityReport.acuityStats = ReportFactory.buildAcuityReportStatsFromXML(xml.statistics.row);
|
---|
19 |
|
---|
20 | //fire the binding..
|
---|
21 | model.reports.reportType = "";
|
---|
22 | model.reports.reportType = ReportEvent.EVENT_ACUITY_REPORT;
|
---|
23 | }
|
---|
24 |
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.