diff --git a/app/src/main/java/com/qhclh/ytzh/bean/ReportBean.java b/app/src/main/java/com/qhclh/ytzh/bean/ReportBean.java index 8408185..091b794 100644 --- a/app/src/main/java/com/qhclh/ytzh/bean/ReportBean.java +++ b/app/src/main/java/com/qhclh/ytzh/bean/ReportBean.java @@ -12,6 +12,26 @@ public class ReportBean { private String item_water; private String item_weight; private String dongshe; + private String chenghuolv; + + public String getChenghuolv() { + return chenghuolv; + } + + public void setChenghuolv(String chenghuolv) { + this.chenghuolv = chenghuolv; + } + + public ReportBean(long id, String item_dayage, String item_death, String item_eliminatee, String item_water, String item_weight, String dongshe, String chenghuolv) { + this.id = id; + this.item_dayage = item_dayage; + this.item_death = item_death; + this.item_eliminatee = item_eliminatee; + this.item_water = item_water; + this.item_weight = item_weight; + this.dongshe = dongshe; + this.chenghuolv = chenghuolv; + } public ReportBean(long id, String item_dayage, String item_death, String item_eliminatee, String item_water, String item_weight, String dongshe) { this.id = id; diff --git a/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/LvReportInfoAdapter.java b/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/LvReportInfoAdapter.java index 668384a..8364a36 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/LvReportInfoAdapter.java +++ b/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/LvReportInfoAdapter.java @@ -55,6 +55,7 @@ public class LvReportInfoAdapter extends BaseAdapter { holder.item_weight = (TextView) convertView.findViewById(R.id.item_weight); holder.ll_buildhouseinfo = convertView.findViewById(R.id.ll_buildhouseinfo); holder.item_dongshe = convertView.findViewById(R.id.item_dongshe); + holder.item_chenghuolv = convertView.findViewById(R.id.item_chenghuolv); convertView.setTag(holder); @@ -70,6 +71,7 @@ public class LvReportInfoAdapter extends BaseAdapter { holder.item_weight.setText(message.getItem_weight()); holder.item_dongshe.setText(message.getDongshe()); + holder.item_chenghuolv.setText(message.getChenghuolv()); if (position%2==0){ holder.ll_buildhouseinfo.setBackgroundColor(context.getResources().getColor(R.color.greyf4f4f4)); @@ -86,6 +88,7 @@ public class LvReportInfoAdapter extends BaseAdapter { TextView item_water; TextView item_weight; TextView item_dongshe; + TextView item_chenghuolv; LinearLayout ll_buildhouseinfo; } } diff --git a/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/ReportActivity.java b/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/ReportActivity.java index 2e59412..fc6acd2 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/ReportActivity.java +++ b/app/src/main/java/com/qhclh/ytzh/work/tablepoultry/ReportActivity.java @@ -123,7 +123,7 @@ public class ReportActivity extends BaseActivity { ,obs ,water ,weight - ,rpc.get(i).getString("House_Name"))); + ,rpc.get(i).getString("House_Name"),i+10+"%")); } lvBuildhousenaneAdapter = new LvBuildhousenaneAdapter(ReportActivity.this,buildhouseList); diff --git a/app/src/main/res/layout/act_report.xml b/app/src/main/res/layout/act_report.xml index 2b31c20..e618092 100644 --- a/app/src/main/res/layout/act_report.xml +++ b/app/src/main/res/layout/act_report.xml @@ -62,6 +62,15 @@ android:textColor="@color/grey666666" android:textSize="16sp" /> + + +