source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/pt/demog/control/MatchPatientsController.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: 989 bytes
Line 
1package gov.va.med.edp.pt.demog.control {
2
3import gov.va.med.edp.pt.demog.IMatchPatientsController;
4import gov.va.med.edp.business.MatchPatientsDelegate;
5import gov.va.med.edp.pt.demog.model.MatchingPatientsModel;
6
7public class MatchPatientsController implements IMatchPatientsController {
8
9 [Bindable]
10 public var model:MatchingPatientsModel;
11
12 public function resetMatchingPatients():void {
13 model.matchingPatients = null; // TODO: is this right?
14 model.matchingPatientsLoaded = false;
15 model.matchingPatientsTruncated = false;
16 }
17
18 public function matchPatients(partial:String):void {
19 model.matchingPatientsLoaded = false;
20
21 if ((partial == null) || (partial.length == 0)) {
22 model.matchingPatients = null;
23 return;
24 }
25
26 var delegate:MatchPatientsDelegate = new MatchPatientsDelegate(new MatchPatientsResponder(model));
27 delegate.matchPatients(partial);
28 }
29}
30}
Note: See TracBrowser for help on using the repository browser.