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;
|
}
|
|
}
|