|
|
@ -41,7 +41,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
@BindView(R.id.rfl_productiondaily) |
|
|
@BindView(R.id.rfl_productiondaily) |
|
|
RefreshLayout rfl_productiondaily; |
|
|
RefreshLayout rfl_productiondaily; |
|
|
private int page =0; |
|
|
private int page =0; |
|
|
private List<ProductionDailyBean> productionDailyBeanList; |
|
|
|
|
|
|
|
|
private List<ProductionDailyBean> productionDailyBeanList = null; |
|
|
private ProductiondailyAdapter productiondailyAdapter; |
|
|
private ProductiondailyAdapter productiondailyAdapter; |
|
|
@Override |
|
|
@Override |
|
|
protected int setLayoutId() { |
|
|
protected int setLayoutId() { |
|
|
@ -62,11 +62,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
@Override |
|
|
@Override |
|
|
protected void initData() { |
|
|
protected void initData() { |
|
|
productionDailyBeanList = new ArrayList<>(); |
|
|
productionDailyBeanList = new ArrayList<>(); |
|
|
for (int i=0;i<10;i++){ |
|
|
|
|
|
productionDailyBeanList.add(new ProductionDailyBean(i+2,"1"+i,"adfa0"+i,"adfagfaw"+i)); |
|
|
|
|
|
} |
|
|
|
|
|
productiondailyAdapter = new ProductiondailyAdapter(this,productionDailyBeanList); |
|
|
|
|
|
lv_productiondaily.setAdapter(productiondailyAdapter); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -84,7 +80,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
@Override |
|
|
@Override |
|
|
protected void onResume() { |
|
|
protected void onResume() { |
|
|
super.onResume(); |
|
|
super.onResume(); |
|
|
DayProductRpcNew(); |
|
|
|
|
|
|
|
|
// DayProductRpcNew(); |
|
|
DayProductRpcQuery(); |
|
|
DayProductRpcQuery(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -114,7 +110,15 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void successUI() { |
|
|
protected void successUI() { |
|
|
|
|
|
|
|
|
|
|
|
int size = rpcobj.size(); |
|
|
|
|
|
productionDailyBeanList.clear(); |
|
|
|
|
|
for (int i=0;i<size;i++){ |
|
|
|
|
|
productionDailyBeanList.add(new ProductionDailyBean(rpcobj.get(i).getLong("ID") |
|
|
|
|
|
,rpcobj.get(i).getString("Batch_Name"),rpcobj.get(i).getString("BreedFactory_Name") |
|
|
|
|
|
,DateTimeUtil.getYMD2(rpcobj.get(i).getDate("Date")))); |
|
|
|
|
|
} |
|
|
|
|
|
productiondailyAdapter = new ProductiondailyAdapter(ProductiondailyActivity.this,productionDailyBeanList); |
|
|
|
|
|
lv_productiondaily.setAdapter(productiondailyAdapter); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -143,7 +147,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
// orderBy1.setString("Name", "CreateTime"); |
|
|
// orderBy1.setString("Name", "CreateTime"); |
|
|
// orderBy1.setBoolean("Desc", true); |
|
|
// orderBy1.setBoolean("Desc", true); |
|
|
// orderList.add(orderBy1); |
|
|
// orderList.add(orderBy1); |
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.DayProductRpc_Query); |
|
|
|
|
|
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.DayProductRpc_Query,queryObj); |
|
|
rpcobj = result.getRpcObjectList(RpcUrl.DayProductRpc_Query_fanhui); |
|
|
rpcobj = result.getRpcObjectList(RpcUrl.DayProductRpc_Query_fanhui); |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
@ -193,4 +197,14 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
public void onRefresh() { |
|
|
public void onRefresh() { |
|
|
rfl_productiondaily.setRefreshing(false); |
|
|
rfl_productiondaily.setRefreshing(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
protected void onDestroy() { |
|
|
|
|
|
super.onDestroy(); |
|
|
|
|
|
page =0; |
|
|
|
|
|
if (productionDailyBeanList!=null){ |
|
|
|
|
|
productionDailyBeanList.clear(); |
|
|
|
|
|
productionDailyBeanList = null; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |