zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package PbuliClass;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
 
import tbDataModel.Target;
@SuppressWarnings("rawtypes")
public class TarGets {
    static Target target;//ͼ±ê¶ÔÏó
    static Vector<Target> targets;//ͼ±ê¶ÔÏóµÄ¼¯ºÏ
    /**»ñÈ¡ËùÓеıêÇ©¶ÔÏ󼯺Ï*/
    public static Vector<Target>  getTarGets(Iterator iterator){
        targets=new Vector<Target>();
        while (iterator.hasNext()) {//µü´úÆ÷´æÔÚÔªËØ
            List info = (List) iterator.next();//½«µü´úÆ÷ÀïÃæµÄÔªËØ¸øµ½info¼¯ºÏ
            target=new Target();
            target.setId((String)info.get(0));
            target.setX(Integer.parseInt((String)info.get(1)));
            target.setY(Integer.parseInt((String)info.get(2)));
            target.setFloor((String)info.get(4));
            target.setName((String)info.get(5));
            target.setDepartmentName((String)info.get(6));
            target.setSex((String)info.get(7));
            target.setPhonenum((String)info.get(8));
            target.setImage(target.getDepartmentName());
            targets.add(target);
        }
        return targets;
    }
 
}