+ * - Basic
+ *
Uses "The Base64 Alphabet" as specified in Table 1 of
+ * RFC 4648 and RFC 2045 for encoding and decoding operation.
+ * The encoder does not add any line feed (line separator)
+ * character. The decoder rejects data that contains characters
+ * outside the base64 alphabet.
+ *
+ * Unless otherwise noted, passing a {@code null} argument to a
+ * method of this class will cause a {@link NullPointerException
+ * NullPointerException} to be thrown.
+ *
+ * @author Xueming Shen
+ * @since 1.8
+ */
+
+public class Base64 {
+
+ private Base64() {}
+
+ /**
+ * Returns a {@link Encoder} that encodes using the
+ * Basic type base64 encoding scheme.
+ *
+ * @return A Base64 encoder.
+ */
+ public static Encoder getEncoder() {
+ return Encoder.RFC4648;
+ }
+
+ /**
+ * This class implements an encoder for encoding byte data using
+ * the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
+ *
+ *
Instances of {@link Encoder} class are safe for use by
+ * multiple concurrent threads.
+ *
+ *
Unless otherwise noted, passing a {@code null} argument to
+ * a method of this class will cause a
+ * {@link NullPointerException NullPointerException} to
+ * be thrown.
+ *
+ * @see Decoder
+ * @since 1.8
+ */
+ public static class Encoder {
+
+ private final byte[] newline;
+ private final int linemax;
+ private final boolean isURL;
+ private final boolean doPadding;
+
+ private Encoder(boolean isURL, byte[] newline, int linemax, boolean doPadding) {
+ this.isURL = isURL;
+ this.newline = newline;
+ this.linemax = linemax;
+ this.doPadding = doPadding;
+ }
+
+ /**
+ * This array is a lookup table that translates 6-bit positive integer
+ * index values into their "Base64 Alphabet" equivalents as specified
+ * in "Table 1: The Base64 Alphabet" of RFC 2045 (and RFC 4648).
+ */
+ private static final char[] toBase64 = {
+ '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', '+', '/'
+ };
+
+ /**
+ * It's the lookup table for "URL and Filename safe Base64" as specified
+ * in Table 2 of the RFC 4648, with the '+' and '/' changed to '-' and
+ * '_'. This table is used when BASE64_URL is specified.
+ */
+ private static final char[] toBase64URL = {
+ '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 Encoder RFC4648 = new Encoder(false, null, -1, true);
+
+ private final int outLength(int srclen) {
+ int len = 0;
+ if (doPadding) {
+ len = 4 * ((srclen + 2) / 3);
+ } else {
+ int n = srclen % 3;
+ len = 4 * (srclen / 3) + (n == 0 ? 0 : n + 1);
+ }
+ if (linemax > 0) // line separators
+ len += (len - 1) / linemax * newline.length;
+ return len;
+ }
+
+ /**
+ * Encodes all bytes from the specified byte array into a newly-allocated
+ * byte array using the {@link Base64} encoding scheme. The returned byte
+ * array is of the length of the resulting bytes.
+ *
+ * @param src
+ * the byte array to encode
+ * @return A newly-allocated byte array containing the resulting
+ * encoded bytes.
+ */
+ public byte[] encode(byte[] src) {
+ int len = outLength(src.length); // dst array size
+ byte[] dst = new byte[len];
+ int ret = encode0(src, 0, src.length, dst);
+ if (ret != dst.length)
+ return Arrays.copyOf(dst, ret);
+ return dst;
+ }
+
+ /**
+ * Encodes all bytes from the specified byte array using the
+ * {@link Base64} encoding scheme, writing the resulting bytes to the
+ * given output byte array, starting at offset 0.
+ *
+ *
It is the responsibility of the invoker of this method to make
+ * sure the output byte array {@code dst} has enough space for encoding
+ * all bytes from the input byte array. No bytes will be written to the
+ * output byte array if the output byte array is not big enough.
+ *
+ * @param src
+ * the byte array to encode
+ * @param dst
+ * the output byte array
+ * @return The number of bytes written to the output byte array
+ *
+ * @throws IllegalArgumentException if {@code dst} does not have enough
+ * space for encoding all input bytes.
+ */
+ public int encode(byte[] src, byte[] dst) {
+ int len = outLength(src.length); // dst array size
+ if (dst.length < len)
+ throw new IllegalArgumentException(
+ "Output byte array is too small for encoding all input bytes");
+ return encode0(src, 0, src.length, dst);
+ }
+
+ /**
+ * Encodes the specified byte array into a String using the {@link Base64}
+ * encoding scheme.
+ *
+ *
In other words, an invocation of this method has exactly the same
+ * effect as invoking
+ * {@code new String(encode(src), StandardCharsets.ISO_8859_1)}.
+ *
+ * @param src
+ * the byte array to encode
+ * @return A String containing the resulting Base64 encoded characters
+ */
+ @SuppressWarnings("deprecation")
+ public String encodeToString(byte[] src) {
+ byte[] encoded = encode(src);
+ return new String(encoded, 0, 0, encoded.length);
+ }
+
+ /**
+ * Returns an encoder instance that encodes equivalently to this one,
+ * but without adding any padding character at the end of the encoded
+ * byte data.
+ *
+ *
The encoding scheme of this encoder instance is unaffected by
+ * this invocation. The returned encoder instance should be used for
+ * non-padding encoding operation.
+ *
+ * @return an equivalent encoder that encodes without adding any
+ * padding character at the end
+ */
+ public Encoder withoutPadding() {
+ if (!doPadding)
+ return this;
+ return new Encoder(isURL, newline, linemax, false);
+ }
+
+ private int encode0(byte[] src, int off, int end, byte[] dst) {
+ char[] base64 = isURL ? toBase64URL : toBase64;
+ int sp = off;
+ int slen = (end - off) / 3 * 3;
+ int sl = off + slen;
+ if (linemax > 0 && slen > linemax / 4 * 3)
+ slen = linemax / 4 * 3;
+ int dp = 0;
+ while (sp < sl) {
+ int sl0 = Math.min(sp + slen, sl);
+ for (int sp0 = sp, dp0 = dp ; sp0 < sl0; ) {
+ int bits = (src[sp0++] & 0xff) << 16 |
+ (src[sp0++] & 0xff) << 8 |
+ (src[sp0++] & 0xff);
+ dst[dp0++] = (byte)base64[(bits >>> 18) & 0x3f];
+ dst[dp0++] = (byte)base64[(bits >>> 12) & 0x3f];
+ dst[dp0++] = (byte)base64[(bits >>> 6) & 0x3f];
+ dst[dp0++] = (byte)base64[bits & 0x3f];
+ }
+ int dlen = (sl0 - sp) / 3 * 4;
+ dp += dlen;
+ sp = sl0;
+ if (dlen == linemax && sp < end) {
+ for (byte b : newline){
+ dst[dp++] = b;
+ }
+ }
+ }
+ if (sp < end) { // 1 or 2 leftover bytes
+ int b0 = src[sp++] & 0xff;
+ dst[dp++] = (byte)base64[b0 >> 2];
+ if (sp == end) {
+ dst[dp++] = (byte)base64[(b0 << 4) & 0x3f];
+ if (doPadding) {
+ dst[dp++] = '=';
+ dst[dp++] = '=';
+ }
+ } else {
+ int b1 = src[sp++] & 0xff;
+ dst[dp++] = (byte)base64[(b0 << 4) & 0x3f | (b1 >> 4)];
+ dst[dp++] = (byte)base64[(b1 << 2) & 0x3f];
+ if (doPadding) {
+ dst[dp++] = '=';
+ }
+ }
+ }
+ return dp;
+ }
+ }
+
+ /**
+ * Returns a {@link Decoder} that decodes using the
+ * Basic type base64 encoding scheme.
+ *
+ * @return A Base64 decoder.
+ */
+ public static Decoder getDecoder() {
+ return Decoder.RFC4648;
+ }
+ /**
+ * This class implements a decoder for decoding byte data using the
+ * Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
+ *
+ *
The Base64 padding character {@code '='} is accepted and
+ * interpreted as the end of the encoded byte data, but is not
+ * required. So if the final unit of the encoded byte data only has
+ * two or three Base64 characters (without the corresponding padding
+ * character(s) padded), they are decoded as if followed by padding
+ * character(s). If there is a padding character present in the
+ * final unit, the correct number of padding character(s) must be
+ * present, otherwise {@code IllegalArgumentException} (
+ * {@code IOException} when reading from a Base64 stream) is thrown
+ * during decoding.
+ *
+ *
Instances of {@link Decoder} class are safe for use by
+ * multiple concurrent threads.
+ *
+ *
Unless otherwise noted, passing a {@code null} argument to
+ * a method of this class will cause a
+ * {@link NullPointerException NullPointerException} to
+ * be thrown.
+ *
+ * @see Encoder
+ * @since 1.8
+ */
+ public static class Decoder {
+
+ private final boolean isURL;
+ private final boolean isMIME;
+
+ private Decoder(boolean isURL, boolean isMIME) {
+ this.isURL = isURL;
+ this.isMIME = isMIME;
+ }
+
+ /**
+ * Lookup table for decoding unicode characters drawn from the
+ * "Base64 Alphabet" (as specified in Table 1 of RFC 2045) into
+ * their 6-bit positive integer equivalents. Characters that
+ * are not in the Base64 alphabet but fall within the bounds of
+ * the array are encoded to -1.
+ *
+ */
+ private static final int[] fromBase64 = new int[256];
+ static {
+ Arrays.fill(fromBase64, -1);
+ for (int i = 0; i < Encoder.toBase64.length; i++)
+ fromBase64[Encoder.toBase64[i]] = i;
+ fromBase64['='] = -2;
+ }
+
+ /**
+ * Lookup table for decoding "URL and Filename safe Base64 Alphabet"
+ * as specified in Table2 of the RFC 4648.
+ */
+ private static final int[] fromBase64URL = new int[256];
+
+ static {
+ Arrays.fill(fromBase64URL, -1);
+ for (int i = 0; i < Encoder.toBase64URL.length; i++)
+ fromBase64URL[Encoder.toBase64URL[i]] = i;
+ fromBase64URL['='] = -2;
+ }
+
+ static final Decoder RFC4648 = new Decoder(false, false);
+ static final Decoder RFC4648_URLSAFE = new Decoder(true, false);
+ static final Decoder RFC2045 = new Decoder(false, true);
+
+ /**
+ * Decodes all bytes from the input byte array using the {@link Base64}
+ * encoding scheme, writing the results into a newly-allocated output
+ * byte array. The returned byte array is of the length of the resulting
+ * bytes.
+ *
+ * @param src
+ * the byte array to decode
+ *
+ * @return A newly-allocated byte array containing the decoded bytes.
+ *
+ * @throws IllegalArgumentException
+ * if {@code src} is not in valid Base64 scheme
+ */
+ public byte[] decode(byte[] src) {
+ byte[] dst = new byte[outLength(src, 0, src.length)];
+ int ret = decode0(src, 0, src.length, dst);
+ if (ret != dst.length) {
+ dst = Arrays.copyOf(dst, ret);
+ }
+ return dst;
+ }
+
+ public byte[] decode(String src) {
+ return decode(src.getBytes(Charset.forName("ISO-8859-1")));
+ }
+
+ /**
+ * Decodes all bytes from the input byte array using the {@link Base64}
+ * encoding scheme, writing the results into the given output byte array,
+ * starting at offset 0.
+ *
+ *
It is the responsibility of the invoker of this method to make
+ * sure the output byte array {@code dst} has enough space for decoding
+ * all bytes from the input byte array. No bytes will be be written to
+ * the output byte array if the output byte array is not big enough.
+ *
+ *
If the input byte array is not in valid Base64 encoding scheme
+ * then some bytes may have been written to the output byte array before
+ * IllegalargumentException is thrown.
+ *
+ * @param src
+ * the byte array to decode
+ * @param dst
+ * the output byte array
+ *
+ * @return The number of bytes written to the output byte array
+ *
+ * @throws IllegalArgumentException
+ * if {@code src} is not in valid Base64 scheme, or {@code dst}
+ * does not have enough space for decoding all input bytes.
+ */
+ public int decode(byte[] src, byte[] dst) {
+ int len = outLength(src, 0, src.length);
+ if (dst.length < len)
+ throw new IllegalArgumentException(
+ "Output byte array is too small for decoding all input bytes");
+ return decode0(src, 0, src.length, dst);
+ }
+
+ /**
+ * Decodes all bytes from the input byte buffer using the {@link Base64}
+ * encoding scheme, writing the results into a newly-allocated ByteBuffer.
+ *
+ *
Upon return, the source buffer's position will be updated to
+ * its limit; its limit will not have been changed. The returned
+ * output buffer's position will be zero and its limit will be the
+ * number of resulting decoded bytes
+ *
+ *
{@code IllegalArgumentException} is thrown if the input buffer
+ * is not in valid Base64 encoding scheme. The position of the input
+ * buffer will not be advanced in this case.
+ *
+ * @param buffer
+ * the ByteBuffer to decode
+ *
+ * @return A newly-allocated byte buffer containing the decoded bytes
+ *
+ * @throws IllegalArgumentException
+ * if {@code src} is not in valid Base64 scheme.
+ */
+ public ByteBuffer decode(ByteBuffer buffer) {
+ int pos0 = buffer.position();
+ try {
+ byte[] src;
+ int sp, 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[outLength(src, sp, sl)];
+ return ByteBuffer.wrap(dst, 0, decode0(src, sp, sl, dst));
+ } catch (IllegalArgumentException iae) {
+ buffer.position(pos0);
+ throw iae;
+ }
+ }
+
+ private int outLength(byte[] src, int sp, int sl) {
+ int[] base64 = isURL ? fromBase64URL : fromBase64;
+ int paddings = 0;
+ int len = sl - sp;
+ if (len == 0)
+ return 0;
+ if (len < 2) {
+ if (isMIME && base64[0] == -1)
+ return 0;
+ throw new IllegalArgumentException(
+ "Input byte[] should at least have 2 bytes for base64 bytes");
+ }
+ if (isMIME) {
+ // scan all bytes to fill out all non-alphabet. a performance
+ // trade-off of pre-scan or Arrays.copyOf
+ int n = 0;
+ while (sp < sl) {
+ int b = src[sp++] & 0xff;
+ if (b == '=') {
+ len -= (sl - sp + 1);
+ break;
+ }
+ if ((b = base64[b]) == -1)
+ n++;
+ }
+ len -= n;
+ } else {
+ if (src[sl - 1] == '=') {
+ paddings++;
+ if (src[sl - 2] == '=')
+ paddings++;
+ }
+ }
+ if (paddings == 0 && (len & 0x3) != 0)
+ paddings = 4 - (len & 0x3);
+ return 3 * ((len + 3) / 4) - paddings;
+ }
+
+ private int decode0(byte[] src, int sp, int sl, byte[] dst) {
+ int[] base64 = isURL ? fromBase64URL : fromBase64;
+ int dp = 0;
+ int bits = 0;
+ int shiftto = 18; // pos of first byte of 4-byte atom
+ while (sp < sl) {
+ int b = src[sp++] & 0xff;
+ if ((b = base64[b]) < 0) {
+ if (b == -2) { // padding byte '='
+ // = shiftto==18 unnecessary padding
+ // x= shiftto==12 a dangling single x
+ // x to be handled together with non-padding case
+ // xx= shiftto==6&&sp==sl missing last =
+ // xx=y shiftto==6 last is not =
+ if (shiftto == 6 && (sp == sl || src[sp++] != '=') ||
+ shiftto == 18) {
+ throw new IllegalArgumentException(
+ "Input byte array has wrong 4-byte ending unit");
+ }
+ break;
+ }
+ if (isMIME) // skip if for rfc2045
+ continue;
+ else
+ throw new IllegalArgumentException(
+ "Illegal base64 character " +
+ Integer.toString(src[sp - 1], 16));
+ }
+ 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;
+ }
+ }
+ // reached end of byte array or hit padding '=' characters.
+ 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) {
+ // dangling single "x", incorrectly encoded.
+ throw new IllegalArgumentException(
+ "Last unit does not have enough valid bits");
+ }
+ // anything left is invalid, if is not MIME.
+ // if MIME, ignore all non-base64 character
+ while (sp < sl) {
+ if (isMIME && base64[src[sp++]] < 0)
+ continue;
+ throw new IllegalArgumentException(
+ "Input byte array has incorrect ending byte at " + sp);
+ }
+ return dp;
+ }
+ }
+}
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/BorderEx.java b/web/src/main/java/com/zhehekeji/web/lib/common/BorderEx.java
new file mode 100644
index 0000000..20cfeb1
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/BorderEx.java
@@ -0,0 +1,16 @@
+package com.zhehekeji.web.lib.common;
+
+import javax.swing.*;
+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/web/src/main/java/com/zhehekeji/web/lib/common/CaseMenu.java b/web/src/main/java/com/zhehekeji/web/lib/common/CaseMenu.java
new file mode 100644
index 0000000..964f5d8
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/CaseMenu.java
@@ -0,0 +1,93 @@
+package com.zhehekeji.web.lib.common;
+
+import java.lang.reflect.Method;
+import java.util.NoSuchElementException;
+import java.util.Scanner;
+import java.util.Vector;
+
+public class CaseMenu {
+
+ public static class Item {
+ private Object object;
+ private String itemName;
+ private String methodName;
+
+ public Item(Object object, String itemName, String methodName) {
+ super();
+ this.object = object;
+ this.itemName = itemName;
+ this.methodName = methodName;
+ }
+
+ public Object getObject() {
+ return object;
+ }
+
+ public String getItemName() {
+ return itemName;
+ }
+
+ public String getMethodName() {
+ return methodName;
+ }
+ }
+
+ private Vector- items;
+
+ public CaseMenu() {
+ super();
+ items = new Vector
- ();
+ }
+
+ public void addItem(Item item) {
+ items.add(item);
+ }
+
+ private void showItem() {
+ final String format = "%2d\t%-20s\n";
+ int index = 0;
+ System.out.printf(format, index++, "exit App");
+ for (Item item : items) {
+ System.out.printf(format, index++, 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) {
+ showItem();
+ try {
+ int input = Integer.parseInt(scanner.nextLine());
+
+ if (input <= 0 ) {
+ System.err.println("input <= 0 || scanner.nextLine() == null");
+// scanner.close();
+// System.exit(0);
+ break;
+ }
+
+ if (input < 0 || input > items.size()) {
+ System.err.println("Input Error Item Index.");
+ continue;
+ }
+
+ Item item = items.get(input - 1);
+ Class> itemClass = item.getObject().getClass();
+ Method method = itemClass.getMethod(item.getMethodName());
+ method.invoke(item.getObject());
+ } catch (NoSuchElementException e) {
+// scanner.close();
+// System.exit(0);
+ break;
+ } catch (NumberFormatException e) {
+ System.err.println("Input Error NumberFormat.");
+ continue;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ scanner.close();
+ }
+}
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/ErrorCode.java b/web/src/main/java/com/zhehekeji/web/lib/common/ErrorCode.java
new file mode 100644
index 0000000..4407cea
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/ErrorCode.java
@@ -0,0 +1,871 @@
+package com.zhehekeji.web.lib.common;
+
+import com.zhehekeji.web.lib.NetSDKLib;
+
+/**
+ * 登录设备设备错误状态
+ */
+public class ErrorCode {
+
+ /**
+ * 登录设备设备错误状态中英文
+ * @param err 接口CLIENT_GetLastError返回, error code: (0x80000000|" + (LoginModule.netsdk.CLIENT_GetLastError() & 0x7fffffff) +")
+ * @return
+ */
+ public static String getErrorCode(int err) {
+ String msg = "";
+ switch(err) {
+ case NetSDKLib.NET_NOERROR: // 0 没有错误
+ msg = Res.string().getBundle().getString("NET_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR: // -1 未知错误
+ msg = Res.string().getBundle().getString("NET_ERROR");
+ break;
+ case NetSDKLib.NET_SYSTEM_ERROR: // (0x80000000|1) Windows系统出错
+ msg = Res.string().getBundle().getString("NET_SYSTEM_ERROR");
+ break;
+ case NetSDKLib.NET_NETWORK_ERROR: // (0x80000000|2) 网络错误,可能是因为网络超时
+ msg = Res.string().getBundle().getString("NET_NETWORK_ERROR");
+ break;
+ case NetSDKLib.NET_DEV_VER_NOMATCH: // (0x80000000|3) 设备协议不匹配
+ msg = Res.string().getBundle().getString("NET_DEV_VER_NOMATCH");
+ break;
+ case NetSDKLib.NET_INVALID_HANDLE: // (0x80000000|4) 句柄无效
+ msg = Res.string().getBundle().getString("NET_INVALID_HANDLE");
+ break;
+ case NetSDKLib.NET_OPEN_CHANNEL_ERROR: // (0x80000000|5) 打开通道失败
+ msg = Res.string().getBundle().getString("NET_OPEN_CHANNEL_ERROR");
+ break;
+ case NetSDKLib.NET_CLOSE_CHANNEL_ERROR: // (0x80000000|6) 关闭通道失败
+ msg = Res.string().getBundle().getString("NET_CLOSE_CHANNEL_ERROR");
+ break;
+ case NetSDKLib.NET_ILLEGAL_PARAM: // (0x80000000|7) 用户参数不合法
+ msg = Res.string().getBundle().getString("NET_ILLEGAL_PARAM");
+ break;
+ case NetSDKLib.NET_SDK_INIT_ERROR: // (0x80000000|8) SDK初始化出错
+ msg = Res.string().getBundle().getString("NET_SDK_INIT_ERROR");
+ break;
+ case NetSDKLib.NET_SDK_UNINIT_ERROR: // (0x80000000|9) SDK清理出错
+ msg = Res.string().getBundle().getString("NET_SDK_UNINIT_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_OPEN_ERROR: // (0x80000000|10) 申请render资源出错
+ msg = Res.string().getBundle().getString("NET_RENDER_OPEN_ERROR");
+ break;
+ case NetSDKLib.NET_DEC_OPEN_ERROR: // (0x80000000|11) 打开解码库出错
+ msg = Res.string().getBundle().getString("NET_DEC_OPEN_ERROR");
+ break;
+ case NetSDKLib.NET_DEC_CLOSE_ERROR: // (0x80000000|12) 关闭解码库出错
+ msg = Res.string().getBundle().getString("NET_DEC_CLOSE_ERROR");
+ break;
+ case NetSDKLib.NET_MULTIPLAY_NOCHANNEL: // (0x80000000|13) 多画面预览中检测到通道数为0
+ msg = Res.string().getBundle().getString("NET_MULTIPLAY_NOCHANNEL");
+ break;
+ case NetSDKLib.NET_TALK_INIT_ERROR: // (0x80000000|14) 录音库初始化失败
+ msg = Res.string().getBundle().getString("NET_TALK_INIT_ERROR");
+ break;
+ case NetSDKLib.NET_TALK_NOT_INIT: // (0x80000000|15) 录音库未经初始化
+ msg = Res.string().getBundle().getString("NET_TALK_NOT_INIT");
+ break;
+ case NetSDKLib.NET_TALK_SENDDATA_ERROR: // (0x80000000|16) 发送音频数据出错
+ msg = Res.string().getBundle().getString("NET_TALK_SENDDATA_ERROR");
+ break;
+ case NetSDKLib.NET_REAL_ALREADY_SAVING: // (0x80000000|17) 实时数据已经处于保存状态
+ msg = Res.string().getBundle().getString("NET_REAL_ALREADY_SAVING");
+ break;
+ case NetSDKLib.NET_NOT_SAVING: // (0x80000000|18) 未保存实时数据
+ msg = Res.string().getBundle().getString("NET_NOT_SAVING");
+ break;
+ case NetSDKLib.NET_OPEN_FILE_ERROR: // (0x80000000|19) 打开文件出错
+ msg = Res.string().getBundle().getString("NET_OPEN_FILE_ERROR");
+ break;
+ case NetSDKLib.NET_PTZ_SET_TIMER_ERROR: // (0x80000000|20) 启动云台控制定时器失败
+ msg = Res.string().getBundle().getString("NET_PTZ_SET_TIMER_ERROR");
+ break;
+ case NetSDKLib.NET_RETURN_DATA_ERROR: // (0x80000000|21) 对返回数据的校验出错
+ msg = Res.string().getBundle().getString("NET_RETURN_DATA_ERROR");
+ break;
+ case NetSDKLib.NET_INSUFFICIENT_BUFFER: // (0x80000000|22) 没有足够的缓存
+ msg = Res.string().getBundle().getString("NET_INSUFFICIENT_BUFFER");
+ break;
+ case NetSDKLib.NET_NOT_SUPPORTED: // (0x80000000|23) 当前SDK未支持该功能
+ msg = Res.string().getBundle().getString("NET_NOT_SUPPORTED");
+ break;
+ case NetSDKLib.NET_NO_RECORD_FOUND: // (0x80000000|24) 查询不到录像
+ msg = Res.string().getBundle().getString("NET_NO_RECORD_FOUND");
+ break;
+ case NetSDKLib.NET_NOT_AUTHORIZED: // (0x80000000|25) 无操作权限
+ msg = Res.string().getBundle().getString("NET_NOT_AUTHORIZED");
+ break;
+ case NetSDKLib.NET_NOT_NOW: // (0x80000000|26) 暂时无法执行
+ msg = Res.string().getBundle().getString("NET_NOT_NOW");
+ break;
+ case NetSDKLib.NET_NO_TALK_CHANNEL: // (0x80000000|27) 未发现对讲通道
+ msg = Res.string().getBundle().getString("NET_NO_TALK_CHANNEL");
+ break;
+ case NetSDKLib.NET_NO_AUDIO: // (0x80000000|28) 未发现音频
+ msg = Res.string().getBundle().getString("NET_NO_AUDIO");
+ break;
+ case NetSDKLib.NET_NO_INIT: // (0x80000000|29) 网络SDK未经初始化
+ msg = Res.string().getBundle().getString("NET_NO_INIT");
+ break;
+ case NetSDKLib.NET_DOWNLOAD_END: // (0x80000000|30) 下载已结束
+ msg = Res.string().getBundle().getString("NET_DOWNLOAD_END");
+ break;
+ case NetSDKLib.NET_EMPTY_LIST: // (0x80000000|31) 查询结果为空
+ msg = Res.string().getBundle().getString("NET_EMPTY_LIST");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SYSATTR: // (0x80000000|32) 获取系统属性配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSATTR");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SERIAL: // (0x80000000|33) 获取序列号失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SERIAL");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_GENERAL: // (0x80000000|34) 获取常规属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GENERAL");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_DSPCAP: // (0x80000000|35) 获取DSP能力描述失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DSPCAP");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_NETCFG: // (0x80000000|36) 获取网络配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_NETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_CHANNAME: // (0x80000000|37) 获取通道名称失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CHANNAME");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_VIDEO: // (0x80000000|38) 获取视频属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_RECORD: // (0x80000000|39) 获取录象配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORD");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_PRONAME: // (0x80000000|40) 获取解码器协议名称失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PRONAME");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_FUNCNAME: // (0x80000000|41) 获取232串口功能名称失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_FUNCNAME");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_485DECODER: // (0x80000000|42) 获取解码器属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_485DECODER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_232COM: // (0x80000000|43) 获取232串口配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_232COM");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_ALARMIN: // (0x80000000|44) 获取外部报警输入配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMIN");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_ALARMDET: // (0x80000000|45) 获取动态检测报警失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMDET");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SYSTIME: // (0x80000000|46) 获取设备时间失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSTIME");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_PREVIEW: // (0x80000000|47) 获取预览参数失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PREVIEW");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_AUTOMT: // (0x80000000|48) 获取自动维护配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_AUTOMT");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_VIDEOMTRX: // (0x80000000|49) 获取视频矩阵配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOMTRX");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_COVER: // (0x80000000|50) 获取区域遮挡配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_COVER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_WATERMAKE: // (0x80000000|51) 获取图象水印配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WATERMAKE");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_MULTICAST: // (0x80000000|52) 获取配置失败位置:组播端口按通道配置
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MULTICAST");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_GENERAL: // (0x80000000|55) 修改常规属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GENERAL");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_NETCFG: // (0x80000000|56) 改网络配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_NETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_CHANNAME: // (0x80000000|57) 修改通道名称失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CHANNAME");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_VIDEO: // (0x80000000|58) 修改视频属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_RECORD: // (0x80000000|59) 修改录象配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORD");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_485DECODER: // (0x80000000|60) 修改解码器属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_485DECODER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_232COM: // (0x80000000|61) 修改232串口配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_232COM");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_ALARMIN: // (0x80000000|62) 修改外部输入报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMIN");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_ALARMDET: // (0x80000000|63) 修改动态检测报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMDET");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_SYSTIME: // (0x80000000|64) 修改设备时间失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SYSTIME");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_PREVIEW: // (0x80000000|65) 修改预览参数失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_PREVIEW");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_AUTOMT: // (0x80000000|66) 修改自动维护配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_AUTOMT");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_VIDEOMTRX: // (0x80000000|67) 修改视频矩阵配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOMTRX");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_COVER: // (0x80000000|68) 修改区域遮挡配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_COVER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_WATERMAKE: // (0x80000000|69) 修改图象水印配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WATERMAKE");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_WLAN: // (0x80000000|70) 修改无线网络信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLAN");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_WLANDEV: // (0x80000000|71) 选择无线网络设备失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLANDEV");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_REGISTER: // (0x80000000|72) 修改主动注册参数配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_REGISTER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_CAMERA: // (0x80000000|73) 修改摄像头属性配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CAMERA");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_INFRARED: // (0x80000000|74) 修改红外报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_INFRARED");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_SOUNDALARM: // (0x80000000|75) 修改音频报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SOUNDALARM");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_STORAGE: // (0x80000000|76) 修改存储位置配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_STORAGE");
+ break;
+ case NetSDKLib.NET_AUDIOENCODE_NOTINIT: // (0x80000000|77) 音频编码接口没有成功初始化
+ msg = Res.string().getBundle().getString("NET_AUDIOENCODE_NOTINIT");
+ break;
+ case NetSDKLib.NET_DATA_TOOLONGH: // (0x80000000|78) 数据过长
+ msg = Res.string().getBundle().getString("NET_DATA_TOOLONGH");
+ break;
+ case NetSDKLib.NET_UNSUPPORTED: // (0x80000000|79) 备不支持该操作
+ msg = Res.string().getBundle().getString("NET_UNSUPPORTED");
+ break;
+ case NetSDKLib.NET_DEVICE_BUSY: // (0x80000000|80) 设备资源不足
+ msg = Res.string().getBundle().getString("NET_DEVICE_BUSY");
+ break;
+ case NetSDKLib.NET_SERVER_STARTED: // (0x80000000|81) 服务器已经启动
+ msg = Res.string().getBundle().getString("NET_SERVER_STARTED");
+ break;
+ case NetSDKLib.NET_SERVER_STOPPED: // (0x80000000|82) 服务器尚未成功启动
+ msg = Res.string().getBundle().getString("NET_SERVER_STOPPED");
+ break;
+ case NetSDKLib.NET_LISTER_INCORRECT_SERIAL: // (0x80000000|83) 输入序列号有误
+ msg = Res.string().getBundle().getString("NET_LISTER_INCORRECT_SERIAL");
+ break;
+ case NetSDKLib.NET_QUERY_DISKINFO_FAILED: // (0x80000000|84) 获取硬盘信息失败
+ msg = Res.string().getBundle().getString("NET_QUERY_DISKINFO_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SESSION: // (0x80000000|85) 获取连接Session信息
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SESSION");
+ break;
+ case NetSDKLib.NET_USER_FLASEPWD_TRYTIME: // (0x80000000|86) 输入密码错误超过限制次数
+ msg = Res.string().getBundle().getString("NET_USER_FLASEPWD_TRYTIME");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_PASSWORD: // (0x80000000|100) 密码不正确
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PASSWORD");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_USER: // (0x80000000|101) 帐户不存在
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_TIMEOUT: // (0x80000000|102) 等待登录返回超时
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_TIMEOUT");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_RELOGGIN: // (0x80000000|103) 帐号已登录
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_RELOGGIN");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_LOCKED: // (0x80000000|104) 帐号已被锁定
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_LOCKED");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_BLACKLIST: // (0x80000000|105) 帐号已被列为黑名单
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BLACKLIST");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_BUSY: // (0x80000000|106) 资源不足,系统忙
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BUSY");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_CONNECT: // (0x80000000|107) 登录设备超时,请检查网络并重试
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_CONNECT");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_NETWORK: // (0x80000000|108) 网络连接失败
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NETWORK");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_SUBCONNECT: // (0x80000000|109) 登录设备成功,但无法创建视频通道,请检查网
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_SUBCONNECT");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_MAXCONNECT: // (0x80000000|110) 超过最大连接数
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_MAXCONNECT");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_PROTOCOL3_ONLY: // (0x80000000|111) 只支持3代协议
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PROTOCOL3_ONLY");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_UKEY_LOST: // (0x80000000|112) 插入U盾或U盾信息错误
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_UKEY_LOST");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_NO_AUTHORIZED: // (0x80000000|113) 客户端IP地址没有登录权限
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NO_AUTHORIZED");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_USER_OR_PASSOWRD: // (0x80000000|117) 账号或密码错误
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER_OR_PASSOWRD");
+ break;
+ case NetSDKLib.NET_LOGIN_ERROR_DEVICE_NOT_INIT: // (0x80000000|118) 设备尚未初始化,不能登录,请先初始化设备
+ msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_DEVICE_NOT_INIT");
+ break;
+ case NetSDKLib.NET_RENDER_SOUND_ON_ERROR: // (0x80000000|120) Render库打开音频出错
+ msg = Res.string().getBundle().getString("NET_RENDER_SOUND_ON_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_SOUND_OFF_ERROR: // (0x80000000|121) Render库关闭音频出错
+ msg = Res.string().getBundle().getString("NET_RENDER_SOUND_OFF_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_SET_VOLUME_ERROR: // (0x80000000|122) Render库控制音量出错
+ msg = Res.string().getBundle().getString("NET_RENDER_SET_VOLUME_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_ADJUST_ERROR: // (0x80000000|123) Render库设置画面参数出错
+ msg = Res.string().getBundle().getString("NET_RENDER_ADJUST_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_PAUSE_ERROR: // (0x80000000|124) Render库暂停播放出错
+ msg = Res.string().getBundle().getString("NET_RENDER_PAUSE_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_SNAP_ERROR: // (0x80000000|125) Render库抓图出错
+ msg = Res.string().getBundle().getString("NET_RENDER_SNAP_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_STEP_ERROR: // (0x80000000|126) Render库步进出错
+ msg = Res.string().getBundle().getString("NET_RENDER_STEP_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_FRAMERATE_ERROR: // (0x80000000|127) Render库设置帧率出错
+ msg = Res.string().getBundle().getString("NET_RENDER_FRAMERATE_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_DISPLAYREGION_ERROR: // (0x80000000|128) Render库设置显示区域出错
+ msg = Res.string().getBundle().getString("NET_RENDER_DISPLAYREGION_ERROR");
+ break;
+ case NetSDKLib.NET_RENDER_GETOSDTIME_ERROR: // (0x80000000|129) Render库获取当前播放时间出错
+ msg = Res.string().getBundle().getString("NET_RENDER_GETOSDTIME_ERROR");
+ break;
+ case NetSDKLib.NET_GROUP_EXIST: // (0x80000000|140) 组名已存在
+ msg = Res.string().getBundle().getString("NET_GROUP_EXIST");
+ break;
+ case NetSDKLib.NET_GROUP_NOEXIST: // (0x80000000|141) 组名不存在
+ msg = Res.string().getBundle().getString("NET_GROUP_NOEXIST");
+ break;
+ case NetSDKLib.NET_GROUP_RIGHTOVER: // (0x80000000|142) 组的权限超出权限列表范围
+ msg = Res.string().getBundle().getString("NET_GROUP_RIGHTOVER");
+ break;
+ case NetSDKLib.NET_GROUP_HAVEUSER: // (0x80000000|143) 组下有用户,不能删除
+ msg = Res.string().getBundle().getString("NET_GROUP_HAVEUSER");
+ break;
+ case NetSDKLib.NET_GROUP_RIGHTUSE: // (0x80000000|144) 组的某个权限被用户使用,不能出除
+ msg = Res.string().getBundle().getString("NET_GROUP_RIGHTUSE");
+ break;
+ case NetSDKLib.NET_GROUP_SAMENAME: // (0x80000000|145) 新组名同已有组名重复
+ msg = Res.string().getBundle().getString("NET_GROUP_SAMENAME");
+ break;
+ case NetSDKLib.NET_USER_EXIST: // (0x80000000|146) 用户已存在
+ msg = Res.string().getBundle().getString("NET_USER_EXIST");
+ break;
+ case NetSDKLib.NET_USER_NOEXIST: // (0x80000000|147) 用户不存在
+ msg = Res.string().getBundle().getString("NET_USER_NOEXIST");
+ break;
+ case NetSDKLib.NET_USER_RIGHTOVER: // (0x80000000|148) 用户权限超出组权限
+ msg = Res.string().getBundle().getString("NET_USER_RIGHTOVER");
+ break;
+ case NetSDKLib.NET_USER_PWD: // (0x80000000|149) 保留帐号,不容许修改密码
+ msg = Res.string().getBundle().getString("NET_USER_PWD");
+ break;
+ case NetSDKLib.NET_USER_FLASEPWD: // (0x80000000|150) 密码不正确
+ msg = Res.string().getBundle().getString("NET_USER_FLASEPWD");
+ break;
+ case NetSDKLib.NET_USER_NOMATCHING: // (0x80000000|151) 密码不匹配
+ msg = Res.string().getBundle().getString("NET_USER_NOMATCHING");
+ break;
+ case NetSDKLib.NET_USER_INUSE: // (0x80000000|152) 账号正在使用中
+ msg = Res.string().getBundle().getString("NET_USER_INUSE");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_ETHERNET: // (0x80000000|300) 获取网卡配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ETHERNET");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_WLAN: // (0x80000000|301) 获取无线网络信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLAN");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_WLANDEV: // (0x80000000|302) 获取无线网络设备失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLANDEV");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_REGISTER: // (0x80000000|303) 获取主动注册参数失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_REGISTER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_CAMERA: // (0x80000000|304) 获取摄像头属性失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CAMERA");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_INFRARED: // (0x80000000|305) 获取红外报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_INFRARED");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SOUNDALARM: // (0x80000000|306) 获取音频报警配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SOUNDALARM");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_STORAGE: // (0x80000000|307) 获取存储位置配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_STORAGE");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_MAIL: // (0x80000000|308) 获取邮件配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MAIL");
+ break;
+ case NetSDKLib.NET_CONFIG_DEVBUSY: // (0x80000000|309) 暂时无法设置
+ msg = Res.string().getBundle().getString("NET_CONFIG_DEVBUSY");
+ break;
+ case NetSDKLib.NET_CONFIG_DATAILLEGAL: // (0x80000000|310) 配置数据不合法
+ msg = Res.string().getBundle().getString("NET_CONFIG_DATAILLEGAL");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_DST: // (0x80000000|311) 获取夏令时配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DST");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_DST: // (0x80000000|312) 设置夏令时配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DST");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_VIDEO_OSD: // (0x80000000|313) 获取视频OSD叠加配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO_OSD");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_VIDEO_OSD: // (0x80000000|314) 设置视频OSD叠加配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO_OSD");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_GPRSCDMA: // (0x80000000|315) 获取CDMA\GPRS网络配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GPRSCDMA");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_GPRSCDMA: // (0x80000000|316) 设置CDMA\GPRS网络配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GPRSCDMA");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_IPFILTER: // (0x80000000|317) 获取IP过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_IPFILTER: // (0x80000000|318) 设置IP过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_TALKENCODE: // (0x80000000|319) 获取语音对讲编码配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TALKENCODE");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_TALKENCODE: // (0x80000000|320) 设置语音对讲编码配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TALKENCODE");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_RECORDLEN: // (0x80000000|321) 获取录像打包长度配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORDLEN");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_RECORDLEN: // (0x80000000|322) 设置录像打包长度配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORDLEN");
+ break;
+ case NetSDKLib.NET_DONT_SUPPORT_SUBAREA: // (0x80000000|323) 不支持网络硬盘分区
+ msg = Res.string().getBundle().getString("NET_DONT_SUPPORT_SUBAREA");
+ break;
+ case NetSDKLib.NET_ERROR_GET_AUTOREGSERVER: // (0x80000000|324) 获取设备上主动注册服务器信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_AUTOREGSERVER");
+ break;
+ case NetSDKLib.NET_ERROR_CONTROL_AUTOREGISTER: // (0x80000000|325) 主动注册重定向注册错误
+ msg = Res.string().getBundle().getString("NET_ERROR_CONTROL_AUTOREGISTER");
+ break;
+ case NetSDKLib.NET_ERROR_DISCONNECT_AUTOREGISTER: // (0x80000000|326) 断开主动注册服务器错误
+ msg = Res.string().getBundle().getString("NET_ERROR_DISCONNECT_AUTOREGISTER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_MMS: // (0x80000000|327) 获取mms配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MMS");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_MMS: // (0x80000000|328) 设置mms配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MMS");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_SMSACTIVATION: // (0x80000000|329) 获取短信激活无线连接配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SMSACTIVATION");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_SMSACTIVATION: // (0x80000000|330) 设置短信激活无线连接配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SMSACTIVATION");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_DIALINACTIVATION: // (0x80000000|331) 获取拨号激活无线连接配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DIALINACTIVATION");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_DIALINACTIVATION: // (0x80000000|332) 设置拨号激活无线连接配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DIALINACTIVATION");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_VIDEOOUT: // (0x80000000|333) 查询视频输出参数配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOOUT");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_VIDEOOUT: // (0x80000000|334) 设置视频输出参数配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOOUT");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_OSDENABLE: // (0x80000000|335) 获取osd叠加使能配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_OSDENABLE");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_OSDENABLE: // (0x80000000|336) 设置osd叠加使能配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_OSDENABLE");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_ENCODERINFO: // (0x80000000|337) 设置数字通道前端编码接入配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ENCODERINFO");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_TVADJUST: // (0x80000000|338) 获取TV调节配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TVADJUST");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_TVADJUST: // (0x80000000|339) 设置TV调节配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TVADJUST");
+ break;
+ case NetSDKLib.NET_ERROR_CONNECT_FAILED: // (0x80000000|340) 请求建立连接失败
+ msg = Res.string().getBundle().getString("NET_ERROR_CONNECT_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_BURNFILE: // (0x80000000|341) 请求刻录文件上传失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_BURNFILE");
+ break;
+ case NetSDKLib.NET_ERROR_SNIFFER_GETCFG: // (0x80000000|342) 获取抓包配置信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_GETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_SNIFFER_SETCFG: // (0x80000000|343) 设置抓包配置信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_SETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_DOWNLOADRATE_GETCFG: // (0x80000000|344) 查询下载限制信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_GETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_DOWNLOADRATE_SETCFG: // (0x80000000|345) 设置下载限制信息失败
+ msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_SETCFG");
+ break;
+ case NetSDKLib.NET_ERROR_SEARCH_TRANSCOM: // (0x80000000|346) 查询串口参数失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SEARCH_TRANSCOM");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_POINT: // (0x80000000|347) 获取预制点信息错误
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_POINT");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_POINT: // (0x80000000|348) 设置预制点信息错误
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_POINT");
+ break;
+ case NetSDKLib.NET_SDK_LOGOUT_ERROR: // (0x80000000|349) SDK没有正常登出设备
+ msg = Res.string().getBundle().getString("NET_SDK_LOGOUT_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_GET_VEHICLE_CFG: // (0x80000000|350) 获取车载配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_VEHICLE_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_VEHICLE_CFG: // (0x80000000|351) 设置车载配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_VEHICLE_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_GET_ATM_OVERLAY_CFG: // (0x80000000|352) 获取atm叠加配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_ATM_OVERLAY_CFG: // (0x80000000|353) 设置atm叠加配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_ATM_OVERLAY_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_GET_ATM_OVERLAY_ABILITY: // (0x80000000|354) 获取atm叠加能力失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_ABILITY");
+ break;
+ case NetSDKLib.NET_ERROR_GET_DECODER_TOUR_CFG: // (0x80000000|355) 获取解码器解码轮巡配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODER_TOUR_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_DECODER_TOUR_CFG: // (0x80000000|356) 设置解码器解码轮巡配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODER_TOUR_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_CTRL_DECODER_TOUR: // (0x80000000|357) 控制解码器解码轮巡失败
+ msg = Res.string().getBundle().getString("NET_ERROR_CTRL_DECODER_TOUR");
+ break;
+ case NetSDKLib.NET_GROUP_OVERSUPPORTNUM: // (0x80000000|358) 超出设备支持最大用户组数目
+ msg = Res.string().getBundle().getString("NET_GROUP_OVERSUPPORTNUM");
+ break;
+ case NetSDKLib.NET_USER_OVERSUPPORTNUM: // (0x80000000|359) 超出设备支持最大用户数目
+ msg = Res.string().getBundle().getString("NET_USER_OVERSUPPORTNUM");
+ break;
+ case NetSDKLib.NET_ERROR_GET_SIP_CFG: // (0x80000000|368) 获取SIP配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_SIP_CFG: // (0x80000000|369) 设置SIP配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_SIP_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_GET_SIP_ABILITY: // (0x80000000|370) 获取SIP能力失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_ABILITY");
+ break;
+ case NetSDKLib.NET_ERROR_GET_WIFI_AP_CFG: // (0x80000000|371) 获取WIFI ap配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_WIFI_AP_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_WIFI_AP_CFG: // (0x80000000|372) 设置WIFI ap配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_WIFI_AP_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_GET_DECODE_POLICY: // (0x80000000|373) 获取解码策略配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODE_POLICY");
+ break;
+ case NetSDKLib.NET_ERROR_SET_DECODE_POLICY: // (0x80000000|374) 设置解码策略配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODE_POLICY");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_REJECT: // (0x80000000|375) 拒绝对讲
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_REJECT");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_OPENED: // (0x80000000|376) 对讲被其他客户端打开
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_OPENED");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_RESOURCE_CONFLICIT: // (0x80000000|377) 资源冲突
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_RESOURCE_CONFLICIT");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_UNSUPPORTED_ENCODE: // (0x80000000|378) 不支持的语音编码格式
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_UNSUPPORTED_ENCODE");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_RIGHTLESS: // (0x80000000|379) 无权限
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_RIGHTLESS");
+ break;
+ case NetSDKLib.NET_ERROR_TALK_FAILED: // (0x80000000|380) 请求对讲失败
+ msg = Res.string().getBundle().getString("NET_ERROR_TALK_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_GET_MACHINE_CFG: // (0x80000000|381) 获取机器相关配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_MACHINE_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_SET_MACHINE_CFG: // (0x80000000|382) 设置机器相关配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_MACHINE_CFG");
+ break;
+ case NetSDKLib.NET_ERROR_GET_DATA_FAILED: // (0x80000000|383) 设备无法获取当前请求数据
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_DATA_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_MAC_VALIDATE_FAILED: // (0x80000000|384) MAC地址验证失败
+ msg = Res.string().getBundle().getString("NET_ERROR_MAC_VALIDATE_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_GET_INSTANCE: // (0x80000000|385) 获取服务器实例失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_INSTANCE");
+ break;
+ case NetSDKLib.NET_ERROR_JSON_REQUEST: // (0x80000000|386) 生成的json字符串错误
+ msg = Res.string().getBundle().getString("NET_ERROR_JSON_REQUEST");
+ break;
+ case NetSDKLib.NET_ERROR_JSON_RESPONSE: // (0x80000000|387) 响应的json字符串错误
+ msg = Res.string().getBundle().getString("NET_ERROR_JSON_RESPONSE");
+ break;
+ case NetSDKLib.NET_ERROR_VERSION_HIGHER: // (0x80000000|388) 协议版本低于当前使用的版本
+ msg = Res.string().getBundle().getString("NET_ERROR_VERSION_HIGHER");
+ break;
+ case NetSDKLib.NET_SPARE_NO_CAPACITY: // (0x80000000|389) 热备操作失败, 容量不足
+ msg = Res.string().getBundle().getString("NET_SPARE_NO_CAPACITY");
+ break;
+ case NetSDKLib.NET_ERROR_SOURCE_IN_USE: // (0x80000000|390) 显示源被其他输出占用
+ msg = Res.string().getBundle().getString("NET_ERROR_SOURCE_IN_USE");
+ break;
+ case NetSDKLib.NET_ERROR_REAVE: // (0x80000000|391) 高级用户抢占低级用户资源
+ msg = Res.string().getBundle().getString("NET_ERROR_REAVE");
+ break;
+ case NetSDKLib.NET_ERROR_NETFORBID: // (0x80000000|392) 禁止入网
+ msg = Res.string().getBundle().getString("NET_ERROR_NETFORBID");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_MACFILTER: // (0x80000000|393) 获取MAC过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MACFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_MACFILTER: // (0x80000000|394) 设置MAC过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MACFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_GETCFG_IPMACFILTER: // (0x80000000|395) 获取IP/MAC过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPMACFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_SETCFG_IPMACFILTER: // (0x80000000|396) 设置IP/MAC过滤配置失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPMACFILTER");
+ break;
+ case NetSDKLib.NET_ERROR_OPERATION_OVERTIME: // (0x80000000|397) 当前操作超时
+ msg = Res.string().getBundle().getString("NET_ERROR_OPERATION_OVERTIME");
+ break;
+ case NetSDKLib.NET_ERROR_SENIOR_VALIDATE_FAILED: // (0x80000000|398) 高级校验失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SENIOR_VALIDATE_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_DEVICE_ID_NOT_EXIST: // (0x80000000|399) 设备ID不存在
+ msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ID_NOT_EXIST");
+ break;
+ case NetSDKLib.NET_ERROR_UNSUPPORTED: // (0x80000000|400) 不支持当前操作
+ msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED");
+ break;
+ case NetSDKLib.NET_ERROR_PROXY_DLLLOAD: // (0x80000000|401) 代理库加载失败
+ msg = Res.string().getBundle().getString("NET_ERROR_PROXY_DLLLOAD");
+ break;
+ case NetSDKLib.NET_ERROR_PROXY_ILLEGAL_PARAM: // (0x80000000|402) 代理用户参数不合法
+ msg = Res.string().getBundle().getString("NET_ERROR_PROXY_ILLEGAL_PARAM");
+ break;
+ case NetSDKLib.NET_ERROR_PROXY_INVALID_HANDLE: // (0x80000000|403) 代理句柄无效
+ msg = Res.string().getBundle().getString("NET_ERROR_PROXY_INVALID_HANDLE");
+ break;
+ case NetSDKLib.NET_ERROR_PROXY_LOGIN_DEVICE_ERROR: // (0x80000000|404) 代理登入前端设备失败
+ msg = Res.string().getBundle().getString("NET_ERROR_PROXY_LOGIN_DEVICE_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_PROXY_START_SERVER_ERROR: // (0x80000000|405) 启动代理服务失败
+ msg = Res.string().getBundle().getString("NET_ERROR_PROXY_START_SERVER_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_SPEAK_FAILED: // (0x80000000|406) 请求喊话失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SPEAK_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_NOT_SUPPORT_F6: // (0x80000000|407) 设备不支持此F6接口调用
+ msg = Res.string().getBundle().getString("NET_ERROR_NOT_SUPPORT_F6");
+ break;
+ case NetSDKLib.NET_ERROR_CD_UNREADY: // (0x80000000|408) 光盘未就绪
+ msg = Res.string().getBundle().getString("NET_ERROR_CD_UNREADY");
+ break;
+ case NetSDKLib.NET_ERROR_DIR_NOT_EXIST: // (0x80000000|409) 目录不存在
+ msg = Res.string().getBundle().getString("NET_ERROR_DIR_NOT_EXIST");
+ break;
+ case NetSDKLib.NET_ERROR_UNSUPPORTED_SPLIT_MODE: // (0x80000000|410) 设备不支持的分割模式
+ msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED_SPLIT_MODE");
+ break;
+ case NetSDKLib.NET_ERROR_OPEN_WND_PARAM: // (0x80000000|411) 开窗参数不合法
+ msg = Res.string().getBundle().getString("NET_ERROR_OPEN_WND_PARAM");
+ break;
+ case NetSDKLib.NET_ERROR_LIMITED_WND_COUNT: // (0x80000000|412) 开窗数量超过限制
+ msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_WND_COUNT");
+ break;
+ case NetSDKLib.NET_ERROR_UNMATCHED_REQUEST: // (0x80000000|413) 请求命令与当前模式不匹配
+ msg = Res.string().getBundle().getString("NET_ERROR_UNMATCHED_REQUEST");
+ break;
+ case NetSDKLib.NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR: // (0x80000000|414) Render库启用高清图像内部调整策略出错
+ msg = Res.string().getBundle().getString("NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_UPGRADE_FAILED: // (0x80000000|415) 设备升级失败
+ msg = Res.string().getBundle().getString("NET_ERROR_UPGRADE_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_NO_TARGET_DEVICE: // (0x80000000|416) 找不到目标设备
+ msg = Res.string().getBundle().getString("NET_ERROR_NO_TARGET_DEVICE");
+ break;
+ case NetSDKLib.NET_ERROR_NO_VERIFY_DEVICE: // (0x80000000|417) 找不到验证设备
+ msg = Res.string().getBundle().getString("NET_ERROR_NO_VERIFY_DEVICE");
+ break;
+ case NetSDKLib.NET_ERROR_CASCADE_RIGHTLESS: // (0x80000000|418) 无级联权限
+ msg = Res.string().getBundle().getString("NET_ERROR_CASCADE_RIGHTLESS");
+ break;
+ case NetSDKLib.NET_ERROR_LOW_PRIORITY: // (0x80000000|419) 低优先级
+ msg = Res.string().getBundle().getString("NET_ERROR_LOW_PRIORITY");
+ break;
+ case NetSDKLib.NET_ERROR_REMOTE_REQUEST_TIMEOUT: // (0x80000000|420) 远程设备请求超时
+ msg = Res.string().getBundle().getString("NET_ERROR_REMOTE_REQUEST_TIMEOUT");
+ break;
+ case NetSDKLib.NET_ERROR_LIMITED_INPUT_SOURCE: // (0x80000000|421) 输入源超出最大路数限制
+ msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_INPUT_SOURCE");
+ break;
+ case NetSDKLib.NET_ERROR_SET_LOG_PRINT_INFO: // (0x80000000|422) 设置日志打印失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SET_LOG_PRINT_INFO");
+ break;
+ case NetSDKLib.NET_ERROR_PARAM_DWSIZE_ERROR: // (0x80000000|423) 入参的dwsize字段出错
+ msg = Res.string().getBundle().getString("NET_ERROR_PARAM_DWSIZE_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_LIMITED_MONITORWALL_COUNT: // (0x80000000|424) 电视墙数量超过上限
+ msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_MONITORWALL_COUNT");
+ break;
+ case NetSDKLib.NET_ERROR_PART_PROCESS_FAILED: // (0x80000000|425) 部分过程执行失败
+ msg = Res.string().getBundle().getString("NET_ERROR_PART_PROCESS_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_TARGET_NOT_SUPPORT: // (0x80000000|426) 该功能不支持转发
+ msg = Res.string().getBundle().getString("NET_ERROR_TARGET_NOT_SUPPORT");
+ break;
+ case NetSDKLib.NET_ERROR_VISITE_FILE: // (0x80000000|510) 访问文件失败
+ msg = Res.string().getBundle().getString("NET_ERROR_VISITE_FILE");
+ break;
+ case NetSDKLib.NET_ERROR_DEVICE_STATUS_BUSY: // (0x80000000|511) 设备忙
+ msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_STATUS_BUSY");
+ break;
+ case NetSDKLib.NET_USER_PWD_NOT_AUTHORIZED: // (0x80000000|512)修改密码无权限
+ msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_AUTHORIZED");
+ break;
+ case NetSDKLib.NET_USER_PWD_NOT_STRONG: // (0x80000000|513) 密码强度不够
+ msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_STRONG");
+ break;
+ case NetSDKLib.NET_ERROR_NO_SUCH_CONFIG: // (0x80000000|514) 没有对应的配置
+ msg = Res.string().getBundle().getString("NET_ERROR_NO_SUCH_CONFIG");
+ break;
+ case NetSDKLib.NET_ERROR_AUDIO_RECORD_FAILED: // (0x80000000|515) 录音失败
+ msg = Res.string().getBundle().getString("NET_ERROR_AUDIO_RECORD_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_SEND_DATA_FAILED: // (0x80000000|516) 数据发送失败
+ msg = Res.string().getBundle().getString("NET_ERROR_SEND_DATA_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_OBSOLESCENT_INTERFACE: // (0x80000000|517) 废弃接口
+ msg = Res.string().getBundle().getString("NET_ERROR_OBSOLESCENT_INTERFACE");
+ break;
+ case NetSDKLib.NET_ERROR_INSUFFICIENT_INTERAL_BUF: // (0x80000000|518) 内部缓冲不足
+ msg = Res.string().getBundle().getString("NET_ERROR_INSUFFICIENT_INTERAL_BUF");
+ break;
+ case NetSDKLib.NET_ERROR_NEED_ENCRYPTION_PASSWORD: // (0x80000000|519) 修改设备ip时,需要校验密码
+ msg = Res.string().getBundle().getString("NET_ERROR_NEED_ENCRYPTION_PASSWORD");
+ break;
+ case NetSDKLib.NET_ERROR_NOSUPPORT_RECORD: // (0x80000000|520) 设备不支持此记录集
+ msg = Res.string().getBundle().getString("NET_ERROR_NOSUPPORT_RECORD");
+ break;
+ case NetSDKLib.NET_ERROR_SERIALIZE_ERROR: // (0x80000000|1010) 数据序列化错误
+ msg = Res.string().getBundle().getString("NET_ERROR_SERIALIZE_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_DESERIALIZE_ERROR: // (0x80000000|1011) 数据反序列化错误
+ msg = Res.string().getBundle().getString("NET_ERROR_DESERIALIZE_ERROR");
+ break;
+ case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_EXISTED: // (0x80000000|1012) 该无线ID已存在
+ msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_EXISTED");
+ break;
+ case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_LIMIT: // (0x80000000|1013) 无线ID数量已超限
+ msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_LIMIT");
+ break;
+ case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_ABNORMAL: // (0x80000000|1014) 无线异常添加
+ msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_ABNORMAL");
+ break;
+ case NetSDKLib.NET_ERROR_ENCRYPT: // (0x80000000|1015) 加密数据失败
+ msg = Res.string().getBundle().getString("NET_ERROR_ENCRYPT");
+ break;
+ case NetSDKLib.NET_ERROR_PWD_ILLEGAL: // (0x80000000|1016) 新密码不合规范
+ msg = Res.string().getBundle().getString("NET_ERROR_PWD_ILLEGAL");
+ break;
+ case NetSDKLib.NET_ERROR_DEVICE_ALREADY_INIT: // (0x80000000|1017) 设备已经初始化
+ msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ALREADY_INIT");
+ break;
+ case NetSDKLib.NET_ERROR_SECURITY_CODE: // (0x80000000|1018) 安全码错误
+ msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE");
+ break;
+ case NetSDKLib.NET_ERROR_SECURITY_CODE_TIMEOUT: // (0x80000000|1019) 安全码超出有效期
+ msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE_TIMEOUT");
+ break;
+ case NetSDKLib.NET_ERROR_GET_PWD_SPECI: // (0x80000000|1020) 获取密码规范失败
+ msg = Res.string().getBundle().getString("NET_ERROR_GET_PWD_SPECI");
+ break;
+ case NetSDKLib.NET_ERROR_NO_AUTHORITY_OF_OPERATION: // (0x80000000|1021) 无权限进行该操作
+ msg = Res.string().getBundle().getString("NET_ERROR_NO_AUTHORITY_OF_OPERATION");
+ break;
+ case NetSDKLib.NET_ERROR_DECRYPT: // (0x80000000|1022) 解密数据失败
+ msg = Res.string().getBundle().getString("NET_ERROR_DECRYPT");
+ break;
+ case NetSDKLib.NET_ERROR_2D_CODE: // (0x80000000|1023) 2D code校验失败
+ msg = Res.string().getBundle().getString("NET_ERROR_2D_CODE");
+ break;
+ case NetSDKLib.NET_ERROR_INVALID_REQUEST: // (0x80000000|1024) 非法的RPC请求
+ msg = Res.string().getBundle().getString("NET_ERROR_INVALID_REQUEST");
+ break;
+ case NetSDKLib.NET_ERROR_PWD_RESET_DISABLE: // (0x80000000|1025) 密码重置功能已关闭
+ msg = Res.string().getBundle().getString("NET_ERROR_PWD_RESET_DISABLE");
+ break;
+ case NetSDKLib.NET_ERROR_PLAY_PRIVATE_DATA: // (0x80000000|1026) 显示私有数据,比如规则框等失败
+ msg = Res.string().getBundle().getString("NET_ERROR_PLAY_PRIVATE_DATA");
+ break;
+ case NetSDKLib.NET_ERROR_ROBOT_OPERATE_FAILED: // (0x80000000|1027) 机器人操作失败
+ msg = Res.string().getBundle().getString("NET_ERROR_ROBOT_OPERATE_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT: // (0x80000000|1028) 图片大小超限
+ msg = Res.string().getBundle().getString("NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT");
+ break;
+ case NetSDKLib.NET_ERROR_USERID_INVALID: // (0x80000000|1029) 用户ID不存在
+ msg = Res.string().getBundle().getString("NET_ERROR_USERID_INVALID");
+ break;
+ case NetSDKLib.NET_ERROR_EXTRACTFEATURE_FAILED: // (0x80000000|1030) 照片特征值提取失败
+ msg = Res.string().getBundle().getString("NET_ERROR_EXTRACTFEATURE_FAILED");
+ break;
+ case NetSDKLib.NET_ERROR_PHOTO_EXIST: // (0x80000000|1031) 照片已存在
+ msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_EXIST");
+ break;
+ case NetSDKLib.NET_ERROR_PHOTO_OVERFLOW: // (0x80000000|1032) 照片数量超过上限
+ msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_OVERFLOW");
+ break;
+ case NetSDKLib.NET_ERROR_CHANNEL_ALREADY_OPENED: // (0x80000000|1033) 通道已经打开
+ msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_ALREADY_OPENED");
+ break;
+ case NetSDKLib.NET_ERROR_CREATE_SOCKET: // (0x80000000|1034) 创建套接字失败
+ msg = Res.string().getBundle().getString("NET_ERROR_CREATE_SOCKET");
+ break;
+ case NetSDKLib.NET_ERROR_CHANNEL_NUM: // (0x80000000|1035) 通道号错误
+ msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_NUM");
+ break;
+ case NetSDKLib.NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED: // (0x80000000|1051) 组ID超过最大值
+ msg = Res.string().getBundle().getString("NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED");
+ break;
+ default:
+ msg = Res.string().getBundle().getString("NET_ERROR");
+ break;
+ }
+ return msg;
+ }
+
+}
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskCommonQueue.java b/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskCommonQueue.java
new file mode 100644
index 0000000..2b32660
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskCommonQueue.java
@@ -0,0 +1,79 @@
+package com.zhehekeji.web.lib.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(MAX_TASK_COUNT);
+
+ // 起一个线程池
+ private final int MAX_THREAD_COUNT = 10; // 线程池容量
+ private ExecutorService eventQueueService = Executors.newFixedThreadPool(MAX_THREAD_COUNT);
+
+ // 用于检验服务运行状态
+ private volatile boolean running = true;
+
+ // 用于查看当前线程状态
+ private Future> eventQueueThreadStatus;
+
+ // 初始化
+ public void init() {
+ eventQueueThreadStatus = eventQueueService.submit(new Thread(new Runnable() {
+ @Override
+ public void run() {
+ while (running) {
+ try {
+ EventTaskHandler task = eventTasks.take(); //开始一个任务
+ try {
+ task.eventTaskProcess(); // 主要的运行函数
+ } catch (Exception e) {
+ System.err.println("任务处理发生错误"); // error
+ }
+ } catch (InterruptedException e) {
+ System.err.println("任务已意外停止"); // error
+ running = false;
+ }
+ }
+ }
+ }, "Event call back thread init"));
+ }
+
+ // 向队列添加新的任务
+ public boolean addEvent(EventTaskHandler eventHandler) {
+ if (!running) {
+ System.out.println("任务已停止"); // warning
+ return false;
+ }
+ boolean success = eventTasks.offer(eventHandler);
+ if (!success) {
+ // 队列已满,无法再添加
+ System.out.println("添加到事件队列失败");
+ }
+ return success;
+ }
+
+
+ // 手动启动服务
+ public void activeService() {
+ running = true;
+ if (eventQueueService.isShutdown()) {
+ eventQueueService = Executors.newFixedThreadPool(MAX_THREAD_COUNT);;
+ init();
+ System.out.println("线程池已关闭,重新初始化线程池及任务");
+ }
+ if (eventQueueThreadStatus.isDone()) {
+ init();
+ System.out.println("线程池任务结束,重新初始化任务");
+ }
+ }
+
+ // 手动关闭服务
+ public void destroy() {
+ running = false;
+ eventQueueService.shutdownNow();
+ }
+}
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskHandler.java b/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskHandler.java
new file mode 100644
index 0000000..5cb3b1a
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/EventTaskHandler.java
@@ -0,0 +1,6 @@
+package com.zhehekeji.web.lib.common;
+
+public interface EventTaskHandler {
+
+ void eventTaskProcess();
+}
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/Res.java b/web/src/main/java/com/zhehekeji/web/lib/common/Res.java
new file mode 100644
index 0000000..561e662
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/Res.java
@@ -0,0 +1,2740 @@
+package com.zhehekeji.web.lib.common;
+
+import com.zhehekeji.web.lib.NetSDKLib;
+import com.zhehekeji.web.lib.NetSDKLib.*;
+
+import java.util.Locale;
+import java.util.ResourceBundle;
+
+public final class Res {
+
+ private static ResourceBundle bundle;
+
+ private Res() {
+ switchLanguage(LanguageType.Chinese);
+ }
+
+ private static class StringBundleHolder {
+ private static Res instance = new Res();
+ }
+
+ public static Res string() {
+ return StringBundleHolder.instance;
+ }
+
+ public static enum LanguageType {
+ English,
+ Chinese
+ }
+
+ public ResourceBundle getBundle() {
+ return bundle;
+ }
+
+ /**
+ * \if ENGLISH_LANG
+ * Switch between Chinese and English
+ * \else
+ * 中英文切换
+ * \endif
+ */
+ public void switchLanguage(LanguageType type) {
+ switch(type) {
+ case Chinese:
+ bundle = ResourceBundle.getBundle("res", new Locale("zh", "CN"));
+ break;
+ case English:
+ bundle = ResourceBundle.getBundle("res", new Locale("en", "US"));
+ break;
+ default:
+ break;
+ }
+ }
+
+ 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 = {getSunday(),
+ getMonday(),
+ getTuesday(),
+ getWednesday(),
+ getThursday(),
+ getFriday(),
+ 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 = {getIndex(),
+ getEventName(),
+ getLicensePlate(),
+ getEventTime(),
+ getPlateType(),
+ getPlateColor(),
+ getVehicleColor(),
+ getVehicleType(),
+ getVehicleSize(),
+ getFileCount(),
+ getFileIndex(),
+ getGroupId(),
+ getIllegalPlace(),
+ 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");
+ break;
+ }
+ }
+ }
+
+ return vehicleClass;
+ }
+
+ /*
+ * 获取事件名称
+ */
+ public String getEventName(int type) {
+ String name = "";
+ switch (type) {
+ case NetSDKLib.EVENT_IVS_TRAFFICJUNCTION: ///< 交通路口事件
+ name = bundle.getString("EVENT_IVS_TRAFFICJUNCTION");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_RUNREDLIGHT: ///< 闯红灯事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_RUNREDLIGHT");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_OVERLINE: ///< 压车道线事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_OVERLINE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_RETROGRADE: ///< 逆行事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_RETROGRADE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_TURNLEFT: ///< 违章左转
+ name = bundle.getString("EVENT_IVS_TRAFFIC_TURNLEFT");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_TURNRIGHT: ///< 违章右转
+ name = bundle.getString("EVENT_IVS_TRAFFIC_TURNRIGHT");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_UTURN: ///< 违章掉头
+ name = bundle.getString("EVENT_IVS_TRAFFIC_UTURN");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_OVERSPEED: ///< 超速
+ name = bundle.getString("EVENT_IVS_TRAFFIC_OVERSPEED");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_UNDERSPEED: ///< 低速
+ name = bundle.getString("EVENT_IVS_TRAFFIC_UNDERSPEED");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_PARKING: ///< 违章停车
+ name = bundle.getString("EVENT_IVS_TRAFFIC_PARKING");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_WRONGROUTE: ///< 不按车道行驶
+ name = bundle.getString("EVENT_IVS_TRAFFIC_WRONGROUTE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_CROSSLANE: ///< 违章变道
+ name = bundle.getString("EVENT_IVS_TRAFFIC_CROSSLANE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_OVERYELLOWLINE: ///< 压黄线
+ name = bundle.getString("EVENT_IVS_TRAFFIC_OVERYELLOWLINE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE: ///< 黄牌车占道事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_YELLOWPLATEINLANE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY: ///< 斑马线行人优先事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_PEDESTRAINPRIORITY");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_MANUALSNAP: ///< 交通手动抓拍事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_MANUALSNAP");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_VEHICLEINROUTE: ///< 有车占道事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_VEHICLEINROUTE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE: ///< 占用公交车道事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_VEHICLEINBUSROUTE");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_BACKING: ///< 违章倒车事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_BACKING");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING: ///< 车位有车事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_PARKINGSPACEPARKING");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING: ///< 车位无车事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_PARKINGSPACENOPARKING");
+ break;
+ case NetSDKLib.EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT: ///< 交通未系安全带事件
+ name = bundle.getString("EVENT_IVS_TRAFFIC_WITHOUT_SAFEBELT");
+ break;
+ default:
+ break;
+ }
+
+ 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 = {getIndex(),
+ getChannel(),
+ getRecordType(),
+ getStartTime(),
+ 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");
+ break;
+ case 5:
+ recordTypeStr = bundle.getString("INTELLIGENT_DETECTION");
+ break;
+ case 19:
+ recordTypeStr = bundle.getString("POS_RECORD");
+ break;
+ default:
+ break;
+ }
+
+ 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 = {getIndex(),
+ getDeviceInitState(),
+ getIpVersion(),
+ getDeviceIp(),
+ getPort(),
+ getSubMask(),
+ getGetway(),
+ getDeviceMac(),
+ getDeviceType(),
+ getDetailType(),
+ 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");
+ }
+
+ // 0-老设备,没有初始化功能 1-未初始化账号 2-已初始化账户
+ public String getInitStateInfo(int initStatus) {
+ String initStateInfo = "";
+ switch(initStatus) {
+ case 0:
+ initStateInfo = getInitialized();
+ break;
+ case 1:
+ initStateInfo = getNotInitialized();
+ break;
+ case 2:
+ initStateInfo = getInitialized();
+ break;
+ }
+ 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 = {getFaceGroupId(),
+ 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 getRace() {
+ return bundle.getString("RACE");
+ }
+
+ 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 = {getUid(), getName(), getSex(), getBirthday(), getIdType(), getIdNo()};
+ return personTable;
+ }
+
+ public String[] getDispositionTable() {
+ String[] dispositionTable = {getChannel(), 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 = {getUnLimited(), getMale(), getFemale()};
+ return faceSexStr;
+ }
+
+ public String[] getIdStringsFind() {
+ String[] idStr = {getUnLimited(), getIdCard(), getPassport(),};
+ return idStr;
+ }
+
+ public String[] getSexStrings() {
+ String[] faceSexStr = {getUnKnow(), getMale(), getFemale()};
+ return faceSexStr;
+ }
+
+ public String[] getIdStrings() {
+ String[] idStr = {getUnKnow(), getIdCard(), 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 = getUnKnow();
+ break;
+ case 1:
+ str = getIdCard();
+ break;
+ case 2:
+ str = getPassport();
+ break;
+ case 3:
+ str = getOfficeCard();
+ break;
+ default :
+ str = getUnKnow();
+ break;
+ }
+ return str;
+ }
+
+ public String getSex(int sex) {
+ String str = "";
+ switch(sex) {
+ case 0:
+ str = getUnKnow();
+ break;
+ case 1:
+ str = getMale();
+ break;
+ case 2:
+ str = getFemale();
+ break;
+ default :
+ str = getUnKnow();
+ break;
+ }
+ 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 = getUnKnow();
+ break;
+ case 1:
+ str = getUnidentified();
+ break;
+ case 2:
+ str = getNoBeard();
+ break;
+ case 3:
+ str = getHaveBeard();
+ break;
+ default:
+ str = getUnKnow();
+ break;
+ }
+ 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 = getUnKnow();
+ break;
+ case 1:
+ str = getUnidentified();
+ break;
+ case 2:
+ str = getCloseMouth();
+ break;
+ case 3:
+ str = getOpenMouth();
+ break;
+ default:
+ str = getUnKnow();
+ break;
+ }
+ return str;
+ }
+
+ public String getYellowRace() {
+ return bundle.getString("YELLOW_RACE");
+ }
+
+ public String getBlackRace() {
+ return bundle.getString("BLACK_RACE");
+ }
+
+ public String getWhiteRace() {
+ return bundle.getString("WHITE_RACE");
+ }
+
+ public String getRace(int race) {
+ String str = "";
+ switch (race) {
+ case 0:
+ str = getUnKnow();
+ break;
+ case 1:
+ str = getUnidentified();
+ break;
+ case 2:
+ str = getYellowRace();
+ break;
+ case 3:
+ str = getBlackRace();
+ break;
+ case 4:
+ str = getWhiteRace();
+ break;
+ default:
+ str = getUnKnow();
+ break;
+ }
+ 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 = getUnidentified();
+ switch (eye) {
+ case 0:
+ str = getUnKnow();
+ break;
+ case 1:
+ str = getUnidentified();
+ break;
+ case 2:
+ str = getCloseEye();
+ break;
+ case 3:
+ str = getOpenEye();
+ break;
+ default:
+ str = getUnKnow();
+ break;
+ }
+ 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 = getUnKnow();
+ break;
+ case 1:
+ str = getWearGlasses();
+ break;
+ case 2:
+ str = getSmile();
+ break;
+ case 3:
+ str = getAnger();
+ break;
+ case 4:
+ str = getSadness();
+ break;
+ case 5:
+ str = getDisgust();
+ break;
+ case 6:
+ str = getFear();
+ break;
+ case 7:
+ str = getSurprise();
+ break;
+ case 8:
+ str = getNeutral();
+ break;
+ case 9:
+ str = getLaugh();
+ break;
+ default:
+ str = getUnKnow();
+ break;
+ }
+ 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 = getUnKnow();
+ break;
+ case 1:
+ maskStateStr = getUnidentified();
+ break;
+ case 2:
+ maskStateStr = geNoMask();
+ break;
+ case 3:
+ maskStateStr = getWearMask();
+ break;
+ default:
+ maskStateStr = getUnKnow();
+ break;
+ }
+ 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 = getUnKnow();
+ break;
+ case 1:
+ glassesStr = getNoGlasses();
+ break;
+ case 2:
+ glassesStr = getWearGlasses();
+ break;
+ default:
+ break;
+ }
+ 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[] {getIndex(),
+ getCardNo(),
+ getCardName(),
+ getRecordNo(),
+ getUserId(),
+ getCardPassword(),
+ getCardStatus(),
+ getCardType(),
+ getUseTimes(),
+ getIsFirstEnter(),
+ getIsValid(),
+ getValidStartTime(),
+ getValidEndTime()};
+ }
+
+ /*
+ * 用于列表显示
+ */
+ public String getCardStatus(int status) {
+ String statusString = "";
+ switch(status) {
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_UNKNOWN: // 未知
+ statusString = bundle.getString("STATE_UNKNOWN");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_NORMAL: // 正常
+ statusString = bundle.getString("STATE_NORMAL");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_LOSE: // 挂失
+ statusString = bundle.getString("STATE_LOSE");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_LOGOFF: // 注销
+ statusString = bundle.getString("STATE_LOGOFF");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_FREEZE: // 冻结
+ statusString = bundle.getString("STATE_FREEZE");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_ARREARAGE: // 欠费
+ statusString = bundle.getString("STATE_ARREARS");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_OVERDUE: // 逾期
+ statusString = bundle.getString("STATE_OVERDUE");
+ break;
+ case NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_PREARREARAGE: // 预欠费
+ statusString = bundle.getString("STATE_PREARREARS");
+ break;
+ default:
+ statusString = bundle.getString("STATE_UNKNOWN");
+ break;
+ }
+
+ return statusString;
+ }
+
+ /*
+ * 根据控件的索引,获取对应的卡状态的Int值, 用于添加 和 修改卡信息
+ */
+ public int getCardStatusInt(int index) {
+ int status = 0;
+ switch(index) {
+ case 1: // 未知
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_UNKNOWN;
+ break;
+ case 0: // 正常
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_NORMAL;
+ break;
+ case 2: // 挂失
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_LOSE;
+ break;
+ case 3: // 注销
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_LOGOFF;
+ break;
+ case 4: // 冻结
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_FREEZE;
+ break;
+ case 5: // 欠费
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_ARREARAGE;
+ break;
+ case 6: // 逾期
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_OVERDUE;
+ break;
+ case 7: // 预欠费
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_PREARREARAGE;
+ break;
+ default:
+ status = NET_ACCESSCTLCARD_STATE.NET_ACCESSCTLCARD_STATE_UNKNOWN;
+ break;
+ }
+
+ 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 NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_UNKNOWN: // 未知
+ cardTypeString = bundle.getString("CARD_UNKNOW");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_GENERAL: // 一般卡
+ cardTypeString = bundle.getString("CARD_GENERAL");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_VIP: // VIP卡
+ cardTypeString = bundle.getString("CARD_VIP");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_GUEST: // 来宾卡
+ cardTypeString = bundle.getString("CARD_GUEST");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_PATROL: // 巡逻卡
+ cardTypeString = bundle.getString("CARD_PATROL");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_BLACKLIST: // 黑名单卡
+ cardTypeString = bundle.getString("CARD_BACKLIST");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_CORCE: // 胁迫卡
+ cardTypeString = bundle.getString("CARD_COERCE");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_POLLING: // 巡检卡
+ cardTypeString = bundle.getString("CARD_POLLING");
+ break;
+ case NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_MOTHERCARD: // 母卡
+ cardTypeString = bundle.getString("CARD_MOTHERCARD");
+ break;
+ default:
+ cardTypeString = bundle.getString("CARD_UNKNOW");
+ break;
+ }
+
+ return cardTypeString;
+ }
+
+ /*
+ * 根据控件索引,获取对应的卡类型Int值
+ */
+ public int getCardTypeInt(int index) {
+ int type = 0;
+
+ switch(index) {
+ case 1:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_UNKNOWN;
+ break;
+ case 0:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_GENERAL;
+ break;
+ case 2:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_VIP;
+ break;
+ case 3:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_GUEST;
+ break;
+ case 4:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_PATROL;
+ break;
+ case 5:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_BLACKLIST;
+ break;
+ case 6:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_CORCE;
+ break;
+ case 7:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_POLLING;
+ break;
+ case 8:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_MOTHERCARD;
+ break;
+ default:
+ type = NET_ACCESSCTLCARD_TYPE.NET_ACCESSCTLCARD_TYPE_UNKNOWN;
+ break;
+ }
+
+ 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 EM_MASK_STATE_TYPE.EM_MASK_STATE_UNKNOWN:
+ MaskStatus = bundle.getString("EM_MASK_STATE_UNKNOWN");
+ break;
+ case EM_MASK_STATE_TYPE.EM_MASK_STATE_NODISTI:
+ MaskStatus = bundle.getString("EM_MASK_STATE_NODISTI");
+ break;
+ case EM_MASK_STATE_TYPE.EM_MASK_STATE_NOMASK:
+ MaskStatus = bundle.getString("EM_MASK_STATE_NOMASK");
+ break;
+ case EM_MASK_STATE_TYPE.EM_MASK_STATE_WEAR:
+ MaskStatus = bundle.getString("EM_MASK_STATE_WEAR");
+ break;
+ }
+ return MaskStatus;
+ }
+
+ public String getOpenMethods(int emOpenMethod) {
+ String openMethods = "";
+ switch(emOpenMethod) {
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_UNKNOWN:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_UNKNOWN");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_PWD_ONLY:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_ONLY");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_FIRST:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_FIRST");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_PWD_FIRST:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_FIRST");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_REMOTE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_REMOTE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_BUTTON:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_BUTTON");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_PWD_CARD_FINGERPRINT:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_CARD_FINGERPRINT");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_PWD_FINGERPRINT:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PWD_FINGERPRINT");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_FINGERPRINT:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_FINGERPRINT");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_PERSONS:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_PERSONS");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_KEY:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_KEY");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_COERCE_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_COERCE_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_QRCODE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_QRCODE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACE_RECOGNITION:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_RECOGNITION");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_AND_IDCARD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_AND_IDCARD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_BLUETOOTH:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_BLUETOOTH");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CUSTOM_PASSWORD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CUSTOM_PASSWORD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_USERID_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_USERID_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACE_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACE_OR_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACE_OR_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_AND_FACE_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FACE_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_AND_PWD_AND_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_PWD_AND_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE_OR_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FINGERPRINT_OR_FACE_OR_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE_OR_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FACE_OR_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_FACE_AND_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_AND_FINGERPRINT_AND_FACE_AND_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE_OR_PWD:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_CARD_OR_FINGERPRINT_OR_FACE_OR_PWD");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACEIPCARDANDIDCARD_OR_CARD_OR_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIPCARDANDIDCARD_OR_CARD_OR_FACE");
+ break;
+ case NET_ACCESS_DOOROPEN_METHOD.NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_OR_CARD_OR_FACE:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_FACEIDCARD_OR_CARD_OR_FACE");
+ break;
+ default:
+ openMethods = bundle.getString("NET_ACCESS_DOOROPEN_METHOD_UNKNOWN");
+ break;
+ }
+
+ return openMethods;
+ }
+
+ public String getShowInfo(String tag) {
+ try {
+ return bundle.getString(tag);
+ }catch(Exception e) {
+ return tag;
+ }
+ }
+
+ public String getThermalCamera() {
+ return getShowInfo("THERMAL_CAMERA");
+ }
+
+ public String[] getMeterTypeList() {
+ String[] meterTypes = {getShowInfo("SPOT"), getShowInfo("LINE"), getShowInfo("AREA")};
+
+ return meterTypes;
+ }
+
+ public String[] getTemperUnitList() {
+ return new String[]{getShowInfo("CENTIGRADE"), getShowInfo("FAHRENHEIT")};
+ }
+
+ public String[] getPeriodList() {
+ return new String[] {getShowInfo("FIVE_MINUTES"), getShowInfo("TEN_MINUTES"),
+ getShowInfo("FIFTEEN_MINUTES"), getShowInfo("THIRTY_MINUTES")};
+ }
+
+ public String[] getTemperStatusList() {
+ return new String[]{getShowInfo("IDLE"), getShowInfo("ACQUIRING")};
+ }
+
+ public String getSearchingWait() {
+ return bundle.getString("SEARCHING_WAITING");
+ }
+
+
+
+
+ ///////////// Human Number Statistic ///////////////
+
+ 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() {
+ // TODO Auto-generated method stub
+ 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 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");}
+}
+
+
+
diff --git a/web/src/main/java/com/zhehekeji/web/lib/common/SavePath.java b/web/src/main/java/com/zhehekeji/web/lib/common/SavePath.java
new file mode 100644
index 0000000..5edb6b5
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/lib/common/SavePath.java
@@ -0,0 +1,76 @@
+package com.zhehekeji.web.lib.common;
+
+import com.zhehekeji.web.lib.ToolKits;
+
+import java.io.File;
+
+public class SavePath {
+ private SavePath() {}
+
+ private static class SavePathHolder {
+ private static SavePath instance = new SavePath();
+ }
+
+ public static SavePath getSavePath() {
+ return SavePathHolder.instance;
+ }
+
+ String s_captureSavePath = "./Capture/" + ToolKits.getDay() + "/"; // 抓拍图片保存路径
+ String s_imageSavePath = "./Image/" + ToolKits.getDay() + "/"; // 图片保存路径
+ String s_recordFileSavePath = "./RecordFile/" + ToolKits.getDay() + "/"; // 录像保存路径
+
+ /*
+ * 设置抓图保存路径
+ */
+ public String getSaveCapturePath() {
+ File path1 = new File("./Capture/");
+ if (!path1.exists()) {
+ path1.mkdir();
+ }
+
+ File path2 = new File(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(s_imageSavePath);
+ if (!path.exists()) {
+ path.mkdir();
+ }
+
+ return s_imageSavePath;
+ }
+
+
+ /*
+ * 设置录像保存路径
+ */
+ public String getSaveRecordFilePath() {
+ File path1 = new File("./RecordFile/");
+ if (!path1.exists()) {
+ path1.mkdir();
+ }
+
+ File path2 = new File(s_recordFileSavePath);
+ if (!path2.exists()) {
+ path2.mkdir();
+ }
+ String SavedFileName = s_recordFileSavePath + ToolKits.getDate() + ".dav"; // 默认保存路径
+ return SavedFileName;
+ }
+
+}
diff --git a/web/src/main/java/com/zhehekeji/web/mapper/LycheeMapper.java b/web/src/main/java/com/zhehekeji/web/mapper/LycheeMapper.java
new file mode 100644
index 0000000..bb7671d
--- /dev/null
+++ b/web/src/main/java/com/zhehekeji/web/mapper/LycheeMapper.java
@@ -0,0 +1,7 @@
+package com.zhehekeji.web.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.zhehekeji.web.entity.Lychee;
+
+public interface LycheeMapper extends BaseMapper {
+}
diff --git a/web/src/main/java/com/zhehekeji/web/service/RealTimeService.java b/web/src/main/java/com/zhehekeji/web/service/RealTimeService.java
index 498d34e..2b7b5d7 100644
--- a/web/src/main/java/com/zhehekeji/web/service/RealTimeService.java
+++ b/web/src/main/java/com/zhehekeji/web/service/RealTimeService.java
@@ -1,8 +1,11 @@
package com.zhehekeji.web.service;
+import com.zhehekeji.core.util.Assert;
import com.zhehekeji.web.entity.Camera;
+import com.zhehekeji.web.entity.Lychee;
import com.zhehekeji.web.entity.Street;
import com.zhehekeji.web.mapper.CameraMapper;
+import com.zhehekeji.web.mapper.LycheeMapper;
import com.zhehekeji.web.mapper.StreetMapper;
import com.zhehekeji.web.pojo.realTime.RealTime;
import org.springframework.stereotype.Service;
@@ -21,6 +24,14 @@ public class RealTimeService {
private StreetMapper streetMapper;
@Resource
private CameraMapper cameraMapper;
+ @Resource
+ private LycheeMapper lycheeMapper;
+
+ public String lychee(){
+ Lychee lychee = lycheeMapper.selectById(1);
+ Assert.notNull(lychee,"未配置荔枝转码服务");
+ return lychee.getIp();
+ }
public List realTimes(){
List streets = streetMapper.selectByMap(new HashMap<>(0));