|
|
|
@ -12,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.utils.DateTimeUtil; |
|
|
|
import com.qhclh.ytzh.work.tablepoultry.ReportActivity; |
|
|
|
|
|
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
|
@ -105,6 +106,12 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
}else { |
|
|
|
konglanbean.setContact(""); |
|
|
|
} |
|
|
|
|
|
|
|
if (rpcObjectList.get(i).getDate("PlanInDate") !=null){ |
|
|
|
konglanbean.setPlanInDate(DateTimeUtil.getYMD2(rpcObjectList.get(i).getDate("PlanInDate"))); |
|
|
|
}else { |
|
|
|
konglanbean.setPlanInDate(""); |
|
|
|
} |
|
|
|
konglanlist.add(konglanbean); |
|
|
|
|
|
|
|
}else { |
|
|
|
@ -121,6 +128,12 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
}else { |
|
|
|
cunlanbean.setContact(""); |
|
|
|
} |
|
|
|
|
|
|
|
if (rpcObjectList.get(i).getDate("PlanOutDate")!=null){ |
|
|
|
cunlanbean.setPlanOutDate(DateTimeUtil.getYMD2(rpcObjectList.get(i).getDate("PlanOutDate"))); |
|
|
|
}else { |
|
|
|
cunlanbean.setPlanOutDate(""); |
|
|
|
} |
|
|
|
cunlanlist.add(cunlanbean); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -142,7 +155,7 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
startActivity(intent); |
|
|
|
} |
|
|
|
}); |
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+cunlanlist.get(i).getName()); |
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+cunlanlist.get(i).getName()+"(计划出栏:"+cunlanlist.get(i).getPlanOutDate()+")"); |
|
|
|
pianqu_content.setText(cunlanlist.get(i).getContact()); |
|
|
|
ll_cunlan.addView(view); |
|
|
|
} |
|
|
|
@ -162,7 +175,7 @@ public class PianquinfosActivity extends BaseActivity { |
|
|
|
// } |
|
|
|
// }); |
|
|
|
|
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+konglanlist.get(i).getName()); |
|
|
|
pianqu_name.setText((i+1)+".养殖场:"+konglanlist.get(i).getName()+"(计划上鸡:"+konglanlist.get(i).getPlanInDate()+")"); |
|
|
|
pianqu_content.setText(konglanlist.get(i).getContact()); |
|
|
|
ll_konglan.addView(view); |
|
|
|
} |
|
|
|
|