Line | |
---|
1 | /* SaveConfigStaffDelegate.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.business.config
|
---|
4 | {
|
---|
5 | import gov.va.med.edp.business.ResponderChainingDelegate;
|
---|
6 | import gov.va.med.edp.vo.StaffMemberVO;
|
---|
7 |
|
---|
8 | import mx.collections.ArrayCollection;
|
---|
9 | import mx.rpc.IResponder;
|
---|
10 |
|
---|
11 | public class SaveConfigStaffDelegate extends ResponderChainingDelegate
|
---|
12 | {
|
---|
13 | public function SaveConfigStaffDelegate(responder:IResponder)
|
---|
14 | {
|
---|
15 | super(responder, "saveStaffConfig");
|
---|
16 | }
|
---|
17 |
|
---|
18 | public function saveConfigStaff(area: int, staffToken: String, staffList: ArrayCollection):void
|
---|
19 | {
|
---|
20 | var params:Object = new Object();
|
---|
21 | params.area = area;
|
---|
22 | params.staffToken = staffToken;
|
---|
23 |
|
---|
24 | var num: int = 0;
|
---|
25 | for each (var staff: StaffMemberVO in staffList) {
|
---|
26 | num++;
|
---|
27 | params["staff-" + num] = staff.toString();
|
---|
28 | }
|
---|
29 |
|
---|
30 | send(params);
|
---|
31 | }
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.