Line | |
---|
1 | package gov.va.med.edp.pt.demog.control
|
---|
2 | {
|
---|
3 | import gov.va.med.edp.command.AbstractResponderCommand;
|
---|
4 | import gov.va.med.edp.widget.InfoDialog;
|
---|
5 |
|
---|
6 | import mx.rpc.IResponder;
|
---|
7 | import mx.rpc.events.FaultEvent;
|
---|
8 | import mx.rpc.events.ResultEvent;
|
---|
9 |
|
---|
10 | public 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.