VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/VisitFragment.java
@@ -4,6 +4,7 @@ import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.RadioButton; import android.widget.RelativeLayout; import android.widget.TextView; import com.bsk.zhangbo.demoforbsk.R; @@ -36,16 +37,31 @@ fragment_visit_left_person_row_check_box.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // if (lastRadioButton != null && lastRadioButton != fragment_visit_left_person_row_check_box) { // lastRadioButton.setChecked(false); // } // lastRadioButton = fragment_visit_left_person_row_check_box; // if (isChecked) { // cn.com.basic.face.fragment.VisitFragment.getInstance().setVisitInfo(item); // lastIndex = position; // } } }); RelativeLayout fragment_visit_left_relative_layout = viewHolder.findViewById(R.id.fragment_visit_left_relative_layout); fragment_visit_left_relative_layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (lastRadioButton != null && lastRadioButton != fragment_visit_left_person_row_check_box) { lastRadioButton.setChecked(false); } lastRadioButton = fragment_visit_left_person_row_check_box; if (isChecked) { cn.com.basic.face.fragment.VisitFragment.getInstance().setVisitInfo(item); lastIndex = position; } cn.com.basic.face.fragment.VisitFragment.getInstance().setVisitInfo(item); lastIndex = position; fragment_visit_left_person_row_check_box.setChecked(true); } }); fragment_visit_left_person_row_check_box.setChecked(false); if (lastIndex == position) { VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VisitQueryItem.java
New file @@ -0,0 +1,241 @@ package cn.com.basic.face.discern.query.condition; import java.util.Date; public class VisitQueryItem { // 人员名字 private String name; // 移动电话 private String mobilePhone; // 名称 private String gender; // 名称 private String identityType; // 名称 private String countryName; // 证件编号 private String identifyNum; // 出生日期 private String birthday; // 公司名称 private String compnayName; // 人员名字 private String toPerson; // 来访时间 private String startTime; // 签离时间 private String lastTime; // 访问事由 private String bfsq; // 部门名称 private String deptName; // 最新的访问状态 private String status; /** * Get 人员名字 */ public String getName() { return name; } /** * Set 人员名字 */ public void setName(String name) { this.name = name; } /** * Get 移动电话 */ public String getMobilePhone() { return mobilePhone; } /** * Set 移动电话 */ public void setMobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; } /** * 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 getCountryName() { return countryName; } /** * Set 名称 */ public void setCountryName(String countryName) { this.countryName = countryName; } /** * Get 证件编号 */ public String getIdentifyNum() { return identifyNum; } /** * Set 证件编号 */ public void setIdentifyNum(String identifyNum) { this.identifyNum = identifyNum; } /** * Get 出生日期 */ public String getBirthday() { return birthday; } /** * Set 出生日期 */ public void setBirthday(String birthday) { this.birthday = birthday; } /** * Get 公司名称 */ public String getCompnayName() { return compnayName; } /** * Set 公司名称 */ public void setCompnayName(String compnayName) { this.compnayName = compnayName; } /** * Get 人员名字 */ public String getToPerson() { return toPerson; } /** * Set 人员名字 */ public void setToPerson(String toPerson) { this.toPerson = toPerson; } /** * Get 来访时间 */ public String getStartTime() { return startTime; } /** * Set 来访时间 */ public void setStartTime(String startTime) { this.startTime = startTime; } /** * Get 签离时间 */ public String getLastTime() { return lastTime; } /** * Set 签离时间 */ public void setLastTime(String lastTime) { this.lastTime = lastTime; } /** * Get 访问事由 */ public String getBfsq() { return bfsq; } /** * Set 访问事由 */ public void setBfsq(String bfsq) { this.bfsq = bfsq; } /** * Get 部门名称 */ public String getDeptName() { return deptName; } /** * Set 部门名称 */ public void setDeptName(String deptName) { this.deptName = deptName; } /** * Get 最新的访问状态 */ public String getStatus() { return status; } /** * Set 最新的访问状态 */ public void setStatus(String status) { this.status = status; } public String toString() { return ",人员名字 =" + name + ",移动电话 =" + mobilePhone + ",名称 =" + gender + ",名称 =" + identityType + ",名称 =" + countryName + ",证件编号 =" + identifyNum + ",出生日期 =" + birthday + ",公司名称 =" + compnayName + ",人员名字 =" + toPerson + ",来访时间 =" + startTime + ",签离时间 =" + lastTime + ",访问事由 =" + bfsq + ",部门名称 =" + deptName + ",最新的访问状态 ="+ status ; } } VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java
New file @@ -0,0 +1,241 @@ package cn.com.basic.face.discern.query.item; import java.util.Date; public class VisitQueryItem { // 人员名字 private String name; // 移动电话 private String mobilePhone; // 名称 private String gender; // 名称 private String identityType; // 名称 private String countryName; // 证件编号 private String identifyNum; // 出生日期 private String birthday; // 公司名称 private String compnayName; // 人员名字 private String toPerson; // 来访时间 private String startTime; // 签离时间 private String lastTime; // 访问事由 private String bfsq; // 部门名称 private String deptName; // 最新的访问状态 private String status; /** * Get 人员名字 */ public String getName() { return name; } /** * Set 人员名字 */ public void setName(String name) { this.name = name; } /** * Get 移动电话 */ public String getMobilePhone() { return mobilePhone; } /** * Set 移动电话 */ public void setMobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; } /** * 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 getCountryName() { return countryName; } /** * Set 名称 */ public void setCountryName(String countryName) { this.countryName = countryName; } /** * Get 证件编号 */ public String getIdentifyNum() { return identifyNum; } /** * Set 证件编号 */ public void setIdentifyNum(String identifyNum) { this.identifyNum = identifyNum; } /** * Get 出生日期 */ public String getBirthday() { return birthday; } /** * Set 出生日期 */ public void setBirthday(String birthday) { this.birthday = birthday; } /** * Get 公司名称 */ public String getCompnayName() { return compnayName; } /** * Set 公司名称 */ public void setCompnayName(String compnayName) { this.compnayName = compnayName; } /** * Get 人员名字 */ public String getToPerson() { return toPerson; } /** * Set 人员名字 */ public void setToPerson(String toPerson) { this.toPerson = toPerson; } /** * Get 来访时间 */ public String getStartTime() { return startTime; } /** * Set 来访时间 */ public void setStartTime(String startTime) { this.startTime = startTime; } /** * Get 签离时间 */ public String getLastTime() { return lastTime; } /** * Set 签离时间 */ public void setLastTime(String lastTime) { this.lastTime = lastTime; } /** * Get 访问事由 */ public String getBfsq() { return bfsq; } /** * Set 访问事由 */ public void setBfsq(String bfsq) { this.bfsq = bfsq; } /** * Get 部门名称 */ public String getDeptName() { return deptName; } /** * Set 部门名称 */ public void setDeptName(String deptName) { this.deptName = deptName; } /** * Get 最新的访问状态 */ public String getStatus() { return status; } /** * Set 最新的访问状态 */ public void setStatus(String status) { this.status = status; } public String toString() { return ",人员名字 =" + name + ",移动电话 =" + mobilePhone + ",名称 =" + gender + ",名称 =" + identityType + ",名称 =" + countryName + ",证件编号 =" + identifyNum + ",出生日期 =" + birthday + ",公司名称 =" + compnayName + ",人员名字 =" + toPerson + ",来访时间 =" + startTime + ",签离时间 =" + lastTime + ",访问事由 =" + bfsq + ",部门名称 =" + deptName + ",最新的访问状态 ="+ status ; } } VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java
@@ -105,7 +105,7 @@ fragment_visit_right_gender.setText(""); fragment_visit_right_id_type.setText(""); fragment_visit_right_country.setText(""); fragment_visit_right_id_num.setText(""); fragment_visit_right_id_num.setText(item.getIdentify()); fragment_visit_right_birthday.setText(""); fragment_visit_right_company.setText(item.getCompanyName()); fragment_visit_right_person.setText("");