|
|
@ -1,6 +1,7 @@ |
|
|
package com.qhclh.ytzh.work.Poultrydailyreport; |
|
|
package com.qhclh.ytzh.work.Poultrydailyreport; |
|
|
|
|
|
|
|
|
import android.support.v7.widget.Toolbar; |
|
|
import android.support.v7.widget.Toolbar; |
|
|
|
|
|
import android.view.View; |
|
|
import android.widget.LinearLayout; |
|
|
import android.widget.LinearLayout; |
|
|
import android.widget.TextView; |
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
|
@ -17,6 +18,8 @@ import lecho.lib.hellocharts.view.LineChartView; |
|
|
public class PoultryDataChartActivity extends BaseActivity { |
|
|
public class PoultryDataChartActivity extends BaseActivity { |
|
|
@BindView(R.id.toolbar) |
|
|
@BindView(R.id.toolbar) |
|
|
Toolbar mToolbar; |
|
|
Toolbar mToolbar; |
|
|
|
|
|
@BindView(R.id.tv_toolbar_title) |
|
|
|
|
|
TextView tv_toolbar_title; |
|
|
@BindView(R.id.line_chart_poultry) |
|
|
@BindView(R.id.line_chart_poultry) |
|
|
LineChartView lineChart; |
|
|
LineChartView lineChart; |
|
|
|
|
|
|
|
|
@ -28,6 +31,8 @@ public class PoultryDataChartActivity extends BaseActivity { |
|
|
LinearLayout ll_chandanlv; |
|
|
LinearLayout ll_chandanlv; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private long House_ID; |
|
|
|
|
|
private String House_Name; |
|
|
@Override |
|
|
@Override |
|
|
protected int setLayoutId() { |
|
|
protected int setLayoutId() { |
|
|
return R.layout.act_poultry_data_chart; |
|
|
return R.layout.act_poultry_data_chart; |
|
|
@ -35,12 +40,19 @@ public class PoultryDataChartActivity extends BaseActivity { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initView() { |
|
|
protected void initView() { |
|
|
|
|
|
|
|
|
|
|
|
initToolbar(mToolbar, "报表指数", new View.OnClickListener() { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View view) { |
|
|
|
|
|
finish(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initData() { |
|
|
protected void initData() { |
|
|
|
|
|
|
|
|
|
|
|
House_ID = getIntent().getLongExtra("House_ID",-1); |
|
|
|
|
|
House_Name = getIntent().getStringExtra("House_Name"); |
|
|
|
|
|
tv_toolbar_title.setText(House_Name); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|