|
|
@ -15,6 +15,7 @@ import com.qhclh.ytzh.home.RpcUrl; |
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
import com.qhclh.ytzh.ui.LinkedHorizontalScrollView; |
|
|
import com.qhclh.ytzh.ui.LinkedHorizontalScrollView; |
|
|
import com.qhclh.ytzh.ui.NoScrollHorizontalScrollView; |
|
|
import com.qhclh.ytzh.ui.NoScrollHorizontalScrollView; |
|
|
|
|
|
import com.qhclh.ytzh.utils.DateTimeUtil; |
|
|
import com.qhclh.ytzh.work.tablepoultry.LvBuildhousenaneAdapter; |
|
|
import com.qhclh.ytzh.work.tablepoultry.LvBuildhousenaneAdapter; |
|
|
|
|
|
|
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
@ -22,7 +23,9 @@ import org.forks.jsonrpc.RpcFacade; |
|
|
import org.forks.jsonrpc.RpcObject; |
|
|
import org.forks.jsonrpc.RpcObject; |
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.Date; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
import butterknife.BindView; |
|
|
import butterknife.BindView; |
|
|
@ -53,6 +56,7 @@ public class PoultryReportChandanActvity extends BaseActivity { |
|
|
private List<PoultryReportBean> reportBeanList; |
|
|
private List<PoultryReportBean> reportBeanList; |
|
|
|
|
|
|
|
|
private long BreedFactory_ID; |
|
|
private long BreedFactory_ID; |
|
|
|
|
|
private long time; |
|
|
@Override |
|
|
@Override |
|
|
protected int setLayoutId() { |
|
|
protected int setLayoutId() { |
|
|
return R.layout.act_poultry_chandan_report; |
|
|
return R.layout.act_poultry_chandan_report; |
|
|
@ -73,6 +77,7 @@ public class PoultryReportChandanActvity extends BaseActivity { |
|
|
@Override |
|
|
@Override |
|
|
protected void initData() { |
|
|
protected void initData() { |
|
|
BreedFactory_ID = getIntent().getLongExtra("BreedFactory_ID",-1); |
|
|
BreedFactory_ID = getIntent().getLongExtra("BreedFactory_ID",-1); |
|
|
|
|
|
time = getIntent().getLongExtra("time",0); |
|
|
buildhouseList = new ArrayList<>(); |
|
|
buildhouseList = new ArrayList<>(); |
|
|
reportBeanList = new ArrayList<>(); |
|
|
reportBeanList = new ArrayList<>(); |
|
|
} |
|
|
} |
|
|
@ -158,7 +163,7 @@ public class PoultryReportChandanActvity extends BaseActivity { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Object call() throws Exception { |
|
|
public Object call() throws Exception { |
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.HouseTotalInfoCount2,BreedFactory_ID); |
|
|
|
|
|
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.HouseTotalInfoCount2,new SimpleDateFormat("yyyy-MM-dd").parse(DateTimeUtil.getYMD(new Date(time))),BreedFactory_ID); |
|
|
rpcList = result.getRpcObjectList(RpcUrl.HouseTotalInfoCount1_fanhui); |
|
|
rpcList = result.getRpcObjectList(RpcUrl.HouseTotalInfoCount1_fanhui); |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|