source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/reports/LoadShiftReportCommand.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: 805 bytes
Line 
1/* LoadShiftReportCommand.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 import mx.rpc.events.ResultEvent;
8
9 public class LoadShiftReportCommand extends BaseReportCommand
10 {
11 override public function result(data:Object):void
12 {
13 var xml:XML = ResultEvent(data).result as XML;
14 // process the xml
15 model.reports.shiftReport.shiftCategories = ReportFactory.buildShiftReportCategoriesFromXML(xml.categories.category);
16 model.reports.shiftReport.shiftReportColumns = ReportFactory.buildShiftReportColumnsFromXML(xml.columns.column);
17
18 //fire the binding..
19 model.reports.reportType = "";
20 model.reports.reportType = ReportEvent.EVENT_SHIFT_REPORT;
21 }
22
23 }
24}
Note: See TracBrowser for help on using the repository browser.