| | |
| | | HouseIdBean houseIdBean = this.mList.get(position); |
| | | holder.homeNameTv.setText(houseIdBean.getHomeName().trim()); |
| | | //装机容量 |
| | | String capacity = HdlCommonLogic.getBigDecimal(houseIdBean.getInstalledCapacity()).toString(); |
| | | holder.capacityTv.setText(capacity); |
| | | holder.capacityTv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getInstalledCapacity(), UnitType.kWp)); |
| | | holder.capacity_kwp_unit.setText(HdlCommonLogic.convertKWPUnit(houseIdBean.getInstalledCapacity())); |
| | | |
| | | //发电功率 |
| | | holder.power_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getPower())); |
| | | holder.power_kw_unit.setText(HdlCommonLogic.convertUnit(houseIdBean.getPower(), UnitType.kW)); |
| | | holder.power_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getPower(), UnitType.kW)); |
| | | holder.power_kw_unit.setText(HdlCommonLogic.convertKWUnit(houseIdBean.getPower())); |
| | | //当日发电量 |
| | | holder.day_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getTodayElectricity())); |
| | | holder.day_kwh_unit.setText(HdlCommonLogic.convertUnit(houseIdBean.getTodayElectricity(), UnitType.kWh)); |
| | | holder.day_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getTodayElectricity(), UnitType.kWh)); |
| | | holder.day_kwh_unit.setText(HdlCommonLogic.convertKWHUnit(houseIdBean.getTodayElectricity())); |
| | | //电池容量 |
| | | holder.month_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getBatteryCapacity())); |
| | | holder.month_kwh_unit.setText(HdlCommonLogic.convertUnit(houseIdBean.getBatteryCapacity(), UnitType.kWh)); |
| | | holder.month_value_tv.setText(HdlCommonLogic.convertDoubleValue(houseIdBean.getBatteryCapacity(), UnitType.kWh)); |
| | | holder.month_kwh_unit.setText(HdlCommonLogic.convertKWHUnit(houseIdBean.getBatteryCapacity())); |
| | | |
| | | holder.plant_details_location_tv.setText(houseIdBean.getHomeAddress()); |
| | | holder.item_parent_rl.setTag(position); |
| | |
| | | public ImageView homeIconIv;//住宅图片 |
| | | public TextView homeNameTv;//住宅名称 |
| | | public TextView capacityTv;//装机容量 |
| | | public TextView capacity_kwp_unit;//装机容量单位 |
| | | public TextView power_value_tv;//发电功率 |
| | | public TextView power_kw_unit;//发电功率单位 |
| | | public TextView day_value_tv;//当日发电量 |
| | |
| | | homeIconIv = itemView.findViewById(R.id.device_details_image_iv); |
| | | homeNameTv = itemView.findViewById(R.id.device_details_name_tv); |
| | | capacityTv = itemView.findViewById(R.id.device_details_value_tv); |
| | | capacity_kwp_unit = itemView.findViewById(R.id.capacity_kwp_unit); |
| | | power_value_tv = itemView.findViewById(R.id.power_value_tv); |
| | | power_kw_unit = itemView.findViewById(R.id.power_kw_unit); |
| | | day_value_tv = itemView.findViewById(R.id.day_value_tv); |