diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 1e58cc4..d5bcd3f 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -173,6 +173,8 @@
android:screenOrientation="portrait" />
+
buildhouseList;
+ private List reportBeanList;
+
+ private long BreedFactory_ID;
+ @Override
+ protected int setLayoutId() {
+ return R.layout.act_poultry_report;
+ }
+
+ @Override
+ protected void initView() {
+ initToolbar(mToolbar, "报表指数", new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ finish();
+ }
+ });
+
+ combination(lv_buildhousename, lv_report_info, sv_title, sv_report_detail);
+ }
+
+ @Override
+ protected void initData() {
+ BreedFactory_ID = getIntent().getLongExtra("BreedFactory_ID",-1);
+ buildhouseList = new ArrayList<>();
+ reportBeanList = new ArrayList<>();
+ }
+
+ @Override
+ protected void initOper() {
+
+ }
+
+ @Override
+ protected void onResume() {
+ super.onResume();
+ HouseTotalInfoCount1();
+ }
+
+ private void HouseTotalInfoCount1() {
+ ViewOnClickTask HouseTotalInfoCount1Task = new ViewOnClickTask(this,"加载中...") {
+ List rpcList;
+ @Override
+ protected void successUI() {
+ buildhouseList.clear();
+ reportBeanList.clear();
+ for (int i = 0;i list;
+
+ public PoultryReportInfoAdapter(Context context, List list) {
+ this.context = context;
+ this.list = list;
+ }
+
+ @Override
+ public int getCount() {
+ return list.size();
+ }
+
+ @Override
+ public Object getItem(int position) {
+ return list.get(position);
+ }
+
+ @Override
+ public long getItemId(int position) {
+ return list.get(position).getHouse_ID();
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ ViewHolder holder;
+ PoultryReportBean message = list.get(position);
+ if (convertView == null) {
+ holder = new ViewHolder();
+ convertView = LayoutInflater.from(context).inflate(R.layout.item_lv_poultry_info, null);
+ holder.item_zhouling = (TextView) convertView.findViewById(R.id.item_zhouling);
+ holder.item_musitao = (TextView) convertView.findViewById(R.id.item_musitao);
+ holder.item_gongsitao = (TextView) convertView.findViewById(R.id.item_gongsitao);
+ holder.item_muchenghuolv = (TextView) convertView.findViewById(R.id.item_muchenghuolv);
+ holder.item_gongchenghuolv = (TextView) convertView.findViewById(R.id.item_gongchenghuolv);
+ holder.item_muzhiliaoliang = (TextView) convertView.findViewById(R.id.item_muzhiliaoliang);
+ holder.item_mucaishi = (TextView) convertView.findViewById(R.id.item_mucaishi);
+
+
+ holder.ll_buildhouseinfo = convertView.findViewById(R.id.ll_buildhouseinfo);
+ holder.item_dongshe = convertView.findViewById(R.id.item_dongshe);
+
+
+ convertView.setTag(holder);
+ } else {
+ holder = (ViewHolder) convertView.getTag();
+ }
+
+ ///< 自己看拼音吧 我也不想看了
+ holder.item_zhouling.setText(message.getWeek());
+ holder.item_musitao.setText(message.getFemaleSiTaoNumber());
+ holder.item_gongsitao.setText(message.getMaleSiTaoNumber());
+ holder.item_muchenghuolv.setText(message.getFemaleSurvivalRate());
+ holder.item_gongchenghuolv.setText(message.getMaleSurvivalRate());
+ holder.item_muzhiliaoliang.setText(message.getFemalePerFeedNumber());
+ holder.item_mucaishi.setText(message.getFemaleEatTime());
+
+ holder.item_dongshe.setText(message.getHouse_Name());
+
+ if (position%2==0){
+ holder.ll_buildhouseinfo.setBackgroundColor(context.getResources().getColor(R.color.greyf4f4f4));
+ }else {
+ holder.ll_buildhouseinfo.setBackgroundColor(context.getResources().getColor(R.color.white));
+ }
+
+ return convertView;
+ }
+ private class ViewHolder {
+ TextView item_zhouling;
+ TextView item_musitao;
+ TextView item_gongsitao;
+
+ TextView item_muchenghuolv;
+ TextView item_gongchenghuolv;
+ TextView item_muzhiliaoliang;
+ TextView item_mucaishi;
+
+
+ TextView item_dongshe;
+ LinearLayout ll_buildhouseinfo;
+ }
+}
+
+
diff --git a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java
index 70f7fb0..a411a85 100644
--- a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java
+++ b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/YuchuFragment.java
@@ -1,5 +1,6 @@
package com.qhclh.ytzh.work.Poultrydailyreport;
+import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
@@ -91,7 +92,9 @@ public class YuchuFragment extends BaseFragment {
main_ll.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
- System.out.println("aaa++++++tag+long++"+view.getTag());
+ Intent intent = new Intent(getActivity(),PoultryReportActvity.class);
+ intent.putExtra("BreedFactory_ID",(long)view.getTag());
+ startActivity(intent);
}
});
}
diff --git a/app/src/main/res/layout/act_poultry_report.xml b/app/src/main/res/layout/act_poultry_report.xml
new file mode 100644
index 0000000..9403873
--- /dev/null
+++ b/app/src/main/res/layout/act_poultry_report.xml
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_lv_poultry_info.xml b/app/src/main/res/layout/item_lv_poultry_info.xml
new file mode 100644
index 0000000..e09419a
--- /dev/null
+++ b/app/src/main/res/layout/item_lv_poultry_info.xml
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file