| | |
| | | package com.hdl.photovoltaic.ui.powerstation; |
| | | |
| | | import android.content.Intent; |
| | | import android.content.pm.PackageManager; |
| | | import android.os.Bundle; |
| | | import android.view.View; |
| | |
| | | private boolean isClickPowerStationLabel = true;//(电站标签=true,设备标签=false) |
| | | |
| | | private String key = SortValue.all; |
| | | private String value = SortValue.all; |
| | | private String value = SortValue.all;//descending:降序,ascending:升序 |
| | | |
| | | |
| | | private String installedCapacityMinKey = SortType.installedCapacityMin; |
| | | private int installedCapacityMinValue; |
| | | private int installedCapacityMinValue;//最小组串容量(装机容量) |
| | | private String installedCapacityMaxKey = SortType.installedCapacityMax; |
| | | private int installedCapacityMaxValue; |
| | | private int installedCapacityMaxValue;//最大组串容量(装机容量) |
| | | private String gridTypeKey = SortType.gridType; |
| | | private String gridTypeValue; |
| | | private String gridTypeValue;//并网状态(全部 不传该过滤参数,FULL_GRID:并网,OFFLINE:离网) |
| | | private String powerStationStatusKey = SortType.powerStationStatus; |
| | | private int powerStationStatusValue; |
| | | private int powerStationStatusValue;//电站状态(全部 不传该过滤参数,1:正常(运行),2:离线,3:待接入,4:故障) |
| | | |
| | | private long pageSize = 20;//页数 |
| | | private final long pageSize = 20;//页数 |
| | | |
| | | |
| | | @Override |
| | |
| | | } |
| | | }); |
| | | |
| | | //添加电站 |
| | | //电站添加 |
| | | viewBinding.addIv.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | HdlUniLogic.getInstance().openUniMP(HDLUniMP.UNI_EVENT_OPEN_HOME_CREATION, null); |
| | | |
| | | } |
| | | }); |
| | | //电站添搜索 |
| | | viewBinding.powerStationSearchClickCl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent = new Intent(); |
| | | intent.setClass(_mActivity, HouseSearchActivity.class); |
| | | startActivity(intent); |
| | | } |
| | | }); |
| | | //电站设置下拉箭头颜色 |
| | |
| | | } |
| | | } |
| | | }); |
| | | //进入电站详情,删除电站,移动电站位置 |
| | | //电站详情进入,删除电站,移动电站位置 |
| | | houseInfoAdapter.setNoOnclickListener(new HouseInfoAdapter.OnclickListener() { |
| | | @Override |
| | | public void onClick(int position, HouseIdBean houseIdBean) { |
| | |
| | | |
| | | } |
| | | }); |
| | | //编辑电站按钮 |
| | | //电站编辑按钮 |
| | | viewBinding.editIv.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | |
| | | value = isSelected ? SortValue.ascending : SortValue.descending; |
| | | } |
| | | }); |
| | | //发电功率筛选 |
| | | //电站发电功率筛选 |
| | | viewBinding.stationPowerRl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | |
| | | value = isSelected ? SortValue.ascending : SortValue.descending; |
| | | } |
| | | }); |
| | | //当日发电量筛选 |
| | | //电站当日发电量筛选 |
| | | viewBinding.stationDayRl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | |
| | | value = isSelected ? SortValue.ascending : SortValue.descending; |
| | | } |
| | | }); |
| | | //当月发电量筛选 |
| | | //电站当月发电量筛选 |
| | | viewBinding.stationMonthRl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | |
| | | value = isSelected ? SortValue.ascending : SortValue.descending; |
| | | } |
| | | }); |
| | | //点击设备 |
| | | //设备点击 |
| | | deviceInfoAdapter.setOnclickListener(new DeviceInfoAdapter.OnClickListener() { |
| | | @Override |
| | | public void onClick(int position, DeviceBean deviceBean) { |
| | |
| | | } |
| | | } |
| | | }); |
| | | //设备添搜索 |
| | | viewBinding.deviceSearchCl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent = new Intent(); |
| | | intent.setClass(_mActivity, DeviceSearchActivity.class); |
| | | startActivity(intent); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |