source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/reports/LoadSummaryReportCommand.as@ 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: 866 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 LoadSummaryReportCommand 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 summaryVO data to model
18 model.reports.summaryReport.summaryVO = ReportFactory.buildSummaryVOFromXML(xml.averages.average);
19 //add delay chart data to model..
20 model.reports.summaryReport.delayLogs = ReportFactory.buildSummaryDelayChartFromXML(xml.delayChart.delay);
21
22 //fire the binding..
23 model.reports.reportType = "";
24 model.reports.reportType = ReportEvent.EVENT_SUMMARY_REPORT;
25 }
26
27 }
28}
Note: See TracBrowser for help on using the repository browser.