|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.qhclh.ytzh.index.shangpin; |
|
|
|
|
|
|
|
import android.content.Intent; |
|
|
|
import android.support.v7.widget.Toolbar; |
|
|
|
import android.view.LayoutInflater; |
|
|
|
import android.view.View; |
|
|
|
@ -11,6 +12,7 @@ import com.qhclh.ytzh.base.BaseActivity; |
|
|
|
import com.qhclh.ytzh.bean.BreedFactoryInfoBean; |
|
|
|
import com.qhclh.ytzh.home.RpcUrl; |
|
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
|
import com.qhclh.ytzh.work.tablepoultry.ReportActivity; |
|
|
|
|
|
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
|
import org.forks.jsonrpc.RpcFacade; |
|
|
|
@ -84,6 +86,9 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
protected void successUI() { |
|
|
|
cunlanlist.clear(); |
|
|
|
konglanlist.clear(); |
|
|
|
|
|
|
|
ll_cunlan.removeAllViews(); |
|
|
|
ll_konglan.removeAllViews(); |
|
|
|
for (int i=0;i<rpcObjectList.size();i++) |
|
|
|
{ |
|
|
|
if (rpcObjectList.get(i).getBoolean("Empty")==true){ |
|
|
|
@ -125,6 +130,18 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
View view = LayoutInflater.from(PianquinfosActivity.this).inflate(R.layout.item_pianquinfos,null); |
|
|
|
TextView pianqu_name = view.findViewById(R.id.pianqu_name); |
|
|
|
TextView pianqu_content = view.findViewById(R.id.pianqu_content); |
|
|
|
LinearLayout pianqu_ll = view.findViewById(R.id.pianqu_ll); |
|
|
|
|
|
|
|
pianqu_ll.setTag(cunlanlist.get(i).getID()); |
|
|
|
pianqu_ll.setOnClickListener(new View.OnClickListener() { |
|
|
|
@Override |
|
|
|
public void onClick(View view) { |
|
|
|
Intent intent = new Intent(PianquinfosActivity.this, ReportActivity.class); |
|
|
|
intent.putExtra("BreedFactory_id", (Long) view.getTag()); |
|
|
|
intent.putExtra("time",System.currentTimeMillis()); |
|
|
|
startActivity(intent); |
|
|
|
} |
|
|
|
}); |
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+cunlanlist.get(i).getName()); |
|
|
|
pianqu_content.setText(cunlanlist.get(i).getContact()); |
|
|
|
ll_cunlan.addView(view); |
|
|
|
@ -133,6 +150,18 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
View view = LayoutInflater.from(PianquinfosActivity.this).inflate(R.layout.item_pianquinfos,null); |
|
|
|
TextView pianqu_name = view.findViewById(R.id.pianqu_name); |
|
|
|
TextView pianqu_content = view.findViewById(R.id.pianqu_content); |
|
|
|
LinearLayout pianqu_ll = view.findViewById(R.id.pianqu_ll); |
|
|
|
pianqu_ll.setTag(konglanlist.get(i).getID()); |
|
|
|
pianqu_ll.setOnClickListener(new View.OnClickListener() { |
|
|
|
@Override |
|
|
|
public void onClick(View view) { |
|
|
|
Intent intent = new Intent(PianquinfosActivity.this, ReportActivity.class); |
|
|
|
intent.putExtra("BreedFactory_id", (Long) view.getTag()); |
|
|
|
intent.putExtra("time",System.currentTimeMillis()); |
|
|
|
startActivity(intent); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+konglanlist.get(i).getName()); |
|
|
|
pianqu_content.setText(konglanlist.get(i).getContact()); |
|
|
|
ll_konglan.addView(view); |
|
|
|
|