VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/AttendanceQueryItem.java
@@ -23,7 +23,9 @@ private String postName; // 移动电话 private String mobilePhone; // // 名称 private String gender; // private String type; /** @@ -32,7 +34,7 @@ public String getRegisterId() { return registerId; } /** * Set 人员主键 */ @@ -46,7 +48,7 @@ public String getUsername() { return username; } /** * Set 人员名字 */ @@ -60,7 +62,7 @@ public String getImagePath() { return imagePath; } /** * Set 图片地址 */ @@ -74,7 +76,7 @@ public String getCompanyName() { return companyName; } /** * Set 公司名称 */ @@ -88,7 +90,7 @@ public String getTel() { return tel; } /** * Set 座机电话 */ @@ -102,7 +104,7 @@ public String getIdentifyNum() { return identifyNum; } /** * Set 证件编号 */ @@ -116,7 +118,7 @@ public String getDeptName() { return deptName; } /** * Set 部门名称 */ @@ -130,7 +132,7 @@ public String getCompanyId() { return companyId; } /** * Set 公司主键 */ @@ -144,7 +146,7 @@ public String getPostName() { return postName; } /** * Set 职位名称 */ @@ -158,7 +160,7 @@ public String getMobilePhone() { return mobilePhone; } /** * Set 移动电话 */ @@ -167,24 +169,39 @@ } /** * Get * Get 名称 */ public String getGender() { return gender; } /** * Set 名称 */ public void setGender(String gender) { this.gender = gender; } /** * Get */ public String getType() { return type; } /** * Set * Set */ public void setType(String type) { this.type = type; } public String toString() { return ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath + ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + ",移动电话 =" + mobilePhone + ", =" + type ; return ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath + ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + ",移动电话 =" + mobilePhone + ",名称 =" + gender + ", =" + type ; } } VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java
@@ -1,5 +1,7 @@ package cn.com.basic.face.discern.query.item; import java.util.Date; public class VisitQueryItem { @@ -23,8 +25,16 @@ private String postName; // 移动电话 private String mobilePhone; // // private String type; // private String gender; // private String identityType; // private String birthday; // private String countryName; /** * Get 人员主键 @@ -32,7 +42,7 @@ public String getRegisterId() { return registerId; } /** * Set 人员主键 */ @@ -46,7 +56,7 @@ public String getUsername() { return username; } /** * Set 人员名字 */ @@ -60,7 +70,7 @@ public String getImagePath() { return imagePath; } /** * Set 图片地址 */ @@ -74,7 +84,7 @@ public String getCompanyName() { return companyName; } /** * Set 公司名称 */ @@ -88,7 +98,7 @@ public String getTel() { return tel; } /** * Set 座机电话 */ @@ -102,7 +112,7 @@ public String getIdentifyNum() { return identifyNum; } /** * Set 证件编号 */ @@ -116,7 +126,7 @@ public String getDeptName() { return deptName; } /** * Set 部门名称 */ @@ -130,7 +140,7 @@ public String getCompanyId() { return companyId; } /** * Set 公司主键 */ @@ -144,7 +154,7 @@ public String getPostName() { return postName; } /** * Set 职位名称 */ @@ -158,7 +168,7 @@ public String getMobilePhone() { return mobilePhone; } /** * Set 移动电话 */ @@ -167,24 +177,82 @@ } /** * Get * Get */ public String getType() { return type; } /** * Set * Set */ public void setType(String type) { this.type = type; } /** * Get */ public String getGender() { return gender; } /** * Set */ public void setGender(String gender) { this.gender = gender; } /** * Get */ public String getIdentityType() { return identityType; } /** * Set */ public void setIdentityType(String identityType) { this.identityType = identityType; } /** * Get */ public String getBirthday() { return birthday; } /** * Set */ public void setBirthday(String birthday) { this.birthday = birthday; } /** * Get */ public String getCountryName() { return countryName; } /** * Set */ public void setCountryName(String countryName) { this.countryName = countryName; } public String toString() { return ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath + ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + ",移动电话 =" + mobilePhone + ", =" + type ; return ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath + ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + ",移动电话 =" + mobilePhone + ", =" + type + ", =" + gender + ", =" + identityType + ", =" + birthday + ", =" + countryName ; } } VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttendanceFragment.java
@@ -94,7 +94,7 @@ public void setVisitorInfo(AttendanceQueryItem item) { fragment_attendance_right_id_num.setText(item.getIdentifyNum()); fragment_attendance_right_name.setText(item.getUsername()); fragment_attendance_right_gender.setText(""); fragment_attendance_right_gender.setText(item.getGender()); fragment_attendance_right_post.setText(item.getPostName()); fragment_attendance_right_dept.setText(item.getDeptName()); fragment_attendance_right_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath()); VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java
@@ -99,15 +99,15 @@ public void setVisitInfo(VisitQueryItem item) { fragment_visit_right_name.setText(item.getUsername()); fragment_visit_right_phone.setText(item.getMobilePhone()); // fragment_visit_right_gender.setText(item.); // fragment_visit_right_id_type.setText(item.getIdentityType()); // fragment_visit_right_country.setText(item.getCountryName()); // fragment_visit_right_id_num.setText(item.getIdentifyNum()); // fragment_visit_right_birthday.setText(item.getBirthday()); // fragment_visit_right_company.setText(item.getCompnayName()); fragment_visit_right_id_num.setText(item.getIdentifyNum()); fragment_visit_right_from_dept.setText(item.getDeptName()); fragment_visit_right_gender.setText(item.getGender()); fragment_visit_right_id_type.setText(item.getIdentityType()); fragment_visit_right_country.setText(item.getCountryName()); fragment_visit_right_birthday.setText(item.getBirthday()); fragment_visit_right_company.setText(item.getCompanyName()); // fragment_visit_right_person.setText(item.getToPerson()); // fragment_visit_right_visit_reason.setText(item.getBfsq()); // fragment_visit_right_from_dept.setText(item.getDeptName()); // fragment_visit_right_status.setText(item.getStatus()); // fragment_visit_right_visit_time.setText(item.getStartTime()); // fragment_visit_right_exit_time.setText(item.getLastTime()); VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/AttendanceMng.java
@@ -25,11 +25,11 @@ RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.CHECK_IN_QUERY); x.http().post(params, new BaseCommonCallBack() { public void success() { List<VisitFragment.VisitQueryItem> list = getList(VisitFragment.VisitQueryItem.class); List<AttendanceQueryItem> list = getList(AttendanceQueryItem.class); String date = ""; List itemList = new ArrayList(); int i = 0; for (VisitFragment.VisitQueryItem item : list) { for (AttendanceQueryItem item : list) { if (i % 3 == 0) { itemList.add("2016-10-10"); }