source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/config/ChangeParamFieldCommand.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: 1.5 KB
Line 
1/* ChangeParamFieldCommand.as */
2
3package gov.va.med.edp.command.config
4{
5 import com.adobe.cairngorm.commands.ICommand;
6 import com.adobe.cairngorm.control.CairngormEvent;
7
8 import gov.va.med.edp.control.config.ChangeFieldEvent;
9 import gov.va.med.edp.model.TrackingModelLocator;
10
11 public class ChangeParamFieldCommand implements ICommand
12 {
13 private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
14
15 public function execute(event:CairngormEvent):void
16 {
17 var e: ChangeFieldEvent = ChangeFieldEvent(event);
18 model.config.paramMods = true;
19
20 switch(e.field)
21 {
22 case "reqDiag":
23 model.config.params.requireDiagnosis = e.value;
24 break;
25 case "codedDiag":
26 model.config.params.codedDiagnosis = e.value;
27 break;
28 case "reqDisp":
29 model.config.params.requireDisposition = e.value;
30 break;
31 case "reqDelay":
32 model.config.params.requireDelay = e.value;
33 break;
34 case "minDelay":
35 model.config.params.delayMinutes = e.value;
36 break;
37 case "shiftOne":
38 model.config.params.shiftStart = e.value;
39 break;
40 case "shiftLen":
41 model.config.params.shiftDuration = e.value;
42 break;
43 case "residents":
44 model.config.params.promptResidents = e.value;
45 break;
46 case "clinics":
47 model.config.params.promptClinics = e.value;
48 break;
49 case "ambulance":
50 model.config.params.ambulanceArea = e.value;
51 break;
52 case "dfltRoom":
53 model.config.params.defaultRoom = e.value;
54 break;
55 }
56 }
57 }
58}
Note: See TracBrowser for help on using the repository browser.