From 93cd3d01a96876df00455e335b725388304b012b Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 07 四月 2017 12:37:15 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java | 241 ++++++++++++++++++++++++++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VisitQueryItem.java | 241 ++++++++++++++++++++++++++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/VisitFragment.java | 24 ++ VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java | 2 4 files changed, 503 insertions(+), 5 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/VisitFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/VisitFragment.java index 81ad99f..ed94f69 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/VisitFragment.java +++ b/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) { diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VisitQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VisitQueryItem.java new file mode 100644 index 0000000..57f83a8 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/condition/VisitQueryItem.java @@ -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 ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java new file mode 100644 index 0000000..56be8c0 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/VisitQueryItem.java @@ -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 ; + } +} diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java index 6aee07a..8a6e2e3 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java +++ b/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(""); -- Gitblit v1.8.0