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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package BaoWen;
import Frame.Tag_IFrame;
import Method.GetNowTime;
import Method.StringToHex;
import tag.Tag;
import tag.Tag_Dell;
/**´¦Àí55AA07±¨ÎÄÀà*/
public class Dell_55AA07 {
    static boolean tanchu=false;
    static int num=0;
 
    public static void dell(String ip,String message) {
        //ԭʼÊý¾Ý
        if(tanchu) {
            String[] hex=StringToHex.hex(message);
            if(hex.length<7) {
                return;
            }            
            String tagid=hex[5]+hex[4];//±êÇ©ID
            Tag tag=Tag_Dell.get_tag(tagid);
            if(Tag_IFrame.isIsopen()) {
                return;
            }
            String tagid0=Tag_IFrame.getChoseid();
            if(tagid0==null) {
                return;
            }
            int succ=Integer.parseInt(hex[6]);                
            if(succ !=1) {
                String str2="  "+tagid+"ÐÞ¸Äʧ°Ü..."+GetNowTime.now();
                Tag_IFrame.get_text_area().append(str2);
                Tag_IFrame.get_text_area().setCaretPosition(Tag_IFrame.get_text_area().getText().length());
                return;
            }
 
            if(tagid0.equals("ËùÓбêÇ©")) {
                if(tag==null) {
                    return;
                }
                int a1=tag.getAlertsucc();
                if(a1 !=1) {
                    tag.setAlertsucc(1);
                    int a=num++;
                    if(Tag_IFrame.get_text_area() ==null) {
                        return;
                    }
                    String str="  "+tagid+" Ð޸ijɹ¦,¹²"+(a+1)+"¸ö,"+ip+"\n";    
                    Tag_IFrame.get_text_area().append(str);
                    Tag_IFrame.get_text_area().setCaretPosition(Tag_IFrame.get_text_area().getText().length());
                }
 
            }else {
                if(tagid.equals(tagid0)) {                    
                    if(tag ==null) {
                        return;
                    }
                    int a1=tag.getAlertsucc();
                    if(a1 !=1) {
                        tag.setAlertsucc(1);
                        int a=num++;
                        if(Tag_IFrame.get_text_area() ==null) {
                            return;
                        }
                        String str="  "+tagid+" Ð޸ijɹ¦,¹²"+(a+1)+"¸ö,"+ip+"\n";    
                        Tag_IFrame.get_text_area().append(str);
                        Tag_IFrame.get_text_area().setCaretPosition(Tag_IFrame.get_text_area().getText().length());
                    }
                }
            }
        }
    }
 
    public static boolean isTanchu() {
        return tanchu;
    }
 
    public static void setTanchu(boolean tanchu) {
        Dell_55AA07.tanchu = tanchu;
    }
 
    public static int getNum() {
        return num;
    }
 
    public static void setNum(int num) {
        Dell_55AA07.num = num;
    }
 
}