|
|
|
@ -8,10 +8,8 @@ import android.widget.ListView; |
|
|
|
|
|
|
|
import com.qhclh.ytzh.R; |
|
|
|
import com.qhclh.ytzh.base.BaseActivity; |
|
|
|
import com.qhclh.ytzh.bean.ReportString; |
|
|
|
import com.qhclh.ytzh.ui.LinkedHorizontalScrollView; |
|
|
|
import com.qhclh.ytzh.ui.NoScrollHorizontalScrollView; |
|
|
|
import com.qhclh.ytzh.work.tablepoultry.LvBuildhousenaneAdapter; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
@ -37,10 +35,8 @@ public class HatcheryReportActivity extends BaseActivity { |
|
|
|
private boolean isLeftListEnabled = false; |
|
|
|
private boolean isRightListEnabled = false; |
|
|
|
|
|
|
|
private LvBuildhousenaneAdapter lvBuildhousenaneAdapter; |
|
|
|
private HatcheryReportInfoAdapter adapter; |
|
|
|
|
|
|
|
private List<ReportString> buildhouseList; |
|
|
|
private List<HatcheryReportBean> reportBeanList; |
|
|
|
|
|
|
|
private long hatchingStoreID; |
|
|
|
@ -64,16 +60,12 @@ public class HatcheryReportActivity extends BaseActivity { |
|
|
|
@Override |
|
|
|
protected void initData() { |
|
|
|
hatchingStoreID= getIntent().getLongExtra("hatchingStoreID",0); |
|
|
|
buildhouseList = new ArrayList<>(); |
|
|
|
reportBeanList = new ArrayList<>(); |
|
|
|
|
|
|
|
for (int i =0;i<20;i++){ |
|
|
|
buildhouseList.add(new ReportString(i,"")); |
|
|
|
reportBeanList.add(new HatcheryReportBean(i,i+1+"",i+2+"",i+3+"",i+4+"",i+5+"",i+6+"",i+7+"",i+8+"",i+9+"")); |
|
|
|
} |
|
|
|
lvBuildhousenaneAdapter = new LvBuildhousenaneAdapter(HatcheryReportActivity.this,buildhouseList); |
|
|
|
adapter = new HatcheryReportInfoAdapter(HatcheryReportActivity.this,reportBeanList); |
|
|
|
lv_buildhousename.setAdapter(lvBuildhousenaneAdapter); |
|
|
|
lv_report_info.setAdapter(adapter); |
|
|
|
} |
|
|
|
|
|
|
|
|