Line | |
---|
1 | /* LoadMissedOpReportCommand.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 LoadMissedOpReportCommand 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 missedOp logs to model
|
---|
18 | model.reports.missedOpReport.missedOpLogs = ReportFactory.buildReportLogEntriesFromXML(xml.logEntries.log);
|
---|
19 | //Add disposition codes data..
|
---|
20 | ReportFactory.buildMissedOpDispositionCodes(model.reports.missedOpReport, xml.totals);
|
---|
21 |
|
---|
22 | //fire the binding..
|
---|
23 | model.reports.reportType = "";
|
---|
24 | model.reports.reportType = ReportEvent.EVENT_MISSED_OP_REPORT;
|
---|
25 | }
|
---|
26 |
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.