Browse Source

no message

master
lh 7 years ago
parent
commit
3118b3bfa2
2 changed files with 8 additions and 1 deletions
  1. +1
    -0
      app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryActivity.java
  2. +7
    -1
      app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java

+ 1
- 0
app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryActivity.java View File

@ -61,6 +61,7 @@ public class HatcheryActivity extends BaseActivity {
// System.out.println("aaa+++id+++"+l); // System.out.println("aaa+++id+++"+l);
Intent intent = new Intent(HatcheryActivity.this,HatcheryReportActivity.class); Intent intent = new Intent(HatcheryActivity.this,HatcheryReportActivity.class);
intent.putExtra("hatchingStoreID",l); intent.putExtra("hatchingStoreID",l);
intent.putExtra("HatchName",list.get(i).getName());
startActivity(intent); startActivity(intent);
} }
}); });


+ 7
- 1
app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java View File

@ -8,6 +8,7 @@ import android.widget.AbsListView;
import android.widget.HorizontalScrollView; import android.widget.HorizontalScrollView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView;
import com.qhclh.ytzh.R; import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity; import com.qhclh.ytzh.base.BaseActivity;
@ -51,6 +52,8 @@ public class HatcheryReportActivity extends BaseActivity {
ListView lv_report_info;//底部右侧的ListView ListView lv_report_info;//底部右侧的ListView
@BindView(R.id.ll_main) @BindView(R.id.ll_main)
LinearLayout ll_main; LinearLayout ll_main;
@BindView(R.id.tv_toolbar_title)
TextView tv_toolbar_title;
private boolean isLeftListEnabled = false; private boolean isLeftListEnabled = false;
private boolean isRightListEnabled = false; private boolean isRightListEnabled = false;
@ -60,6 +63,7 @@ public class HatcheryReportActivity extends BaseActivity {
private List<HatcheryReportBean> reportBeanList; private List<HatcheryReportBean> reportBeanList;
private long hatchingStoreID; private long hatchingStoreID;
private String HatchName;
@Override @Override
protected int setLayoutId() { protected int setLayoutId() {
return R.layout.act_hatchery_report; return R.layout.act_hatchery_report;
@ -70,7 +74,7 @@ public class HatcheryReportActivity extends BaseActivity {
if (!EventBus.getDefault().isRegistered(this)) { if (!EventBus.getDefault().isRegistered(this)) {
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
} }
initToolbar(mToolbar, "报表指数", new View.OnClickListener() {
initToolbar(mToolbar, "", new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
finish(); finish();
@ -83,6 +87,8 @@ public class HatcheryReportActivity extends BaseActivity {
@Override @Override
protected void initData() { protected void initData() {
hatchingStoreID= getIntent().getLongExtra("hatchingStoreID",0); hatchingStoreID= getIntent().getLongExtra("hatchingStoreID",0);
HatchName = getIntent().getStringExtra("HatchName");
tv_toolbar_title.setText(HatchName);
reportBeanList = new ArrayList<>(); reportBeanList = new ArrayList<>();
adapter = new HatcheryReportInfoAdapter(HatcheryReportActivity.this,reportBeanList); adapter = new HatcheryReportInfoAdapter(HatcheryReportActivity.this,reportBeanList);
lv_report_info.setAdapter(adapter); lv_report_info.setAdapter(adapter);


Loading…
Cancel
Save