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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package BaoWen;
import java.util.Vector;
 
import tbDataModel.tb_baoxuid;
 
/**55AA0CIDÐòºÅ´¦Àí*/
public class BaoxuID {
    
    static Vector<tb_baoxuid> baoxuid_vector=new Vector<tb_baoxuid>();
 
    public static Vector<tb_baoxuid> getBaoxuid_vector() {
        return baoxuid_vector;
    }
    
    public static void add_idbaoxu(int tagid,int nowbaoxu,int lastbaoxu) {        
        if(get_bxid(tagid)==null) {
            tb_baoxuid tbbx=new tb_baoxuid();
            tbbx.setTagid(tagid);
            tbbx.setNowbaoxu(nowbaoxu);
            tbbx.setTagid(tagid);
            baoxuid_vector.add(tbbx);
        }else {
            get_bxid(tagid).setLastbaoxu(nowbaoxu);
        }
    }
    
    public static tb_baoxuid get_bxid(int  tagid) {
        tb_baoxuid tbbx=null;
        int size=baoxuid_vector.size();
        for(int i=0;i<size;i++) {
            tb_baoxuid tb_baoxuid=baoxuid_vector.get(i);
            int id=tb_baoxuid.getTagid();
            if(id==tagid) {
                tbbx=tb_baoxuid;
                break;
            }
        }
        return tbbx;
    }
    
    /**¸üбêÇ©ÉÏÒ»´ÎµÄXY×ø±ê*/
    public static void alert_xyzlast(int tagid,int x,int y,int z,int floor){
        tb_baoxuid a=get_bxid(tagid); 
        if(a!=null) {
            a.setX(x);
            a.setY(y);
            a.setZ(z);
            a.setFloor(floor);
            a.setZuobiao(1);
        }
        
    }
 
}