git-svn-id: http://192.168.1.226/svn/proxy@529 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | fragment_visit_left_person_row_name.setText(item.getUsername());
|
| | |
|
| | | //fragment_visit_left_person_row_status.setText(item.getStatus());
|
| | | fragment_visit_left_person_row_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | fragment_visit_left_person_row_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | |
|
| | | View fragment_visit_left_line = viewHolder.findViewById(R.id.fragment_attendance_left_line);
|
| | | fragment_visit_left_line.setVisibility(View.VISIBLE);
|
| | |
| | | if (data instanceof CheckInQueryItem) {
|
| | | CheckInQueryItem item = (CheckInQueryItem) data;
|
| | | fragment_check_in_left_visitor_row_name.setText(item.getUsername());
|
| | | if (item.getImagePath() != null && !item.getImagePath().equals("")) {
|
| | | fragment_check_in_left_visitor_row_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | if (item.getSurveillancePhoto() != null && !item.getSurveillancePhoto().equals("")) {
|
| | | fragment_check_in_left_visitor_row_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getSurveillancePhoto()));
|
| | | } else {
|
| | | fragment_check_in_left_visitor_row_photo.setImageResource(R.drawable.u68);
|
| | | }
|
| | |
| | | CheckInQueryItem item = (CheckInQueryItem) data;
|
| | | fragment_check_in_left_interviewee_row_name.setText(item.getUsername());
|
| | | fragment_check_in_left_interviewee_row_dept.setText(item.getDeptName());
|
| | | if (item.getImagePath() != null && !item.getImagePath().equals("")) {
|
| | | fragment_check_in_left_interviewee_row_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | if (item.getSurveillancePhoto() != null && !item.getSurveillancePhoto().equals("")) {
|
| | | fragment_check_in_left_interviewee_row_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getSurveillancePhoto()));
|
| | | } else {
|
| | | fragment_check_in_left_interviewee_row_photo.setImageResource(R.drawable.u68);
|
| | | }
|
| | |
| | | }
|
| | | fragment_visit_left_person_row_name.setText(item.getUsername());
|
| | | fragment_visit_left_person_row_status.setText(item.getCurrentStatus());
|
| | | if (item.getImagePath() != null && !"".equals(item.getImagePath())) {
|
| | | fragment_visit_left_person_row_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | if (item.getSurveillancePhoto() != null && !"".equals(item.getSurveillancePhoto())) {
|
| | | fragment_visit_left_person_row_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | | } else {
|
| | | fragment_visit_left_person_row_photo.setImageResource(R.drawable.u68);
|
| | | }
|
| | |
| | | private String time;
|
| | | // 设备地点
|
| | | private String deviceName;
|
| | | // 名称
|
| | | // |
| | | private String attendanceType;
|
| | |
|
| | | /**
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 名称
|
| | | * Get |
| | | */
|
| | | public String getAttendanceType() {
|
| | | return attendanceType;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Set 名称
|
| | | * Set |
| | | */
|
| | | public void setAttendanceType(String attendanceType) {
|
| | | this.attendanceType = attendanceType;
|
| | |
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",签到时间 =" + time + ",设备地点 =" + deviceName + ",名称 =" + attendanceType
|
| | | ",签到时间 =" + time + ",设备地点 =" + deviceName + ", =" + attendanceType
|
| | | ;
|
| | | }
|
| | | }
|
| | |
| | | private String registerId;
|
| | | // 人员名字
|
| | | private String username;
|
| | | // 图片地址
|
| | | private String imagePath;
|
| | | // 监控图片
|
| | | private String surveillancePhoto;
|
| | | // 证件编号
|
| | | private String identifyNum;
|
| | | // 名称
|
| | |
| | | private String postName;
|
| | | // 部门名称
|
| | | private String deptName;
|
| | | //
|
| | | // |
| | | private String time;
|
| | | //
|
| | | // |
| | | private String attendanceType;
|
| | |
|
| | | /**
|
| | |
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | |
| | | public String getUsername() {
|
| | | return username;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getImagePath() {
|
| | | return imagePath;
|
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setImagePath(String imagePath) {
|
| | | this.imagePath = imagePath;
|
| | | public void setSurveillancePhoto(String surveillancePhoto) {
|
| | | this.surveillancePhoto = surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | public String getIdentifyNum() {
|
| | | return identifyNum;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 证件编号
|
| | | */
|
| | |
| | | public String getGender() {
|
| | | return gender;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 名称
|
| | | */
|
| | |
| | | public String getPostName() {
|
| | | return postName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 职位名称
|
| | | */
|
| | |
| | | public String getDeptName() {
|
| | | return deptName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getTime() {
|
| | | return time;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setTime(String time) {
|
| | | this.time = time;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getAttendanceType() {
|
| | | return attendanceType;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setAttendanceType(String attendanceType) {
|
| | | this.attendanceType = attendanceType;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath +
|
| | | ",证件编号 =" + identifyNum + ",名称 =" + gender + ",职位名称 =" + postName +
|
| | | ",部门名称 =" + deptName + ", =" + time + ", =" + attendanceType
|
| | | ;
|
| | | return |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto + |
| | | ",证件编号 =" + identifyNum + ",名称 =" + gender + ",职位名称 =" + postName + |
| | | ",部门名称 =" + deptName + ", =" + time + ", =" + attendanceType
|
| | | ;
|
| | | }
|
| | | }
|
| | |
| | | private String registerId;
|
| | | // 人员名字
|
| | | private String username;
|
| | | // 图片地址
|
| | | private String imagePath;
|
| | | // 监控图片
|
| | | private String surveillancePhoto;
|
| | | // 公司名称
|
| | | private String companyName;
|
| | | // 座机电话
|
| | |
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | |
| | | public String getUsername() {
|
| | | return username;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getImagePath() {
|
| | | return imagePath;
|
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setImagePath(String imagePath) {
|
| | | this.imagePath = imagePath;
|
| | | public void setSurveillancePhoto(String surveillancePhoto) {
|
| | | this.surveillancePhoto = surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | public String getCompanyName() {
|
| | | return companyName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 公司名称
|
| | | */
|
| | |
| | | public String getTel() {
|
| | | return tel;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 座机电话
|
| | | */
|
| | |
| | | public String getIdentifyNum() {
|
| | | return identifyNum;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 证件编号
|
| | | */
|
| | |
| | | public String getDeptName() {
|
| | | return deptName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | public String getCompanyId() {
|
| | | return companyId;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 公司主键
|
| | | */
|
| | |
| | | public String getPostName() {
|
| | | return postName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 职位名称
|
| | | */
|
| | |
| | | public String getMobilePhone() {
|
| | | return mobilePhone;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 移动电话
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath +
|
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum +
|
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName +
|
| | | ",移动电话 =" + mobilePhone;
|
| | | return |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto + |
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + |
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + |
| | | ",移动电话 =" + mobilePhone;
|
| | | }
|
| | | }
|
| | |
| | | public class DeviceQueryItem {
|
| | |
|
| | | // 设备主键
|
| | | private String id;
|
| | | private String deviceId;
|
| | | // 公司主键
|
| | | private String companyId;
|
| | | private String deviceCompanyId;
|
| | | // 设备地点
|
| | | private String deviceName;
|
| | | // 设备授权码
|
| | |
| | | /**
|
| | | * Get 设备主键
|
| | | */
|
| | | public String getId() {
|
| | | return id;
|
| | | public String getDeviceId() {
|
| | | return deviceId;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Set 设备主键
|
| | | */
|
| | | public void setId(String id) {
|
| | | this.id = id;
|
| | | public void setDeviceId(String deviceId) {
|
| | | this.deviceId = deviceId;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 公司主键
|
| | | */
|
| | | public String getCompanyId() {
|
| | | return companyId;
|
| | | public String getDeviceCompanyId() {
|
| | | return deviceCompanyId;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Set 公司主键
|
| | | */
|
| | | public void setCompanyId(String companyId) {
|
| | | this.companyId = companyId;
|
| | | public void setDeviceCompanyId(String deviceCompanyId) {
|
| | | this.deviceCompanyId = deviceCompanyId;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",设备主键 =" + id + ",公司主键 =" + companyId + ",设备地点 =" + deviceName + |
| | | ",设备主键 =" + deviceId + ",公司主键 =" + deviceCompanyId + ",设备地点 =" + deviceName + |
| | | ",设备授权码 ="+ authorizationId;
|
| | | }
|
| | | }
|
| New file |
| | |
| | | package cn.com.basic.face.discern.query.item;
|
| | |
|
| | |
|
| | | public class EmployeeQueryItem {
|
| | |
|
| | | // 人员主键
|
| | | private String registerId;
|
| | | // |
| | | private String deviceCompanyId;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | | */
|
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | | public void setRegisterId(String registerId) {
|
| | | this.registerId = registerId;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get |
| | | */
|
| | | public String getDeviceCompanyId() {
|
| | | return deviceCompanyId;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set |
| | | */
|
| | | public void setDeviceCompanyId(String deviceCompanyId) {
|
| | | this.deviceCompanyId = deviceCompanyId;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return |
| | | ",人员主键 =" + registerId + ", =" + deviceCompanyId;
|
| | | }
|
| | | }
|
| | |
| | | private String calleeDept;
|
| | | // 职位名称
|
| | | private String postName;
|
| | | // 图片地址
|
| | | // 监控图片
|
| | | private String callerImage;
|
| | | // 图片地址
|
| | | // 监控图片
|
| | | private String calleeImage;
|
| | | // 移动电话
|
| | | private String mobilePhone;
|
| | |
| | | public String getCaller() {
|
| | | return caller;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | public String getCallee() {
|
| | | return callee;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | public String getCallerDept() {
|
| | | return callerDept;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | public String getCalleeDept() {
|
| | | return calleeDept;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | public String getPostName() {
|
| | | return postName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 职位名称
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getCallerImage() {
|
| | | return callerImage;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setCallerImage(String callerImage) {
|
| | | this.callerImage = callerImage;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getCalleeImage() {
|
| | | return calleeImage;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setCalleeImage(String calleeImage) {
|
| | | this.calleeImage = calleeImage;
|
| | |
| | | public String getMobilePhone() {
|
| | | return mobilePhone;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 移动电话
|
| | | */
|
| | |
| | | public String getTel() {
|
| | | return tel;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 座机电话
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",人员名字 =" + caller + ",人员名字 =" + callee + ",部门名称 =" + callerDept +
|
| | | ",部门名称 =" + calleeDept + ",职位名称 =" + postName + ",图片地址 =" + callerImage +
|
| | | ",图片地址 =" + calleeImage + ",移动电话 =" + mobilePhone + ",座机电话 =" + tel
|
| | | ;
|
| | | return |
| | | ",人员名字 =" + caller + ",人员名字 =" + callee + ",部门名称 =" + callerDept + |
| | | ",部门名称 =" + calleeDept + ",职位名称 =" + postName + ",监控图片 =" + callerImage + |
| | | ",监控图片 =" + calleeImage + ",移动电话 =" + mobilePhone + ",座机电话 =" + tel |
| | | ;
|
| | | }
|
| | | }
|
| | |
| | | private String registerId;
|
| | | // 人员名字
|
| | | private String username;
|
| | | // 图片地址
|
| | | private String imagePath;
|
| | | // 监控图片
|
| | | private String surveillancePhoto;
|
| | | // 公司名称
|
| | | private String companyName;
|
| | | // 座机电话
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getImagePath() {
|
| | | return imagePath;
|
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setImagePath(String imagePath) {
|
| | | this.imagePath = imagePath;
|
| | | public void setSurveillancePhoto(String surveillancePhoto) {
|
| | | this.surveillancePhoto = surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath + |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto + |
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum +
|
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName +
|
| | | ",移动电话 =" + mobilePhone + ", =" + type ;
|
| New file |
| | |
| | | package cn.com.basic.face.discern.query.item;
|
| | |
|
| | |
|
| | | public class SurveillanceAttendanceQueryItem {
|
| | |
|
| | | // 人员主键
|
| | | private String registerId;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | | */
|
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | | public void setRegisterId(String registerId) {
|
| | | this.registerId = registerId;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return |
| | | ",人员主键 =" + registerId;
|
| | | }
|
| | | }
|
| New file |
| | |
| | | package cn.com.basic.face.discern.query.item;
|
| | |
|
| | |
|
| | | public class SurveillanceCheckOutQueryItem {
|
| | |
|
| | | // 访问事件主键
|
| | | private String visitId;
|
| | |
|
| | | /**
|
| | | * Get 访问事件主键
|
| | | */
|
| | | public String getVisitId() {
|
| | | return visitId;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 访问事件主键
|
| | | */
|
| | | public void setVisitId(String visitId) {
|
| | | this.visitId = visitId;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return |
| | | ",访问事件主键 ="+ visitId ;
|
| | | }
|
| | | }
|
| | |
| | | package cn.com.basic.face.discern.query.item;
|
| | |
|
| | |
|
| | | import android.graphics.Bitmap;
|
| | |
|
| | | public class SurveillanceQueryItem {
|
| | |
| | | private String mobilePhone;
|
| | | // 注册或登记
|
| | | private int registerOrCheckIn;
|
| | | private Bitmap bitmap;
|
| | | // 进摄像头或出摄像头
|
| | | private int inOrOutCamera;
|
| | | private String inOrOutCamera;
|
| | |
|
| | | private Bitmap bitmap;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | |
| | | return registerOrCheckIn;
|
| | | }
|
| | |
|
| | | public void setBitmap(Bitmap bitmap) {
|
| | | this.bitmap = bitmap;
|
| | | public String getInOrOutCamera() {
|
| | | return inOrOutCamera;
|
| | | }
|
| | |
|
| | | public Bitmap getBitmap() {
|
| | | return bitmap;
|
| | | public void setInOrOutCamera(String inOrOutCamera) {
|
| | | this.inOrOutCamera = inOrOutCamera;
|
| | | }
|
| | |
|
| | | public int getInOrOutCamera() {
|
| | | return inOrOutCamera;
|
| | | public Bitmap getBitmap() {
|
| | | return bitmap;
|
| | | }
|
| | |
|
| | | public void setInOrOutCamera(int inOrOutCamera) {
|
| | | this.inOrOutCamera = inOrOutCamera;
|
| | | public void setBitmap(Bitmap bitmap) {
|
| | | this.bitmap = bitmap;
|
| | | }
|
| | | }
|
| New file |
| | |
| | | package cn.com.basic.face.discern.query.item;
|
| | |
|
| | |
|
| | | public class SurveillanceVisitQueryItem {
|
| | |
|
| | | // 人员主键
|
| | | private String registerId;
|
| | | // 人员名字
|
| | | private String username;
|
| | | // 证件编号
|
| | | private String identifyNum;
|
| | | // 公司名称
|
| | | private String companyName;
|
| | | // 监控图片
|
| | | private String surveillancePhoto;
|
| | | // 移动电话
|
| | | private String mobilePhone;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | | */
|
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | | public void setRegisterId(String registerId) {
|
| | | this.registerId = registerId;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 人员名字
|
| | | */
|
| | | public String getUsername() {
|
| | | return username;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | | public void setUsername(String username) {
|
| | | this.username = username;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 证件编号
|
| | | */
|
| | | public String getIdentifyNum() {
|
| | | return identifyNum;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 证件编号
|
| | | */
|
| | | public void setIdentifyNum(String identifyNum) {
|
| | | this.identifyNum = identifyNum;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 公司名称
|
| | | */
|
| | | public String getCompanyName() {
|
| | | return companyName;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 公司名称
|
| | | */
|
| | | public void setCompanyName(String companyName) {
|
| | | this.companyName = companyName;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setSurveillancePhoto(String surveillancePhoto) {
|
| | | this.surveillancePhoto = surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get 移动电话
|
| | | */
|
| | | public String getMobilePhone() {
|
| | | return mobilePhone;
|
| | | }
|
| | | |
| | | /**
|
| | | * Set 移动电话
|
| | | */
|
| | | public void setMobilePhone(String mobilePhone) {
|
| | | this.mobilePhone = mobilePhone;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",证件编号 =" + identifyNum + |
| | | ",公司名称 =" + companyName + ",监控图片 =" + surveillancePhoto + ",移动电话 =" + mobilePhone
|
| | | ;
|
| | | }
|
| | | }
|
| | |
| | | private String registerId;
|
| | | // 人员名字
|
| | | private String username;
|
| | | // 图片地址
|
| | | private String imagePath;
|
| | | // 监控图片
|
| | | private String surveillancePhoto;
|
| | | // 公司名称
|
| | | private String companyName;
|
| | | // 座机电话
|
| | |
| | | private String postName;
|
| | | // 移动电话
|
| | | private String mobilePhone;
|
| | | //
|
| | | // |
| | | private String type;
|
| | | //
|
| | | // |
| | | private String gender;
|
| | | //
|
| | | // |
| | | private String identityType;
|
| | | //
|
| | | // |
| | | private String birthday;
|
| | | //
|
| | | // |
| | | private String countryName;
|
| | | //
|
| | | // |
| | | private String visitee;
|
| | | //
|
| | | // |
| | | private String visitReason;
|
| | | //
|
| | | // |
| | | private String enterTime;
|
| | | //
|
| | | // |
| | | private String exitTime;
|
| | | //
|
| | | // |
| | | private String currentStatus;
|
| | | //
|
| | | // |
| | | private String idCardPhoto;
|
| | |
|
| | | /**
|
| | |
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | |
| | | public String getUsername() {
|
| | | return username;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get 图片地址
|
| | | * Get 监控图片
|
| | | */
|
| | | public String getImagePath() {
|
| | | return imagePath;
|
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 图片地址
|
| | | * Set 监控图片
|
| | | */
|
| | | public void setImagePath(String imagePath) {
|
| | | this.imagePath = imagePath;
|
| | | public void setSurveillancePhoto(String surveillancePhoto) {
|
| | | this.surveillancePhoto = surveillancePhoto;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | public String getCompanyName() {
|
| | | return companyName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 公司名称
|
| | | */
|
| | |
| | | public String getTel() {
|
| | | return tel;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 座机电话
|
| | | */
|
| | |
| | | public String getIdentifyNum() {
|
| | | return identifyNum;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 证件编号
|
| | | */
|
| | |
| | | public String getDeptName() {
|
| | | return deptName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | public String getCompanyId() {
|
| | | return companyId;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 公司主键
|
| | | */
|
| | |
| | | public String getPostName() {
|
| | | return postName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 职位名称
|
| | | */
|
| | |
| | | public String getMobilePhone() {
|
| | | return mobilePhone;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set 移动电话
|
| | | */
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getType() {
|
| | | return type;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setType(String type) {
|
| | | this.type = type;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getGender() {
|
| | | return gender;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setGender(String gender) {
|
| | | this.gender = gender;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getIdentityType() {
|
| | | return identityType;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setIdentityType(String identityType) {
|
| | | this.identityType = identityType;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getBirthday() {
|
| | | return birthday;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setBirthday(String birthday) {
|
| | | this.birthday = birthday;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getCountryName() {
|
| | | return countryName;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setCountryName(String countryName) {
|
| | | this.countryName = countryName;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getVisitee() {
|
| | | return visitee;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setVisitee(String visitee) {
|
| | | this.visitee = visitee;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getVisitReason() {
|
| | | return visitReason;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setVisitReason(String visitReason) {
|
| | | this.visitReason = visitReason;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getEnterTime() {
|
| | | return enterTime;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setEnterTime(String enterTime) {
|
| | | this.enterTime = enterTime;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getExitTime() {
|
| | | return exitTime;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setExitTime(String exitTime) {
|
| | | this.exitTime = exitTime;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getCurrentStatus() {
|
| | | return currentStatus;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setCurrentStatus(String currentStatus) {
|
| | | this.currentStatus = currentStatus;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Get
|
| | | * Get |
| | | */
|
| | | public String getIdCardPhoto() {
|
| | | return idCardPhoto;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * Set
|
| | | * Set |
| | | */
|
| | | public void setIdCardPhoto(String idCardPhoto) {
|
| | | this.idCardPhoto = idCardPhoto;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return
|
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",图片地址 =" + imagePath +
|
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum +
|
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName +
|
| | | ",移动电话 =" + mobilePhone + ", =" + type + ", =" + gender +
|
| | | ", =" + identityType + ", =" + birthday + ", =" + countryName +
|
| | | ", =" + visitee + ", =" + visitReason + ", =" + enterTime +
|
| | | ", =" + exitTime + ", =" + currentStatus + ", =" + idCardPhoto
|
| | | ;
|
| | | return |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto + |
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + |
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + |
| | | ",移动电话 =" + mobilePhone + ", =" + type + ", =" + gender + |
| | | ", =" + identityType + ", =" + birthday + ", =" + countryName + |
| | | ", =" + visitee + ", =" + visitReason + ", =" + enterTime + |
| | | ", =" + exitTime + ", =" + currentStatus + ", =" + idCardPhoto
|
| | | ;
|
| | | }
|
| | | }
|
| | |
| | | fragment_attendance_right_gender.setText(item.getGender());
|
| | | fragment_attendance_right_post.setText(item.getPostName());
|
| | | fragment_attendance_right_dept.setText(item.getDeptName());
|
| | | if (item.getImagePath() != null && !"".equals(item.getImagePath())) {
|
| | | fragment_attendance_right_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | if (item.getSurveillancePhoto() != null && !"".equals(item.getSurveillancePhoto())) {
|
| | | fragment_attendance_right_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | | fragment_attendance_right_photo_placeholder_text_view.setVisibility(View.INVISIBLE);
|
| | | fragment_attendance_right_photo_placeholder_image.setVisibility(View.INVISIBLE);
|
| | | } else {
|
| | | fragment_attendance_right_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | fragment_attendance_right_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | | fragment_attendance_right_photo_placeholder_text_view.setVisibility(View.VISIBLE);
|
| | | fragment_attendance_right_photo_placeholder_image.setVisibility(View.VISIBLE);
|
| | | }
|
| | |
| | | public void onClick(View v) {}
|
| | |
|
| | | public void setRegisterInfo(CheckInQueryItem item) {
|
| | | fragment_register_choose_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | fragment_register_choose_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getSurveillancePhoto()));
|
| | | }
|
| | |
|
| | | public ImageView get_fragment_register_choose_photo() {
|
| | |
| | | fragment_visit_right_status.setText(item.getCurrentStatus());
|
| | | fragment_visit_right_visit_time.setText(item.getEnterTime());
|
| | | fragment_visit_right_exit_time.setText(item.getExitTime());
|
| | | if (item.getImagePath() != null && !"".equals(item.getImagePath())) {
|
| | | fragment_visit_right_head_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | if (item.getSurveillancePhoto() != null && !"".equals(item.getSurveillancePhoto())) {
|
| | | fragment_visit_right_head_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | | fragment_visit_right_head_photo_placeholder_image.setVisibility(View.INVISIBLE);
|
| | | } else {
|
| | | fragment_visit_right_head_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
|
| | | fragment_visit_right_head_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getSurveillancePhoto());
|
| | | fragment_visit_right_head_photo_placeholder_image.setVisibility(View.VISIBLE);
|
| | | }
|
| | | if (item.getIdCardPhoto() != null && !"".equals(item.getIdCardPhoto())) {
|
| | |
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.SURVEILLANCE_QUERY);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, "1");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "10");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<SurveillanceQueryItem> list = getList(SurveillanceQueryItem.class);
|
| | | if (isVisit) {
|
| | | int i = 0;
|
| | | for (SurveillanceQueryItem item : list) {
|
| | | if (i % 5 == 0) {
|
| | | item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE);
|
| | | } else {
|
| | | item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
|
| | | }
|
| | | i++;
|
| | | }
|
| | |
|
| | | List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
|
| | | fillBlank(list, doubleList);
|
| | |
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | } else {
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(list, true);
|
| | | }
|
| | | }
|
| | | });
|
| | | // RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.SURVEILLANCE_QUERY);
|
| | | // params.addBodyParameter(CommonVariables.Page.PAGE_NUM, "1");
|
| | | // params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "10");
|
| | | // x.http().post(params, new BaseCommonCallBack() {
|
| | | // public void success() {
|
| | | // List<SurveillanceQueryItem> list = getList(SurveillanceQueryItem.class);
|
| | | // if (isVisit) {
|
| | | // int i = 0;
|
| | | // for (SurveillanceQueryItem item : list) {
|
| | | // if (i % 5 == 0) {
|
| | | // item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE);
|
| | | // } else {
|
| | | // item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
|
| | | // }
|
| | | // i++;
|
| | | // }
|
| | | //
|
| | | // List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
|
| | | // fillBlank(list, doubleList);
|
| | | //
|
| | | // SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | // } else {
|
| | | // SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(list, true);
|
| | | // }
|
| | | // }
|
| | | // });
|
| | | }
|
| | |
|
| | | public void addBitmap(final List<Bitmap> bitmapList, byte[] byteArray, int len) {
|
| | |
| | | fragment_check_in_right_interviewee_cell_name.setText(item.getUsername());
|
| | | fragment_check_in_right_interviewee_cell_dept.setText(item.getDeptName());
|
| | | fragment_check_in_right_interviewee_cell_post.setText(item.getPostName());
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | if (item.getImagePath() != null && !item.getImagePath().equals("")) {
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getSurveillancePhoto()));
|
| | | if (item.getSurveillancePhoto() != null && !item.getSurveillancePhoto().equals("")) {
|
| | | fragment_check_in_right_interviewee_cell_photo_placeholder.setVisibility(INVISIBLE);
|
| | | } else {
|
| | | fragment_check_in_right_interviewee_cell_photo_placeholder.setVisibility(VISIBLE);
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + "u45.png"));
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public CheckInQueryItem getInterviewee() {
|
| | |
| | | }
|
| | |
|
| | | public void resetForm() {
|
| | | fragment_check_in_right_interviewee_cell_name.setText("");
|
| | | fragment_check_in_right_interviewee_cell_name.setText("被访人员姓名");
|
| | | fragment_check_in_right_interviewee_cell_dept.setText("");
|
| | | fragment_check_in_right_interviewee_cell_post.setText("");
|
| | | fragment_check_in_right_interviewee_cell_photo_placeholder.setText("添加\n被访人员");
|
| | | fragment_check_in_right_interviewee_cell_photo_placeholder.setVisibility(VISIBLE);
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(null);
|
| | | }
|
| | |
|
| | |
| | | fragment_check_in_right_visitor_cell_company_name.setText(item.getCompanyName());
|
| | | fragment_check_in_right_visitor_cell_identity_number.setText(item.getIdentifyNum());
|
| | | fragment_check_in_right_visitor_cell_mobile_phone.setText(item.getMobilePhone());
|
| | | fragment_check_in_right_visitor_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | if (item.getImagePath() != null && !item.getImagePath().equals("")) {
|
| | | fragment_check_in_right_visitor_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getSurveillancePhoto()));
|
| | | if (item.getSurveillancePhoto() != null && !item.getSurveillancePhoto().equals("")) {
|
| | | fragment_check_in_right_visitor_cell_photo_placeholder.setVisibility(INVISIBLE);
|
| | | } else {
|
| | | fragment_check_in_right_visitor_cell_photo_placeholder.setVisibility(VISIBLE);
|
| | | fragment_check_in_right_visitor_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + "u45.png"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | public void resetForm() {
|
| | | fragment_check_in_right_visitor_cell_name.setText("");
|
| | | fragment_check_in_right_visitor_cell_name.setText("来访人员姓名");
|
| | | fragment_check_in_right_visitor_cell_company_name.setText("");
|
| | | fragment_check_in_right_visitor_cell_identity_number.setText("");
|
| | | fragment_check_in_right_visitor_cell_mobile_phone.setText("");
|
| | | fragment_check_in_right_visitor_cell_photo.setImageURI(null);
|
| | | fragment_check_in_right_visitor_cell_photo_placeholder.setVisibility(VISIBLE);
|
| | | }
|
| | |
|
| | | }
|