Line | |
---|
1 | /* LoadShiftReportCommand.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 | 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.