source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/pt/demog/control/LogSensitivePatientAccessResponder.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: 813 bytes
Line 
1package gov.va.med.edp.pt.demog.control
2{
3import gov.va.med.edp.command.AbstractResponderCommand;
4import gov.va.med.edp.widget.InfoDialog;
5
6import mx.rpc.IResponder;
7import mx.rpc.events.FaultEvent;
8import mx.rpc.events.ResultEvent;
9
10public class LogSensitivePatientAccessResponder extends AbstractResponderCommand implements IResponder
11{
12 public override function result(data:Object):void
13 {
14 var xml:XML = ResultEvent(data).result as XML;
15 if (xml.save.@status == "fail") {
16 InfoDialog.show("Logging of Sensitive Patient to the server failed");
17 }
18 }
19
20 protected override function getFaultMessage(faultEvent:FaultEvent):String {
21 return "command for logging sensitive pt to server failed: " + super.getFaultMessage(faultEvent);
22 }
23}
24}
Note: See TracBrowser for help on using the repository browser.