source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/reports/LoadPatientXRefReportCommand.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: 899 bytes
Line 
1/* LoadActivityReportCommand.as */
2
3package gov.va.med.edp.command.reports
4{
5 import com.adobe.cairngorm.control.CairngormEvent;
6
7 import gov.va.med.edp.business.reports.ReportDelegate;
8 import gov.va.med.edp.control.reports.ReportEvent;
9 import gov.va.med.edp.factory.ReportFactory;
10 import gov.va.med.edp.model.TrackingModelLocator;
11
12 import mx.rpc.events.ResultEvent;
13
14 public class LoadPatientXRefReportCommand extends BaseReportCommand
15 {
16
17 override public function result(data:Object):void
18 {
19 var xml:XML = ResultEvent(data).result as XML;
20 // process the xml
21 //add acuity stats to model
22 model.reports.patientXRefReport.patientXRefList = ReportFactory.buildPatientXRefListFromXML(xml.patients.patient);
23
24 //fire the binding..
25 model.reports.reportType = "";
26 model.reports.reportType = ReportEvent.EVENT_PATIENT_XREF_REPORT;
27 }
28
29 }
30}
Note: See TracBrowser for help on using the repository browser.