source: EDIS/tags/ed/tracking-ui-core/src/main/flex/gov/va/med/edp/command/reports/LoadAcuityReportCommand.as@ 1240

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

new version from the VA

File size: 714 bytes
Line 
1/* LoadActivityReportCommand.as */
2
3package 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.