|
|
|
@ -96,12 +96,33 @@ public class ReportActivity extends BaseActivity { |
|
|
|
reportBeanList.clear(); |
|
|
|
for (int i=0;i<rpc.size();i++){ |
|
|
|
buildhouseList.add(new ReportString(rpc.get(i).getLong("House_ID"),""+(i+1))); |
|
|
|
String days = ""; |
|
|
|
if (rpc.get(i).getInt("Days")!=null) { |
|
|
|
days = rpc.get(i).getInt("Days") + ""; |
|
|
|
} |
|
|
|
String dies = ""; |
|
|
|
if (rpc.get(i).getInt("DieNumber")!=null){ |
|
|
|
dies = rpc.get(i).getInt("DieNumber")+""; |
|
|
|
} |
|
|
|
String obs = ""; |
|
|
|
if (rpc.get(i).getInt("Obsolete")!=null){ |
|
|
|
obs = rpc.get(i).getInt("Obsolete")+""; |
|
|
|
} |
|
|
|
String water = ""; |
|
|
|
if (rpc.get(i).getDecimal("WaterIntake")!=null){ |
|
|
|
water = rpc.get(i).getDecimal("WaterIntake")+""; |
|
|
|
} |
|
|
|
|
|
|
|
String weight = ""; |
|
|
|
if (rpc.get(i).getDecimal("Weight")!=null){ |
|
|
|
weight = rpc.get(i).getDecimal("Weight")+""; |
|
|
|
} |
|
|
|
reportBeanList.add(new ReportBean(rpc.get(i).getLong("House_ID") |
|
|
|
,rpc.get(i).getInt("Days")+"" |
|
|
|
,rpc.get(i).getInt("DieNumber")+"" |
|
|
|
,rpc.get(i).getInt("Obsolete")+"" |
|
|
|
,rpc.get(i).getDecimal("WaterIntake")+"" |
|
|
|
,rpc.get(i).getDecimal("Weight")+"" |
|
|
|
,days |
|
|
|
,dies |
|
|
|
,obs |
|
|
|
,water |
|
|
|
,weight |
|
|
|
,rpc.get(i).getString("House_Name"))); |
|
|
|
} |
|
|
|
|
|
|
|
|