From 9710ad282ec977387a635e19b53433948f72539d Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 07 四月 2017 15:45:58 +0800
Subject: [PATCH] 

---
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/PhoneCallMng.java                            |    7 
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/AppApi.java                                     |    2 
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java                    |    2 
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java  |    9 +
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java                       |    2 
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PhoneCallQueryItem.java           |  190 ++++++++++++++++++++++++++++++++++++++
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PhoneCallQueryCondition.java |   34 ++++++
 7 files changed, 237 insertions(+), 9 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java
index 0201f9e..698df79 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java
@@ -18,9 +18,9 @@
 import java.util.List;
 import java.util.Set;
 
-import cn.com.basic.face.service.vo.PhoneCallFragment.PhoneCallQueryItem;
 
 import cn.com.basic.face.base.MainActivity;
+import cn.com.basic.face.discern.query.item.PhoneCallQueryItem;
 import cn.com.basic.face.util.AppApi;
 
 public class PhoneCallFragment {
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java
index 976737c..8edf4d2 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/SurveillanceFragment.java
@@ -83,7 +83,7 @@
                     @Override
                     public void onClick(View view) {
                         MainActivity.selectPage(1);
-                        //RegisterFragment.getInstance().setRegisterInfo(item);
+                        RegisterFragment.getInstance().setRegisterInfo(getVo(item));
                     }
                 });
             }
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PhoneCallQueryCondition.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PhoneCallQueryCondition.java
new file mode 100644
index 0000000..8ee2215
--- /dev/null
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/PhoneCallQueryCondition.java
@@ -0,0 +1,34 @@
+package cn.com.basic.face.discern.query.condition;
+
+
+public class PhoneCallQueryCondition extends BaseCondition {
+
+	public static final class FieldNames {
+		/**
+		 * 浜哄憳鍚嶅瓧
+		 */
+		public static final String name = "name";
+	}
+
+	// 浜哄憳鍚嶅瓧
+	private String name;
+
+	/**
+	 * Get 浜哄憳鍚嶅瓧
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * Set 浜哄憳鍚嶅瓧
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String toString() {
+		return 
+			 ",浜哄憳鍚嶅瓧 =" + name      ;
+	}
+}
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PhoneCallQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PhoneCallQueryItem.java
new file mode 100644
index 0000000..07f8b0f
--- /dev/null
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/PhoneCallQueryItem.java
@@ -0,0 +1,190 @@
+package cn.com.basic.face.discern.query.item;
+
+
+public class PhoneCallQueryItem {
+
+	// 浜哄憳涓婚敭
+	private String id;
+	// 浜哄憳鍚嶅瓧
+	private String name;
+	// 鍥剧墖鍦板潃
+	private String imagePath;
+	// 鍏徃鍚嶇О
+	private String companyName;
+	// 搴ф満鐢佃瘽
+	private String tel;
+	// 璇佷欢缂栧彿
+	private String identifyNum;
+	// 閮ㄩ棬鍚嶇О
+	private String deptName;
+	// 鍏徃涓婚敭
+	private String companyId;
+	// 鑱屼綅鍚嶇О
+	private String postName;
+	// 绉诲姩鐢佃瘽
+	private String mobilePhone;
+	// 
+	private String type;
+
+	/**
+	 * Get 浜哄憳涓婚敭
+	 */
+	public String getId() {
+		return id;
+	}
+	
+	/**
+	 * Set 浜哄憳涓婚敭
+	 */
+	public void setId(String id) {
+		this.id = id;
+	}
+
+	/**
+	 * Get 浜哄憳鍚嶅瓧
+	 */
+	public String getName() {
+		return name;
+	}
+	
+	/**
+	 * Set 浜哄憳鍚嶅瓧
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * Get 鍥剧墖鍦板潃
+	 */
+	public String getImagePath() {
+		return imagePath;
+	}
+	
+	/**
+	 * Set 鍥剧墖鍦板潃
+	 */
+	public void setImagePath(String imagePath) {
+		this.imagePath = imagePath;
+	}
+
+	/**
+	 * Get 鍏徃鍚嶇О
+	 */
+	public String getCompanyName() {
+		return companyName;
+	}
+	
+	/**
+	 * Set 鍏徃鍚嶇О
+	 */
+	public void setCompanyName(String companyName) {
+		this.companyName = companyName;
+	}
+
+	/**
+	 * Get 搴ф満鐢佃瘽
+	 */
+	public String getTel() {
+		return tel;
+	}
+	
+	/**
+	 * Set 搴ф満鐢佃瘽
+	 */
+	public void setTel(String tel) {
+		this.tel = tel;
+	}
+
+	/**
+	 * Get 璇佷欢缂栧彿
+	 */
+	public String getIdentifyNum() {
+		return identifyNum;
+	}
+	
+	/**
+	 * Set 璇佷欢缂栧彿
+	 */
+	public void setIdentifyNum(String identifyNum) {
+		this.identifyNum = identifyNum;
+	}
+
+	/**
+	 * 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;
+	}
+
+	/**
+	 * Get 绉诲姩鐢佃瘽
+	 */
+	public String getMobilePhone() {
+		return mobilePhone;
+	}
+	
+	/**
+	 * Set 绉诲姩鐢佃瘽
+	 */
+	public void setMobilePhone(String mobilePhone) {
+		this.mobilePhone = mobilePhone;
+	}
+
+	/**
+	 * Get 
+	 */
+	public String getType() {
+		return type;
+	}
+	
+	/**
+	 * Set 
+	 */
+	public void setType(String type) {
+		this.type = type;
+	}
+
+	public String toString() {
+		return 
+			 ",浜哄憳涓婚敭 =" + id         +  ",浜哄憳鍚嶅瓧 =" + name       +  ",鍥剧墖鍦板潃 =" + imagePath  + 
+			 ",鍏徃鍚嶇О =" + companyName +  ",搴ф満鐢佃瘽 =" + tel        +  ",璇佷欢缂栧彿 =" + identifyNum + 
+			 ",閮ㄩ棬鍚嶇О =" + deptName   +  ",鍏徃涓婚敭 =" + companyId  +  ",鑱屼綅鍚嶇О =" + postName   + 
+			 ",绉诲姩鐢佃瘽 =" + mobilePhone +  ", ="     + type      ;
+	}
+}
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/PhoneCallMng.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/PhoneCallMng.java
index dc40388..2fdb638 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/PhoneCallMng.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/PhoneCallMng.java
@@ -10,11 +10,12 @@
 
 import cn.com.basic.face.base.BaseApplication;
 import cn.com.basic.face.discern.common.BaseCommonCallBack;
+import cn.com.basic.face.discern.query.condition.PhoneCallQueryCondition;
 import cn.com.basic.face.discern.query.condition.VisitorQueryCondition;
+import cn.com.basic.face.discern.query.item.PhoneCallQueryItem;
 import cn.com.basic.face.fragment.CheckInFragment;
 import cn.com.basic.face.fragment.PhoneCallFragment;
 import cn.com.basic.face.util.AppApi;
-import cn.com.basic.face.service.vo.PhoneCallFragment.PhoneCallQueryItem;
 import cn.com.basic.face.util.CharacterParser;
 
 public class PhoneCallMng {
@@ -25,8 +26,8 @@
     }
 
     public void findPhoneCallLeftList(final boolean isSortByDept, String searchText) {
-        RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.CheckInQuery);
-        params.addBodyParameter(VisitorQueryCondition.FieldNames.name, searchText);
+        RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.PHONE_CALL_QUERY);
+        params.addBodyParameter(PhoneCallQueryCondition.FieldNames.name, searchText);
         x.http().post(params, new BaseCommonCallBack() {
             public void success() {
                 List<PhoneCallQueryItem> list = getList(PhoneCallQueryItem.class);
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/AppApi.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/AppApi.java
index 6482e7c..9ef703a 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/AppApi.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/AppApi.java
@@ -25,4 +25,6 @@
 
 	public static final String ATTENDANCE_QUERY = "queryAttendance/v_list.do";
 
+	public static final String PHONE_CALL_QUERY = "queryPhoneCall/v_list.do";
+
 }
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
index 10097bb..efd4e91 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
@@ -16,6 +16,7 @@
 import com.lidroid.xutils.view.annotation.event.OnClick;
 
 import cn.com.basic.face.base.MainActivity;
+import cn.com.basic.face.discern.query.item.PhoneCallQueryItem;
 import cn.com.basic.face.service.vo.PhoneCallFragment;
 import cn.com.basic.face.util.AppApi;
 
@@ -30,7 +31,7 @@
     @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo)
     private ImageView fragment_check_in_right_interviewee_cell_photo;
 
-    private PhoneCallFragment.PhoneCallQueryItem item = new PhoneCallFragment.PhoneCallQueryItem();
+    private PhoneCallQueryItem item = new PhoneCallQueryItem();
 
     public PhoneCallRightIntervieweeCell(Context context) {
         super(context);
@@ -43,7 +44,7 @@
         ViewUtils.inject(this, view);
     }
 
-    public void setIntervieweeInfo(final PhoneCallFragment.PhoneCallQueryItem item) {
+    public void setIntervieweeInfo(final PhoneCallQueryItem item) {
         if (item == null) return;
         this.item = item;
         fragment_check_in_right_interviewee_cell_name.setText(item.getName());
@@ -54,12 +55,12 @@
 
     @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_tel)
     public void fragment_check_in_right_interviewee_cell_call_tel_click(View view) {
-        Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨搴ф満"+item.getPhone(), Toast.LENGTH_SHORT).show();
+        Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨搴ф満"+item.getTel(), Toast.LENGTH_SHORT).show();
     }
 
     @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_mobile)
     public void fragment_check_in_right_interviewee_cell_call_mobile_click(View view) {
-        Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨鎵嬫満"+item.getPhone(), Toast.LENGTH_SHORT).show();
+        Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨鎵嬫満"+item.getMobilePhone(), Toast.LENGTH_SHORT).show();
     }
 
 }

--
Gitblit v1.8.0