diff --git a/inspect-fastcall/pom.xml b/inspect-fastcall/pom.xml
deleted file mode 100644
index 53da497..0000000
--- a/inspect-fastcall/pom.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
- 4.0.0
-
- com.inspect
- inspect
- 3.4.0
-
-
-
-
- inspect-fastcall
-
-
- UTF-8
- UTF-8
- 1.8
- com.inspect.access.InspectAccessApplication
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-sentinel
-
-
- org.springframework.boot
- spring-boot-starter-actuator
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- com.inspect
- inspect-common-log
- 3.4.0
-
-
- net.java.dev.jna
- jna
- 5.4.0
-
-
- com.inspect
- inspect-base-access
-
-
-
-
- ${project.artifactId}
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
- true
-
-
-
-
- repackage
-
-
-
-
-
- org.apache.maven.plugins
- maven-dependency-plugin
-
-
- copy-dependencies
- prepare-package
-
- copy-dependencies
-
-
-
- ${project.build.directory}/lib
-
- false
- false
- true
-
-
-
-
-
- org.apache.maven.plugins
- maven-resources-plugin
- 3.3.1
-
- UTF-8
-
- dll
- so
-
-
-
-
-
-
\ No newline at end of file
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/DHDemo.java b/inspect-fastcall/src/main/java/com/inspect/access/DHDemo.java
deleted file mode 100644
index 51553b6..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/DHDemo.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.inspect.access;
-
-import com.inspect.access.module.LoginModule;
-import com.inspect.access.module.ThermalCameraModule;
-import com.inspect.access.module.dhModule;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-public class DHDemo {
- public static void main(String[] args) throws IOException, InterruptedException {
- dhModule module = new dhModule();
- LoginModule.init(module.disConnect, module.haveReConnect);
- boolean flag = module.login("10.10.18.108", '鎑', "admin", "xg123456");
- if (flag) {
- List list = new ArrayList<>();
- list.add(2);
- ThermalCameraModule.removeRulesByPresetIds(list);
- System.out.println("===========end");
- }
-
- System.in.read();
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/InspectAccessApplication.java b/inspect-fastcall/src/main/java/com/inspect/access/InspectAccessApplication.java
deleted file mode 100644
index 1be4c51..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/InspectAccessApplication.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.inspect.access;
-
-import com.inspect.common.security.annotation.EnableCustomConfig;
-import com.inspect.common.security.annotation.EnableRyFeignClients;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-import org.springframework.context.annotation.ComponentScan;
-
-@EnableCustomConfig
-@EnableRyFeignClients
-@SpringBootApplication(
- exclude = {DataSourceAutoConfiguration.class}
-)
-@ComponentScan({"com.inspect.*"})
-public class InspectAccessApplication {
- private final static Logger log = LoggerFactory.getLogger(InspectAccessApplication.class);
- public static void main(String[] args) {
- SpringApplication.run(InspectAccessApplication.class, args);
- log.info("\n<===☆ FASTCALL MODULE ☆ ===> \n .-------. ____ __ \n | _ _ \\ \\ \\ / / \n | ( ' ) | \\ _. / ' \n |(_ o _) / _( )_ .' \n | (_,_).' __ ___(_ o _)' \n | |\\ \\ | || |(_,_)' \n | | \\ `' /| `-' / \n | | \\ / \\ / \n ''-' `'-' `-..-' ");
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/Base64.java b/inspect-fastcall/src/main/java/com/inspect/access/common/Base64.java
deleted file mode 100644
index a8ca857..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/Base64.java
+++ /dev/null
@@ -1,322 +0,0 @@
-package com.inspect.access.common;
-
-import java.nio.ByteBuffer;
-import java.nio.charset.Charset;
-import java.util.Arrays;
-
-public class Base64 {
- public static Base64.Encoder getEncoder() {
- return Base64.Encoder.RFC4648;
- }
-
- public static Base64.Decoder getDecoder() {
- return Base64.Decoder.RFC4648;
- }
-
- public static class Decoder {
- private final boolean isURL;
- private final boolean isMIME;
- private static final int[] fromBase64 = new int[256];
- private static final int[] fromBase64URL;
- static final Base64.Decoder RFC4648;
- static final Base64.Decoder RFC4648_URLSAFE;
- static final Base64.Decoder RFC2045;
-
- private Decoder(boolean isURL, boolean isMIME) {
- this.isURL = isURL;
- this.isMIME = isMIME;
- }
-
- public byte[] decode(byte[] src) {
- byte[] dst = new byte[this.outLength(src, 0, src.length)];
- int ret = this.decode0(src, 0, src.length, dst);
- if (ret != dst.length) {
- dst = Arrays.copyOf(dst, ret);
- }
-
- return dst;
- }
-
- public byte[] decode(String src) {
- return this.decode(src.getBytes(Charset.forName("ISO-8859-1")));
- }
-
- public int decode(byte[] src, byte[] dst) {
- int len = this.outLength(src, 0, src.length);
- if (dst.length < len) {
- throw new IllegalArgumentException("Output byte array is too small for decoding all input bytes");
- } else {
- return this.decode0(src, 0, src.length, dst);
- }
- }
-
- public ByteBuffer decode(ByteBuffer buffer) {
- int pos0 = buffer.position();
-
- try {
- byte[] src;
- int sp;
- int sl;
- if (buffer.hasArray()) {
- src = buffer.array();
- sp = buffer.arrayOffset() + buffer.position();
- sl = buffer.arrayOffset() + buffer.limit();
- buffer.position(buffer.limit());
- } else {
- src = new byte[buffer.remaining()];
- buffer.get(src);
- sp = 0;
- sl = src.length;
- }
-
- byte[] dst = new byte[this.outLength(src, sp, sl)];
- return ByteBuffer.wrap(dst, 0, this.decode0(src, sp, sl, dst));
- } catch (IllegalArgumentException var7) {
- buffer.position(pos0);
- throw var7;
- }
- }
-
- private int outLength(byte[] src, int sp, int sl) {
- int[] base64 = this.isURL ? fromBase64URL : fromBase64;
- int paddings = 0;
- int len = sl - sp;
- if (len == 0) {
- return 0;
- } else if (len < 2) {
- if (this.isMIME && base64[0] == -1) {
- return 0;
- } else {
- throw new IllegalArgumentException("Input byte[] should at least have 2 bytes for base64 bytes");
- }
- } else {
- if (this.isMIME) {
- int n = 0;
-
- while (sp < sl) {
- int b = src[sp++] & 255;
- if (b == 61) {
- len -= sl - sp + 1;
- break;
- }
-
- if (base64[b] == -1) {
- ++n;
- }
- }
-
- len -= n;
- } else if (src[sl - 1] == 61) {
- ++paddings;
- if (src[sl - 2] == 61) {
- ++paddings;
- }
- }
-
- if (paddings == 0 && (len & 3) != 0) {
- paddings = 4 - (len & 3);
- }
-
- return 3 * ((len + 3) / 4) - paddings;
- }
- }
-
- private int decode0(byte[] src, int sp, int sl, byte[] dst) {
- int[] base64 = this.isURL ? fromBase64URL : fromBase64;
- int dp = 0;
- int bits = 0;
- int shiftto = 18;
-
- while (sp < sl) {
- int b = src[sp++] & 255;
- if ((b = base64[b]) < 0) {
- if (b == -2) {
- if ((shiftto != 6 || sp != sl && src[sp++] == 61) && shiftto != 18) {
- break;
- }
-
- throw new IllegalArgumentException("Input byte array has wrong 4-byte ending unit");
- }
-
- if (!this.isMIME) {
- throw new IllegalArgumentException("Illegal base64 character " + Integer.toString(src[sp - 1], 16));
- }
- } else {
- bits |= b << shiftto;
- shiftto -= 6;
- if (shiftto < 0) {
- dst[dp++] = (byte) (bits >> 16);
- dst[dp++] = (byte) (bits >> 8);
- dst[dp++] = (byte) bits;
- shiftto = 18;
- bits = 0;
- }
- }
- }
-
- if (shiftto == 6) {
- dst[dp++] = (byte) (bits >> 16);
- } else if (shiftto == 0) {
- dst[dp++] = (byte) (bits >> 16);
- dst[dp++] = (byte) (bits >> 8);
- } else if (shiftto == 12) {
- throw new IllegalArgumentException("Last unit does not have enough valid bits");
- }
-
- do {
- if (sp >= sl) {
- return dp;
- }
- } while (this.isMIME && base64[src[sp++]] < 0);
-
- throw new IllegalArgumentException("Input byte array has incorrect ending byte at " + sp);
- }
-
- static {
- Arrays.fill(fromBase64, -1);
-
- int i;
- for (i = 0; i < Base64.Encoder.toBase64.length; fromBase64[Base64.Encoder.toBase64[i]] = i++) {
- ;
- }
-
- fromBase64[61] = -2;
- fromBase64URL = new int[256];
- Arrays.fill(fromBase64URL, -1);
-
- for (i = 0; i < Base64.Encoder.toBase64URL.length; fromBase64URL[Base64.Encoder.toBase64URL[i]] = i++) {
- ;
- }
-
- fromBase64URL[61] = -2;
- RFC4648 = new Base64.Decoder(false, false);
- RFC4648_URLSAFE = new Base64.Decoder(true, false);
- RFC2045 = new Base64.Decoder(false, true);
- }
- }
-
- public static class Encoder {
- private final byte[] newline;
- private final int linemax;
- private final boolean isURL;
- private final boolean doPadding;
- private static final char[] toBase64 = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
- private static final char[] toBase64URL = new char[]{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'};
- static final Base64.Encoder RFC4648 = new Base64.Encoder(false, (byte[]) null, -1, true);
-
- private Encoder(boolean isURL, byte[] newline, int linemax, boolean doPadding) {
- this.isURL = isURL;
- this.newline = newline;
- this.linemax = linemax;
- this.doPadding = doPadding;
- }
-
- private final int outLength(int srclen) {
- int len = 0;
-
- if (this.doPadding) {
- len = 4 * ((srclen + 2) / 3);
- } else {
- int n = srclen % 3;
- len = 4 * (srclen / 3) + (n == 0 ? 0 : n + 1);
- }
-
- if (this.linemax > 0) {
- len += (len - 1) / this.linemax * this.newline.length;
- }
-
- return len;
- }
-
- public byte[] encode(byte[] src) {
- int len = this.outLength(src.length);
- byte[] dst = new byte[len];
- int ret = this.encode0(src, 0, src.length, dst);
- return ret != dst.length ? Arrays.copyOf(dst, ret) : dst;
- }
-
- public int encode(byte[] src, byte[] dst) {
- int len = this.outLength(src.length);
- if (dst.length < len) {
- throw new IllegalArgumentException("Output byte array is too small for encoding all input bytes");
- } else {
- return this.encode0(src, 0, src.length, dst);
- }
- }
-
- public String encodeToString(byte[] src) {
- byte[] encoded = this.encode(src);
- return new String(encoded, 0, 0, encoded.length);
- }
-
- public Base64.Encoder withoutPadding() {
- return !this.doPadding ? this : new Base64.Encoder(this.isURL, this.newline, this.linemax, false);
- }
-
- private int encode0(byte[] src, int off, int end, byte[] dst) {
- char[] base64 = this.isURL ? toBase64URL : toBase64;
- int sp = off;
- int slen = (end - off) / 3 * 3;
- int sl = off + slen;
- if (this.linemax > 0 && slen > this.linemax / 4 * 3) {
- slen = this.linemax / 4 * 3;
- }
-
- int dp = 0;
-
- while (true) {
- int sl0;
- int dlen;
- int bits;
- do {
- do {
- if (sp >= sl) {
- if (sp < end) {
- sl0 = src[sp++] & 255;
- dst[dp++] = (byte) base64[sl0 >> 2];
- if (sp == end) {
- dst[dp++] = (byte) base64[sl0 << 4 & 63];
- if (this.doPadding) {
- dst[dp++] = 61;
- dst[dp++] = 61;
- }
- } else {
- dlen = src[sp++] & 255;
- dst[dp++] = (byte) base64[sl0 << 4 & 63 | dlen >> 4];
- dst[dp++] = (byte) base64[dlen << 2 & 63];
- if (this.doPadding) {
- dst[dp++] = 61;
- }
- }
- }
-
- return dp;
- }
-
- sl0 = Math.min(sp + slen, sl);
- dlen = sp;
-
- for (int var12 = dp; dlen < sl0; dst[var12++] = (byte) base64[bits & 63]) {
- bits = (src[dlen++] & 255) << 16 | (src[dlen++] & 255) << 8 | src[dlen++] & 255;
- dst[var12++] = (byte) base64[bits >>> 18 & 63];
- dst[var12++] = (byte) base64[bits >>> 12 & 63];
- dst[var12++] = (byte) base64[bits >>> 6 & 63];
- }
-
- dlen = (sl0 - sp) / 3 * 4;
- dp += dlen;
- sp = sl0;
- } while (dlen != this.linemax);
- } while (sl0 >= end);
-
- byte[] var16 = this.newline;
- bits = var16.length;
-
- for (int var14 = 0; var14 < bits; ++var14) {
- byte b = var16[var14];
- dst[dp++] = b;
- }
- }
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/BorderEx.java b/inspect-fastcall/src/main/java/com/inspect/access/common/BorderEx.java
deleted file mode 100644
index ae13ac7..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/BorderEx.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.inspect.access.common;
-
-import javax.swing.BorderFactory;
-import javax.swing.JComponent;
-import javax.swing.border.Border;
-
-public class BorderEx {
- public static void set(JComponent object, String title, int width) {
- Border innerBorder = BorderFactory.createTitledBorder(title);
- Border outerBorder = BorderFactory.createEmptyBorder(width, width, width, width);
- object.setBorder(BorderFactory.createCompoundBorder(outerBorder, innerBorder));
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/CaseMenu.java b/inspect-fastcall/src/main/java/com/inspect/access/common/CaseMenu.java
deleted file mode 100644
index 9a1bbfa..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/CaseMenu.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package com.inspect.access.common;
-
-import java.io.PrintStream;
-import java.lang.reflect.Method;
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-import java.util.Scanner;
-import java.util.Vector;
-
-public class CaseMenu {
- private Vector items = new Vector();
-
- public void addItem(CaseMenu.Item item) {
- this.items.add(item);
- }
-
- private void showItem() {
- String format = "%2d\t%-20s\n";
- int index = 0;
- PrintStream var10000 = System.out;
- Object[] var10002 = new Object[2];
- int var6 = index + 1;
- var10002[0] = Integer.valueOf(index);
- var10002[1] = "exit App";
- var10000.printf("%2d\t%-20s\n", var10002);
- Iterator var3 = this.items.iterator();
-
- while(var3.hasNext()) {
- CaseMenu.Item item = (CaseMenu.Item)var3.next();
- System.out.printf("%2d\t%-20s\n", new Object[]{Integer.valueOf(var6++), item.getItemName()});
- }
-
- System.out.println("Please input a item index to invoke the method:");
- }
-
- public void run() {
- Scanner scanner = new Scanner(System.in);
-
- while(true) {
- this.showItem();
-
- try {
- int input = Integer.parseInt(scanner.nextLine());
- if(input <= 0) {
- System.err.println("input <= 0 || scanner.nextLine() == null");
- break;
- }
-
- if(input >= 0 && input <= this.items.size()) {
- CaseMenu.Item item = (CaseMenu.Item)this.items.get(input - 1);
- Class> itemClass = item.getObject().getClass();
- Method method = itemClass.getMethod(item.getMethodName(), new Class[0]);
- method.invoke(item.getObject(), new Object[0]);
- } else {
- System.err.println("Input Error Item Index.");
- }
- } catch (NoSuchElementException var6) {
- break;
- } catch (NumberFormatException var7) {
- System.err.println("Input Error NumberFormat.");
- } catch (Exception var8) {
- var8.printStackTrace();
- }
- }
-
- scanner.close();
- }
-
- public static class Item {
- private Object object;
- private String itemName;
- private String methodName;
-
- public Item(Object object, String itemName, String methodName) {
- this.object = object;
- this.itemName = itemName;
- this.methodName = methodName;
- }
-
- public Object getObject() {
- return this.object;
- }
-
- public String getItemName() {
- return this.itemName;
- }
-
- public String getMethodName() {
- return this.methodName;
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButton.java b/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButton.java
deleted file mode 100644
index 12bfa18..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButton.java
+++ /dev/null
@@ -1,539 +0,0 @@
-package com.inspect.access.common;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Cursor;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseEvent;
-import java.awt.event.MouseListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Date;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
-import javax.swing.UIManager;
-import javax.swing.JSpinner.NumberEditor;
-import javax.swing.border.Border;
-import javax.swing.border.LineBorder;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-public class DateChooserJButton extends JButton {
- private static final long serialVersionUID = 1L;
- int startYear;
- int lastYear;
- private DateChooserJButton.DateChooser dateChooser;
- private String preLabel;
- private String originalText;
- private SimpleDateFormat sdf;
- private JSpinner yearSpin;
- private JSpinner monthSpin;
- private JSpinner daySpin;
- private JSpinner hourSpin;
- private JSpinner minuteSpin;
- private JSpinner secondSpin;
-
- public DateChooserJButton() {
- this(getNowDate());
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (Exception var2) {
- var2.printStackTrace();
- }
-
- }
-
- public DateChooserJButton(String dateString) {
- this();
- this.setText(getDefaultDateFormat(), dateString);
- this.initOriginalText(dateString);
- }
-
- public DateChooserJButton(SimpleDateFormat df, String dateString) {
- this();
- this.setText(df, dateString);
- this.sdf = df;
- Date originalDate = null;
-
- try {
- originalDate = df.parse(dateString);
- } catch (ParseException var5) {
- originalDate = getNowDate();
- }
-
- this.initOriginalText(originalDate);
- }
-
- public DateChooserJButton(Date date) {
- this("", date);
- this.initOriginalText(date);
- }
-
- public DateChooserJButton(String preLabel, Date date) {
- this.startYear = 1980;
- this.lastYear = 2050;
- this.dateChooser = null;
- this.preLabel = "";
- this.originalText = null;
- this.sdf = null;
- if(preLabel != null) {
- this.preLabel = preLabel;
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- this.setBorder((Border)null);
- this.setCursor(new Cursor(12));
- super.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(DateChooserJButton.this.dateChooser == null) {
- DateChooserJButton.this.dateChooser = DateChooserJButton.this.new DateChooser();
- }
-
- DateChooserJButton.this.dateChooser.showDateChooser();
- }
- });
- }
-
- public DateChooserJButton(int startYear, int lastYear) {
- this();
- this.startYear = startYear;
- this.lastYear = lastYear;
- }
-
- private static Date getNowDate() {
- return Calendar.getInstance().getTime();
- }
-
- private static SimpleDateFormat getDefaultDateFormat() {
- return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- }
-
- public SimpleDateFormat getCurrentSimpleDateFormat() {
- return this.sdf != null?this.sdf:getDefaultDateFormat();
- }
-
- private void initOriginalText(String dateString) {
- this.originalText = dateString;
- }
-
- private void initOriginalText(Date date) {
- this.originalText = this.preLabel + getDefaultDateFormat().format(date);
- }
-
- public String getOriginalText() {
- return this.originalText;
- }
-
- public void setText(String s) {
- Date date;
- try {
- date = getDefaultDateFormat().parse(s);
- } catch (ParseException var4) {
- date = getNowDate();
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- }
-
- public void setText(SimpleDateFormat df, String s) {
- Date date;
- try {
- date = df.parse(s);
- } catch (ParseException var5) {
- date = getNowDate();
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- }
-
- public void setDate(Date date) {
- super.setText(this.preLabel + getDefaultDateFormat().format(date));
- }
-
- public Date getDate() {
- String dateString = this.getText().substring(this.preLabel.length());
-
- try {
- SimpleDateFormat currentSdf = this.getCurrentSimpleDateFormat();
- return currentSdf.parse(dateString);
- } catch (ParseException var3) {
- return getNowDate();
- }
- }
-
- public void addActionListener(ActionListener listener) {
- }
-
- private class DateChooser extends JPanel implements MouseListener, ChangeListener {
- private static final long serialVersionUID = 1L;
- JLabel yearLabel;
- JLabel monthLabel;
- JLabel dayLabel;
- JLabel hourLabel;
- JLabel minuteLabel;
- JLabel secondLabel;
- int width = 485;
- int height = 230;
- Color backGroundColor;
- Color palletTableColor;
- Color todayBackColor;
- Color weekFontColor;
- Color dateFontColor;
- Color weekendFontColor;
- Color controlLineColor;
- Color controlTextColor;
- JDialog dialog;
- JLabel[][] daysLabels;
-
- DateChooser() {
- this.backGroundColor = Color.gray;
- this.palletTableColor = Color.white;
- this.todayBackColor = Color.orange;
- this.weekFontColor = Color.blue;
- this.dateFontColor = Color.black;
- this.weekendFontColor = Color.red;
- this.controlLineColor = Color.pink;
- this.controlTextColor = Color.white;
- this.daysLabels = new JLabel[6][7];
- this.setLayout(new BorderLayout());
- this.setBorder(new LineBorder(this.backGroundColor, 2));
- this.setBackground(this.backGroundColor);
- JPanel topYearAndMonth = this.createYearAndMonthPanal();
- this.add(topYearAndMonth, "North");
- JPanel centerWeekAndDay = this.createWeekAndDayPanal();
- this.add(centerWeekAndDay, "Center");
- JPanel buttonBarPanel = this.createButtonBarPanel();
- this.add(buttonBarPanel, "South");
- }
-
- private JPanel createYearAndMonthPanal() {
- Calendar c = this.getCalendar();
- int currentYear = c.get(1);
- int currentMonth = c.get(2) + 1;
- int currentDay = c.get(5);
- int currentHour = c.get(11);
- int currentMinute = c.get(12);
- int currentSecond = c.get(13);
- JPanel result = new JPanel();
- result.setLayout(new FlowLayout());
- result.setBackground(this.controlLineColor);
- DateChooserJButton.this.yearSpin = new JSpinner(new SpinnerNumberModel(currentYear, DateChooserJButton.this.startYear, DateChooserJButton.this.lastYear, 1));
- DateChooserJButton.this.yearSpin.setPreferredSize(new Dimension(48, 20));
- DateChooserJButton.this.yearSpin.setName("Year");
- DateChooserJButton.this.yearSpin.setEditor(new NumberEditor(DateChooserJButton.this.yearSpin, "####"));
- DateChooserJButton.this.yearSpin.addChangeListener(this);
- result.add(DateChooserJButton.this.yearSpin);
- this.yearLabel = new JLabel(Res.string().getYear());
- this.yearLabel.setForeground(this.controlTextColor);
- result.add(this.yearLabel);
- DateChooserJButton.this.monthSpin = new JSpinner(new SpinnerNumberModel(currentMonth, 1, 12, 1));
- DateChooserJButton.this.monthSpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButton.this.monthSpin.setName("Month");
- DateChooserJButton.this.monthSpin.addChangeListener(this);
- result.add(DateChooserJButton.this.monthSpin);
- this.monthLabel = new JLabel(Res.string().getMonth());
- this.monthLabel.setForeground(this.controlTextColor);
- result.add(this.monthLabel);
- DateChooserJButton.this.daySpin = new JSpinner(new SpinnerNumberModel(currentDay, 1, 31, 1));
- DateChooserJButton.this.daySpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButton.this.daySpin.setName("Day");
- DateChooserJButton.this.daySpin.addChangeListener(this);
- DateChooserJButton.this.daySpin.setEnabled(false);
- result.add(DateChooserJButton.this.daySpin);
- this.dayLabel = new JLabel(Res.string().getDay());
- this.dayLabel.setForeground(this.controlTextColor);
- result.add(this.dayLabel);
- DateChooserJButton.this.hourSpin = new JSpinner(new SpinnerNumberModel(currentHour, 0, 23, 1));
- DateChooserJButton.this.hourSpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButton.this.hourSpin.setName("Hour");
- DateChooserJButton.this.hourSpin.addChangeListener(this);
- result.add(DateChooserJButton.this.hourSpin);
- this.hourLabel = new JLabel(Res.string().getHour());
- this.hourLabel.setForeground(this.controlTextColor);
- result.add(this.hourLabel);
- DateChooserJButton.this.minuteSpin = new JSpinner(new SpinnerNumberModel(currentMinute, 0, 59, 1));
- DateChooserJButton.this.minuteSpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButton.this.minuteSpin.setName("Minute");
- DateChooserJButton.this.minuteSpin.addChangeListener(this);
- result.add(DateChooserJButton.this.minuteSpin);
- this.minuteLabel = new JLabel(Res.string().getMinute());
- this.minuteLabel.setForeground(this.controlTextColor);
- result.add(this.minuteLabel);
- DateChooserJButton.this.secondSpin = new JSpinner(new SpinnerNumberModel(currentSecond, 0, 59, 1));
- DateChooserJButton.this.secondSpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButton.this.secondSpin.setName("Second");
- DateChooserJButton.this.secondSpin.addChangeListener(this);
- result.add(DateChooserJButton.this.secondSpin);
- this.secondLabel = new JLabel(Res.string().getSecond());
- this.secondLabel.setForeground(this.controlTextColor);
- result.add(this.secondLabel);
- return result;
- }
-
- private JPanel createWeekAndDayPanal() {
- Res.string().getWeek();
- JPanel result = new JPanel();
- result.setFont(new Font("宋体", 0, 12));
- result.setLayout(new GridLayout(7, 7));
- result.setBackground(Color.white);
-
- int i;
- for(i = 0; i < 7; ++i) {
- JLabel cell = new JLabel(Res.string().getWeek()[i]);
- cell.setHorizontalAlignment(4);
- if(i != 0 && i != 6) {
- cell.setForeground(this.weekFontColor);
- } else {
- cell.setForeground(this.weekendFontColor);
- }
-
- result.add(cell);
- }
-
- for(i = 0; i < 6; ++i) {
- for(int j = 0; j < 7; ++j) {
- JLabel numberLabel = new JLabel();
- numberLabel.setBorder((Border)null);
- numberLabel.setHorizontalAlignment(4);
- numberLabel.addMouseListener(this);
- numberLabel.setBackground(this.palletTableColor);
- numberLabel.setForeground(this.dateFontColor);
- if(j != 0 && j != 6) {
- numberLabel.setForeground(this.dateFontColor);
- } else {
- numberLabel.setForeground(this.weekendFontColor);
- }
-
- this.daysLabels[i][j] = numberLabel;
- result.add(numberLabel);
- }
- }
-
- return result;
- }
-
- public String getTextOfDateChooserButton() {
- return DateChooserJButton.this.getText();
- }
-
- public void restoreTheOriginalDate() {
- String originalText = DateChooserJButton.this.getOriginalText();
- DateChooserJButton.this.setText(originalText);
- }
-
- private JPanel createButtonBarPanel() {
- JPanel panel = new JPanel();
- panel.setLayout(new GridLayout(1, 2));
- JButton ok = new JButton(Res.string().getConfirm());
- ok.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- DateChooserJButton.this.initOriginalText(DateChooser.this.getTextOfDateChooserButton());
- DateChooser.this.dialog.setVisible(false);
- }
- });
- panel.add(ok);
- JButton cancel = new JButton(Res.string().getCancel());
- cancel.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- DateChooser.this.restoreTheOriginalDate();
- DateChooser.this.dialog.setVisible(false);
- }
- });
- panel.add(cancel);
- return panel;
- }
-
- private JDialog createDialog() {
- JDialog result = new JDialog();
- result.setTitle(Res.string().getDateChooser());
- result.setDefaultCloseOperation(2);
- result.getContentPane().add(this, "Center");
- result.pack();
- result.setSize(this.width, this.height);
- result.setModal(true);
- result.addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
- DateChooser.this.restoreTheOriginalDate();
- DateChooser.this.dialog.setVisible(false);
- }
- });
- return result;
- }
-
- void showDateChooser() {
- if(this.dialog == null) {
- this.dialog = this.createDialog();
- }
-
- this.dialog.setLocationRelativeTo((Component)null);
- this.flushWeekAndDay();
- this.dialog.setVisible(true);
- }
-
- private Calendar getCalendar() {
- Calendar result = Calendar.getInstance();
- result.setTime(DateChooserJButton.this.getDate());
- return result;
- }
-
- private int getSelectedYear() {
- return ((Integer)DateChooserJButton.this.yearSpin.getValue()).intValue();
- }
-
- private int getSelectedMonth() {
- return ((Integer)DateChooserJButton.this.monthSpin.getValue()).intValue();
- }
-
- private int getSelectedHour() {
- return ((Integer)DateChooserJButton.this.hourSpin.getValue()).intValue();
- }
-
- private int getSelectedMinite() {
- return ((Integer)DateChooserJButton.this.minuteSpin.getValue()).intValue();
- }
-
- private int getSelectedSecond() {
- return ((Integer)DateChooserJButton.this.secondSpin.getValue()).intValue();
- }
-
- private void dayColorUpdate(boolean isOldDay) {
- Calendar c = this.getCalendar();
- int day = c.get(5);
- c.set(5, 1);
- int actionCommandId = day - 2 + c.get(7);
- int i = actionCommandId / 7;
- int j = actionCommandId % 7;
- if(isOldDay) {
- this.daysLabels[i][j].setForeground(this.dateFontColor);
- } else {
- this.daysLabels[i][j].setForeground(this.todayBackColor);
- }
-
- }
-
- private void flushWeekAndDay() {
- Calendar c = this.getCalendar();
- c.set(5, 1);
- int maxDayNo = c.getActualMaximum(5);
- int dayNo = 2 - c.get(7);
-
- for(int i = 0; i < 6; ++i) {
- for(int jx = 0; jx < 7; ++jx) {
- String s = "";
- if(dayNo >= 1 && dayNo <= maxDayNo) {
- s = String.valueOf(dayNo);
- }
-
- this.daysLabels[i][jx].setText(s);
- ++dayNo;
- }
- }
-
- String[] date1 = DateChooserJButton.this.getText().split(" ")[0].split("-");
- String[] date2 = DateChooserJButton.this.getText().split(" ")[1].split(":");
- DateChooserJButton.this.yearSpin.setValue(new Integer(date1[0]));
- DateChooserJButton.this.monthSpin.setValue(new Integer(date1[1]));
- DateChooserJButton.this.daySpin.setValue(new Integer(date1[2]));
- DateChooserJButton.this.hourSpin.setValue(new Integer(date2[0]));
- DateChooserJButton.this.minuteSpin.setValue(new Integer(date2[1]));
- DateChooserJButton.this.secondSpin.setValue(new Integer(date2[2]));
-
- int j;
- int ix;
- for(ix = 0; ix < 6; ++ix) {
- for(j = 0; j < 7; ++j) {
- if(!this.daysLabels[ix][j].getText().equals("")) {
- this.daysLabels[ix][j].setForeground(Color.BLACK);
- }
- }
- }
-
- for(ix = 0; ix < 6; ++ix) {
- if(!this.daysLabels[ix][0].getText().equals("")) {
- this.daysLabels[ix][0].setForeground(this.weekendFontColor);
- }
-
- if(!this.daysLabels[ix][6].getText().equals("")) {
- this.daysLabels[ix][6].setForeground(this.weekendFontColor);
- }
- }
-
- for(ix = 0; ix < 6; ++ix) {
- for(j = 0; j < 7; ++j) {
- if(this.daysLabels[ix][j].getText().equals(date1[2])) {
- this.daysLabels[ix][j].setForeground(this.todayBackColor);
- }
- }
- }
-
- this.dayColorUpdate(false);
- }
-
- public void stateChanged(ChangeEvent e) {
- JSpinner source = (JSpinner)e.getSource();
- Calendar c = this.getCalendar();
- if(source.getName().equals("Hour")) {
- c.set(11, this.getSelectedHour());
- DateChooserJButton.this.setDate(c.getTime());
- } else if(source.getName().equals("Minute")) {
- c.set(12, this.getSelectedMinite());
- DateChooserJButton.this.setDate(c.getTime());
- } else if(source.getName().equals("Second")) {
- c.set(13, this.getSelectedSecond());
- DateChooserJButton.this.setDate(c.getTime());
- } else {
- this.dayColorUpdate(true);
- if(source.getName().equals("Year")) {
- c.set(1, this.getSelectedYear());
- } else if(source.getName().equals("Month")) {
- c.set(2, this.getSelectedMonth() - 1);
- }
-
- DateChooserJButton.this.setDate(c.getTime());
- this.flushWeekAndDay();
- }
- }
-
- public void mouseClicked(MouseEvent e) {
- JLabel source = (JLabel)e.getSource();
- if(source.getText().length() != 0) {
- this.dayColorUpdate(true);
- source.setForeground(this.todayBackColor);
- int newDay = Integer.parseInt(source.getText());
- Calendar c = this.getCalendar();
- c.set(5, newDay);
- DateChooserJButton.this.setDate(c.getTime());
- DateChooserJButton.this.daySpin.setValue(Integer.valueOf(newDay));
- }
- }
-
- public void mouseEntered(MouseEvent arg0) {
- }
-
- public void mouseExited(MouseEvent arg0) {
- }
-
- public void mousePressed(MouseEvent arg0) {
- }
-
- public void mouseReleased(MouseEvent arg0) {
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButtonEx.java b/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButtonEx.java
deleted file mode 100644
index 93ed6ee..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/DateChooserJButtonEx.java
+++ /dev/null
@@ -1,507 +0,0 @@
-package com.inspect.access.common;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Cursor;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseEvent;
-import java.awt.event.MouseListener;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Date;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JSpinner;
-import javax.swing.SpinnerNumberModel;
-import javax.swing.UIManager;
-import javax.swing.JSpinner.NumberEditor;
-import javax.swing.border.Border;
-import javax.swing.border.LineBorder;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-public class DateChooserJButtonEx extends JButton {
- private static final long serialVersionUID = 1L;
- int startYear;
- int lastYear;
- private DateChooserJButtonEx.DateChooser dateChooser;
- private String preLabel;
- private String originalText;
- private SimpleDateFormat sdf;
- private JSpinner yearSpin;
- private JSpinner monthSpin;
- private JSpinner daySpin;
- private JSpinner hourSpin;
- private JSpinner minuteSpin;
- private JSpinner secondSpin;
-
- public DateChooserJButtonEx() {
- this(getNowDate());
-
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (Exception var2) {
- var2.printStackTrace();
- }
-
- }
-
- public DateChooserJButtonEx(String dateString) {
- this();
- this.setText(getDefaultDateFormat(), dateString);
- this.initOriginalText(dateString);
- }
-
- public DateChooserJButtonEx(SimpleDateFormat df, String dateString) {
- this();
- this.setText(df, dateString);
- this.sdf = df;
- Date originalDate = null;
-
- try {
- originalDate = df.parse(dateString);
- } catch (ParseException var5) {
- originalDate = getNowDate();
- }
-
- this.initOriginalText(originalDate);
- }
-
- public DateChooserJButtonEx(Date date) {
- this("", date);
- this.initOriginalText(date);
- }
-
- public DateChooserJButtonEx(String preLabel, Date date) {
- this.startYear = 1980;
- this.lastYear = 2050;
- this.dateChooser = null;
- this.preLabel = "";
- this.originalText = null;
- this.sdf = null;
- if(preLabel != null) {
- this.preLabel = preLabel;
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- this.setBorder((Border)null);
- this.setCursor(new Cursor(12));
- super.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if(DateChooserJButtonEx.this.dateChooser == null) {
- DateChooserJButtonEx.this.dateChooser = DateChooserJButtonEx.this.new DateChooser();
- }
-
- DateChooserJButtonEx.this.dateChooser.showDateChooser();
- }
- });
- }
-
- public void setStartYear(int startYear) {
- this.startYear = startYear;
- }
-
- public void setLastYear(int lastYear) {
- this.lastYear = lastYear;
- }
-
- private static Date getNowDate() {
- return Calendar.getInstance().getTime();
- }
-
- private static SimpleDateFormat getDefaultDateFormat() {
- return new SimpleDateFormat("yyyy-MM-dd");
- }
-
- public SimpleDateFormat getCurrentSimpleDateFormat() {
- return this.sdf != null?this.sdf:getDefaultDateFormat();
- }
-
- private void initOriginalText(String dateString) {
- this.originalText = dateString;
- }
-
- private void initOriginalText(Date date) {
- this.originalText = this.preLabel + getDefaultDateFormat().format(date);
- }
-
- public String getOriginalText() {
- return this.originalText;
- }
-
- public void setText(String s) {
- Date date;
- try {
- date = getDefaultDateFormat().parse(s);
- } catch (ParseException var4) {
- date = getNowDate();
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- }
-
- public void setText(SimpleDateFormat df, String s) {
- Date date;
- try {
- date = df.parse(s);
- } catch (ParseException var5) {
- date = getNowDate();
- }
-
- this.setDate(date);
- this.initOriginalText(date);
- }
-
- public void setDate(Date date) {
- super.setText(this.preLabel + getDefaultDateFormat().format(date));
- }
-
- public Date getDate() {
- String dateString = this.getText().substring(this.preLabel.length());
-
- try {
- SimpleDateFormat currentSdf = this.getCurrentSimpleDateFormat();
- return currentSdf.parse(dateString);
- } catch (ParseException var3) {
- return getNowDate();
- }
- }
-
- public void addActionListener(ActionListener listener) {
- }
-
- private class DateChooser extends JPanel implements MouseListener, ChangeListener {
- private static final long serialVersionUID = 1L;
- JLabel yearLabel;
- JLabel monthLabel;
- JLabel dayLabel;
- int width = 485;
- int height = 230;
- Color backGroundColor;
- Color palletTableColor;
- Color todayBackColor;
- Color weekFontColor;
- Color dateFontColor;
- Color weekendFontColor;
- Color controlLineColor;
- Color controlTextColor;
- JDialog dialog;
- JLabel[][] daysLabels;
-
- DateChooser() {
- this.backGroundColor = Color.gray;
- this.palletTableColor = Color.white;
- this.todayBackColor = Color.orange;
- this.weekFontColor = Color.blue;
- this.dateFontColor = Color.black;
- this.weekendFontColor = Color.red;
- this.controlLineColor = Color.pink;
- this.controlTextColor = Color.white;
- this.daysLabels = new JLabel[6][7];
- this.setLayout(new BorderLayout());
- this.setBorder(new LineBorder(this.backGroundColor, 2));
- this.setBackground(this.backGroundColor);
- JPanel topYearAndMonth = this.createYearAndMonthPanal();
- this.add(topYearAndMonth, "North");
- JPanel centerWeekAndDay = this.createWeekAndDayPanal();
- this.add(centerWeekAndDay, "Center");
- JPanel buttonBarPanel = this.createButtonBarPanel();
- this.add(buttonBarPanel, "South");
- }
-
- private JPanel createYearAndMonthPanal() {
- Calendar c = this.getCalendar();
- int currentYear = c.get(1);
- int currentMonth = c.get(2) + 1;
- int currentDay = c.get(5);
- JPanel result = new JPanel();
- result.setLayout(new FlowLayout());
- result.setBackground(this.controlLineColor);
- DateChooserJButtonEx.this.yearSpin = new JSpinner(new SpinnerNumberModel(currentYear, DateChooserJButtonEx.this.startYear, DateChooserJButtonEx.this.lastYear, 1));
- DateChooserJButtonEx.this.yearSpin.setPreferredSize(new Dimension(48, 20));
- DateChooserJButtonEx.this.yearSpin.setName("Year");
- DateChooserJButtonEx.this.yearSpin.setEditor(new NumberEditor(DateChooserJButtonEx.this.yearSpin, "####"));
- DateChooserJButtonEx.this.yearSpin.addChangeListener(this);
- result.add(DateChooserJButtonEx.this.yearSpin);
- this.yearLabel = new JLabel(Res.string().getYear());
- this.yearLabel.setForeground(this.controlTextColor);
- result.add(this.yearLabel);
- DateChooserJButtonEx.this.monthSpin = new JSpinner(new SpinnerNumberModel(currentMonth, 1, 12, 1));
- DateChooserJButtonEx.this.monthSpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButtonEx.this.monthSpin.setName("Month");
- DateChooserJButtonEx.this.monthSpin.addChangeListener(this);
- result.add(DateChooserJButtonEx.this.monthSpin);
- this.monthLabel = new JLabel(Res.string().getMonth());
- this.monthLabel.setForeground(this.controlTextColor);
- result.add(this.monthLabel);
- DateChooserJButtonEx.this.daySpin = new JSpinner(new SpinnerNumberModel(currentDay, 1, 31, 1));
- DateChooserJButtonEx.this.daySpin.setPreferredSize(new Dimension(35, 20));
- DateChooserJButtonEx.this.daySpin.setName("Day");
- DateChooserJButtonEx.this.daySpin.addChangeListener(this);
- DateChooserJButtonEx.this.daySpin.setEnabled(false);
- result.add(DateChooserJButtonEx.this.daySpin);
- this.dayLabel = new JLabel(Res.string().getDay());
- this.dayLabel.setForeground(this.controlTextColor);
- result.add(this.dayLabel);
- return result;
- }
-
- private JPanel createWeekAndDayPanal() {
- Res.string().getWeek();
- JPanel result = new JPanel();
- result.setFont(new Font("宋体", 0, 12));
- result.setLayout(new GridLayout(7, 7));
- result.setBackground(Color.white);
-
- int i;
- for(i = 0; i < 7; ++i) {
- JLabel cell = new JLabel(Res.string().getWeek()[i]);
- cell.setHorizontalAlignment(4);
- if(i != 0 && i != 6) {
- cell.setForeground(this.weekFontColor);
- } else {
- cell.setForeground(this.weekendFontColor);
- }
-
- result.add(cell);
- }
-
- for(i = 0; i < 6; ++i) {
- for(int j = 0; j < 7; ++j) {
- JLabel numberLabel = new JLabel();
- numberLabel.setBorder((Border)null);
- numberLabel.setHorizontalAlignment(4);
- numberLabel.addMouseListener(this);
- numberLabel.setBackground(this.palletTableColor);
- numberLabel.setForeground(this.dateFontColor);
- if(j != 0 && j != 6) {
- numberLabel.setForeground(this.dateFontColor);
- } else {
- numberLabel.setForeground(this.weekendFontColor);
- }
-
- this.daysLabels[i][j] = numberLabel;
- result.add(numberLabel);
- }
- }
-
- return result;
- }
-
- public String getTextOfDateChooserButton() {
- return DateChooserJButtonEx.this.getText();
- }
-
- public void restoreTheOriginalDate() {
- String originalText = DateChooserJButtonEx.this.getOriginalText();
- DateChooserJButtonEx.this.setText(originalText);
- }
-
- private JPanel createButtonBarPanel() {
- JPanel panel = new JPanel();
- panel.setLayout(new GridLayout(1, 2));
- JButton ok = new JButton(Res.string().getConfirm());
- ok.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- DateChooserJButtonEx.this.initOriginalText(DateChooser.this.getTextOfDateChooserButton());
- DateChooser.this.dialog.setVisible(false);
- }
- });
- panel.add(ok);
- JButton cancel = new JButton(Res.string().getCancel());
- cancel.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- DateChooser.this.restoreTheOriginalDate();
- DateChooser.this.dialog.setVisible(false);
- }
- });
- panel.add(cancel);
- return panel;
- }
-
- private JDialog createDialog() {
- JDialog result = new JDialog();
- result.setTitle(Res.string().getDateChooser());
- result.setDefaultCloseOperation(2);
- result.getContentPane().add(this, "Center");
- result.pack();
- result.setSize(this.width, this.height);
- result.setModal(true);
- result.addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
- DateChooser.this.restoreTheOriginalDate();
- DateChooser.this.dialog.setVisible(false);
- }
- });
- return result;
- }
-
- void showDateChooser() {
- if(this.dialog == null) {
- this.dialog = this.createDialog();
- }
-
- this.dialog.setLocationRelativeTo((Component)null);
- this.flushWeekAndDay();
- this.dialog.setVisible(true);
- }
-
- private Calendar getCalendar() {
- Calendar result = Calendar.getInstance();
- result.setTime(DateChooserJButtonEx.this.getDate());
- return result;
- }
-
- private int getSelectedYear() {
- return ((Integer)DateChooserJButtonEx.this.yearSpin.getValue()).intValue();
- }
-
- private int getSelectedMonth() {
- return ((Integer)DateChooserJButtonEx.this.monthSpin.getValue()).intValue();
- }
-
- private int getSelectedHour() {
- return ((Integer)DateChooserJButtonEx.this.hourSpin.getValue()).intValue();
- }
-
- private int getSelectedMinite() {
- return ((Integer)DateChooserJButtonEx.this.minuteSpin.getValue()).intValue();
- }
-
- private int getSelectedSecond() {
- return ((Integer)DateChooserJButtonEx.this.secondSpin.getValue()).intValue();
- }
-
- private void dayColorUpdate(boolean isOldDay) {
- Calendar c = this.getCalendar();
- int day = c.get(5);
- c.set(5, 1);
- int actionCommandId = day - 2 + c.get(7);
- int i = actionCommandId / 7;
- int j = actionCommandId % 7;
- if(isOldDay) {
- this.daysLabels[i][j].setForeground(this.dateFontColor);
- } else {
- this.daysLabels[i][j].setForeground(this.todayBackColor);
- }
-
- }
-
- private void flushWeekAndDay() {
- Calendar c = this.getCalendar();
- c.set(5, 1);
- int maxDayNo = c.getActualMaximum(5);
- int dayNo = 2 - c.get(7);
-
- int ix;
- for(int i = 0; i < 6; ++i) {
- for(ix = 0; ix < 7; ++ix) {
- String s = "";
- if(dayNo >= 1 && dayNo <= maxDayNo) {
- s = String.valueOf(dayNo);
- }
-
- this.daysLabels[i][ix].setText(s);
- ++dayNo;
- }
- }
-
- String[] date1 = DateChooserJButtonEx.this.getText().split(" ")[0].split("-");
- DateChooserJButtonEx.this.yearSpin.setValue(new Integer(date1[0]));
- DateChooserJButtonEx.this.monthSpin.setValue(new Integer(date1[1]));
- DateChooserJButtonEx.this.daySpin.setValue(new Integer(date1[2]));
-
- int j;
- for(ix = 0; ix < 6; ++ix) {
- for(j = 0; j < 7; ++j) {
- if(!this.daysLabels[ix][j].getText().equals("")) {
- this.daysLabels[ix][j].setForeground(Color.BLACK);
- }
- }
- }
-
- for(ix = 0; ix < 6; ++ix) {
- if(!this.daysLabels[ix][0].getText().equals("")) {
- this.daysLabels[ix][0].setForeground(this.weekendFontColor);
- }
-
- if(!this.daysLabels[ix][6].getText().equals("")) {
- this.daysLabels[ix][6].setForeground(this.weekendFontColor);
- }
- }
-
- for(ix = 0; ix < 6; ++ix) {
- for(j = 0; j < 7; ++j) {
- if(this.daysLabels[ix][j].getText().equals(date1[2])) {
- this.daysLabels[ix][j].setForeground(this.todayBackColor);
- }
- }
- }
-
- this.dayColorUpdate(false);
- }
-
- public void stateChanged(ChangeEvent e) {
- JSpinner source = (JSpinner)e.getSource();
- Calendar c = this.getCalendar();
- if(source.getName().equals("Hour")) {
- c.set(11, this.getSelectedHour());
- DateChooserJButtonEx.this.setDate(c.getTime());
- } else if(source.getName().equals("Minute")) {
- c.set(12, this.getSelectedMinite());
- DateChooserJButtonEx.this.setDate(c.getTime());
- } else if(source.getName().equals("Second")) {
- c.set(13, this.getSelectedSecond());
- DateChooserJButtonEx.this.setDate(c.getTime());
- } else {
- this.dayColorUpdate(true);
- if(source.getName().equals("Year")) {
- c.set(1, this.getSelectedYear());
- } else if(source.getName().equals("Month")) {
- c.set(2, this.getSelectedMonth() - 1);
- }
-
- DateChooserJButtonEx.this.setDate(c.getTime());
- this.flushWeekAndDay();
- }
- }
-
- public void mouseClicked(MouseEvent e) {
- JLabel source = (JLabel)e.getSource();
- if(source.getText().length() != 0) {
- this.dayColorUpdate(true);
- source.setForeground(this.todayBackColor);
- int newDay = Integer.parseInt(source.getText());
- Calendar c = this.getCalendar();
- c.set(5, newDay);
- DateChooserJButtonEx.this.setDate(c.getTime());
- DateChooserJButtonEx.this.daySpin.setValue(Integer.valueOf(newDay));
- }
- }
-
- public void mouseEntered(MouseEvent arg0) {
- }
-
- public void mouseExited(MouseEvent arg0) {
- }
-
- public void mousePressed(MouseEvent arg0) {
- }
-
- public void mouseReleased(MouseEvent arg0) {
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/DeviceManagerListener.java b/inspect-fastcall/src/main/java/com/inspect/access/common/DeviceManagerListener.java
deleted file mode 100644
index b25f124..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/DeviceManagerListener.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.inspect.access.common;
-
-public interface DeviceManagerListener {
- void onDeviceManager(String var1, String var2, String var3);
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/ErrorCode.java b/inspect-fastcall/src/main/java/com/inspect/access/common/ErrorCode.java
deleted file mode 100644
index 794c196..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/ErrorCode.java
+++ /dev/null
@@ -1,859 +0,0 @@
-package com.inspect.access.common;
-
-public class ErrorCode {
- public static String getErrorCode(int err) {
- String msg = "";
- switch(err) {
- case -2147483647:
- msg = Res.string().getBundle().getString("NET_SYSTEM_ERROR");
- break;
- case -2147483646:
- msg = Res.string().getBundle().getString("NET_NETWORK_ERROR");
- break;
- case -2147483645:
- msg = Res.string().getBundle().getString("NET_DEV_VER_NOMATCH");
- break;
- case -2147483644:
- msg = Res.string().getBundle().getString("NET_INVALID_HANDLE");
- break;
- case -2147483643:
- msg = Res.string().getBundle().getString("NET_OPEN_CHANNEL_ERROR");
- break;
- case -2147483642:
- msg = Res.string().getBundle().getString("NET_CLOSE_CHANNEL_ERROR");
- break;
- case -2147483641:
- msg = Res.string().getBundle().getString("NET_ILLEGAL_PARAM");
- break;
- case -2147483640:
- msg = Res.string().getBundle().getString("NET_SDK_INIT_ERROR");
- break;
- case -2147483639:
- msg = Res.string().getBundle().getString("NET_SDK_UNINIT_ERROR");
- break;
- case -2147483638:
- msg = Res.string().getBundle().getString("NET_RENDER_OPEN_ERROR");
- break;
- case -2147483637:
- msg = Res.string().getBundle().getString("NET_DEC_OPEN_ERROR");
- break;
- case -2147483636:
- msg = Res.string().getBundle().getString("NET_DEC_CLOSE_ERROR");
- break;
- case -2147483635:
- msg = Res.string().getBundle().getString("NET_MULTIPLAY_NOCHANNEL");
- break;
- case -2147483634:
- msg = Res.string().getBundle().getString("NET_TALK_INIT_ERROR");
- break;
- case -2147483633:
- msg = Res.string().getBundle().getString("NET_TALK_NOT_INIT");
- break;
- case -2147483632:
- msg = Res.string().getBundle().getString("NET_TALK_SENDDATA_ERROR");
- break;
- case -2147483631:
- msg = Res.string().getBundle().getString("NET_REAL_ALREADY_SAVING");
- break;
- case -2147483630:
- msg = Res.string().getBundle().getString("NET_NOT_SAVING");
- break;
- case -2147483629:
- msg = Res.string().getBundle().getString("NET_OPEN_FILE_ERROR");
- break;
- case -2147483628:
- msg = Res.string().getBundle().getString("NET_PTZ_SET_TIMER_ERROR");
- break;
- case -2147483627:
- msg = Res.string().getBundle().getString("NET_RETURN_DATA_ERROR");
- break;
- case -2147483626:
- msg = Res.string().getBundle().getString("NET_INSUFFICIENT_BUFFER");
- break;
- case -2147483625:
- msg = Res.string().getBundle().getString("NET_NOT_SUPPORTED");
- break;
- case -2147483624:
- msg = Res.string().getBundle().getString("NET_NO_RECORD_FOUND");
- break;
- case -2147483623:
- msg = Res.string().getBundle().getString("NET_NOT_AUTHORIZED");
- break;
- case -2147483622:
- msg = Res.string().getBundle().getString("NET_NOT_NOW");
- break;
- case -2147483621:
- msg = Res.string().getBundle().getString("NET_NO_TALK_CHANNEL");
- break;
- case -2147483620:
- msg = Res.string().getBundle().getString("NET_NO_AUDIO");
- break;
- case -2147483619:
- msg = Res.string().getBundle().getString("NET_NO_INIT");
- break;
- case -2147483618:
- msg = Res.string().getBundle().getString("NET_DOWNLOAD_END");
- break;
- case -2147483617:
- msg = Res.string().getBundle().getString("NET_EMPTY_LIST");
- break;
- case -2147483616:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSATTR");
- break;
- case -2147483615:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SERIAL");
- break;
- case -2147483614:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GENERAL");
- break;
- case -2147483613:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DSPCAP");
- break;
- case -2147483612:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_NETCFG");
- break;
- case -2147483611:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CHANNAME");
- break;
- case -2147483610:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO");
- break;
- case -2147483609:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORD");
- break;
- case -2147483608:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PRONAME");
- break;
- case -2147483607:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_FUNCNAME");
- break;
- case -2147483606:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_485DECODER");
- break;
- case -2147483605:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_232COM");
- break;
- case -2147483604:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMIN");
- break;
- case -2147483603:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMDET");
- break;
- case -2147483602:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSTIME");
- break;
- case -2147483601:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PREVIEW");
- break;
- case -2147483600:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_AUTOMT");
- break;
- case -2147483599:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOMTRX");
- break;
- case -2147483598:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_COVER");
- break;
- case -2147483597:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WATERMAKE");
- break;
- case -2147483596:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MULTICAST");
- break;
- case -2147483593:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GENERAL");
- break;
- case -2147483592:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_NETCFG");
- break;
- case -2147483591:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CHANNAME");
- break;
- case -2147483590:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO");
- break;
- case -2147483589:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORD");
- break;
- case -2147483588:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_485DECODER");
- break;
- case -2147483587:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_232COM");
- break;
- case -2147483586:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMIN");
- break;
- case -2147483585:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMDET");
- break;
- case -2147483584:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SYSTIME");
- break;
- case -2147483583:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_PREVIEW");
- break;
- case -2147483582:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_AUTOMT");
- break;
- case -2147483581:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOMTRX");
- break;
- case -2147483580:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_COVER");
- break;
- case -2147483579:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WATERMAKE");
- break;
- case -2147483578:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLAN");
- break;
- case -2147483577:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLANDEV");
- break;
- case -2147483576:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_REGISTER");
- break;
- case -2147483575:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CAMERA");
- break;
- case -2147483574:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_INFRARED");
- break;
- case -2147483573:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SOUNDALARM");
- break;
- case -2147483572:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_STORAGE");
- break;
- case -2147483571:
- msg = Res.string().getBundle().getString("NET_AUDIOENCODE_NOTINIT");
- break;
- case -2147483570:
- msg = Res.string().getBundle().getString("NET_DATA_TOOLONGH");
- break;
- case -2147483569:
- msg = Res.string().getBundle().getString("NET_UNSUPPORTED");
- break;
- case -2147483568:
- msg = Res.string().getBundle().getString("NET_DEVICE_BUSY");
- break;
- case -2147483567:
- msg = Res.string().getBundle().getString("NET_SERVER_STARTED");
- break;
- case -2147483566:
- msg = Res.string().getBundle().getString("NET_SERVER_STOPPED");
- break;
- case -2147483565:
- msg = Res.string().getBundle().getString("NET_LISTER_INCORRECT_SERIAL");
- break;
- case -2147483564:
- msg = Res.string().getBundle().getString("NET_QUERY_DISKINFO_FAILED");
- break;
- case -2147483563:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SESSION");
- break;
- case -2147483562:
- msg = Res.string().getBundle().getString("NET_USER_FLASEPWD_TRYTIME");
- break;
- case -2147483548:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PASSWORD");
- break;
- case -2147483547:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER");
- break;
- case -2147483546:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_TIMEOUT");
- break;
- case -2147483545:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_RELOGGIN");
- break;
- case -2147483544:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_LOCKED");
- break;
- case -2147483543:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BLACKLIST");
- break;
- case -2147483542:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BUSY");
- break;
- case -2147483541:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_CONNECT");
- break;
- case -2147483540:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NETWORK");
- break;
- case -2147483539:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_SUBCONNECT");
- break;
- case -2147483538:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_MAXCONNECT");
- break;
- case -2147483537:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PROTOCOL3_ONLY");
- break;
- case -2147483536:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_UKEY_LOST");
- break;
- case -2147483535:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NO_AUTHORIZED");
- break;
- case -2147483531:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER_OR_PASSOWRD");
- break;
- case -2147483530:
- msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_DEVICE_NOT_INIT");
- break;
- case -2147483528:
- msg = Res.string().getBundle().getString("NET_RENDER_SOUND_ON_ERROR");
- break;
- case -2147483527:
- msg = Res.string().getBundle().getString("NET_RENDER_SOUND_OFF_ERROR");
- break;
- case -2147483526:
- msg = Res.string().getBundle().getString("NET_RENDER_SET_VOLUME_ERROR");
- break;
- case -2147483525:
- msg = Res.string().getBundle().getString("NET_RENDER_ADJUST_ERROR");
- break;
- case -2147483524:
- msg = Res.string().getBundle().getString("NET_RENDER_PAUSE_ERROR");
- break;
- case -2147483523:
- msg = Res.string().getBundle().getString("NET_RENDER_SNAP_ERROR");
- break;
- case -2147483522:
- msg = Res.string().getBundle().getString("NET_RENDER_STEP_ERROR");
- break;
- case -2147483521:
- msg = Res.string().getBundle().getString("NET_RENDER_FRAMERATE_ERROR");
- break;
- case -2147483520:
- msg = Res.string().getBundle().getString("NET_RENDER_DISPLAYREGION_ERROR");
- break;
- case -2147483519:
- msg = Res.string().getBundle().getString("NET_RENDER_GETOSDTIME_ERROR");
- break;
- case -2147483508:
- msg = Res.string().getBundle().getString("NET_GROUP_EXIST");
- break;
- case -2147483507:
- msg = Res.string().getBundle().getString("NET_GROUP_NOEXIST");
- break;
- case -2147483506:
- msg = Res.string().getBundle().getString("NET_GROUP_RIGHTOVER");
- break;
- case -2147483505:
- msg = Res.string().getBundle().getString("NET_GROUP_HAVEUSER");
- break;
- case -2147483504:
- msg = Res.string().getBundle().getString("NET_GROUP_RIGHTUSE");
- break;
- case -2147483503:
- msg = Res.string().getBundle().getString("NET_GROUP_SAMENAME");
- break;
- case -2147483502:
- msg = Res.string().getBundle().getString("NET_USER_EXIST");
- break;
- case -2147483501:
- msg = Res.string().getBundle().getString("NET_USER_NOEXIST");
- break;
- case -2147483500:
- msg = Res.string().getBundle().getString("NET_USER_RIGHTOVER");
- break;
- case -2147483499:
- msg = Res.string().getBundle().getString("NET_USER_PWD");
- break;
- case -2147483498:
- msg = Res.string().getBundle().getString("NET_USER_FLASEPWD");
- break;
- case -2147483497:
- msg = Res.string().getBundle().getString("NET_USER_NOMATCHING");
- break;
- case -2147483496:
- msg = Res.string().getBundle().getString("NET_USER_INUSE");
- break;
- case -2147483348:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ETHERNET");
- break;
- case -2147483347:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLAN");
- break;
- case -2147483346:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLANDEV");
- break;
- case -2147483345:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_REGISTER");
- break;
- case -2147483344:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CAMERA");
- break;
- case -2147483343:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_INFRARED");
- break;
- case -2147483342:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SOUNDALARM");
- break;
- case -2147483341:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_STORAGE");
- break;
- case -2147483340:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MAIL");
- break;
- case -2147483339:
- msg = Res.string().getBundle().getString("NET_CONFIG_DEVBUSY");
- break;
- case -2147483338:
- msg = Res.string().getBundle().getString("NET_CONFIG_DATAILLEGAL");
- break;
- case -2147483337:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DST");
- break;
- case -2147483336:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DST");
- break;
- case -2147483335:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO_OSD");
- break;
- case -2147483334:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO_OSD");
- break;
- case -2147483333:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GPRSCDMA");
- break;
- case -2147483332:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GPRSCDMA");
- break;
- case -2147483331:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPFILTER");
- break;
- case -2147483330:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPFILTER");
- break;
- case -2147483329:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TALKENCODE");
- break;
- case -2147483328:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TALKENCODE");
- break;
- case -2147483327:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORDLEN");
- break;
- case -2147483326:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORDLEN");
- break;
- case -2147483325:
- msg = Res.string().getBundle().getString("NET_DONT_SUPPORT_SUBAREA");
- break;
- case -2147483324:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_AUTOREGSERVER");
- break;
- case -2147483323:
- msg = Res.string().getBundle().getString("NET_ERROR_CONTROL_AUTOREGISTER");
- break;
- case -2147483322:
- msg = Res.string().getBundle().getString("NET_ERROR_DISCONNECT_AUTOREGISTER");
- break;
- case -2147483321:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MMS");
- break;
- case -2147483320:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MMS");
- break;
- case -2147483319:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SMSACTIVATION");
- break;
- case -2147483318:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SMSACTIVATION");
- break;
- case -2147483317:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DIALINACTIVATION");
- break;
- case -2147483316:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DIALINACTIVATION");
- break;
- case -2147483315:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOOUT");
- break;
- case -2147483314:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOOUT");
- break;
- case -2147483313:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_OSDENABLE");
- break;
- case -2147483312:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_OSDENABLE");
- break;
- case -2147483311:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ENCODERINFO");
- break;
- case -2147483310:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TVADJUST");
- break;
- case -2147483309:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TVADJUST");
- break;
- case -2147483308:
- msg = Res.string().getBundle().getString("NET_ERROR_CONNECT_FAILED");
- break;
- case -2147483307:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_BURNFILE");
- break;
- case -2147483306:
- msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_GETCFG");
- break;
- case -2147483305:
- msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_SETCFG");
- break;
- case -2147483304:
- msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_GETCFG");
- break;
- case -2147483303:
- msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_SETCFG");
- break;
- case -2147483302:
- msg = Res.string().getBundle().getString("NET_ERROR_SEARCH_TRANSCOM");
- break;
- case -2147483301:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_POINT");
- break;
- case -2147483300:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_POINT");
- break;
- case -2147483299:
- msg = Res.string().getBundle().getString("NET_SDK_LOGOUT_ERROR");
- break;
- case -2147483298:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_VEHICLE_CFG");
- break;
- case -2147483297:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_VEHICLE_CFG");
- break;
- case -2147483296:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_CFG");
- break;
- case -2147483295:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_ATM_OVERLAY_CFG");
- break;
- case -2147483294:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_ABILITY");
- break;
- case -2147483293:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODER_TOUR_CFG");
- break;
- case -2147483292:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODER_TOUR_CFG");
- break;
- case -2147483291:
- msg = Res.string().getBundle().getString("NET_ERROR_CTRL_DECODER_TOUR");
- break;
- case -2147483290:
- msg = Res.string().getBundle().getString("NET_GROUP_OVERSUPPORTNUM");
- break;
- case -2147483289:
- msg = Res.string().getBundle().getString("NET_USER_OVERSUPPORTNUM");
- break;
- case -2147483280:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_CFG");
- break;
- case -2147483279:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_SIP_CFG");
- break;
- case -2147483278:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_ABILITY");
- break;
- case -2147483277:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_WIFI_AP_CFG");
- break;
- case -2147483276:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_WIFI_AP_CFG");
- break;
- case -2147483275:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODE_POLICY");
- break;
- case -2147483274:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODE_POLICY");
- break;
- case -2147483273:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_REJECT");
- break;
- case -2147483272:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_OPENED");
- break;
- case -2147483271:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_RESOURCE_CONFLICIT");
- break;
- case -2147483270:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_UNSUPPORTED_ENCODE");
- break;
- case -2147483269:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_RIGHTLESS");
- break;
- case -2147483268:
- msg = Res.string().getBundle().getString("NET_ERROR_TALK_FAILED");
- break;
- case -2147483267:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_MACHINE_CFG");
- break;
- case -2147483266:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_MACHINE_CFG");
- break;
- case -2147483265:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_DATA_FAILED");
- break;
- case -2147483264:
- msg = Res.string().getBundle().getString("NET_ERROR_MAC_VALIDATE_FAILED");
- break;
- case -2147483263:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_INSTANCE");
- break;
- case -2147483262:
- msg = Res.string().getBundle().getString("NET_ERROR_JSON_REQUEST");
- break;
- case -2147483261:
- msg = Res.string().getBundle().getString("NET_ERROR_JSON_RESPONSE");
- break;
- case -2147483260:
- msg = Res.string().getBundle().getString("NET_ERROR_VERSION_HIGHER");
- break;
- case -2147483259:
- msg = Res.string().getBundle().getString("NET_SPARE_NO_CAPACITY");
- break;
- case -2147483258:
- msg = Res.string().getBundle().getString("NET_ERROR_SOURCE_IN_USE");
- break;
- case -2147483257:
- msg = Res.string().getBundle().getString("NET_ERROR_REAVE");
- break;
- case -2147483256:
- msg = Res.string().getBundle().getString("NET_ERROR_NETFORBID");
- break;
- case -2147483255:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MACFILTER");
- break;
- case -2147483254:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MACFILTER");
- break;
- case -2147483253:
- msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPMACFILTER");
- break;
- case -2147483252:
- msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPMACFILTER");
- break;
- case -2147483251:
- msg = Res.string().getBundle().getString("NET_ERROR_OPERATION_OVERTIME");
- break;
- case -2147483250:
- msg = Res.string().getBundle().getString("NET_ERROR_SENIOR_VALIDATE_FAILED");
- break;
- case -2147483249:
- msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ID_NOT_EXIST");
- break;
- case -2147483248:
- msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED");
- break;
- case -2147483247:
- msg = Res.string().getBundle().getString("NET_ERROR_PROXY_DLLLOAD");
- break;
- case -2147483246:
- msg = Res.string().getBundle().getString("NET_ERROR_PROXY_ILLEGAL_PARAM");
- break;
- case -2147483245:
- msg = Res.string().getBundle().getString("NET_ERROR_PROXY_INVALID_HANDLE");
- break;
- case -2147483244:
- msg = Res.string().getBundle().getString("NET_ERROR_PROXY_LOGIN_DEVICE_ERROR");
- break;
- case -2147483243:
- msg = Res.string().getBundle().getString("NET_ERROR_PROXY_START_SERVER_ERROR");
- break;
- case -2147483242:
- msg = Res.string().getBundle().getString("NET_ERROR_SPEAK_FAILED");
- break;
- case -2147483241:
- msg = Res.string().getBundle().getString("NET_ERROR_NOT_SUPPORT_F6");
- break;
- case -2147483240:
- msg = Res.string().getBundle().getString("NET_ERROR_CD_UNREADY");
- break;
- case -2147483239:
- msg = Res.string().getBundle().getString("NET_ERROR_DIR_NOT_EXIST");
- break;
- case -2147483238:
- msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED_SPLIT_MODE");
- break;
- case -2147483237:
- msg = Res.string().getBundle().getString("NET_ERROR_OPEN_WND_PARAM");
- break;
- case -2147483236:
- msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_WND_COUNT");
- break;
- case -2147483235:
- msg = Res.string().getBundle().getString("NET_ERROR_UNMATCHED_REQUEST");
- break;
- case -2147483234:
- msg = Res.string().getBundle().getString("NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR");
- break;
- case -2147483233:
- msg = Res.string().getBundle().getString("NET_ERROR_UPGRADE_FAILED");
- break;
- case -2147483232:
- msg = Res.string().getBundle().getString("NET_ERROR_NO_TARGET_DEVICE");
- break;
- case -2147483231:
- msg = Res.string().getBundle().getString("NET_ERROR_NO_VERIFY_DEVICE");
- break;
- case -2147483230:
- msg = Res.string().getBundle().getString("NET_ERROR_CASCADE_RIGHTLESS");
- break;
- case -2147483229:
- msg = Res.string().getBundle().getString("NET_ERROR_LOW_PRIORITY");
- break;
- case -2147483228:
- msg = Res.string().getBundle().getString("NET_ERROR_REMOTE_REQUEST_TIMEOUT");
- break;
- case -2147483227:
- msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_INPUT_SOURCE");
- break;
- case -2147483226:
- msg = Res.string().getBundle().getString("NET_ERROR_SET_LOG_PRINT_INFO");
- break;
- case -2147483225:
- msg = Res.string().getBundle().getString("NET_ERROR_PARAM_DWSIZE_ERROR");
- break;
- case -2147483224:
- msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_MONITORWALL_COUNT");
- break;
- case -2147483223:
- msg = Res.string().getBundle().getString("NET_ERROR_PART_PROCESS_FAILED");
- break;
- case -2147483222:
- msg = Res.string().getBundle().getString("NET_ERROR_TARGET_NOT_SUPPORT");
- break;
- case -2147483138:
- msg = Res.string().getBundle().getString("NET_ERROR_VISITE_FILE");
- break;
- case -2147483137:
- msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_STATUS_BUSY");
- break;
- case -2147483136:
- msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_AUTHORIZED");
- break;
- case -2147483135:
- msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_STRONG");
- break;
- case -2147483134:
- msg = Res.string().getBundle().getString("NET_ERROR_NO_SUCH_CONFIG");
- break;
- case -2147483133:
- msg = Res.string().getBundle().getString("NET_ERROR_AUDIO_RECORD_FAILED");
- break;
- case -2147483132:
- msg = Res.string().getBundle().getString("NET_ERROR_SEND_DATA_FAILED");
- break;
- case -2147483131:
- msg = Res.string().getBundle().getString("NET_ERROR_OBSOLESCENT_INTERFACE");
- break;
- case -2147483130:
- msg = Res.string().getBundle().getString("NET_ERROR_INSUFFICIENT_INTERAL_BUF");
- break;
- case -2147483129:
- msg = Res.string().getBundle().getString("NET_ERROR_NEED_ENCRYPTION_PASSWORD");
- break;
- case -2147483128:
- msg = Res.string().getBundle().getString("NET_ERROR_NOSUPPORT_RECORD");
- break;
- case -2147482638:
- msg = Res.string().getBundle().getString("NET_ERROR_SERIALIZE_ERROR");
- break;
- case -2147482637:
- msg = Res.string().getBundle().getString("NET_ERROR_DESERIALIZE_ERROR");
- break;
- case -2147482636:
- msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_EXISTED");
- break;
- case -2147482635:
- msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_LIMIT");
- break;
- case -2147482634:
- msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_ABNORMAL");
- break;
- case -2147482633:
- msg = Res.string().getBundle().getString("NET_ERROR_ENCRYPT");
- break;
- case -2147482632:
- msg = Res.string().getBundle().getString("NET_ERROR_PWD_ILLEGAL");
- break;
- case -2147482631:
- msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ALREADY_INIT");
- break;
- case -2147482630:
- msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE");
- break;
- case -2147482629:
- msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE_TIMEOUT");
- break;
- case -2147482628:
- msg = Res.string().getBundle().getString("NET_ERROR_GET_PWD_SPECI");
- break;
- case -2147482627:
- msg = Res.string().getBundle().getString("NET_ERROR_NO_AUTHORITY_OF_OPERATION");
- break;
- case -2147482626:
- msg = Res.string().getBundle().getString("NET_ERROR_DECRYPT");
- break;
- case -2147482625:
- msg = Res.string().getBundle().getString("NET_ERROR_2D_CODE");
- break;
- case -2147482624:
- msg = Res.string().getBundle().getString("NET_ERROR_INVALID_REQUEST");
- break;
- case -2147482623:
- msg = Res.string().getBundle().getString("NET_ERROR_PWD_RESET_DISABLE");
- break;
- case -2147482622:
- msg = Res.string().getBundle().getString("NET_ERROR_PLAY_PRIVATE_DATA");
- break;
- case -2147482621:
- msg = Res.string().getBundle().getString("NET_ERROR_ROBOT_OPERATE_FAILED");
- break;
- case -2147482620:
- msg = Res.string().getBundle().getString("NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT");
- break;
- case -2147482619:
- msg = Res.string().getBundle().getString("NET_ERROR_USERID_INVALID");
- break;
- case -2147482618:
- msg = Res.string().getBundle().getString("NET_ERROR_EXTRACTFEATURE_FAILED");
- break;
- case -2147482617:
- msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_EXIST");
- break;
- case -2147482616:
- msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_OVERFLOW");
- break;
- case -2147482615:
- msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_ALREADY_OPENED");
- break;
- case -2147482614:
- msg = Res.string().getBundle().getString("NET_ERROR_CREATE_SOCKET");
- break;
- case -2147482613:
- msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_NUM");
- break;
- case -2147482597:
- msg = Res.string().getBundle().getString("NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED");
- break;
- case -1:
- msg = Res.string().getBundle().getString("NET_ERROR");
- break;
- case 0:
- msg = Res.string().getBundle().getString("NET_ERROR");
- break;
- default:
- msg = Res.string().getBundle().getString("NET_ERROR");
- }
-
- return msg;
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskCommonQueue.java b/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskCommonQueue.java
deleted file mode 100644
index 744091c..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskCommonQueue.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.inspect.access.common;
-
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import java.util.concurrent.LinkedBlockingDeque;
-
-public class EventTaskCommonQueue {
- private final int MAX_TASK_COUNT = 10000;
- private final LinkedBlockingDeque eventTasks = new LinkedBlockingDeque(10000);
- private final int MAX_THREAD_COUNT = 10;
- private ExecutorService eventQueueService = Executors.newFixedThreadPool(10);
- private volatile boolean running = true;
- private Future> eventQueueThreadStatus;
-
- public void init() {
- this.eventQueueThreadStatus = this.eventQueueService.submit(new Thread(new Runnable() {
- public void run() {
- while(EventTaskCommonQueue.this.running) {
- try {
- EventTaskHandler task = (EventTaskHandler)EventTaskCommonQueue.this.eventTasks.take();
-
- try {
- task.eventTaskProcess();
- } catch (Exception var3) {
- System.err.println("任务处理发生错误");
- }
- } catch (InterruptedException var4) {
- System.err.println("任务已意外停止");
- EventTaskCommonQueue.this.running = false;
- }
- }
-
- }
- }, "Event call back thread init"));
- }
-
- public boolean addEvent(EventTaskHandler eventHandler) {
- if(!this.running) {
- System.out.println("任务已停止");
- return false;
- } else {
- boolean success = this.eventTasks.offer(eventHandler);
- if(!success) {
- System.out.println("添加到事件队列失败");
- }
-
- return success;
- }
- }
-
- public void activeService() {
- this.running = true;
- if(this.eventQueueService.isShutdown()) {
- this.eventQueueService = Executors.newFixedThreadPool(10);
- this.init();
- System.out.println("线程池已关闭,重新初始化线程池及任务");
- }
-
- if(this.eventQueueThreadStatus.isDone()) {
- this.init();
- System.out.println("线程池任务结束,重新初始化任务");
- }
-
- }
-
- public void destroy() {
- this.running = false;
- this.eventQueueService.shutdownNow();
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskHandler.java b/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskHandler.java
deleted file mode 100644
index 5dff269..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/EventTaskHandler.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.inspect.access.common;
-
-public interface EventTaskHandler {
- void eventTaskProcess();
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/ListPictureShowDialog.java b/inspect-fastcall/src/main/java/com/inspect/access/common/ListPictureShowDialog.java
deleted file mode 100644
index 8bba5ab..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/ListPictureShowDialog.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.inspect.access.common;
-
-import java.awt.BorderLayout;
-import java.awt.Component;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import javax.swing.JDialog;
-
-public class ListPictureShowDialog extends JDialog {
- private static final long serialVersionUID = 1L;
- public PaintPanel listPanel;
-
- public ListPictureShowDialog() {
- this.setLayout(new BorderLayout());
- this.setModal(true);
- this.pack();
- this.setSize(800, 600);
- this.setResizable(false);
- this.setLocationRelativeTo((Component)null);
- this.setDefaultCloseOperation(2);
- this.listPanel = new PaintPanel();
- this.add(this.listPanel, "Center");
- this.addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
- ListPictureShowDialog.this.dispose();
- }
- });
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/LoginPanel.java b/inspect-fastcall/src/main/java/com/inspect/access/common/LoginPanel.java
deleted file mode 100644
index 5a3c9af..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/LoginPanel.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package com.inspect.access.common;
-
-import com.inspect.access.lib.ToolKits;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.event.ActionListener;
-import javax.swing.JButton;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JPasswordField;
-import javax.swing.JTextField;
-
-public class LoginPanel extends JPanel {
- private static final long serialVersionUID = 1L;
- private String s_strIp = "10.10.18.108";
- private Integer s_nPort = new Integer("37777");
- private String s_strUser = "admin";
- private String s_strPassword = "xg123456";
- public JLabel nameLabel;
- public JLabel passwordLabel;
- public JLabel ipLabel;
- public JLabel portLabel;
- public JTextField ipTextArea;
- public JTextField portTextArea;
- public JTextField nameTextArea;
- public JPasswordField passwordTextArea;
- public JButton loginBtn;
- public JButton logoutBtn;
-
- public LoginPanel() {
- BorderEx.set(this, Res.string().getLogin(), 2);
- this.setLayout(new FlowLayout());
- this.loginBtn = new JButton(Res.string().getLogin());
- this.logoutBtn = new JButton(Res.string().getLogout());
- this.ipLabel = new JLabel(Res.string().getDeviceIp());
- this.portLabel = new JLabel(" " + Res.string().getPort());
- this.nameLabel = new JLabel(" " + Res.string().getUserName());
- this.passwordLabel = new JLabel(" " + Res.string().getPassword());
- this.ipTextArea = new JTextField(this.s_strIp);
- this.nameTextArea = new JTextField(this.s_strUser);
- this.passwordTextArea = new JPasswordField(this.s_strPassword);
- this.portTextArea = new JTextField(this.s_nPort.toString());
- this.add(this.ipLabel);
- this.add(this.ipTextArea);
- this.add(this.portLabel);
- this.add(this.portTextArea);
- this.add(this.nameLabel);
- this.add(this.nameTextArea);
- this.add(this.passwordLabel);
- this.add(this.passwordTextArea);
- this.add(this.loginBtn);
- this.add(this.logoutBtn);
- this.ipTextArea.setPreferredSize(new Dimension(90, 20));
- this.nameTextArea.setPreferredSize(new Dimension(90, 20));
- this.passwordTextArea.setPreferredSize(new Dimension(90, 20));
- this.portTextArea.setPreferredSize(new Dimension(90, 20));
- this.loginBtn.setPreferredSize(new Dimension(80, 20));
- this.logoutBtn.setPreferredSize(new Dimension(80, 20));
- ToolKits.limitTextFieldLength(this.portTextArea, 6);
- this.logoutBtn.setEnabled(false);
- }
-
- public void addLoginBtnActionListener(ActionListener e) {
- this.loginBtn.addActionListener(e);
- }
-
- public void addLogoutBtnActionListener(ActionListener e) {
- this.logoutBtn.addActionListener(e);
- }
-
- public void setButtonEnable(boolean bln) {
- this.loginBtn.setEnabled(!bln);
- this.logoutBtn.setEnabled(bln);
- }
-
- public boolean checkLoginText() {
- if(this.ipTextArea.getText().equals("")) {
- JOptionPane.showMessageDialog((Component)null, Res.string().getInputDeviceIP(), Res.string().getErrorMessage(), 0);
- return false;
- } else if(this.portTextArea.getText().equals("")) {
- JOptionPane.showMessageDialog((Component)null, Res.string().getInputDevicePort(), Res.string().getErrorMessage(), 0);
- return false;
- } else if(this.nameTextArea.getText().equals("")) {
- JOptionPane.showMessageDialog((Component)null, Res.string().getInputUsername(), Res.string().getErrorMessage(), 0);
- return false;
- } else if((new String(this.passwordTextArea.getPassword())).equals("")) {
- JOptionPane.showMessageDialog((Component)null, Res.string().getInputPassword(), Res.string().getErrorMessage(), 0);
- return false;
- } else {
- return true;
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/PaintPanel.java b/inspect-fastcall/src/main/java/com/inspect/access/common/PaintPanel.java
deleted file mode 100644
index ec7f9e7..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/PaintPanel.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.inspect.access.common;
-
-import java.awt.Color;
-import java.awt.Graphics;
-import java.awt.Image;
-import java.awt.LayoutManager;
-import javax.swing.JPanel;
-
-public class PaintPanel extends JPanel {
- private static final long serialVersionUID = 1L;
- private Image image;
-
- public PaintPanel() {
- this.setOpaque(true);
- this.setLayout((LayoutManager)null);
- this.setBackground(Color.GRAY);
- this.setForeground(new Color(0, 0, 0));
- }
-
- public void setImage(Image image) {
- this.image = image;
- }
-
- protected void paintComponent(Graphics g) {
- if(this.image != null) {
- g.drawImage(this.image, 0, 0, this.getWidth(), this.getHeight(), this);
- }
-
- super.paintComponent(g);
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/Res.java b/inspect-fastcall/src/main/java/com/inspect/access/common/Res.java
deleted file mode 100644
index ce2ce16..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/Res.java
+++ /dev/null
@@ -1,2828 +0,0 @@
-package com.inspect.access.common;
-
-import java.util.Locale;
-import java.util.ResourceBundle;
-
-public final class Res {
- private static ResourceBundle bundle;
-
- private Res() {
- this.switchLanguage(Res.LanguageType.Chinese);
- }
-
- public static Res string() {
- return Res.StringBundleHolder.instance;
- }
-
- public ResourceBundle getBundle() {
- return bundle;
- }
-
- public void switchLanguage(Res.LanguageType type) {
- switch(type.ordinal()) {
- case 1:
- bundle = ResourceBundle.getBundle("res", new Locale("zh", "CN"));
- break;
- case 2:
- bundle = ResourceBundle.getBundle("res", new Locale("en", "US"));
- }
-
- }
-
- public String getSwitchLanguage() {
- return bundle.getString("SWITCH_LANGUAGE");
- }
-
- public String getRealplay() {
- return bundle.getString("REALPLAY");
- }
-
- public String getMultiRealplay() {
- return bundle.getString("MULTIREALPLAY");
- }
-
- public String getDownloadRecord() {
- return bundle.getString("DOWNLOAD_RECORD");
- }
-
- public String getITSEvent() {
- return bundle.getString("ITS_EVENT");
- }
-
- public String getOnline() {
- return bundle.getString("ONLINE");
- }
-
- public String getDisConnectReconnecting() {
- return bundle.getString("DISCONNECT_RECONNECTING");
- }
-
- public String getDisConnect() {
- return bundle.getString("DISCONNECT");
- }
-
- public String getPromptMessage() {
- return bundle.getString("PROMPT_MESSAGE");
- }
-
- public String getErrorMessage() {
- return bundle.getString("ERROR_MESSAGE");
- }
-
- public String getReconnectSucceed() {
- return bundle.getString("RECONNECT_SUCCEED");
- }
-
- public String getSucceed() {
- return bundle.getString("SUCCEED");
- }
-
- public String getFailed() {
- return bundle.getString("FAILED");
- }
-
- public String getYear() {
- return bundle.getString("YEAR");
- }
-
- public String getMonth() {
- return bundle.getString("MONTH");
- }
-
- public String getDay() {
- return bundle.getString("DAY");
- }
-
- public String getHour() {
- return bundle.getString("HOUR");
- }
-
- public String getMinute() {
- return bundle.getString("MINUTE");
- }
-
- public String getSecond() {
- return bundle.getString("SECOND");
- }
-
- public String getSunday() {
- return bundle.getString("SUNDAY");
- }
-
- public String getMonday() {
- return bundle.getString("MONDAY");
- }
-
- public String getTuesday() {
- return bundle.getString("TUESDAY");
- }
-
- public String getWednesday() {
- return bundle.getString("WEDNESDAY");
- }
-
- public String getThursday() {
- return bundle.getString("THURSDAY");
- }
-
- public String getFriday() {
- return bundle.getString("FRIDAY");
- }
-
- public String getSaturday() {
- return bundle.getString("SATURDAY");
- }
-
- public String[] getWeek() {
- String[] weekdays = new String[]{this.getSunday(), this.getMonday(), this.getTuesday(), this.getWednesday(), this.getThursday(), this.getFriday(), this.getSaturday()};
- return weekdays;
- }
-
- public String getConfirm() {
- return bundle.getString("CONFIRM");
- }
-
- public String getCancel() {
- return bundle.getString("CANCEL");
- }
-
- public String getDateChooser() {
- return bundle.getString("DATE_CHOOSER");
- }
-
- public String getFunctionList() {
- return bundle.getString("FUNCTIONLIST");
- }
-
- public String getLogin() {
- return bundle.getString("LOGIN");
- }
-
- public String getLogout() {
- return bundle.getString("LOGOUT");
- }
-
- public String getDeviceIp() {
- return bundle.getString("DEVICE_IP");
- }
-
- public String getIp() {
- return bundle.getString("IP");
- }
-
- public String getPort() {
- return bundle.getString("DEVICE_PORT");
- }
-
- public String getUserId() {
- return bundle.getString("USER_ID");
- }
-
- public String getTemp() {
- return bundle.getString("TEMPERATURE");
- }
-
- public String getMaskstutas() {
- return bundle.getString("MASK_STATUS");
- }
-
- public String getUserName(boolean space) {
- return bundle.getString("USER_NAME");
- }
-
- public String getCardNo() {
- return bundle.getString("CARD_NO");
- }
-
- public String getUserName() {
- return bundle.getString("USERNAME");
- }
-
- public String getPassword() {
- return bundle.getString("PASSWORD");
- }
-
- public String getLoginFailed() {
- return bundle.getString("LOGIN_FAILED");
- }
-
- public String getInputDeviceIP() {
- return bundle.getString("PLEASE_INPUT_DEVICE_IP");
- }
-
- public String getInputDevicePort() {
- return bundle.getString("PLEASE_INPUT_DEVICE_PORT");
- }
-
- public String getInputUsername() {
- return bundle.getString("PLEASE_INPUT_DEVICE_USERNAME");
- }
-
- public String getInputPassword() {
- return bundle.getString("PLEASE_INPUT_DEVICE_PASSWORD");
- }
-
- public String getInputConfirmPassword() {
- return bundle.getString("PLEASE_INPUT_CONFIRM_PASSWORD");
- }
-
- public String getStartRealPlay() {
- return bundle.getString("START_REALPLAY");
- }
-
- public String getStopRealPlay() {
- return bundle.getString("STOP_REALPLAY");
- }
-
- public String getChn() {
- return bundle.getString("CHN");
- }
-
- public String getChannel() {
- return bundle.getString("CHANNEL");
- }
-
- public String getStreamType() {
- return bundle.getString("STREAM_TYPE");
- }
-
- public String getMasterAndSub() {
- return bundle.getString("MASTER_AND_SUB_STREAM");
- }
-
- public String getMasterStream() {
- return bundle.getString("MASTER_STREAM");
- }
-
- public String getSubStream() {
- return bundle.getString("SUB_STREAM");
- }
-
- public String getPTZ() {
- return bundle.getString("PTZ");
- }
-
- public String getPtzControlAndCapture() {
- return bundle.getString("PTZCONTROL_CAPTURE");
- }
-
- public String getCapturePicture() {
- return bundle.getString("CAPTURE_PICTURE");
- }
-
- public String getLocalCapture() {
- return bundle.getString("LOCAL_CAPTURE");
- }
-
- public String getRemoteCapture() {
- return bundle.getString("REMOTE_CAPTURE");
- }
-
- public String getTimerCapture() {
- return bundle.getString("TIMER_CAPTURE");
- }
-
- public String getStopCapture() {
- return bundle.getString("STOP_CAPTURE");
- }
-
- public String getInterval() {
- return bundle.getString("INTERVAL");
- }
-
- public String getTimeIntervalIllegal() {
- return bundle.getString("TIME_INTERVAL_ILLEGAL");
- }
-
- public String getNeedStartRealPlay() {
- return bundle.getString("PLEASE_START_REALPLAY");
- }
-
- public String getPTZControl() {
- return bundle.getString("PTZ_CONTROL");
- }
-
- public String getLeftUp() {
- return bundle.getString("LEFT_UP");
- }
-
- public String getUp() {
- return bundle.getString("UP");
- }
-
- public String getRightUp() {
- return bundle.getString("RIGHT_UP");
- }
-
- public String getLeft() {
- return bundle.getString("LEFT");
- }
-
- public String getRight() {
- return bundle.getString("RIGHT");
- }
-
- public String getLeftDown() {
- return bundle.getString("LEFT_DOWN");
- }
-
- public String getDown() {
- return bundle.getString("DOWN");
- }
-
- public String getRightDown() {
- return bundle.getString("RIGHT_DOWN");
- }
-
- public String getSpeed() {
- return bundle.getString("SPEED");
- }
-
- public String getZoomAdd() {
- return bundle.getString("ZOOM_ADD");
- }
-
- public String getZoomDec() {
- return bundle.getString("ZOOM_DEC");
- }
-
- public String getFocusAdd() {
- return bundle.getString("FOCUS_ADD");
- }
-
- public String getFocusDec() {
- return bundle.getString("FOCUS_DEC");
- }
-
- public String getIrisAdd() {
- return bundle.getString("IRIS_ADD");
- }
-
- public String getIrisDec() {
- return bundle.getString("IRIS_DEC");
- }
-
- public String getIndex() {
- return bundle.getString("INDEX");
- }
-
- public String getEventPicture() {
- return bundle.getString("EVENT_PICTURE");
- }
-
- public String getPlatePicture() {
- return bundle.getString("PLATE_PICTURE");
- }
-
- public String getEventName() {
- return bundle.getString("EVENT_NAME");
- }
-
- public String getLicensePlate() {
- return bundle.getString("LICENSE_PLATE");
- }
-
- public String getEventTime() {
- return bundle.getString("EVENT_TIME");
- }
-
- public String getPlateType() {
- return bundle.getString("PLATE_TYPE");
- }
-
- public String getPlateColor() {
- return bundle.getString("PLATE_COLOR");
- }
-
- public String getVehicleColor() {
- return bundle.getString("VEHICLE_COLOR");
- }
-
- public String getVehicleType() {
- return bundle.getString("VEHICLE_TYPE");
- }
-
- public String getVehicleSize() {
- return bundle.getString("VEHICLE_SIZE");
- }
-
- public String getFileCount() {
- return bundle.getString("FILE_COUNT");
- }
-
- public String getFileIndex() {
- return bundle.getString("FILE_INDEX");
- }
-
- public String getGroupId() {
- return bundle.getString("GROUP_ID");
- }
-
- public String getIllegalPlace() {
- return bundle.getString("ILLEGAL_PLACE");
- }
-
- public String getLaneNumber() {
- return bundle.getString("LANE_NUMBER");
- }
-
- public String getEventInfo() {
- return bundle.getString("EVENT_INFO");
- }
-
- public String getNoPlate() {
- return bundle.getString("NO_PLATENUMBER");
- }
-
- public String[] getTrafficTableName() {
- String[] name = new String[]{this.getIndex(), this.getEventName(), this.getLicensePlate(), this.getEventTime(), this.getPlateType(), this.getPlateColor(), this.getVehicleColor(), this.getVehicleType(), this.getVehicleSize(), this.getFileCount(), this.getFileIndex(), this.getGroupId(), this.getIllegalPlace(), this.getLaneNumber()};
- return name;
- }
-
- public String getOperate() {
- return bundle.getString("OPERATE");
- }
-
- public String getAttach() {
- return bundle.getString("ATTACH");
- }
-
- public String getDetach() {
- return bundle.getString("DETACH");
- }
-
- public String getOpenStrobe() {
- return bundle.getString("OPEN_STROBE");
- }
-
- public String getCloseStrobe() {
- return bundle.getString("CLOSE_STROBE");
- }
-
- public String getOpenStrobeFailed() {
- return bundle.getString("OPEN_STROBE_FAILED");
- }
-
- public String getManualCapture() {
- return bundle.getString("MANUAL_CAPTURE");
- }
-
- public String getManualCaptureSucceed() {
- return bundle.getString("MANUALSNAP_SUCCEED");
- }
-
- public String getManualCaptureFailed() {
- return bundle.getString("MANUALSNAP_FAILED");
- }
-
- public String getTrafficSize(int nVehicleSize) {
- String vehicleClass = "";
-
- for(int i = 0; i < 5; ++i) {
- if(((byte)nVehicleSize & 1 << i) > 0) {
- switch(i) {
- case 0:
- vehicleClass = bundle.getString("LIGHT_DUTY");
- break;
- case 1:
- vehicleClass = bundle.getString("MEDIUM");
- break;
- case 2:
- vehicleClass = bundle.getString("OVER_SIZE");
- break;
- case 3:
- vehicleClass = bundle.getString("MINI_SIZE");
- break;
- case 4:
- vehicleClass = bundle.getString("LARGE_SIZE");
- }
- }
- }
-
- return vehicleClass;
- }
-
- public String getEventName(int type) {
- String name = "";
- switch(type) {
- case 23:
- name = bundle.getString("EVENT_IVS_TRAFFICJUNCTION");
- break;
- case 256:
- name = bundle.getString("EVENT_IVS_TRAFFIC_RUNREDLIGHT");
- break;
- case 257:
- name = bundle.getString("EVENT_IVS_TRAFFIC_OVERLINE");
- break;
- case 258:
- name = bundle.getString("EVENT_IVS_TRAFFIC_RETROGRADE");
- break;
- case 259:
- name = bundle.getString("EVENT_IVS_TRAFFIC_TURNLEFT");
- break;
- case 260:
- name = bundle.getString("EVENT_IVS_TRAFFIC_TURNRIGHT");
- break;
- case 261:
- name = bundle.getString("EVENT_IVS_TRAFFIC_UTURN");
- break;
- case 262:
- name = bundle.getString("EVENT_IVS_TRAFFIC_OVERSPEED");
- break;
- case 263:
- name = bundle.getString("EVENT_IVS_TRAFFIC_UNDERSPEED");
- break;
- case 264:
- name = bundle.getString("EVENT_IVS_TRAFFIC_PARKING");
- break;
- case 265:
- name = bundle.getString("EVENT_IVS_TRAFFIC_WRONGROUTE");
- break;
- case 266:
- name = bundle.getString("EVENT_IVS_TRAFFIC_CROSSLANE");
- break;
- case 267:
- name = bundle.getString("EVENT_IVS_TRAFFIC_OVERYELLOWLINE");
- break;
- case 270:
- name = bundle.getString("EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE");
- break;
- case 271:
- name = bundle.getString("EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY");
- break;
- case 280:
- name = bundle.getString("EVENT_IVS_TRAFFIC_MANUALSNAP");
- break;
- case 283:
- name = bundle.getString("EVENT_IVS_TRAFFIC_VEHICLEINROUTE");
- break;
- case 292:
- name = bundle.getString("EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE");
- break;
- case 293:
- name = bundle.getString("EVENT_IVS_TRAFFIC_BACKING");
- break;
- case 299:
- name = bundle.getString("EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING");
- break;
- case 300:
- name = bundle.getString("EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING");
- break;
- case 312:
- name = bundle.getString("EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT");
- }
-
- return name;
- }
-
- public String getRecordType() {
- return bundle.getString("RECORD_TYPE");
- }
-
- public String getStartTime() {
- return bundle.getString("START_TIME");
- }
-
- public String getEndTime() {
- return bundle.getString("END_TIME");
- }
-
- public String[] getDownloadTableName() {
- String[] name = new String[]{this.getIndex(), this.getChannel(), this.getRecordType(), this.getStartTime(), this.getEndTime()};
- return name;
- }
-
- public String getDownloadByFile() {
- return bundle.getString("DOWNLOAD_RECORD_BYFILE");
- }
-
- public String getQuery() {
- return bundle.getString("QUERY");
- }
-
- public String getDownload() {
- return bundle.getString("DOWNLOAD");
- }
-
- public String getStopDownload() {
- return bundle.getString("STOP_DOWNLOAD");
- }
-
- public String getDownloadByTime() {
- return bundle.getString("DOWNLOAD_RECORD_BYTIME");
- }
-
- public String getSelectTimeAgain() {
- return bundle.getString("PLEASE_SELECT_TIME_AGAIN");
- }
-
- public String getSelectRowWithData() {
- return bundle.getString("PLEASE_FIRST_SELECT_ROW_WITH_DATA");
- }
-
- public String getQueryRecord() {
- return bundle.getString("PLEASE_FIRST_QUERY_RECORD");
- }
-
- public String getDownloadCompleted() {
- return bundle.getString("DOWNLOAD_COMPLETED");
- }
-
- public String getRecordTypeStr(int nRecordFileType) {
- String recordTypeStr = "";
- switch(nRecordFileType) {
- case 0:
- recordTypeStr = bundle.getString("GENERAL_RECORD");
- break;
- case 1:
- recordTypeStr = bundle.getString("ALARM_RECORD");
- break;
- case 2:
- recordTypeStr = bundle.getString("MOTION_DETECTION");
- break;
- case 3:
- recordTypeStr = bundle.getString("CARD_NUMBER_RECORD");
- case 4:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- default:
- break;
- case 5:
- recordTypeStr = bundle.getString("INTELLIGENT_DETECTION");
- break;
- case 19:
- recordTypeStr = bundle.getString("POS_RECORD");
- }
-
- return recordTypeStr;
- }
-
- public int getRecordTypeInt(String recordFileStr) {
- int recordType = -1;
- if(recordFileStr.equals(bundle.getString("GENERAL_RECORD"))) {
- recordType = 0;
- } else if(recordFileStr.equals(bundle.getString("ALARM_RECORD"))) {
- recordType = 1;
- } else if(recordFileStr.equals(bundle.getString("MOTION_DETECTION"))) {
- recordType = 2;
- } else if(recordFileStr.equals(bundle.getString("CARD_NUMBER_RECORD"))) {
- recordType = 3;
- } else if(recordFileStr.equals(bundle.getString("INTELLIGENT_DETECTION"))) {
- recordType = 11;
- } else if(recordFileStr.equals(bundle.getString("POS_RECORD"))) {
- recordType = 19;
- }
-
- return recordType;
- }
-
- public String getTalk() {
- return bundle.getString("TALK");
- }
-
- public String getTransmitType() {
- return bundle.getString("TRANSMIT_TYPE");
- }
-
- public String getLocalTransmitType() {
- return bundle.getString("LOCAL_TRANSMIT_TYPE");
- }
-
- public String getRemoteTransmitType() {
- return bundle.getString("REMOTE_TRANSMIT_TYPE");
- }
-
- public String getTransmitChannel() {
- return bundle.getString("TRANSMIT_CHANNEL");
- }
-
- public String getStartTalk() {
- return bundle.getString("START_TALK");
- }
-
- public String getStopTalk() {
- return bundle.getString("STOP_TALK");
- }
-
- public String getTalkFailed() {
- return bundle.getString("TALK_FAILED");
- }
-
- public String getDeviceSearchAndInit() {
- return bundle.getString("DEVICESEARCH_DEVICEINIT");
- }
-
- public String getDeviceSearchOperate() {
- return bundle.getString("DEVICESEARCH_OPERATE");
- }
-
- public String getDeviceSearchResult() {
- return bundle.getString("DEVICESEARCH_RESULT");
- }
-
- public String getDeviceInit() {
- return bundle.getString("DEVICEINIT");
- }
-
- public String getStartSearch() {
- return bundle.getString("START_SEARCH");
- }
-
- public String getStopSearch() {
- return bundle.getString("STOP_SEARCH");
- }
-
- public String getPleaseSelectInitializedDevice() {
- return bundle.getString("PLEASE_FIRST_SELECT_INITIALIZED_DEVICE");
- }
-
- public String getDeviceSearch() {
- return bundle.getString("DEVICESEARCH");
- }
-
- public String getDevicePointToPointSearch() {
- return bundle.getString("DEVICE_POINT_TO_POINT_SEARCH");
- }
-
- public String getStartIp() {
- return bundle.getString("START_IP");
- }
-
- public String getEndIp() {
- return bundle.getString("END_IP");
- }
-
- public String getControlScope() {
- return bundle.getString("THE_IP_CONTROL_SCOPE");
- }
-
- public String getDeviceType() {
- return bundle.getString("DEVICE_TYPE");
- }
-
- public String getDeviceMac() {
- return bundle.getString("MAC");
- }
-
- public String getDeviceSn() {
- return bundle.getString("SN");
- }
-
- public String getDeviceInitState() {
- return bundle.getString("DEVICE_INIT_STATE");
- }
-
- public String getInitPasswd() {
- return bundle.getString("INIT_PASSWD");
- }
-
- public String[] getDeviceTableName() {
- String[] name = new String[]{this.getIndex(), this.getDeviceInitState(), this.getIpVersion(), this.getDeviceIp(), this.getPort(), this.getSubMask(), this.getGetway(), this.getDeviceMac(), this.getDeviceType(), this.getDetailType(), this.getHttpPort()};
- return name;
- }
-
- public String getIpVersion() {
- return bundle.getString("IP_VERSION");
- }
-
- public String getSubMask() {
- return bundle.getString("SUB_MASK");
- }
-
- public String getGetway() {
- return bundle.getString("GETWAY");
- }
-
- public String getDetailType() {
- return bundle.getString("DETAIL_TYPE");
- }
-
- public String getHttpPort() {
- return bundle.getString("HTTP_PORT");
- }
-
- public String getLocalIp() {
- return bundle.getString("LOCAL_IP");
- }
-
- public String getInitialized() {
- return bundle.getString("INITIALIZED");
- }
-
- public String getNotInitialized() {
- return bundle.getString("NOT_INITIALIZED");
- }
-
- public String getOldDevice() {
- return bundle.getString("OLD_DEVICE");
- }
-
- public String getNotSupportInitialization() {
- return bundle.getString("DONOT_SUPPORT_INITIALIZATION");
- }
-
- public String getPhone() {
- return bundle.getString("PHONE");
- }
-
- public String getMail() {
- return bundle.getString("MAIL");
- }
-
- public String getInputPhone() {
- return bundle.getString("PLEASE_INPUT_PHONE");
- }
-
- public String getInputMail() {
- return bundle.getString("PLEASE_INPUT_MAIL");
- }
-
- public String getConfirmPassword() {
- return bundle.getString("CONFIRM_PASSWORD");
- }
-
- public String getInconsistent() {
- return bundle.getString("INCONSISTENT");
- }
-
- public String getCheckIp() {
- return bundle.getString("PLEASE_CHECK_IP");
- }
-
- public String getInitStateInfo(int initStatus) {
- String initStateInfo = "";
- switch(initStatus) {
- case 0:
- initStateInfo = this.getInitialized();
- break;
- case 1:
- initStateInfo = this.getNotInitialized();
- break;
- case 2:
- initStateInfo = this.getInitialized();
- }
-
- return initStateInfo;
- }
-
- public String getAlarmListen() {
- return bundle.getString("ALARM_LISTEN");
- }
-
- public String getStartListen() {
- return bundle.getString("START_LISTEN");
- }
-
- public String getStopListen() {
- return bundle.getString("STOP_LISTEN");
- }
-
- public String getStopListenFailed() {
- return bundle.getString("STOP_LISTEN_FAILED");
- }
-
- public String getShowAlarmEvent() {
- return bundle.getString("SHOW_ALARM_EVENT");
- }
-
- public String getAlarmMessage() {
- return bundle.getString("ALARM_MESSAGE");
- }
-
- public String getExternalAlarm() {
- return bundle.getString("EXTERNAL_ALARM");
- }
-
- public String getMotionAlarm() {
- return bundle.getString("MOTION_ALARM");
- }
-
- public String getVideoLostAlarm() {
- return bundle.getString("VIDEOLOST_ALARM");
- }
-
- public String getShelterAlarm() {
- return bundle.getString("SHELTER_ALARM");
- }
-
- public String getDiskFullAlarm() {
- return bundle.getString("DISKFULL_ALARM");
- }
-
- public String getDiskErrorAlarm() {
- return bundle.getString("DISKERROR_ALARM");
- }
-
- public String getAlarmListenFailed() {
- return bundle.getString("ALARM_LISTEN_FAILED");
- }
-
- public String getStart() {
- return bundle.getString("START");
- }
-
- public String getStop() {
- return bundle.getString("STOP");
- }
-
- public String getDeviceControl() {
- return bundle.getString("DEVICE_CONTROL");
- }
-
- public String getDeviceReboot() {
- return bundle.getString("DEVICE_REBOOT");
- }
-
- public String getSyncTime() {
- return bundle.getString("SYNCHRONIZE_TIME");
- }
-
- public String getCurrentTime() {
- return bundle.getString("CURRENT_TIME");
- }
-
- public String getReboot() {
- return bundle.getString("REBOOT");
- }
-
- public String getRebootTips() {
- return bundle.getString("REBOOT_TIPS");
- }
-
- public String getGetTime() {
- return bundle.getString("GET_TIME");
- }
-
- public String getSetTime() {
- return bundle.getString("SET_TIME");
- }
-
- public String getOperateSuccess() {
- return bundle.getString("OPERATE_SUCCESS");
- }
-
- public String getFaceRecognition() {
- return bundle.getString("FACERECOGNITION");
- }
-
- public String[] getGroupTable() {
- String[] faceTable = new String[]{this.getFaceGroupId(), this.getFaceGroupName(), bundle.getString("PERSON_COUNT")};
- return faceTable;
- }
-
- public String getFaceGroupId() {
- return bundle.getString("FACE_GROUP_ID");
- }
-
- public String getFaceGroupName() {
- return bundle.getString("FACE_GROUP_NAME");
- }
-
- public String getGroupOperate() {
- return bundle.getString("GROUP_OPERATE");
- }
-
- public String getPersonOperate() {
- return bundle.getString("PERSON_OPERATE");
- }
-
- public String getGlobalPicture() {
- return bundle.getString("GLOBAL_PICTURE");
- }
-
- public String getPersonPicture() {
- return bundle.getString("PERSON_PICTURE");
- }
-
- public String getCandidatePicture() {
- return bundle.getString("CANDIDATE_PICTURE");
- }
-
- public String getTime() {
- return bundle.getString("TIME");
- }
-
- public String getSex() {
- return bundle.getString("SEX");
- }
-
- public String getAge() {
- return bundle.getString("AGE");
- }
-
- public String getColor() {
- return bundle.getString("COLOR");
- }
-
- public String getEye() {
- return bundle.getString("EYE");
- }
-
- public String getMouth() {
- return bundle.getString("MOUTH");
- }
-
- public String getMask() {
- return bundle.getString("MASK");
- }
-
- public String getBeard() {
- return bundle.getString("BEARD");
- }
-
- public String getName() {
- return bundle.getString("NAME");
- }
-
- public String getBirthday() {
- return bundle.getString("BIRTHDAY");
- }
-
- public String getIdNo() {
- return bundle.getString("ID_NO");
- }
-
- public String getIdType() {
- return bundle.getString("ID_TYPE");
- }
-
- public String getSimilarity() {
- return bundle.getString("SIMILARITY");
- }
-
- public String getFaceDetectEvent() {
- return bundle.getString("FACE_DETECT_EVENT");
- }
-
- public String getFaceRecognitionEvent() {
- return bundle.getString("FACE_RECOGNITION_EVENT");
- }
-
- public String getUid() {
- return bundle.getString("UID");
- }
-
- public String getGlasses() {
- return bundle.getString("GLASSES");
- }
-
- public String getPicturePath() {
- return bundle.getString("PICTURE_PATH");
- }
-
- public String getFaceLibraryID() {
- return bundle.getString("FACE_LIBRARY_ID");
- }
-
- public String getFaceLibraryName() {
- return bundle.getString("FACE_LIBRARY_NAME");
- }
-
- public String[] getPersonTable() {
- String[] personTable = new String[]{this.getUid(), this.getName(), this.getSex(), this.getBirthday(), this.getIdType(), this.getIdNo()};
- return personTable;
- }
-
- public String[] getDispositionTable() {
- String[] dispositionTable = new String[]{this.getChannel(), this.getSimilarity()};
- return dispositionTable;
- }
-
- public String getUnKnow() {
- return bundle.getString("UNKNOW");
- }
-
- public String getMale() {
- return bundle.getString("MALE");
- }
-
- public String getFemale() {
- return bundle.getString("FEMALE");
- }
-
- public String[] getSexStringsFind() {
- String[] faceSexStr = new String[]{this.getUnLimited(), this.getMale(), this.getFemale()};
- return faceSexStr;
- }
-
- public String[] getIdStringsFind() {
- String[] idStr = new String[]{this.getUnLimited(), this.getIdCard(), this.getPassport()};
- return idStr;
- }
-
- public String[] getSexStrings() {
- String[] faceSexStr = new String[]{this.getUnKnow(), this.getMale(), this.getFemale()};
- return faceSexStr;
- }
-
- public String[] getIdStrings() {
- String[] idStr = new String[]{this.getUnKnow(), this.getIdCard(), this.getPassport()};
- return idStr;
- }
-
- public String getIdCard() {
- return bundle.getString("ID_CARD");
- }
-
- public String getPassport() {
- return bundle.getString("PASSPORT");
- }
-
- public String getOfficeCard() {
- return bundle.getString("OFFICE_CARD");
- }
-
- public String getIdType(int idType) {
- String str = "";
- switch(idType) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getIdCard();
- break;
- case 2:
- str = this.getPassport();
- break;
- case 3:
- str = this.getOfficeCard();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getSex(int sex) {
- String str = "";
- switch(sex) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getMale();
- break;
- case 2:
- str = this.getFemale();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getUnLimited() {
- return bundle.getString("UNLIMITED");
- }
-
- public String getUnidentified() {
- return bundle.getString("UNIDENTIFIED");
- }
-
- public String getHaveBeard() {
- return bundle.getString("HAVE_BEARD");
- }
-
- public String getNoBeard() {
- return bundle.getString("NO_BEARD");
- }
-
- public String getBeardState(int beard) {
- String str = "";
- switch(beard) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getUnidentified();
- break;
- case 2:
- str = this.getNoBeard();
- break;
- case 3:
- str = this.getHaveBeard();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getOpenMouth() {
- return bundle.getString("OPEN_MOUTH");
- }
-
- public String getCloseMouth() {
- return bundle.getString("CLOSE_MOUTH");
- }
-
- public String getMouthState(int mouth) {
- String str = "";
- switch(mouth) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getUnidentified();
- break;
- case 2:
- str = this.getCloseMouth();
- break;
- case 3:
- str = this.getOpenMouth();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getYellowColor() {
- return bundle.getString("YELLOW_COLOR");
- }
-
- public String getBlackColor() {
- return bundle.getString("BLACK_COLOR");
- }
-
- public String getWhiteColor() {
- return bundle.getString("WHITE_COLOR");
- }
-
- public String getColor(int color) {
- String str = "";
- switch(color) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getUnidentified();
- break;
- case 2:
- str = this.getYellowColor();
- break;
- case 3:
- str = this.getBlackColor();
- break;
- case 4:
- str = this.getWhiteColor();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getOpenEye() {
- return bundle.getString("OPEN_EYE");
- }
-
- public String getCloseEye() {
- return bundle.getString("CLOSE_EYE");
- }
-
- public String getEyeState(int eye) {
- String str = this.getUnidentified();
- switch(eye) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getUnidentified();
- break;
- case 2:
- str = this.getCloseEye();
- break;
- case 3:
- str = this.getOpenEye();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getSmile() {
- return bundle.getString("SMILE");
- }
-
- public String getAnger() {
- return bundle.getString("ANGER");
- }
-
- public String getSadness() {
- return bundle.getString("SADNESS");
- }
-
- public String getDisgust() {
- return bundle.getString("DISGUST");
- }
-
- public String getFear() {
- return bundle.getString("FEAR");
- }
-
- public String getSurprise() {
- return bundle.getString("SURPRISE");
- }
-
- public String getNeutral() {
- return bundle.getString("NEUTRAL");
- }
-
- public String getLaugh() {
- return bundle.getString("LAUGH");
- }
-
- public String getFaceFeature(int type) {
- String str = "";
- switch(type) {
- case 0:
- str = this.getUnKnow();
- break;
- case 1:
- str = this.getWearGlasses();
- break;
- case 2:
- str = this.getSmile();
- break;
- case 3:
- str = this.getAnger();
- break;
- case 4:
- str = this.getSadness();
- break;
- case 5:
- str = this.getDisgust();
- break;
- case 6:
- str = this.getFear();
- break;
- case 7:
- str = this.getSurprise();
- break;
- case 8:
- str = this.getNeutral();
- break;
- case 9:
- str = this.getLaugh();
- break;
- default:
- str = this.getUnKnow();
- }
-
- return str;
- }
-
- public String getWearMask() {
- return bundle.getString("WEAR_MASK");
- }
-
- public String geNoMask() {
- return bundle.getString("NO_MASK");
- }
-
- public String getMaskState(int type) {
- String maskStateStr = "";
- switch(type) {
- case 0:
- maskStateStr = this.getUnKnow();
- break;
- case 1:
- maskStateStr = this.getUnidentified();
- break;
- case 2:
- maskStateStr = this.geNoMask();
- break;
- case 3:
- maskStateStr = this.getWearMask();
- break;
- default:
- maskStateStr = this.getUnKnow();
- }
-
- return maskStateStr;
- }
-
- public String getWearGlasses() {
- return bundle.getString("WEAR_GLASSES");
- }
-
- public String getNoGlasses() {
- return bundle.getString("NO_GLASSES");
- }
-
- public String getGlasses(int byGlasses) {
- String glassesStr = "";
- switch(byGlasses) {
- case 0:
- glassesStr = this.getUnKnow();
- break;
- case 1:
- glassesStr = this.getNoGlasses();
- break;
- case 2:
- glassesStr = this.getWearGlasses();
- }
-
- return glassesStr;
- }
-
- public String getAdd() {
- return bundle.getString("ADD");
- }
-
- public String getModify() {
- return bundle.getString("MODIFY");
- }
-
- public String getDelete() {
- return bundle.getString("DELETE");
- }
-
- public String getFresh() {
- return bundle.getString("FRESH");
- }
-
- public String getAddGroup() {
- return bundle.getString("ADD_GROUP");
- }
-
- public String getModifyGroup() {
- return bundle.getString("MODIFY_GROUP");
- }
-
- public String getDelGroup() {
- return bundle.getString("DEL_GROUP");
- }
-
- public String getDisposition() {
- return bundle.getString("DISPOSITION");
- }
-
- public String getDelDisposition() {
- return bundle.getString("DEL_DISPOSITION");
- }
-
- public String getSimilarityRange() {
- return bundle.getString("SIMILARITY_RANGE");
- }
-
- public String getFindCondition() {
- return bundle.getString("FIND_CONDITION");
- }
-
- public String getFindPerson() {
- return bundle.getString("FIND_PERSON");
- }
-
- public String getAddPerson() {
- return bundle.getString("ADD_PERSON");
- }
-
- public String getModifyPerson() {
- return bundle.getString("MODIFY_PERSON");
- }
-
- public String getDelPerson() {
- return bundle.getString("DEL_PERSON");
- }
-
- public String getPreviousPage() {
- return bundle.getString("PREVIOUSPAGE");
- }
-
- public String getLastPage() {
- return bundle.getString("LASTPAGE");
- }
-
- public String getSelectPicture() {
- return bundle.getString("SELECT_PICTURE");
- }
-
- public String getSearchByPic() {
- return bundle.getString("SEARCH_BY_PIC");
- }
-
- public String getDownloadQueryPicture() {
- return bundle.getString("DOWNLOAD_QUERY_PICTURE");
- }
-
- public String getFaceLibrary() {
- return bundle.getString("FACE_LIBRARY");
- }
-
- public String getChooseFacePic() {
- return bundle.getString("CHOOSE_FACE_PIC");
- }
-
- public String getHistoryLibrary() {
- return bundle.getString("HISTORY_LIBRARY");
- }
-
- public String getEventType() {
- return bundle.getString("EVENT_TYPE");
- }
-
- public String getStranger() {
- return bundle.getString("STRANGER");
- }
-
- public String getInputGroupName() {
- return bundle.getString("PLEASE_INPUT_GROUPNAME");
- }
-
- public String getSelectGroup() {
- return bundle.getString("PLEASE_SELECT_GROUP");
- }
-
- public String getSelectPerson() {
- return bundle.getString("PLEASE_SELECT_PERSON");
- }
-
- public String getAddDispositionInfo() {
- return bundle.getString("PLEASE_ADD_DISPOSITION_INFO");
- }
-
- public String getSelectDelDispositionInfo() {
- return bundle.getString("PLEASE_SELECT_DEL_DISPOSITION_INFO");
- }
-
- public String getPagesNumber() {
- return bundle.getString("PAGES_NUMBER");
- }
-
- public String getAutoRegister() {
- return bundle.getString("AUTOREGISTER");
- }
-
- public String getAutoRegisterListen() {
- return bundle.getString("AUTOREGISTER_LISTEN");
- }
-
- public String getDeviceConfig() {
- return bundle.getString("DEVICE_CONFIG");
- }
-
- public String getDeviceList() {
- return bundle.getString("DEVICE_LIST");
- }
-
- public String getDeviceManager() {
- return bundle.getString("DEVICE_MANAGER");
- }
-
- public String getAddDevice() {
- return bundle.getString("ADD_DEVICE");
- }
-
- public String getModifyDevice() {
- return bundle.getString("MODIFY_DEVICE");
- }
-
- public String getDeleteDevice() {
- return bundle.getString("DELETE_DEVICE");
- }
-
- public String getClearDevice() {
- return bundle.getString("CLEAR_DEVICE");
- }
-
- public String getImportDevice() {
- return bundle.getString("IMPORT_DEVICE");
- }
-
- public String getExportDevice() {
- return bundle.getString("EXPORT_DEVICE");
- }
-
- public String getFunctionOperate() {
- return bundle.getString("FUNCTION") + bundle.getString("OPERATE");
- }
-
- public String getDeviceID() {
- return bundle.getString("DEVICE_ID");
- }
-
- public String getEnable() {
- return bundle.getString("ENABLE");
- }
-
- public String getRegisterAddress() {
- return bundle.getString("REGISTER_ADDRESS");
- }
-
- public String getRegisterPort() {
- return bundle.getString("REGISTER_PORT");
- }
-
- public String getGet() {
- return bundle.getString("GET");
- }
-
- public String getSet() {
- return bundle.getString("SET");
- }
-
- public String getAlreadyExisted() {
- return bundle.getString("ALREADY_EXISTED");
- }
-
- public String getWhetherNoToCover() {
- return bundle.getString("ALREADY_EXISTED_WHETHER_OR_NOT_TO_COVER");
- }
-
- public String getFileOpened() {
- return bundle.getString("FILE_OPEN_PLEASE_CLOSE_FILE");
- }
-
- public String getImportCompletion() {
- return bundle.getString("IMPORT_COMPLETION");
- }
-
- public String getExportCompletion() {
- return bundle.getString("EXPORT_COMPLETION");
- }
-
- public String getFileNotExist() {
- return bundle.getString("FILE_NOT_EXIST");
- }
-
- public String getRecord() {
- return bundle.getString("RECORD");
- }
-
- public String getInput() {
- return bundle.getString("PLEASE_INPUT");
- }
-
- public String getMaximumSupport() {
- return bundle.getString("MAX_SUPPORT_100");
- }
-
- public String getDeviceLogined() {
- return bundle.getString("DEVICE_LOGIN");
- }
-
- public String getAttendance() {
- return bundle.getString("ATTENDANCE");
- }
-
- public String getFingerPrintOperate() {
- return bundle.getString("FINGERPRINT_OPERATE");
- }
-
- public String getUserOperate() {
- return bundle.getString("USER_OPERATE");
- }
-
- public String getOperateByUserId() {
- return bundle.getString("OPERATE_BY_USER_ID");
- }
-
- public String getOperateByFingerPrintId() {
- return bundle.getString("OPERATE_BY_FINGERPRINT_ID");
- }
-
- public String getSearch() {
- return bundle.getString("SEARCH");
- }
-
- public String getQueryCondition() {
- return bundle.getString("QUERY_CONDITION");
- }
-
- public String getFingerPrintId() {
- return bundle.getString("FINGERPRINT_ID");
- }
-
- public String getSearchFingerPrint() {
- return bundle.getString("SEARCH_FINGERPRINT");
- }
-
- public String getAddFingerPrint() {
- return bundle.getString("ADD_FINGERPRINT");
- }
-
- public String getDeleteFingerPrint() {
- return bundle.getString("DELETE_FINGERPRINT");
- }
-
- public String getSubscribe() {
- return bundle.getString("SUBSCRIBE");
- }
-
- public String getUnSubscribe() {
- return bundle.getString("UNSUBSCRIBE");
- }
-
- public String getUserList() {
- return bundle.getString("USER_LIST");
- }
-
- public String getNextPage() {
- return bundle.getString("NEXT_PAGE");
- }
-
- public String getUserInfo() {
- return bundle.getString("USER_INFO");
- }
-
- public String getDoorOpenMethod() {
- return bundle.getString("DOOROPEN_METHOD");
- }
-
- public String getFingerPrint() {
- return bundle.getString("FINGERPRINT");
- }
-
- public String getFingerPrintInfo() {
- return bundle.getString("FINGERPRINT_INFO");
- }
-
- public String getFingerPrintData() {
- return bundle.getString("FINGERPRINT_DATA");
- }
-
- public String getCard() {
- return bundle.getString("CARD");
- }
-
- public String getDeleteFingerPrintPrompt() {
- return bundle.getString("DELETE_FINGERPRINT_PROMPT");
- }
-
- public String getSubscribeFailed() {
- return bundle.getString("SUBSCRIBE_FAILED");
- }
-
- public String getFingerPrintIdIllegal() {
- return bundle.getString("FINGERPRINT_ID_ILLEGAL");
- }
-
- public String getcFingerPrintCollection() {
- return bundle.getString("FINGERPRINT_COLLECTION");
- }
-
- public String getStartCollection() {
- return bundle.getString("START_COLLECTION");
- }
-
- public String getStopCollection() {
- return bundle.getString("STOP_COLLECTION");
- }
-
- public String getInCollection() {
- return bundle.getString("IN_THE_COLLECTION");
- }
-
- public String getcCompleteCollection() {
- return bundle.getString("COLLECTION_COMPLETED");
- }
-
- public String getCollectionFailed() {
- return bundle.getString("COLLECTION_FAILED");
- }
-
- public String getFingerPrintIdNotExist() {
- return bundle.getString("FINGERPRINT_ID_NOT_EXIST");
- }
-
- public String getUserIdExceedLength() {
- return bundle.getString("USER_ID_EXCEED_LENGTH");
- }
-
- public String getUserNameExceedLength() {
- return bundle.getString("USER_NAME_EXCEED_LENGTH");
- }
-
- public String getCardNoExceedLength() {
- return bundle.getString("CARD_NO_EXCEED_LENGTH");
- }
-
- public String getCardNameExceedLength() {
- return bundle.getString("CARD_NAME_EXCEED_LENGTH");
- }
-
- public String getCardPasswdExceedLength() {
- return bundle.getString("CARD_PASSWD_EXCEED_LENGTH");
- }
-
- public String getGate() {
- return bundle.getString("GATE");
- }
-
- public String getCardOperate() {
- return bundle.getString("CARD_OPERATE");
- }
-
- public String getCardInfo() {
- return bundle.getString("CARD_INFO");
- }
-
- public String getCardManager() {
- return bundle.getString("CARD_MANAGER");
- }
-
- public String getClear() {
- return bundle.getString("CLEAR");
- }
-
- public String getOpenStatus() {
- return bundle.getString("OPEN_STATUS");
- }
-
- public String getOpenMethod() {
- return bundle.getString("OPEN_METHOD");
- }
-
- public String getCardName() {
- return bundle.getString("CARD_NAME");
- }
-
- public String getCardStatus() {
- return bundle.getString("CARD_STATUS");
- }
-
- public String getCardPassword() {
- return bundle.getString("CARD_PASSWORD");
- }
-
- public String getCardType() {
- return bundle.getString("CARD_TYPE");
- }
-
- public String getCardNum() {
- return bundle.getString("CARD_NUM");
- }
-
- public String getUseTimes() {
- return bundle.getString("USE_TIMES");
- }
-
- public String getIsFirstEnter() {
- return bundle.getString("IS_FIRST_ENTER");
- }
-
- public String getIsValid() {
- return bundle.getString("IS_VALID");
- }
-
- public String getValidPeriod() {
- return bundle.getString("VALID_PERIOD");
- }
-
- public String getValidStartTime() {
- return bundle.getString("VALID_START_TIME");
- }
-
- public String getValidEndTime() {
- return bundle.getString("VALID_END_TIME");
- }
-
- public String getRecordNo() {
- return bundle.getString("RECORD_NO");
- }
-
- public String getFirstEnter() {
- return bundle.getString("FIRST_ENTER");
- }
-
- public String getNoFirstEnter() {
- return bundle.getString("NO_FIRST_ENTER");
- }
-
- public String getValid() {
- return bundle.getString("VALID");
- }
-
- public String getInValid() {
- return bundle.getString("INVALID");
- }
-
- public String getSelectCard() {
- return bundle.getString("PLEASE_SELECT_CARD");
- }
-
- public String getInputCardNo() {
- return bundle.getString("PLEASE_INPUT_CARDNO");
- }
-
- public String getInputUserId() {
- return bundle.getString("PLEASE_INPUT_USERID");
- }
-
- public String getWantClearAllInfo() {
- return bundle.getString("WANT_CLEAR_ALL_INFO");
- }
-
- public String getFailedAddCard() {
- return bundle.getString("ADD_CARD_INDO_FAILED");
- }
-
- public String getSucceedAddCardAndPerson() {
- return bundle.getString("ADD_CARD_INFO_AND_PERSON_PICTURE_SUCCEED");
- }
-
- public String getSucceedAddCardButFailedAddPerson() {
- return bundle.getString("ADD_CARD_INFO_SUCCEED_BUT_ADD_PERSON_PICTURE_FAILED");
- }
-
- public String getCardExistedSucceedAddPerson() {
- return bundle.getString("CARD_EXISTED_ADD_PERSON_PICTURE_SUCCEED");
- }
-
- public String getSucceedModifyCard() {
- return bundle.getString("MODIFY_CARD_INFO_SUCCEED");
- }
-
- public String getFailedModifyCard() {
- return bundle.getString("MODIFY_CARD_INFO_FAILED");
- }
-
- public String getSucceedModifyCardAndPerson() {
- return bundle.getString("MODIFY_CARD_INFO_AND_PERSON_PICTURE_SUCCEED");
- }
-
- public String getSucceedModifyCardButFailedModifyPerson() {
- return bundle.getString("MODIFY_CARD_INFO_SUCCEED_BUT_MODIFY_PERSON_PICTURE_FAILED");
- }
-
- public String[] getCardTable() {
- return new String[]{this.getIndex(), this.getCardNo(), this.getCardName(), this.getRecordNo(), this.getUserId(), this.getCardPassword(), this.getCardStatus(), this.getCardType(), this.getUseTimes(), this.getIsFirstEnter(), this.getIsValid(), this.getValidStartTime(), this.getValidEndTime()};
- }
-
- public String getCardStatus(int status) {
- String statusString = "";
- switch(status) {
- case -1:
- statusString = bundle.getString("STATE_UNKNOWN");
- break;
- case 0:
- statusString = bundle.getString("STATE_NORMAL");
- break;
- case 1:
- statusString = bundle.getString("STATE_LOSE");
- break;
- case 2:
- statusString = bundle.getString("STATE_LOGOFF");
- break;
- case 4:
- statusString = bundle.getString("STATE_FREEZE");
- break;
- case 8:
- statusString = bundle.getString("STATE_ARREARS");
- break;
- case 16:
- statusString = bundle.getString("STATE_OVERDUE");
- break;
- case 32:
- statusString = bundle.getString("STATE_PREARREARS");
- break;
- default:
- statusString = bundle.getString("STATE_UNKNOWN");
- }
-
- return statusString;
- }
-
- public int getCardStatusInt(int index) {
- int status = 0;
- //byte status;
- switch(index) {
- case 0:
- status = 0;
- break;
- case 1:
- status = -1;
- break;
- case 2:
- status = 1;
- break;
- case 3:
- status = 2;
- break;
- case 4:
- status = 4;
- break;
- case 5:
- status = 8;
- break;
- case 6:
- status = 16;
- break;
- case 7:
- status = 32;
- break;
- default:
- status = -1;
- }
-
- return status;
- }
-
- public int getCardStatusChomBoxIndex(String status) {
- int index = 0;
- if(status.equals(bundle.getString("STATE_UNKNOWN"))) {
- index = 1;
- } else if(status.equals(bundle.getString("STATE_NORMAL"))) {
- index = 0;
- } else if(status.equals(bundle.getString("STATE_LOSE"))) {
- index = 2;
- } else if(status.equals(bundle.getString("STATE_LOGOFF"))) {
- index = 3;
- } else if(status.equals(bundle.getString("STATE_FREEZE"))) {
- index = 4;
- } else if(status.equals(bundle.getString("STATE_ARREARS"))) {
- index = 5;
- } else if(status.equals(bundle.getString("STATE_OVERDUE"))) {
- index = 6;
- } else if(status.equals(bundle.getString("STATE_PREARREARS"))) {
- index = 7;
- }
-
- return index;
- }
-
- public String[] getCardStatusList() {
- return new String[]{bundle.getString("STATE_NORMAL"), bundle.getString("STATE_UNKNOWN"), bundle.getString("STATE_LOSE"), bundle.getString("STATE_LOGOFF"), bundle.getString("STATE_FREEZE"), bundle.getString("STATE_ARREARS"), bundle.getString("STATE_OVERDUE"), bundle.getString("STATE_PREARREARS")};
- }
-
- public String getCardType(int type) {
- String cardTypeString = "";
- switch(type) {
- case -1:
- cardTypeString = bundle.getString("CARD_UNKNOW");
- break;
- case 0:
- cardTypeString = bundle.getString("CARD_GENERAL");
- break;
- case 1:
- cardTypeString = bundle.getString("CARD_VIP");
- break;
- case 2:
- cardTypeString = bundle.getString("CARD_GUEST");
- break;
- case 3:
- cardTypeString = bundle.getString("CARD_PATROL");
- break;
- case 4:
- cardTypeString = bundle.getString("CARD_BACKLIST");
- break;
- case 5:
- cardTypeString = bundle.getString("CARD_COERCE");
- break;
- case 6:
- cardTypeString = bundle.getString("CARD_POLLING");
- break;
- case 255:
- cardTypeString = bundle.getString("CARD_MOTHERCARD");
- break;
- default:
- cardTypeString = bundle.getString("CARD_UNKNOW");
- }
-
- return cardTypeString;
- }
-
- public int getCardTypeInt(int index) {
- int type = 0;
- //short type;
- switch(index) {
- case 0:
- type = 0;
- break;
- case 1:
- type = -1;
- break;
- case 2:
- type = 1;
- break;
- case 3:
- type = 2;
- break;
- case 4:
- type = 3;
- break;
- case 5:
- type = 4;
- break;
- case 6:
- type = 5;
- break;
- case 7:
- type = 6;
- break;
- case 8:
- type = 255;
- break;
- default:
- type = -1;
- }
-
- return type;
- }
-
- public int getCardTypeChomBoxIndex(String type) {
- int index = 0;
- if(type.equals(bundle.getString("CARD_UNKNOW"))) {
- index = 1;
- } else if(type.equals(bundle.getString("CARD_GENERAL"))) {
- index = 0;
- } else if(type.equals(bundle.getString("CARD_VIP"))) {
- index = 2;
- } else if(type.equals(bundle.getString("CARD_GUEST"))) {
- index = 3;
- } else if(type.equals(bundle.getString("CARD_PATROL"))) {
- index = 4;
- } else if(type.equals(bundle.getString("CARD_BACKLIST"))) {
- index = 5;
- } else if(type.equals(bundle.getString("CARD_COERCE"))) {
- index = 6;
- } else if(type.equals(bundle.getString("CARD_POLLING"))) {
- index = 7;
- } else if(type.equals(bundle.getString("CARD_MOTHERCARD"))) {
- index = 8;
- }
-
- return index;
- }
-
- public String[] getCardTypeList() {
- return new String[]{bundle.getString("CARD_GENERAL"), bundle.getString("CARD_UNKNOW"), bundle.getString("CARD_VIP"), bundle.getString("CARD_GUEST"), bundle.getString("CARD_PATROL"), bundle.getString("CARD_BACKLIST"), bundle.getString("CARD_COERCE"), bundle.getString("CARD_POLLING"), bundle.getString("CARD_MOTHERCARD")};
- }
-
- public String getMaskStatus(int emMaskStatus) {
- String MaskStatus = "";
- switch(emMaskStatus) {
- case 0:
- MaskStatus = bundle.getString("EM_MASK_STATE_UNKNOWN");
- break;
- case 1:
- MaskStatus = bundle.getString("EM_MASK_STATE_NODISTI");
- break;
- case 2:
- MaskStatus = bundle.getString("EM_MASK_STATE_NOMASK");
- break;
- case 3:
- MaskStatus = bundle.getString("EM_MASK_STATE_WEAR");
- }
-
- return MaskStatus;
- }
-
- public String getOpenMethods(int emOpenMethod) {
- String openMethods = "";
- switch(emOpenMethod) {
- case 0:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_UNKNOWN");
- break;
- case 1:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_ONLY");
- break;
- case 2:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD");
- break;
- case 3:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_FIRST");
- break;
- case 4:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_FIRST");
- break;
- case 5:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_REMOTE");
- break;
- case 6:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_BUTTON");
- break;
- case 7:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT");
- break;
- case 8:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_CARD_FINGERPRINT");
- break;
- case 9:
- case 17:
- default:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_UNKNOWN");
- break;
- case 10:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_FINGERPRINT");
- break;
- case 11:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_FINGERPRINT");
- break;
- case 12:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PERSONS");
- break;
- case 13:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_KEY");
- break;
- case 14:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_COERCE_PWD");
- break;
- case 15:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_QRCODE");
- break;
- case 16:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_RECOGNITION");
- break;
- case 18:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD");
- break;
- case 19:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_AND_IDCARD");
- break;
- case 20:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_BLUETOOTH");
- break;
- case 21:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CUSTOM_PASSWORD");
- break;
- case 22:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_USERID_AND_PWD");
- break;
- case 23:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_AND_PWD");
- break;
- case 24:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_PWD");
- break;
- case 25:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE");
- break;
- case 26:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE");
- break;
- case 27:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_OR_PWD");
- break;
- case 28:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_PWD");
- break;
- case 29:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE");
- break;
- case 30:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE");
- break;
- case 31:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT");
- break;
- case 32:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE_AND_PWD");
- break;
- case 33:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE_AND_PWD");
- break;
- case 34:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_PWD");
- break;
- case 35:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_PWD_AND_FACE");
- break;
- case 36:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE_OR_PWD");
- break;
- case 37:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE_OR_PWD");
- break;
- case 38:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE");
- break;
- case 39:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_FACE_AND_PWD");
- break;
- case 40:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE_OR_PWD");
- break;
- case 41:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIPCARDANDIDCARD_OR_CARD_OR_FACE");
- break;
- case 42:
- openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_OR_CARD_OR_FACE");
- }
-
- return openMethods;
- }
-
- public String getShowInfo(String tag) {
- try {
- return bundle.getString(tag);
- } catch (Exception var3) {
- return tag;
- }
- }
-
- public String getThermalCamera() {
- return this.getShowInfo("THERMAL_CAMERA");
- }
-
- public String[] getMeterTypeList() {
- String[] meterTypes = new String[]{this.getShowInfo("SPOT"), this.getShowInfo("LINE"), this.getShowInfo("AREA")};
- return meterTypes;
- }
-
- public String[] getTemperUnitList() {
- return new String[]{this.getShowInfo("CENTIGRADE"), this.getShowInfo("FAHRENHEIT")};
- }
-
- public String[] getPeriodList() {
- return new String[]{this.getShowInfo("FIVE_MINUTES"), this.getShowInfo("TEN_MINUTES"), this.getShowInfo("FIFTEEN_MINUTES"), this.getShowInfo("THIRTY_MINUTES")};
- }
-
- public String[] getTemperStatusList() {
- return new String[]{this.getShowInfo("IDLE"), this.getShowInfo("ACQUIRING")};
- }
-
- public String getSearchingWait() {
- return bundle.getString("SEARCHING_WAITING");
- }
-
- public String getHumanNumberStatistic() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_TITLE");
- }
-
- public String getHumanNumberStatisticAttach() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_CONTROL");
- }
-
- public String getHumanNumberStatisticEventTitle() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TITLE");
- }
-
- public String getHumanNumberStatisticEventChannel() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_CHANNEL");
- }
-
- public String getHumanNumberStatisticEventTime() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TIME");
- }
-
- public String getHumanNumberStatisticEventHourIn() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_HOUR_IN");
- }
-
- public String getHumanNumberStatisticEventHourOut() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_HOUR_OUT");
- }
-
- public String getHumanNumberStatisticEventTodayIn() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TODAY_IN");
- }
-
- public String getHumanNumberStatisticEventTodayOut() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TODAY_OUT");
- }
-
- public String getHumanNumberStatisticEventTotalIn() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TOTAL_IN");
- }
-
- public String getHumanNumberStatisticEventTotalOut() {
- return bundle.getString("HUMAN_NUMBER_STATISTIC_EVENT_TOTAL_OUT");
- }
-
- public String getHumanNumberStatisticEventClearOSD() {
- return bundle.getString("HUMAN_NUMBER_STATIC_EVENT_OSD_CLEAR");
- }
-
- public String getVTOAlarmEventRoomNo() {
- return bundle.getString("VTO_ALARM_EVENT_ROOM_NO");
- }
-
- public String getVTOAlarmEventCardNo() {
- return bundle.getString("VTO_ALARM_EVENT_CARD_NO");
- }
-
- public String getVTOAlarmEventTime() {
- return bundle.getString("VTO_ALARM_EVENT_TIME");
- }
-
- public String getVTOAlarmEventOpenMethod() {
- return bundle.getString("VTO_ALARM_EVENT_OPEN_METHOD");
- }
-
- public String getVTOAlarmEventStatus() {
- return bundle.getString("VTO_ALARM_EVENT_STATUS");
- }
-
- public String getVTORealLoadRoomNO() {
- return bundle.getString("VTO_REAL_LOAD_ROOM_NO");
- }
-
- public String getVTORealLoadCardNo() {
- return bundle.getString("VTO_REAL_LOAD_CARD_NO");
- }
-
- public String getVTORealLoadTime() {
- return bundle.getString("VTO_REAL_LOAD_TIME");
- }
-
- public String getVTORealLoadEventInfo() {
- return bundle.getString("VTO_REAL_LOAD_EVENT_INFO");
- }
-
- public String getVTOOperateManagerTitle() {
- return bundle.getString("VTO_OPERATE_MANAGER_TITLE");
- }
-
- public String getInputRoomNo() {
- return bundle.getString("INPUT_ROOM_NO");
- }
-
- public String getRoomNoExceedLength() {
- return bundle.getString("ROOM_NO_EXCEED_LENGTH");
- }
-
- public String getVTOOperateManagerRecNo() {
- return bundle.getString("VTO_OPERATE_MANAGER_REC_NO");
- }
-
- public String getVTOOperateManagerRoomNo() {
- return bundle.getString("VTO_OPERATE_MANAGER_ROOM_NO");
- }
-
- public String getVTOOperateManagerCardNo() {
- return bundle.getString("VTO_OPERATE_MANAGER_CARD_NO");
- }
-
- public String getVTOOperateManagerFingerPrintData() {
- return bundle.getString("VTO_OPERATE_MANAGER_FINGER_PRINT_DATA");
- }
-
- public String getVTOOperateInfoTitle() {
- return bundle.getString("VTO_OPERATE_INFO_TITLE");
- }
-
- public String getVTOOperateCollectionFingerPrintTitle() {
- return bundle.getString("VTO_OPERATE_COLLECTION_FINGER_PRINT_TITLE");
- }
-
- public String getDoorOpen() {
- return bundle.getString("DOOR_OPEN");
- }
-
- public String getDoorClose() {
- return bundle.getString("DOOR_CLOSE");
- }
-
- public String getEventOperate() {
- return bundle.getString("EVENT_OPERATE");
- }
-
- public String getStartRealLoad() {
- return bundle.getString("START_REAL_LOAD_PIC");
- }
-
- public String getStopRealLoad() {
- return bundle.getString("STOP_REAL_LOAD_PIC");
- }
-
- public String getAlarmEvent() {
- return bundle.getString("ALARM_EVENT");
- }
-
- public String getRealLoadEvent() {
- return bundle.getString("REAL_LOAD_EVENT");
- }
-
- public String getCollectionResult() {
- return bundle.getString("COLLECTION_RESULT");
- }
-
- public String getNeedFingerPrint() {
- return bundle.getString("NEED_FINGER_PRINT");
- }
-
- public String getFaceInfo() {
- return bundle.getString("FACE_INFO");
- }
-
- public String getOpen() {
- return bundle.getString("OPEN");
- }
-
- public static String getmatrixScreen() {
- return bundle.getString("MATRIX_SCREEN");
- }
-
- public String getPassingState() {
- return bundle.getString("PASSING_STATE");
- }
-
- public String getPassingCar() {
- return bundle.getString("PASSING_CAR");
- }
-
- public String getNoCar() {
- return bundle.getString("NO_CAR");
- }
-
- public String getInTime() {
- return bundle.getString("IN_TIME");
- }
-
- public String getOutTime() {
- return bundle.getString("OUT_TIME");
- }
-
- public String getPlateNumber() {
- return bundle.getString("PLATE_NUMBER");
- }
-
- public String getCarOwner() {
- return bundle.getString("CAR_OWNER");
- }
-
- public String getParkingTime() {
- return bundle.getString("PARKING_TIME");
- }
-
- public String getUserType() {
- return bundle.getString("USER_TYPE");
- }
-
- public String getMonthlyCardUser() {
- return bundle.getString("MONTHLY_CARD_USER");
- }
-
- public String getAnnualCardUser() {
- return bundle.getString("ANNUAL_CARD_USER");
- }
-
- public String getLongTermUser() {
- return bundle.getString("LONG_TERM_USER");
- }
-
- public String getTemporaryUser() {
- return bundle.getString("TEMPORARY_USER");
- }
-
- public String getParkingCharge() {
- return bundle.getString("PARKING_CHARGE");
- }
-
- public String getDaysDue() {
- return bundle.getString("DAYS_DUE");
- }
-
- public String getRemainingParkingSpaces() {
- return bundle.getString("REMAINING_PARKING_SPACES");
- }
-
- public String getVehiclesNotAllowedToPass() {
- return bundle.getString("VEHICLES_NOT_ALLOWED_TO_PASS");
- }
-
- public String getAllowedVehiclesToPass() {
- return bundle.getString("ALLOWED_VEHICLES_TO_PASS");
- }
-
- public String getSetUp() {
- return bundle.getString("SET_UP");
- }
-
- public String getSetUpSuccess() {
- return bundle.getString("SUCCESSFULLY_ISSUED");
- }
-
- public String getSetUpFailed() {
- return bundle.getString("DELIVERY_FAILED");
- }
-
- public String getCostomUserInfo() {
- return bundle.getString("CUSTOM_USER_CLASS");
- }
-
- public String getRemarksInfo() {
- return bundle.getString("REMARKS_INFORMATION");
- }
-
- public String getCostomInfo() {
- return bundle.getString("CUSTOM_INFORMATION");
- }
-
- public String getVTO() {
- return bundle.getString("VTO");
- }
-
- public String getSCADA() {
- return bundle.getString("SCADA");
- }
-
- public String getModifyCardFaceFailed() {
- return bundle.getString("MODIFY_CARD_FACE_FAILED");
- }
-
- public String getRemoveCardFaceFailed() {
- return bundle.getString("REMOVE_CARD_FACE_FAILED");
- }
-
- public String getDownLoadPicture() {
- return bundle.getString("DOWNLOAD_PICTURE");
- }
-
- public String getEnterPicturePath() {
- return bundle.getString("ENTER_PICTURE_PATH");
- }
-
- public String getLoading() {
- return bundle.getString("LOADING");
- }
-
- public String getEndSearch() {
- return bundle.getString("END_SEARCH");
- }
-
- public String getRemoteOpenDoor() {
- return bundle.getString("REMOTE_OPEN_DOOR");
- }
-
- public String getQueryCardExistFailed() {
- return bundle.getString("QUERY_CARD_EXIST_FAILED");
- }
-
- public String getFindCardExist() {
- return bundle.getString("CARD_EXIST");
- }
-
- public String getSCADADeviceList() {
- return bundle.getString("SCADA_DEVICE_LIST");
- }
-
- public String getSCADAPointList() {
- return bundle.getString("SCADA_POINT_LIST");
- }
-
- public String getSCADAAlarmAttachInfo() {
- return bundle.getString("SCADA_ATTACH_ALARM");
- }
-
- public String getSCADAAttachInfo() {
- return bundle.getString("SCADA_ATTACH_INFO");
- }
-
- public String getSCADAAttach() {
- return bundle.getString("SCADA_ATTACH");
- }
-
- public String getListBtn() {
- return bundle.getString("BTN_LIST");
- }
-
- public String getScreenNumber() {
- return bundle.getString("SCREEN_NUMBER");
- }
-
- public String getContain() {
- return bundle.getString("TEXT_CONTENT");
- }
-
- public String getContainType() {
- return bundle.getString("TEXT_CONTENT_TYPE");
- }
-
- public String getContainColor() {
- return bundle.getString("TEXT_CONTENT_COLOR");
- }
-
- public String getScrollType() {
- return bundle.getString("SCROLL_TYPE");
- }
-
- public String getScrollSpeed() {
- return bundle.getString("SCROLL_SPEED");
- }
-
- public String getGreen() {
- return bundle.getString("GREEN");
- }
-
- public String getRed() {
- return bundle.getString("RED");
- }
-
- public String getYellow() {
- return bundle.getString("YELLOW");
- }
-
- public String getWhite() {
- return bundle.getString("WHITE");
- }
-
- public String getOrdinary() {
- return bundle.getString("ORDINARY");
- }
-
- public String getQRCode() {
- return bundle.getString("QR_CODE");
- }
-
- public String getLocalTime() {
- return bundle.getString("LOCAL_TIME");
- }
-
- public String getResource() {
- return bundle.getString("RESOURCE");
- }
-
- public String getNoRolling() {
- return bundle.getString("NOT_ROLLING");
- }
-
- public String getScrollLeftAndRight() {
- return bundle.getString("SCROLL_LEFT_AND_RIGHT");
- }
-
- public String getScrollTopAndDown() {
- return bundle.getString("SCROLL_UP_AND_DOWN");
- }
-
- public String getNumericString() {
- return bundle.getString("NUMBER_STRING");
- }
-
- public String getVoiceText() {
- return bundle.getString("VOICE_TEXT");
- }
-
- public String getIssued() {
- return bundle.getString("ISSUED");
- }
-
- public String getPrompt() {
- return bundle.getString("PROMPT");
- }
-
- public String getDeviceName() {
- return bundle.getString("DEVICE_NAME");
- }
-
- public String getPointID() {
- return bundle.getString("POINT_ID");
- }
-
- public String getPointName() {
- return bundle.getString("POINT_NAME");
- }
-
- public String getIfValidSignalPoint() {
- return bundle.getString("IF_VALID_SIGNAL_POINT");
- }
-
- public String getAlarmDescribe() {
- return bundle.getString("ALARM_DESCRIBE");
- }
-
- public String getAlarmDelay() {
- return bundle.getString("ALARM_DELAY");
- }
-
- public String getAlarmLevel() {
- return bundle.getString("ALARM_LEVEL");
- }
-
- public String getAlarmTime() {
- return bundle.getString("ALARM_TIME");
- }
-
- public String getAlarmType() {
- return bundle.getString("ALARM_TYPE");
- }
-
- public String getCollectTime() {
- return bundle.getString("COLLECT_TIME");
- }
-
- // $FF: synthetic method
- Res(Object x0) {
- this();
- }
-
- public static enum LanguageType {
- English,
- Chinese;
- }
-
- private static class StringBundleHolder {
- private static Res instance = new Res(null);
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/SavePath.java b/inspect-fastcall/src/main/java/com/inspect/access/common/SavePath.java
deleted file mode 100644
index 6dc9a20..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/SavePath.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package com.inspect.access.common;
-
-import com.inspect.access.lib.ToolKits;
-import java.io.File;
-
-public class SavePath {
- String s_captureSavePath;
- String s_imageSavePath;
- String s_recordFileSavePath;
-
- private SavePath() {
- this.s_captureSavePath = "./Capture/" + ToolKits.getDay() + "/";
- this.s_imageSavePath = "./Image/" + ToolKits.getDay() + "/";
- this.s_recordFileSavePath = "./RecordFile/" + ToolKits.getDay() + "/";
- }
-
- public static SavePath getSavePath() {
- return SavePath.SavePathHolder.instance;
- }
-
- public String getSaveCapturePath() {
- File path1 = new File("./Capture/");
- if(!path1.exists()) {
- path1.mkdir();
- }
-
- File path2 = new File(this.s_captureSavePath);
- if(!path2.exists()) {
- path2.mkdir();
- }
-
- String strFileName = path2.getAbsolutePath() + "/" + ToolKits.getDate() + ".jpg";
- return strFileName;
- }
-
- public String getSaveTrafficImagePath() {
- File path1 = new File("./Image/");
- if(!path1.exists()) {
- path1.mkdir();
- }
-
- File path = new File(this.s_imageSavePath);
- if(!path.exists()) {
- path.mkdir();
- }
-
- return this.s_imageSavePath;
- }
-
- public String getSaveRecordFilePath() {
- File path1 = new File("./RecordFile/");
- if(!path1.exists()) {
- path1.mkdir();
- }
-
- File path2 = new File(this.s_recordFileSavePath);
- if(!path2.exists()) {
- path2.mkdir();
- }
-
- String SavedFileName = this.s_recordFileSavePath + ToolKits.getDate() + ".dav";
- return SavedFileName;
- }
-
- // $FF: synthetic method
- SavePath(Object x0) {
- this();
- }
-
- private static class SavePathHolder {
- private static SavePath instance = new SavePath();
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/TimeUtil.java b/inspect-fastcall/src/main/java/com/inspect/access/common/TimeUtil.java
deleted file mode 100644
index 5b1215c..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/TimeUtil.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.inspect.access.common;
-
-public class TimeUtil {
- public static String second2Time(Long second) {
- if(second != null && second.longValue() >= 0L) {
- long h = second.longValue() / 3600L;
- long m = second.longValue() % 3600L / 60L;
- long s = second.longValue() % 60L;
- String str = "";
- if(h > 0L) {
- str = (h < 10L?"0" + h:Long.valueOf(h)) + ":";
- }
-
- str = str + (m < 10L?"0" + m:Long.valueOf(m)) + ":";
- str = str + (s < 10L?"0" + s:Long.valueOf(s));
- return str;
- } else {
- return "00:00";
- }
- }
-
- public static int second2Minute(Long second) {
- return second != null && second.longValue() >= 0L?(int)(second.longValue() / 60L):0;
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/common/WindowCloseListener.java b/inspect-fastcall/src/main/java/com/inspect/access/common/WindowCloseListener.java
deleted file mode 100644
index 99f4dae..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/common/WindowCloseListener.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.inspect.access.common;
-
-public interface WindowCloseListener {
- void windowClosing();
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/connetion/SdkConnectCollection.java b/inspect-fastcall/src/main/java/com/inspect/access/connetion/SdkConnectCollection.java
deleted file mode 100644
index aa1f972..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/connetion/SdkConnectCollection.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.inspect.access.connetion;
-
-import com.inspect.access.module.dhModule;
-
-import java.util.HashMap;
-import java.util.Map;
-
-public class SdkConnectCollection {
- public static final Map poor = new HashMap<>();
- public static final String SDK_QUEUE_ = "SDK_QUEUE_";
- public static final String SDK_CONNECT_ = "SDK_CONNECT_";
- public static final String SDK_PROCESSING = "SDK_PROCESSING";
- public static final int SDK_PROCESSING_EXPIRE = 10;
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/controller/AccessController.java b/inspect-fastcall/src/main/java/com/inspect/access/controller/AccessController.java
deleted file mode 100644
index 93a6594..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/controller/AccessController.java
+++ /dev/null
@@ -1,261 +0,0 @@
-package com.inspect.access.controller;
-
-import com.inspect.access.base.model.InfraredModel;
-import com.inspect.access.base.model.LoginModel;
-import com.inspect.access.base.model.RecordCompleteModel;
-import com.inspect.access.base.model.RuleCollectionModel;
-import com.inspect.access.base.model.TemperPortModel;
-import com.inspect.access.base.vo.DeviceStorageVo;
-import com.inspect.access.base.vo.OnlineStatsVo;
-import com.inspect.access.base.vo.RecordCompleteVo;
-import com.inspect.access.base.vo.RecordCycleVo;
-import com.inspect.access.common.TimeUtil;
-import com.inspect.access.connetion.SdkConnectCollection;
-import com.inspect.access.lib.NetSDKLib;
-import com.inspect.access.lib.structure.NET_OUT_STORAGE_DEV_INFOS;
-import com.inspect.access.lib.structure.NET_STORAGE_DEVICE;
-import com.inspect.access.module.DeviceModule;
-import com.inspect.access.module.LoginModule;
-import com.inspect.access.module.ThermalCameraModule;
-import com.inspect.access.module.dhModule;
-import com.inspect.base.core.domain.Response;
-import com.inspect.base.core.exception.ServiceException;
-import com.inspect.base.core.utils.DateUtils;
-import com.inspect.base.core.utils.StringUtils;
-import com.inspect.base.redis.service.RedisService;
-
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.atomic.AtomicLong;
-import java.util.stream.Collectors;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-@RestController
-@RequestMapping({"/access"})
-public class AccessController {
- private final Logger log = LoggerFactory.getLogger(AccessController.class);
-
- private final RedisService redisService;
- private final String REDIS_ACCESS_INFRARED_RESULT = "REDIS_ACCESS_INFRARED_RESULT";
-
- public AccessController(RedisService redisService) {
- this.redisService = redisService;
- }
-
- @PostMapping({"query_temper_point"})
- public Response queryTemperPoint(@RequestBody TemperPortModel temperPortModel) {
- List list = new ArrayList<>();
- this.connect(temperPortModel, (module) -> {
- NetSDKLib.NET_RADIOMETRYINFO net_radiometryinfo
- = ThermalCameraModule.queryPointTemper(
- temperPortModel.getnChannel(),
- temperPortModel.getX(),
- temperPortModel.getY());
- list.add(net_radiometryinfo);
- });
- return Response.ok(list.get(0).fTemperMax);
- }
-
- @PostMapping({"set_measure_param"})
- public Response setMeasureParam(@RequestBody RuleCollectionModel ruleCollectionModel) {
- this.connect(ruleCollectionModel, (module) -> {
- ThermalCameraModule.saveRules(ruleCollectionModel.getRuleModels());
- });
- return Response.ok();
- }
-
- @PostMapping({"remove_measure_param"})
- public Response removeMeasureParam(@RequestBody RuleCollectionModel ruleCollectionModel) {
- this.connect(ruleCollectionModel, (module) -> {
- ThermalCameraModule.removeRulesByPresetIds(ruleCollectionModel.getRuleModels().stream().map((item) -> {
- return item.nPresetId;
- }).collect(Collectors.toList()));
- });
- return Response.ok();
- }
-
- @PostMapping({"online_stats"})
- public Response> online(@RequestBody LoginModel loginModel) {
- List list = new ArrayList<>();
- this.connect(loginModel, (module) -> {
- NetSDKLib.NET_OUT_GET_CAMERA_STATEINFO info = DeviceModule.QueryCameraStatus();
- list.add(info);
- });
- NetSDKLib.NET_CAMERA_STATE_INFO[] pCameraStateInfo = list.get(0).pCameraStateInfo;
- List onlineStatsVos = new ArrayList<>();
- for (NetSDKLib.NET_CAMERA_STATE_INFO info : pCameraStateInfo) {
- if (onlineStatsVos.stream().noneMatch((item) -> {
- return item.getChannelSerial() == info.nChannel;
- })) {
- onlineStatsVos.add(new OnlineStatsVo(info.nChannel, info.emConnectionState));
- }
- }
-
- return Response.ok(onlineStatsVos);
- }
-
- @PostMapping({"storage"})
- public Response storage(@RequestBody LoginModel loginModel) {
- List list = new ArrayList<>();
- this.connect(loginModel, (module) -> {
- NET_OUT_STORAGE_DEV_INFOS info = DeviceModule.QueryStorageInfo();
- list.add(info);
- });
- NET_STORAGE_DEVICE stuStorageDevInfo = list.get(0).stuStorageDevInfos[0];
- return Response.ok(new DeviceStorageVo(stuStorageDevInfo.nTotalSpace, stuStorageDevInfo.nFreeSpace));
- }
-
- @PostMapping({"record"})
- public Response record(@RequestBody RecordCompleteModel recordModel) throws Exception {
- log.info("[ACCESS] Record param: {}", recordModel);
- List list = new ArrayList<>();
- List cycleList = new ArrayList<>();
- this.connect(recordModel, (module) -> {
- List netRecordFileInfos = module.queryAllRecordFile(recordModel.getDate());
- list.addAll(netRecordFileInfos);
- List cfgRecordInfos = module.queryAllRecordCycle();
- cycleList.addAll(cfgRecordInfos.stream().map((item) -> {
- return new RecordCycleVo(item.nChannelID, item.nPreRecTime);
- }).distinct().collect(Collectors.toList()));
- });
- Calendar cal = Calendar.getInstance();
- Map channelAndDuration = new HashMap<>();
- for (NetSDKLib.NET_RECORDFILE_INFO info : list) {
- if (!channelAndDuration.containsKey(info.ch)) {
- channelAndDuration.put(info.ch, new AtomicLong(0L));
- }
-
- Date endTime = DateUtils.dateTime(DateUtils.YYYYMMDDHHMMSS, info.endtime.toString());
- cal.setTime(endTime);
- long end = cal.getTimeInMillis();
- Date startTime = DateUtils.dateTime(DateUtils.YYYYMMDDHHMMSS, info.starttime.toString());
- cal.setTime(startTime);
- long start = cal.getTimeInMillis();
- long remain = end - start;
- (channelAndDuration.get(info.ch)).addAndGet(remain);
- }
-
- RecordCompleteVo recordVo = new RecordCompleteVo();
- recordVo.setDuration(TimeUtil.second2Minute(channelAndDuration.get(0).get() / 1000L));
- recordVo.setComplete((int) Math.round((double) channelAndDuration.get(0).get() / 8.64E7D * 100.0D));
- recordVo.setCycle(cycleList.get(0).getCycle());
- return Response.ok(recordVo);
- }
-
- @PostMapping({"infrared"})
- public Response infrared(@RequestBody InfraredModel infraredModel) {
- (new Thread(() -> {
- this.connect(infraredModel, (module) -> {
- module.setInfraredModel(infraredModel);
- module.getCbNotify().setFilePath(infraredModel.getInfraredFileNameGenerator().toStringNoSuffix());
- module.getCbNotify().setParseInfraredSuccess(false);
- module.attach(1);
- module.fetch(1);
- int expire = 0;
-
- while (!module.getCbNotify().isParseInfraredSuccess()) {
- try {
- Thread.sleep(1000L);
- ++expire;
- if (module.getCbNotify().isProcessFail()) {
- log.warn("[ACCESS] Empty infra pic, retry it!");
- module.getCbNotify().setProcessFail(false);
- module.fetch(1);
- }
-
- if (expire == 30) {
- break;
- }
- } catch (InterruptedException var5) {
- ;
- }
- }
-
- log.info("[ACCESS] Infra pic, file path: {}", module.getCbNotify().getFilePath());
- redisService.setCacheObject(REDIS_ACCESS_INFRARED_RESULT, module.getCbNotify().getFilePath() + ".jpg");
- });
- })).start();
- return Response.ok();
- }
-
- public void connect(LoginModel loginModel, AccessController.JoinCut joinCut) {
- boolean exists = SdkConnectCollection.poor.containsKey(loginModel.getIp());
- String uuid = UUID.randomUUID().toString();
- String ip = loginModel.getIp();
- dhModule module;
- if (exists) {
- module = SdkConnectCollection.poor.get(ip);
- } else {
- long start = System.currentTimeMillis();
- module = new dhModule();
- LoginModule.init(module.disConnect, module.haveReConnect);
- module.login(ip, loginModel.getPort(), loginModel.getUsername(), loginModel.getPassword());
- SdkConnectCollection.poor.put(ip, module);
- log.info("[ACCESS] SDK connect cost: {}", (System.currentTimeMillis() - start));
- }
-
- String queue = SdkConnectCollection.SDK_QUEUE_ + ip;
- String connect = SdkConnectCollection.SDK_CONNECT_ + uuid;
- redisService.redisTemplate.opsForList().rightPush(queue, uuid);
- redisService.redisTemplate.opsForValue().set(connect, 1);
- redisService.expire(connect, SdkConnectCollection.SDK_PROCESSING_EXPIRE, TimeUnit.SECONDS);
-
- while (redisService.hasKey(connect)) {
- if (redisService.hasKey(SdkConnectCollection.SDK_PROCESSING)) {
- try {
- Thread.sleep(1000L);
- } catch (InterruptedException var13) {
- ;
- }
- } else {
- String key = (String) redisService.redisTemplate.opsForList().index(queue, 0L);
- if (!StringUtils.isEmpty(key) && key.equals(uuid)) {
- redisService.redisTemplate.opsForValue().set(SdkConnectCollection.SDK_PROCESSING, 1);
- redisService.expire(SdkConnectCollection.SDK_PROCESSING, 10L, TimeUnit.SECONDS);
- redisService.redisTemplate.opsForList().leftPop(queue);
- long start = System.currentTimeMillis();
- joinCut.run(module);
- log.info("[ACCESS] SDK cost: {}", (System.currentTimeMillis() - start));
- redisService.deleteObject(SdkConnectCollection.SDK_PROCESSING);
- return;
- }
-
- try {
- Thread.sleep(1000L);
- } catch (InterruptedException var14) {
- ;
- }
- }
- }
-
- redisService.redisTemplate.opsForList().remove(queue, 1L, uuid);
- throw new ServiceException("SDK Conn Expire!");
- }
-
- @GetMapping({"test"})
- public Response test() {
- log.info("[ACCESS] test!!!");
- RecordCompleteModel recordCompleteModel = new RecordCompleteModel();
- recordCompleteModel.init("www.weaxin.com", '鎑', "admin", "xg123456");
- recordCompleteModel.setDate(new Date(System.currentTimeMillis() - 86400000L));
- return this.storage(recordCompleteModel);
- }
-
- public interface JoinCut {
- void run(dhModule module);
- }
-
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/druid/ConnectionPoor.java b/inspect-fastcall/src/main/java/com/inspect/access/druid/ConnectionPoor.java
deleted file mode 100644
index bb9a239..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/druid/ConnectionPoor.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package com.inspect.access.druid;
-
-public class ConnectionPoor {
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/lib/DynamicParseUtil.java b/inspect-fastcall/src/main/java/com/inspect/access/lib/DynamicParseUtil.java
deleted file mode 100644
index 708b0a6..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/lib/DynamicParseUtil.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package com.inspect.access.lib;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-public class DynamicParseUtil {
- private DynamicParseUtil.DynamicLibParseHandler handler;
- private SAXParserFactory saxParserFactory;
- private SAXParser saxParser;
-
- public String compareLibName(String currentSystem, String libName) {
- String dynamicLibName = libName;
- List libs = this.handler.getLibsBySystem(currentSystem);
- if (currentSystem.toLowerCase().contains("win")) {
- return this.findLibs(libs, libName);
- } else {
- if (libName.startsWith("com/netsdk/lib")) {
- dynamicLibName = libName.substring(3);
- }
-
- return this.findLibs(libs, dynamicLibName);
- }
- }
-
- private String findLibs(List libs, String libName) {
- Iterator iterator = libs.iterator();
- String lib;
- do {
- if (!iterator.hasNext()) {
- return "";
- }
-
- lib = iterator.next();
- } while (!libName.equalsIgnoreCase(lib));
-
- return lib;
- }
-
- public List getLibsSystem(String system) {
- return this.handler.getLibsBySystem(system);
- }
-
- private DynamicParseUtil() throws ParserConfigurationException {
- this.saxParserFactory = SAXParserFactory.newInstance();
-
- try {
- this.saxParser = this.saxParserFactory.newSAXParser();
- this.handler = new DynamicParseUtil.DynamicLibParseHandler();
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- }
-
- public DynamicParseUtil(InputStream inputSteam) throws ParserConfigurationException, IOException, SAXException {
- this();
- this.saxParser.parse(inputSteam, this.handler);
- }
-
- private class DynamicLibParseHandler extends DefaultHandler {
- private HashMap> dynamics;
- private List systems;
- private String currentDynamicSystem;
- private List libs;
-
- private DynamicLibParseHandler() {
- this.dynamics = new HashMap<>();
- this.systems = Arrays.asList("win64", "win32", "linux64", "linux32", "mac64", "linuxARM");
- }
-
- public List getLibsBySystem(String system) {
- return (List) this.dynamics.get(system);
- }
-
- public void startDocument() throws SAXException {
- super.startDocument();
- }
-
- public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
- super.startElement(uri, localName, qName, attributes);
- if (this.systems.contains(qName)) {
- this.currentDynamicSystem = qName;
- if (this.libs == null) {
- this.libs = new ArrayList<>();
- }
- }
-
- }
-
- public void endElement(String uri, String localName, String qName) throws SAXException {
- super.endElement(uri, localName, qName);
- if (this.systems.contains(qName)) {
- this.dynamics.put(this.currentDynamicSystem, this.libs);
- this.libs = null;
- }
-
- }
-
- public void characters(char[] ch, int start, int length) throws SAXException {
- super.characters(ch, start, length);
- String lib = new String(ch, start, length);
- if (!lib.trim().isEmpty()) {
- this.libs.add(lib);
- }
-
- }
-
- // $FF: synthetic method
- DynamicLibParseHandler(Object x1) {
- this();
- }
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/lib/ImageAlgLib.java b/inspect-fastcall/src/main/java/com/inspect/access/lib/ImageAlgLib.java
deleted file mode 100644
index 348341c..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/lib/ImageAlgLib.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.inspect.access.lib;
-
-import com.sun.jna.Library;
-import com.sun.jna.Native;
-
-public interface ImageAlgLib extends Library {
- ImageAlgLib IMAGE_ALG_INSTANCE = Native.load(LibraryLoad.getLoadLibrary("ImageAlg"), ImageAlgLib.class);
-
- int drcTable(short[] pGrayImg, short nWidth, short nHeight, int flag, byte[] pYData, short[] params);
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/lib/LastError.java b/inspect-fastcall/src/main/java/com/inspect/access/lib/LastError.java
deleted file mode 100644
index 1e21967..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/lib/LastError.java
+++ /dev/null
@@ -1,471 +0,0 @@
-package com.inspect.access.lib;
-
-public class LastError {
- public static final int NET_NOERROR = 0;
- public static final int NET_ERROR = -1;
- public static final int NET_SYSTEM_ERROR = -2147483647;
- public static final int NET_NETWORK_ERROR = -2147483646;
- public static final int NET_DEV_VER_NOMATCH = -2147483645;
- public static final int NET_INVALID_HANDLE = -2147483644;
- public static final int NET_OPEN_CHANNEL_ERROR = -2147483643;
- public static final int NET_CLOSE_CHANNEL_ERROR = -2147483642;
- public static final int NET_ILLEGAL_PARAM = -2147483641;
- public static final int NET_SDK_INIT_ERROR = -2147483640;
- public static final int NET_SDK_UNINIT_ERROR = -2147483639;
- public static final int NET_RENDER_OPEN_ERROR = -2147483638;
- public static final int NET_DEC_OPEN_ERROR = -2147483637;
- public static final int NET_DEC_CLOSE_ERROR = -2147483636;
- public static final int NET_MULTIPLAY_NOCHANNEL = -2147483635;
- public static final int NET_TALK_INIT_ERROR = -2147483634;
- public static final int NET_TALK_NOT_INIT = -2147483633;
- public static final int NET_TALK_SENDDATA_ERROR = -2147483632;
- public static final int NET_REAL_ALREADY_SAVING = -2147483631;
- public static final int NET_NOT_SAVING = -2147483630;
- public static final int NET_OPEN_FILE_ERROR = -2147483629;
- public static final int NET_PTZ_SET_TIMER_ERROR = -2147483628;
- public static final int NET_RETURN_DATA_ERROR = -2147483627;
- public static final int NET_INSUFFICIENT_BUFFER = -2147483626;
- public static final int NET_NOT_SUPPORTED = -2147483625;
- public static final int NET_NO_RECORD_FOUND = -2147483624;
- public static final int NET_NOT_AUTHORIZED = -2147483623;
- public static final int NET_NOT_NOW = -2147483622;
- public static final int NET_NO_TALK_CHANNEL = -2147483621;
- public static final int NET_NO_AUDIO = -2147483620;
- public static final int NET_NO_INIT = -2147483619;
- public static final int NET_DOWNLOAD_END = -2147483618;
- public static final int NET_EMPTY_LIST = -2147483617;
- public static final int NET_ERROR_GETCFG_SYSATTR = -2147483616;
- public static final int NET_ERROR_GETCFG_SERIAL = -2147483615;
- public static final int NET_ERROR_GETCFG_GENERAL = -2147483614;
- public static final int NET_ERROR_GETCFG_DSPCAP = -2147483613;
- public static final int NET_ERROR_GETCFG_NETCFG = -2147483612;
- public static final int NET_ERROR_GETCFG_CHANNAME = -2147483611;
- public static final int NET_ERROR_GETCFG_VIDEO = -2147483610;
- public static final int NET_ERROR_GETCFG_RECORD = -2147483609;
- public static final int NET_ERROR_GETCFG_PRONAME = -2147483608;
- public static final int NET_ERROR_GETCFG_FUNCNAME = -2147483607;
- public static final int NET_ERROR_GETCFG_485DECODER = -2147483606;
- public static final int NET_ERROR_GETCFG_232COM = -2147483605;
- public static final int NET_ERROR_GETCFG_ALARMIN = -2147483604;
- public static final int NET_ERROR_GETCFG_ALARMDET = -2147483603;
- public static final int NET_ERROR_GETCFG_SYSTIME = -2147483602;
- public static final int NET_ERROR_GETCFG_PREVIEW = -2147483601;
- public static final int NET_ERROR_GETCFG_AUTOMT = -2147483600;
- public static final int NET_ERROR_GETCFG_VIDEOMTRX = -2147483599;
- public static final int NET_ERROR_GETCFG_COVER = -2147483598;
- public static final int NET_ERROR_GETCFG_WATERMAKE = -2147483597;
- public static final int NET_ERROR_GETCFG_MULTICAST = -2147483596;
- public static final int NET_ERROR_SETCFG_GENERAL = -2147483593;
- public static final int NET_ERROR_SETCFG_NETCFG = -2147483592;
- public static final int NET_ERROR_SETCFG_CHANNAME = -2147483591;
- public static final int NET_ERROR_SETCFG_VIDEO = -2147483590;
- public static final int NET_ERROR_SETCFG_RECORD = -2147483589;
- public static final int NET_ERROR_SETCFG_485DECODER = -2147483588;
- public static final int NET_ERROR_SETCFG_232COM = -2147483587;
- public static final int NET_ERROR_SETCFG_ALARMIN = -2147483586;
- public static final int NET_ERROR_SETCFG_ALARMDET = -2147483585;
- public static final int NET_ERROR_SETCFG_SYSTIME = -2147483584;
- public static final int NET_ERROR_SETCFG_PREVIEW = -2147483583;
- public static final int NET_ERROR_SETCFG_AUTOMT = -2147483582;
- public static final int NET_ERROR_SETCFG_VIDEOMTRX = -2147483581;
- public static final int NET_ERROR_SETCFG_COVER = -2147483580;
- public static final int NET_ERROR_SETCFG_WATERMAKE = -2147483579;
- public static final int NET_ERROR_SETCFG_WLAN = -2147483578;
- public static final int NET_ERROR_SETCFG_WLANDEV = -2147483577;
- public static final int NET_ERROR_SETCFG_REGISTER = -2147483576;
- public static final int NET_ERROR_SETCFG_CAMERA = -2147483575;
- public static final int NET_ERROR_SETCFG_INFRARED = -2147483574;
- public static final int NET_ERROR_SETCFG_SOUNDALARM = -2147483573;
- public static final int NET_ERROR_SETCFG_STORAGE = -2147483572;
- public static final int NET_AUDIOENCODE_NOTINIT = -2147483571;
- public static final int NET_DATA_TOOLONGH = -2147483570;
- public static final int NET_UNSUPPORTED = -2147483569;
- public static final int NET_DEVICE_BUSY = -2147483568;
- public static final int NET_SERVER_STARTED = -2147483567;
- public static final int NET_SERVER_STOPPED = -2147483566;
- public static final int NET_LISTER_INCORRECT_SERIAL = -2147483565;
- public static final int NET_QUERY_DISKINFO_FAILED = -2147483564;
- public static final int NET_ERROR_GETCFG_SESSION = -2147483563;
- public static final int NET_USER_FLASEPWD_TRYTIME = -2147483562;
- public static final int NET_LOGIN_ERROR_PASSWORD = -2147483548;
- public static final int NET_LOGIN_ERROR_USER = -2147483547;
- public static final int NET_LOGIN_ERROR_TIMEOUT = -2147483546;
- public static final int NET_LOGIN_ERROR_RELOGGIN = -2147483545;
- public static final int NET_LOGIN_ERROR_LOCKED = -2147483544;
- public static final int NET_LOGIN_ERROR_BLACKLIST = -2147483543;
- public static final int NET_LOGIN_ERROR_BUSY = -2147483542;
- public static final int NET_LOGIN_ERROR_CONNECT = -2147483541;
- public static final int NET_LOGIN_ERROR_NETWORK = -2147483540;
- public static final int NET_LOGIN_ERROR_SUBCONNECT = -2147483539;
- public static final int NET_LOGIN_ERROR_MAXCONNECT = -2147483538;
- public static final int NET_LOGIN_ERROR_PROTOCOL3_ONLY = -2147483537;
- public static final int NET_LOGIN_ERROR_UKEY_LOST = -2147483536;
- public static final int NET_LOGIN_ERROR_NO_AUTHORIZED = -2147483535;
- public static final int NET_LOGIN_ERROR_USER_OR_PASSOWRD = -2147483531;
- public static final int NET_LOGIN_ERROR_DEVICE_NOT_INIT = -2147483530;
- public static final int NET_RENDER_SOUND_ON_ERROR = -2147483528;
- public static final int NET_RENDER_SOUND_OFF_ERROR = -2147483527;
- public static final int NET_RENDER_SET_VOLUME_ERROR = -2147483526;
- public static final int NET_RENDER_ADJUST_ERROR = -2147483525;
- public static final int NET_RENDER_PAUSE_ERROR = -2147483524;
- public static final int NET_RENDER_SNAP_ERROR = -2147483523;
- public static final int NET_RENDER_STEP_ERROR = -2147483522;
- public static final int NET_RENDER_FRAMERATE_ERROR = -2147483521;
- public static final int NET_RENDER_DISPLAYREGION_ERROR = -2147483520;
- public static final int NET_RENDER_GETOSDTIME_ERROR = -2147483519;
- public static final int NET_GROUP_EXIST = -2147483508;
- public static final int NET_GROUP_NOEXIST = -2147483507;
- public static final int NET_GROUP_RIGHTOVER = -2147483506;
- public static final int NET_GROUP_HAVEUSER = -2147483505;
- public static final int NET_GROUP_RIGHTUSE = -2147483504;
- public static final int NET_GROUP_SAMENAME = -2147483503;
- public static final int NET_USER_EXIST = -2147483502;
- public static final int NET_USER_NOEXIST = -2147483501;
- public static final int NET_USER_RIGHTOVER = -2147483500;
- public static final int NET_USER_PWD = -2147483499;
- public static final int NET_USER_FLASEPWD = -2147483498;
- public static final int NET_USER_NOMATCHING = -2147483497;
- public static final int NET_USER_INUSE = -2147483496;
- public static final int NET_ERROR_GETCFG_ETHERNET = -2147483348;
- public static final int NET_ERROR_GETCFG_WLAN = -2147483347;
- public static final int NET_ERROR_GETCFG_WLANDEV = -2147483346;
- public static final int NET_ERROR_GETCFG_REGISTER = -2147483345;
- public static final int NET_ERROR_GETCFG_CAMERA = -2147483344;
- public static final int NET_ERROR_GETCFG_INFRARED = -2147483343;
- public static final int NET_ERROR_GETCFG_SOUNDALARM = -2147483342;
- public static final int NET_ERROR_GETCFG_STORAGE = -2147483341;
- public static final int NET_ERROR_GETCFG_MAIL = -2147483340;
- public static final int NET_CONFIG_DEVBUSY = -2147483339;
- public static final int NET_CONFIG_DATAILLEGAL = -2147483338;
- public static final int NET_ERROR_GETCFG_DST = -2147483337;
- public static final int NET_ERROR_SETCFG_DST = -2147483336;
- public static final int NET_ERROR_GETCFG_VIDEO_OSD = -2147483335;
- public static final int NET_ERROR_SETCFG_VIDEO_OSD = -2147483334;
- public static final int NET_ERROR_GETCFG_GPRSCDMA = -2147483333;
- public static final int NET_ERROR_SETCFG_GPRSCDMA = -2147483332;
- public static final int NET_ERROR_GETCFG_IPFILTER = -2147483331;
- public static final int NET_ERROR_SETCFG_IPFILTER = -2147483330;
- public static final int NET_ERROR_GETCFG_TALKENCODE = -2147483329;
- public static final int NET_ERROR_SETCFG_TALKENCODE = -2147483328;
- public static final int NET_ERROR_GETCFG_RECORDLEN = -2147483327;
- public static final int NET_ERROR_SETCFG_RECORDLEN = -2147483326;
- public static final int NET_DONT_SUPPORT_SUBAREA = -2147483325;
- public static final int NET_ERROR_GET_AUTOREGSERVER = -2147483324;
- public static final int NET_ERROR_CONTROL_AUTOREGISTER = -2147483323;
- public static final int NET_ERROR_DISCONNECT_AUTOREGISTER = -2147483322;
- public static final int NET_ERROR_GETCFG_MMS = -2147483321;
- public static final int NET_ERROR_SETCFG_MMS = -2147483320;
- public static final int NET_ERROR_GETCFG_SMSACTIVATION = -2147483319;
- public static final int NET_ERROR_SETCFG_SMSACTIVATION = -2147483318;
- public static final int NET_ERROR_GETCFG_DIALINACTIVATION = -2147483317;
- public static final int NET_ERROR_SETCFG_DIALINACTIVATION = -2147483316;
- public static final int NET_ERROR_GETCFG_VIDEOOUT = -2147483315;
- public static final int NET_ERROR_SETCFG_VIDEOOUT = -2147483314;
- public static final int NET_ERROR_GETCFG_OSDENABLE = -2147483313;
- public static final int NET_ERROR_SETCFG_OSDENABLE = -2147483312;
- public static final int NET_ERROR_SETCFG_ENCODERINFO = -2147483311;
- public static final int NET_ERROR_GETCFG_TVADJUST = -2147483310;
- public static final int NET_ERROR_SETCFG_TVADJUST = -2147483309;
- public static final int NET_ERROR_CONNECT_FAILED = -2147483308;
- public static final int NET_ERROR_SETCFG_BURNFILE = -2147483307;
- public static final int NET_ERROR_SNIFFER_GETCFG = -2147483306;
- public static final int NET_ERROR_SNIFFER_SETCFG = -2147483305;
- public static final int NET_ERROR_DOWNLOADRATE_GETCFG = -2147483304;
- public static final int NET_ERROR_DOWNLOADRATE_SETCFG = -2147483303;
- public static final int NET_ERROR_SEARCH_TRANSCOM = -2147483302;
- public static final int NET_ERROR_GETCFG_POINT = -2147483301;
- public static final int NET_ERROR_SETCFG_POINT = -2147483300;
- public static final int NET_SDK_LOGOUT_ERROR = -2147483299;
- public static final int NET_ERROR_GET_VEHICLE_CFG = -2147483298;
- public static final int NET_ERROR_SET_VEHICLE_CFG = -2147483297;
- public static final int NET_ERROR_GET_ATM_OVERLAY_CFG = -2147483296;
- public static final int NET_ERROR_SET_ATM_OVERLAY_CFG = -2147483295;
- public static final int NET_ERROR_GET_ATM_OVERLAY_ABILITY = -2147483294;
- public static final int NET_ERROR_GET_DECODER_TOUR_CFG = -2147483293;
- public static final int NET_ERROR_SET_DECODER_TOUR_CFG = -2147483292;
- public static final int NET_ERROR_CTRL_DECODER_TOUR = -2147483291;
- public static final int NET_GROUP_OVERSUPPORTNUM = -2147483290;
- public static final int NET_USER_OVERSUPPORTNUM = -2147483289;
- public static final int NET_ERROR_GET_SIP_CFG = -2147483280;
- public static final int NET_ERROR_SET_SIP_CFG = -2147483279;
- public static final int NET_ERROR_GET_SIP_ABILITY = -2147483278;
- public static final int NET_ERROR_GET_WIFI_AP_CFG = -2147483277;
- public static final int NET_ERROR_SET_WIFI_AP_CFG = -2147483276;
- public static final int NET_ERROR_GET_DECODE_POLICY = -2147483275;
- public static final int NET_ERROR_SET_DECODE_POLICY = -2147483274;
- public static final int NET_ERROR_TALK_REJECT = -2147483273;
- public static final int NET_ERROR_TALK_OPENED = -2147483272;
- public static final int NET_ERROR_TALK_RESOURCE_CONFLICIT = -2147483271;
- public static final int NET_ERROR_TALK_UNSUPPORTED_ENCODE = -2147483270;
- public static final int NET_ERROR_TALK_RIGHTLESS = -2147483269;
- public static final int NET_ERROR_TALK_FAILED = -2147483268;
- public static final int NET_ERROR_GET_MACHINE_CFG = -2147483267;
- public static final int NET_ERROR_SET_MACHINE_CFG = -2147483266;
- public static final int NET_ERROR_GET_DATA_FAILED = -2147483265;
- public static final int NET_ERROR_MAC_VALIDATE_FAILED = -2147483264;
- public static final int NET_ERROR_GET_INSTANCE = -2147483263;
- public static final int NET_ERROR_JSON_REQUEST = -2147483262;
- public static final int NET_ERROR_JSON_RESPONSE = -2147483261;
- public static final int NET_ERROR_VERSION_HIGHER = -2147483260;
- public static final int NET_SPARE_NO_CAPACITY = -2147483259;
- public static final int NET_ERROR_SOURCE_IN_USE = -2147483258;
- public static final int NET_ERROR_REAVE = -2147483257;
- public static final int NET_ERROR_NETFORBID = -2147483256;
- public static final int NET_ERROR_GETCFG_MACFILTER = -2147483255;
- public static final int NET_ERROR_SETCFG_MACFILTER = -2147483254;
- public static final int NET_ERROR_GETCFG_IPMACFILTER = -2147483253;
- public static final int NET_ERROR_SETCFG_IPMACFILTER = -2147483252;
- public static final int NET_ERROR_OPERATION_OVERTIME = -2147483251;
- public static final int NET_ERROR_SENIOR_VALIDATE_FAILED = -2147483250;
- public static final int NET_ERROR_DEVICE_ID_NOT_EXIST = -2147483249;
- public static final int NET_ERROR_UNSUPPORTED = -2147483248;
- public static final int NET_ERROR_PROXY_DLLLOAD = -2147483247;
- public static final int NET_ERROR_PROXY_ILLEGAL_PARAM = -2147483246;
- public static final int NET_ERROR_PROXY_INVALID_HANDLE = -2147483245;
- public static final int NET_ERROR_PROXY_LOGIN_DEVICE_ERROR = -2147483244;
- public static final int NET_ERROR_PROXY_START_SERVER_ERROR = -2147483243;
- public static final int NET_ERROR_SPEAK_FAILED = -2147483242;
- public static final int NET_ERROR_NOT_SUPPORT_F6 = -2147483241;
- public static final int NET_ERROR_CD_UNREADY = -2147483240;
- public static final int NET_ERROR_DIR_NOT_EXIST = -2147483239;
- public static final int NET_ERROR_UNSUPPORTED_SPLIT_MODE = -2147483238;
- public static final int NET_ERROR_OPEN_WND_PARAM = -2147483237;
- public static final int NET_ERROR_LIMITED_WND_COUNT = -2147483236;
- public static final int NET_ERROR_UNMATCHED_REQUEST = -2147483235;
- public static final int NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR = -2147483234;
- public static final int NET_ERROR_UPGRADE_FAILED = -2147483233;
- public static final int NET_ERROR_NO_TARGET_DEVICE = -2147483232;
- public static final int NET_ERROR_NO_VERIFY_DEVICE = -2147483231;
- public static final int NET_ERROR_CASCADE_RIGHTLESS = -2147483230;
- public static final int NET_ERROR_LOW_PRIORITY = -2147483229;
- public static final int NET_ERROR_REMOTE_REQUEST_TIMEOUT = -2147483228;
- public static final int NET_ERROR_LIMITED_INPUT_SOURCE = -2147483227;
- public static final int NET_ERROR_SET_LOG_PRINT_INFO = -2147483226;
- public static final int NET_ERROR_PARAM_DWSIZE_ERROR = -2147483225;
- public static final int NET_ERROR_LIMITED_MONITORWALL_COUNT = -2147483224;
- public static final int NET_ERROR_PART_PROCESS_FAILED = -2147483223;
- public static final int NET_ERROR_TARGET_NOT_SUPPORT = -2147483222;
- public static final int NET_ERROR_VISITE_FILE = -2147483138;
- public static final int NET_ERROR_DEVICE_STATUS_BUSY = -2147483137;
- public static final int NET_USER_PWD_NOT_AUTHORIZED = -2147483136;
- public static final int NET_USER_PWD_NOT_STRONG = -2147483135;
- public static final int NET_ERROR_NO_SUCH_CONFIG = -2147483134;
- public static final int NET_ERROR_AUDIO_RECORD_FAILED = -2147483133;
- public static final int NET_ERROR_SEND_DATA_FAILED = -2147483132;
- public static final int NET_ERROR_OBSOLESCENT_INTERFACE = -2147483131;
- public static final int NET_ERROR_INSUFFICIENT_INTERAL_BUF = -2147483130;
- public static final int NET_ERROR_NEED_ENCRYPTION_PASSWORD = -2147483129;
- public static final int NET_ERROR_NOSUPPORT_RECORD = -2147483128;
- public static final int NET_ERROR_SERIALIZE_ERROR = -2147482638;
- public static final int NET_ERROR_DESERIALIZE_ERROR = -2147482637;
- public static final int NET_ERROR_LOWRATEWPAN_ID_EXISTED = -2147482636;
- public static final int NET_ERROR_LOWRATEWPAN_ID_LIMIT = -2147482635;
- public static final int NET_ERROR_LOWRATEWPAN_ID_ABNORMAL = -2147482634;
- public static final int NET_ERROR_ENCRYPT = -2147482633;
- public static final int NET_ERROR_PWD_ILLEGAL = -2147482632;
- public static final int NET_ERROR_DEVICE_ALREADY_INIT = -2147482631;
- public static final int NET_ERROR_SECURITY_CODE = -2147482630;
- public static final int NET_ERROR_SECURITY_CODE_TIMEOUT = -2147482629;
- public static final int NET_ERROR_GET_PWD_SPECI = -2147482628;
- public static final int NET_ERROR_NO_AUTHORITY_OF_OPERATION = -2147482627;
- public static final int NET_ERROR_DECRYPT = -2147482626;
- public static final int NET_ERROR_2D_CODE = -2147482625;
- public static final int NET_ERROR_INVALID_REQUEST = -2147482624;
- public static final int NET_ERROR_PWD_RESET_DISABLE = -2147482623;
- public static final int NET_ERROR_PLAY_PRIVATE_DATA = -2147482622;
- public static final int NET_ERROR_ROBOT_OPERATE_FAILED = -2147482621;
- public static final int NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT = -2147482620;
- public static final int NET_ERROR_USERID_INVALID = -2147482619;
- public static final int NET_ERROR_EXTRACTFEATURE_FAILED = -2147482618;
- public static final int NET_ERROR_PHOTO_EXIST = -2147482617;
- public static final int NET_ERROR_PHOTO_OVERFLOW = -2147482616;
- public static final int NET_ERROR_CHANNEL_ALREADY_OPENED = -2147482615;
- public static final int NET_ERROR_CREATE_SOCKET = -2147482614;
- public static final int NET_ERROR_CHANNEL_NUM = -2147482613;
- public static final int NET_ERROR_PHOTO_FORMAT = -2147482612;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_INTERNAL_ERROR = -2147482611;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_GET_ID_FAILED = -2147482610;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_IMPORT_ILLEGAL = -2147482609;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_SN_ERROR = -2147482608;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_COMMON_NAME_ILLEGAL = -2147482607;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_NO_ROOT_CERT = -2147482606;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_REVOKED = -2147482605;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_INVALID = -2147482604;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_ERROR_SIGN = -2147482603;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_COUNTS_UPPER_LIMIT = -2147482602;
- public static final int NET_ERROR_DIGITAL_CERTIFICATE_CERT_NO_EXIST = -2147482601;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_MULTI_APPEND_STOUP = -2147482599;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_MULTI_APPEND_ERROR = -2147482598;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED = -2147482597;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_NOT_IN_REGISTER_GROUP = -2147482596;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_NOT_FOUND = -2147482595;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GENERATE_GROUP_ID_FAILED = -2147482594;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_SET_CONFIG_FAILED = -2147482593;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_OPEN_FAILED = -2147482592;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_READ_FAILED = -2147482591;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILE_WRITE_FAILED = -2147482590;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_DPI_ERROR = -2147482589;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_PX_ERROR = -2147482588;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PICTURE_SIZE_ERROR = -2147482587;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DATA_BASE_ERROR = -2147482586;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FACE_MAX_NUM = -2147482585;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_BIRTH_DAY_FORMAT_ERROR = -2147482584;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_UID_ERROR = -2147482583;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_TOKEN_ERROR = -2147482582;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_BEGIN_NUM_OVER_RUN = -2147482581;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_NUM_ZERO = -2147482580;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_INIT_ERROR = -2147482579;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_AUTO_ABSTRACT_STATE = -2147482578;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_ABSTRACT_STATE = -2147482577;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_IM_EX_STATE = -2147482576;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_PIC_WRITE_FAILED = -2147482575;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_SPACE_EXCEED = -2147482574;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_PIC_COUNT_EXCEED = -2147482573;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_NOT_FOUND = -2147482572;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FIND_RECORDS_ERROR = -2147482571;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DELETE_PERSON_ERROR = -2147482570;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_DELETE_GROUP_ERROR = -2147482569;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_NAME_FORMAT_ERROR = -2147482568;
- public static final int NET_ERROR_FACE_RECOGNITION_SERVER_FILEPATH_NOT_SET = -2147482567;
- public static final int NET_ERROR_DEVICE_PARSE_PROTOCOL = -2147482569;
- public static final int NET_ERROR_DEVICE_INVALID_REQUEST = -2147482568;
- public static final int NET_ERROR_DEVICE_INTERNAL_ERROR = -2147482567;
- public static final int NET_ERROR_DEVICE_REQUEST_TIMEOUT = -2147482566;
- public static final int NET_ERROR_DEVICE_KEEPALIVE_FAIL = -2147482565;
- public static final int NET_ERROR_DEVICE_NETWORK_ERROR = -2147482564;
- public static final int NET_ERROR_DEVICE_UNKNOWN_ERROR = -2147482563;
- public static final int NET_ERROR_DEVICE_COM_INTERFACE_NOTFOUND = -2147482562;
- public static final int NET_ERROR_DEVICE_COM_IMPLEMENT_NOTFOUND = -2147482561;
- public static final int NET_ERROR_DEVICE_COM_NOTFOUND = -2147482560;
- public static final int NET_ERROR_DEVICE_COM_INSTANCE_NOTEXIST = -2147482559;
- public static final int NET_ERROR_DEVICE_CREATE_COM_FAIL = -2147482558;
- public static final int NET_ERROR_DEVICE_GET_COM_FAIL = -2147482557;
- public static final int NET_ERROR_DEVICE_BAD_REQUEST = -2147482556;
- public static final int NET_ERROR_DEVICE_REQUEST_IN_PROGRESS = -2147482555;
- public static final int NET_ERROR_DEVICE_LIMITED_RESOURCE = -2147482554;
- public static final int NET_ERROR_DEVICE_BUSINESS_TIMEOUT = -2147482553;
- public static final int NET_ERROR_DEVICE_TOO_MANY_REQUESTS = -2147482552;
- public static final int NET_ERROR_DEVICE_NOT_ALREADY = -2147482551;
- public static final int NET_ERROR_DEVICE_SEARCHRECORD_TIMEOUT = -2147482550;
- public static final int NET_ERROR_DEVICE_SEARCHTIME_INVALID = -2147482549;
- public static final int NET_ERROR_DEVICE_SSID_INVALID = -2147482548;
- public static final int NET_ERROR_DEVICE_CHANNEL_STREAMTYPE_ERROR = -2147482547;
- public static final int NET_ERROR_DEVICE_STREAM_PACKINGFORMAT_UNSUPPORT = -2147482546;
- public static final int NET_ERROR_DEVICE_AUDIO_ENCODINGFORMAT_UNSUPPORT = -2147482545;
- public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_GUI = -2147482544;
- public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_MULT = -2147482543;
- public static final int NET_ERROR_SECURITY_ERROR_SUPPORT_UNIQUE = -2147482542;
- public static final int NET_ERROR_STREAMCONVERTOR_DEFECT = -2147482541;
- public static final int NET_ERROR_SECURITY_GENERATE_SAFE_CODE = 134218836;
- public static final int NET_ERROR_SECURITY_GET_CONTACT = 134218837;
- public static final int NET_ERROR_SECURITY_GET_QRCODE = 134218838;
- public static final int NET_ERROR_SECURITY_CANNOT_RESET = 134218839;
- public static final int NET_ERROR_SECURITY_NOT_SUPPORT_CONTACT_MODE = 134218840;
- public static final int NET_ERROR_SECURITY_RESPONSE_TIMEOUT = 134218841;
- public static final int NET_ERROR_SECURITY_AUTHCODE_FORBIDDEN = 134218842;
- public static final int NET_ERROR_TRANCODE_LOGIN_REMOTE_DEV = 134218843;
- public static final int NET_ERROR_TRANCODE_NOFREE_CHANNEL = 134218844;
- public static final int NET_ERROR_VK_INFO_DECRYPT_FAILED = 134218845;
- public static final int NET_ERROR_VK_INFO_DESERIALIZE_FAILED = 134218846;
- public static final int NET_ERROR_GDPR_ABILITY_NOT_ENABLE = 134218847;
- public static final int NET_ERROR_FAST_CHECK_NO_AUTH = -2147482528;
- public static final int NET_ERROR_FAST_CHECK_NO_FILE = -2147482527;
- public static final int NET_ERROR_FAST_CHECK_FILE_FAIL = -2147482526;
- public static final int NET_ERROR_FAST_CHECK_BUSY = -2147482525;
- public static final int NET_ERROR_FAST_CHECK_NO_PASSWORD = -2147482524;
- public static final int NET_ERROR_IMPORT_ACCESS_SEND_FAILD = -2147482523;
- public static final int NET_ERROR_IMPORT_ACCESS_BUSY = -2147482522;
- public static final int NET_ERROR_IMPORT_ACCESS_DATAERROR = -2147482521;
- public static final int NET_ERROR_IMPORT_ACCESS_DATAINVALID = -2147482520;
- public static final int NET_ERROR_IMPORT_ACCESS_SYNC_FALID = -2147482519;
- public static final int NET_ERROR_IMPORT_ACCESS_DBFULL = -2147482518;
- public static final int NET_ERROR_IMPORT_ACCESS_SDFULL = -2147482517;
- public static final int NET_ERROR_IMPORT_ACCESS_CIPHER_ERROR = -2147482516;
- public static final int NET_ERROR_INVALID_PARAM = -2147482515;
- public static final int NET_ERROR_INVALID_PASSWORD = -2147482514;
- public static final int NET_ERROR_INVALID_FINGERPRINT = -2147482513;
- public static final int NET_ERROR_INVALID_FACE = -2147482512;
- public static final int NET_ERROR_INVALID_CARD = -2147482511;
- public static final int NET_ERROR_INVALID_USER = -2147482510;
- public static final int NET_ERROR_GET_SUBSERVICE = -2147482509;
- public static final int NET_ERROR_GET_METHOD = -2147482508;
- public static final int NET_ERROR_GET_SUBCAPS = -2147482507;
- public static final int NET_ERROR_UPTO_INSERT_LIMIT = -2147482506;
- public static final int NET_ERROR_UPTO_MAX_INSERT_RATE = -2147482505;
- public static final int NET_ERROR_ERASE_FINGERPRINT = -2147482504;
- public static final int NET_ERROR_ERASE_FACE = -2147482503;
- public static final int NET_ERROR_ERASE_CARD = -2147482502;
- public static final int NET_ERROR_NO_RECORD = -2147482501;
- public static final int NET_ERROR_NOMORE_RECORDS = -2147482500;
- public static final int NET_ERROR_RECORD_ALREADY_EXISTS = -2147482499;
- public static final int NET_ERROR_EXCEED_MAX_FINGERPRINT_PERUSER = -2147482498;
- public static final int NET_ERROR_EXCEED_MAX_CARD_PERUSER = -2147482497;
- public static final int NET_ERROR_EXCEED_ADMINISTRATOR_LIMIT = -2147482496;
- public static final int NET_LOGIN_ERROR_DEVICE_NOT_SUPPORT_HIGHLEVEL_SECURITY_LOGIN = -2147482495;
- public static final int NET_LOGIN_ERROR_DEVICE_ONLY_SUPPORT_HIGHLEVEL_SECURITY_LOGIN = -2147482494;
- public static final int NET_ERROR_VIDEO_CHANNEL_OFFLINE = -2147482493;
- public static final int NET_ERROR_USERID_FORMAT_INCORRECT = -2147482492;
- public static final int NET_ERROR_CANNOT_FIND_CHANNEL_RELATE_TO_SN = -2147482491;
- public static final int NET_ERROR_TASK_QUEUE_OF_CHANNEL_IS_FULL = -2147482490;
- public static final int NET_ERROR_APPLY_USER_INFO_BLOCK_FAIL = -2147482489;
- public static final int NET_ERROR_EXCEED_MAX_PASSWD_PERUSER = -2147482488;
- public static final int NET_ERROR_PARSE_PROTOCOL = -2147482487;
- public static final int NET_ERROR_CARD_NUM_EXIST = -2147482486;
- public static final int NET_ERROR_FINGERPRINT_EXIST = -2147482485;
- public static final int NET_ERROR_OPEN_PLAYGROUP_FAIL = -2147482484;
- public static final int NET_ERROR_ALREADY_IN_PLAYGROUP = -2147482483;
- public static final int NET_ERROR_QUERY_PLAYGROUP_TIME_FAIL = -2147482482;
- public static final int NET_ERROR_SET_PLAYGROUP_BASECHANNEL_FAIL = -2147482481;
- public static final int NET_ERROR_SET_PLAYGROUP_DIRECTION_FAIL = -2147482480;
- public static final int NET_ERROR_SET_PLAYGROUP_SPEED_FAIL = -2147482479;
- public static final int NET_ERROR_ADD_PLAYGROUP_FAIL = -2147482478;
- public static final int NET_ERROR_EXPORT_AOL_LOGFILE_NO_AUTH = -2147482477;
- public static final int NET_ERROR_EXPORT_AOL_LOGFILE_NO_FILE = -2147482476;
- public static final int NET_ERROR_EXPORT_AOL_LOGFILE_FILE_FAIL = -2147482475;
- public static final int NET_ERROR_EXPORT_AOL_LOGFILE_BUSY = -2147482474;
- public static final int NET_ERROR_EMPTY_LICENSE = -2147482473;
- public static final int NET_ERROR_UNSUPPORTED_MODE = -2147482472;
- public static final int NET_ERROR_URL_APP_NOT_MATCH = -2147482471;
- public static final int NET_ERROR_READ_INFO_FAILED = -2147482470;
- public static final int NET_ERROR_WRITE_FAILED = -2147482469;
- public static final int NET_ERROR_NO_SUCH_APP = -2147482468;
- public static final int NET_ERROR_VERIFIF_FAILED = -2147482467;
- public static final int NET_ERROR_LICENSE_OUT_DATE = -2147482466;
- public static final int NET_ERROR_UPGRADE_PROGRAM_TOO_OLD = -2147482465;
- public static final int NET_ERROR_SECURE_TRANSMIT_BEEN_CUT = -2147482464;
- public static final int NET_ERROR_DEVICE_NOT_SUPPORT_SECURE_TRANSMIT = -2147482463;
- public static final int NET_ERROR_EXTRA_STREAM_LOGIN_FAIL_CAUSE_BY_MAIN_STREAM = -2147482462;
- public static final int NET_ERROR_EXTRA_STREAM_CLOSED_BY_REMOTE_DEVICE = -2147482461;
- public static final int NET_ERROR_IMPORT_FACEDB_SEND_FAILD = -2147482460;
- public static final int NET_ERROR_IMPORT_FACEDB_BUSY = -2147482459;
- public static final int NET_ERROR_IMPORT_FACEDB_DATAERROR = -2147482458;
- public static final int NET_ERROR_IMPORT_FACEDB_DATAINVALID = -2147482457;
- public static final int NET_ERROR_IMPORT_FACEDB_UPGRADE_FAILD = -2147482456;
- public static final int NET_ERROR_IMPORT_FACEDB_NO_AUTHORITY = -2147482455;
- public static final int NET_ERROR_IMPORT_FACEDB_ABNORMAL_FILE = -2147482454;
- public static final int NET_ERROR_IMPORT_FACEDB_SYNC_FALID = -2147482453;
- public static final int NET_ERROR_IMPORT_FACEDB_DBFULL = -2147482452;
- public static final int NET_ERROR_IMPORT_FACEDB_SDFULL = -2147482451;
- public static final int NET_ERROR_IMPORT_FACEDB_CIPHER_ERROR = -2147482450;
- public static final int NET_ERROR_EXPORT_FACEDB_NO_AUTH = -2147482449;
- public static final int NET_ERROR_EXPORT_FACEDB_NO_FILE = -2147482448;
- public static final int NET_ERROR_EXPORT_FACEDB_FILE_FAIL = -2147482447;
- public static final int NET_ERROR_EXPORT_FACEDB_BUSY = -2147482446;
- public static final int NET_ERROR_EXPORT_FACEDB_NO_PASSWORD = -2147482445;
- public static final int NET_ERROR_FACEMANAGER_NO_FACE_DETECTED = -2147482348;
- public static final int NET_ERROR_FACEMANAGER_MULTI_FACE_DETECTED = -2147482347;
- public static final int NET_ERROR_FACEMANAGER_PICTURE_DECODING_ERROR = -2147482346;
- public static final int NET_ERROR_FACEMANAGER_LOW_PICTURE_QUALITY = -2147482345;
- public static final int NET_ERROR_FACEMANAGER_NOT_RECOMMENDED = -2147482344;
- public static final int NET_ERROR_FACEMANAGER_FACE_FEATURE_ALREADY_EXIST = -2147482343;
- public static final int NET_ERROR_FACEMANAGER_FACE_ANGLE_OVER_THRESHOLDS = -2147482341;
- public static final int NET_ERROR_FACEMANAGER_FACE_RADIO_EXCEEDS_RANGE = -2147482340;
- public static final int NET_ERROR_FACEMANAGER_FACE_OVER_EXPOSED = -2147482339;
- public static final int NET_ERROR_FACEMANAGER_FACE_UNDER_EXPOSED = -2147482338;
- public static final int NET_ERROR_FACEMANAGER_BRIGHTNESS_IMBALANCE = -2147482337;
- public static final int NET_ERROR_FACEMANAGER_FACE_LOWER_CONFIDENCE = -2147482336;
- public static final int NET_ERROR_FACEMANAGER_FACE_LOW_ALIGN = -2147482335;
- public static final int NET_ERROR_FACEMANAGER_FRAGMENTARY_FACE_DETECTED = -2147482334;
- public static final int NET_ERROR_FACEMANAGER_PUPIL_DISTANCE_NOT_ENOUGH = -2147482333;
- public static final int NET_ERROR_FACEMANAGER_FACE_DATA_DOWNLOAD_FAILED = -2147482332;
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/lib/LibraryLoad.java b/inspect-fastcall/src/main/java/com/inspect/access/lib/LibraryLoad.java
deleted file mode 100644
index b7f9dc7..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/lib/LibraryLoad.java
+++ /dev/null
@@ -1,173 +0,0 @@
-package com.inspect.access.lib;
-
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.InputStream;
-import java.util.Iterator;
-
-public class LibraryLoad {
- private static final String ARCH_WINDOWS = "win";
- private static final String ARCH_LINUX = "linux";
- private static final String ARCH_MAC = "mac";
- private static final int PREFIX_64 = 64;
- private static final int PREFIX_32 = 32;
- private static final String PREFIX_ARM = "ARM";
- private static final String EXTERNAL_WIN = ".dll";
- private static final String EXTERNAL_LINUX = ".so";
- private static final String EXTERNAL_MAC = ".dylib";
- private static DynamicParseUtil dynamicParseUtil;
- private static String currentFold;
- private static String EXTRACT_PATH = System.getProperty("java.io.tmpdir");
- private static boolean written = false;
- private static String INNER_PATH;
-
- public static void setExtractPath(String path) {
- EXTRACT_PATH = path;
- }
-
- public static String getExtractPath() {
- return EXTRACT_PATH;
- }
-
- private static String extractNetSDKLib(String libName) {
- return extractLibrary(libName);
- }
-
- public static String getLoadLibrary(String libraryName) {
- currentFold = getLibraryFold();
- System.out.println("---------------=========" + currentFold);
- currentFold = "linux64";
- String libName;
- if (dynamicParseUtil == null) {
- try {
- dynamicParseUtil = new DynamicParseUtil(LibraryLoad.class.getClassLoader().getResourceAsStream("dynamic-lib-load.xml"));
- if (!written) {
-
- for (String s : dynamicParseUtil.getLibsSystem(currentFold)) {
- libName = s;
- extractLibrary("/libs/", libName);
- }
-
- written = true;
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- String fullName = getLibraryName(libraryName);
- libName = EXTRACT_PATH;
- if (!EXTRACT_PATH.endsWith("/") && !EXTRACT_PATH.endsWith("\\")) {
- libName = EXTRACT_PATH + "/";
- }
-
- System.out.println("load library: " + libName + fullName);
- return libName + fullName;
- }
-
- private static String extractLibrary(String libName) {
- return extractLibrary("", libName);
- }
-
- private static String extractLibrary(String relativePath, String libName) {
- if (libName.trim().isEmpty()) {
- return "";
- } else {
- String libFullName = getLibraryName(libName);
- String dir = getLibraryFold();
- if (!relativePath.endsWith("/") && !relativePath.endsWith("\\")) {
- relativePath = relativePath + "/";
- }
-
- String fileName = relativePath + dir + "/" + libFullName;
- InputStream in = LibraryLoad.class.getResourceAsStream(fileName);
- File extractedLibFile = null;
-
- try {
- if (in == null) {
- in = new FileInputStream(fileName);
- if (in == null) {
- return "";
- }
- }
-
- String nativeTempDir = EXTRACT_PATH;
- if (!nativeTempDir.endsWith("/") && !nativeTempDir.endsWith("\\")) {
- nativeTempDir = nativeTempDir + "/";
- }
-
- extractedLibFile = new File(nativeTempDir + libFullName);
- BufferedInputStream reader = new BufferedInputStream(in);
- FileOutputStream writer = new FileOutputStream(extractedLibFile);
- byte[] buffer = new byte[1024];
-
- while (true) {
- int len = reader.read(buffer);
- if (len == 0 || len == -1) {
- reader.close();
- writer.close();
- in.close();
- break;
- }
-
- writer.write(buffer, 0, len);
- }
- } catch (Exception var12) {
- System.out.println("dynamic file[ " + fileName + " ] not found in project.please ensure you need this library.");
- }
-
- return extractedLibFile != null ? extractedLibFile.getAbsolutePath() : "";
- }
- }
-
- private static String getLibraryName(String libName) {
- String dir = currentFold;
- String libPrefix = "";
- String libExtension = ".dll";
- if (!dir.contains("win")) {
- libPrefix = "lib";
- if (dir.contains("linux")) {
- libExtension = ".so";
- } else {
- libExtension = ".dylib";
- }
- }
-
- libName = dynamicParseUtil.compareLibName(currentFold, libName);
- return (libName.startsWith("com/netsdk/lib") ? "" : libPrefix) + libName + libExtension;
- }
-
- private static String getLibraryFold() {
- String osName = System.getProperty("os.name");
- String osType;
- if (osName.toLowerCase().startsWith("linux")) {
- osType = "linux";
- } else if (!osName.toLowerCase().startsWith("mac") && !osName.toLowerCase().startsWith("darwin")) {
- if (osName.toLowerCase().startsWith("windows")) {
- osType = "win";
- } else {
- osType = "";
- }
- } else {
- osType = "mac";
- }
-
- String arch = System.getProperty("os.arch");
- arch = arch.toLowerCase().trim();
- if (!"i386".equals(arch) && !"i686".equals(arch) && !"x86".equals(arch)) {
- if (!"x86_64".equals(arch) && !"amd64".equals(arch)) {
- if (arch.startsWith("arm")) {
- arch = "ARM";
- }
- } else {
- arch = "64";
- }
- } else {
- arch = "32";
- }
-
- return osType + arch;
- }
-}
diff --git a/inspect-fastcall/src/main/java/com/inspect/access/lib/NativeString.java b/inspect-fastcall/src/main/java/com/inspect/access/lib/NativeString.java
deleted file mode 100644
index e96626a..0000000
--- a/inspect-fastcall/src/main/java/com/inspect/access/lib/NativeString.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.inspect.access.lib;
-
-import com.sun.jna.Memory;
-import com.sun.jna.Native;
-import com.sun.jna.Pointer;
-
-import java.io.UnsupportedEncodingException;
-import java.nio.CharBuffer;
-
-public class NativeString implements CharSequence, Comparable