From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 11 五月 2017 17:48:48 +0800
Subject: [PATCH] 

---
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java |  265 ++++++++++++++++++++++++++++++----------------------
 1 files changed, 154 insertions(+), 111 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
index bb1ee29..46a9ffa 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
@@ -1,73 +1,94 @@
 package cn.com.basic.face.discern.query.item;
 
+import android.graphics.Bitmap;
+
+import java.io.ByteArrayOutputStream;
+import java.util.Date;
+
+import android.net.Uri;
+import android.util.Base64;
+
+import cn.com.basic.face.util.NativeImg;
 
 public class SurveillanceQueryItem {
 
 	// 浜哄憳涓婚敭
-	private String id;
+	private String registerId;
 	// 浜哄憳鍚嶅瓧
-	private String name;
-	// 鍥剧墖鍦板潃
-	private String imagePath;
+	private String username;
+	// 璇佷欢缂栧彿
+	private String identifyNum;
 	// 鍏徃鍚嶇О
 	private String companyName;
-	// 搴ф満鐢佃瘽
-	private String phone;
-	// 璇佷欢缂栧彿
-	private String identify;
-	// 閮ㄩ棬鍚嶇О
-	private String deptName;
-	// 鍏徃涓婚敭
-	private String companyId;
-	// 鑱屼綅鍚嶇О
-	private String postName;
+	// 鍥剧墖鍦板潃
+	private String imagePath;
 	// 绉诲姩鐢佃瘽
 	private String mobilePhone;
-	//
-	private int type;
-
+	// 娉ㄥ唽鎴栫櫥璁�
+	private int registerOrCheckIn;
+	// 杩涙憚鍍忓ご鎴栧嚭鎽勫儚澶�
+	private String inOrOutCamera;
+	// 鐘舵��
 	private String status;
+
+    private Bitmap bitmap;
+
+    private String warning;
+    //
+    private String base64Image;
+
+    private String width;
+
+    private String height;
+
+	private Uri localUri;
+
+	private boolean surveillancePhotoSelected;
+
+	private NativeImg nativeImg;
+
+	private Date createTime;
 
 	/**
 	 * Get 浜哄憳涓婚敭
 	 */
-	public String getId() {
-		return id;
+	public String getRegisterId() {
+		return registerId;
 	}
 
 	/**
 	 * Set 浜哄憳涓婚敭
 	 */
-	public void setId(String id) {
-		this.id = id;
+	public void setRegisterId(String registerId) {
+		this.registerId = registerId;
 	}
 
 	/**
 	 * Get 浜哄憳鍚嶅瓧
 	 */
-	public String getName() {
-		return name;
+	public String getUsername() {
+		return username;
 	}
 
 	/**
 	 * Set 浜哄憳鍚嶅瓧
 	 */
-	public void setName(String name) {
-		this.name = name;
+	public void setUsername(String username) {
+		this.username = username;
 	}
 
 	/**
-	 * Get 鍥剧墖鍦板潃
+	 * Get 璇佷欢缂栧彿
 	 */
-	public String getImagePath() {
-		return imagePath;
+	public String getIdentifyNum() {
+		return identifyNum;
 	}
 
 	/**
-	 * Set 鍥剧墖鍦板潃
+	 * Set 璇佷欢缂栧彿
 	 */
-	public void setImagePath(String imagePath) {
-		this.imagePath = imagePath;
+	public void setIdentifyNum(String identifyNum) {
+		this.identifyNum = identifyNum;
 	}
 
 	/**
@@ -85,73 +106,17 @@
 	}
 
 	/**
-	 * Get 搴ф満鐢佃瘽
+	 * Get 鍥剧墖鍦板潃
 	 */
-	public String getPhone() {
-		return phone;
+	public String getImagePath() {
+		return imagePath;
 	}
 
 	/**
-	 * Set 搴ф満鐢佃瘽
+	 * Set 鍥剧墖鍦板潃
 	 */
-	public void setPhone(String phone) {
-		this.phone = phone;
-	}
-
-	/**
-	 * Get 璇佷欢缂栧彿
-	 */
-	public String getIdentify() {
-		return identify;
-	}
-
-	/**
-	 * Set 璇佷欢缂栧彿
-	 */
-	public void setIdentify(String identify) {
-		this.identify = identify;
-	}
-
-	/**
-	 * Get 閮ㄩ棬鍚嶇О
-	 */
-	public String getDeptName() {
-		return deptName;
-	}
-
-	/**
-	 * Set 閮ㄩ棬鍚嶇О
-	 */
-	public void setDeptName(String deptName) {
-		this.deptName = deptName;
-	}
-
-	/**
-	 * Get 鍏徃涓婚敭
-	 */
-	public String getCompanyId() {
-		return companyId;
-	}
-
-	/**
-	 * Set 鍏徃涓婚敭
-	 */
-	public void setCompanyId(String companyId) {
-		this.companyId = companyId;
-	}
-
-	/**
-	 * Get 鑱屼綅鍚嶇О
-	 */
-	public String getPostName() {
-		return postName;
-	}
-
-	/**
-	 * Set 鑱屼綅鍚嶇О
-	 */
-	public void setPostName(String postName) {
-		this.postName = postName;
+	public void setImagePath(String imagePath) {
+		this.imagePath = imagePath;
 	}
 
 	/**
@@ -168,33 +133,111 @@
 		this.mobilePhone = mobilePhone;
 	}
 
-	/**
-	 * Get
-	 */
-	public int getType() {
-		return type;
+	public String toString() {
+		return
+				",浜哄憳涓婚敭 =" + registerId +  ",浜哄憳鍚嶅瓧 =" + username   +  ",璇佷欢缂栧彿 =" + identifyNum +
+						",鍏徃鍚嶇О =" + companyName +  ",鍥剧墖鍦板潃 =" + imagePath  +  ",绉诲姩鐢佃瘽 =" + mobilePhone
+				;
 	}
 
-	/**
-	 * Set
-	 */
-	public void setType(int type) {
-		this.type = type;
+	public void setRegisterOrCheckIn(int registerOrCheckIn) {
+		this.registerOrCheckIn = registerOrCheckIn;
+	}
+
+	public int getRegisterOrCheckIn() {
+		return registerOrCheckIn;
+	}
+
+	public String getInOrOutCamera() {
+		return inOrOutCamera;
+	}
+
+	public void setInOrOutCamera(String inOrOutCamera) {
+		this.inOrOutCamera = inOrOutCamera;
+	}
+
+    public Bitmap getBitmap() {
+        return bitmap;
+    }
+
+    public void setBitmap(Bitmap bitmap) {
+        this.bitmap = bitmap;
+    }
+
+    public String getWarning() {
+        return warning;
+    }
+
+    public void setWarning(String warning) {
+        this.warning = warning;
+    }
+
+    public String getWidth() {
+        return width;
+    }
+
+    public void setWidth(String width) {
+        this.width = width;
+    }
+
+    public String getHeight() {
+        return height;
+    }
+
+    public void setHeight(String height) {
+        this.height = height;
+    }
+
+    public String getBase64Image() {
+		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
+		bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
+		byte[] imageBytes = byteArrayOutputStream.toByteArray();
+		String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
+        return encodedImage;
+    }
+
+    public void setBase64Image(String base64Image) {
+        this.base64Image = base64Image;
+    }
+
+	public String getStatus() {
+		return status;
 	}
 
 	public void setStatus(String status) {
 		this.status = status;
 	}
 
-	public String getStatus() {
-		return status;
+	public Uri getLocalUri() {
+		return localUri;
 	}
 
-	public String toString() {
-		return
-				",浜哄憳涓婚敭 =" + id         +  ",浜哄憳鍚嶅瓧 =" + name       +  ",鍥剧墖鍦板潃 =" + imagePath  +
-						",鍏徃鍚嶇О =" + companyName +  ",搴ф満鐢佃瘽 =" + phone      +  ",璇佷欢缂栧彿 =" + identify   +
-						",閮ㄩ棬鍚嶇О =" + deptName   +  ",鍏徃涓婚敭 =" + companyId  +  ",鑱屼綅鍚嶇О =" + postName   +
-						",绉诲姩鐢佃瘽 =" + mobilePhone +  ", ="     + type      ;
+	public void setLocalUri(Uri localUri) {
+		this.localUri = localUri;
 	}
+
+	public boolean isSurveillancePhotoSelected() {
+		return surveillancePhotoSelected;
+	}
+
+	public void setSurveillancePhotoSelected(boolean surveillancePhotoSelected) {
+		this.surveillancePhotoSelected = surveillancePhotoSelected;
+	}
+
+	public NativeImg getNativeImg() {
+		return nativeImg;
+	}
+
+	public void setNativeImg(NativeImg nativeImg) {
+		this.nativeImg = nativeImg;
+	}
+
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+
 }

--
Gitblit v1.8.0