|
|
|
@ -70,7 +70,9 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
|
lv_productiondaily.setOnItemClickListener(new AdapterView.OnItemClickListener() { |
|
|
|
@Override |
|
|
|
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { |
|
|
|
startActivity(new Intent(ProductiondailyActivity.this,ProductiondailyInfoActivity.class)); |
|
|
|
Intent intent = new Intent(ProductiondailyActivity.this,ProductiondailyInfoActivity.class); |
|
|
|
intent.putExtra("id",l); |
|
|
|
startActivity(intent); |
|
|
|
} |
|
|
|
}); |
|
|
|
rfl_productiondaily.setOnLoadListener(this); |
|
|
|
@ -188,11 +190,61 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
rfl_productiondaily.setLoading(false); |
|
|
|
|
|
|
|
DayProductRpcQueryplus(); |
|
|
|
} |
|
|
|
},1000); |
|
|
|
} |
|
|
|
|
|
|
|
private void DayProductRpcQueryplus() { |
|
|
|
page++; |
|
|
|
ViewOnClickTask DayProductRpcQuerypTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
List<RpcObject> rpcobj; |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
int size = rpcobj.size(); |
|
|
|
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.notifyDataSetChanged(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
RpcObject queryObj = RpcObject.create(RpcUrl.DayProductRpc_Query_canshu); |
|
|
|
queryObj.setInt("PageSize",10); |
|
|
|
queryObj.setInt("CurrentPageIndex",page); |
|
|
|
List<Object> select = queryObj.getList("Select"); |
|
|
|
select.add("ID"); |
|
|
|
// select.add("CreateTime"); |
|
|
|
// select.add("CreateUser_Name"); |
|
|
|
select.add("Batch_ID"); |
|
|
|
select.add("Batch_Name"); |
|
|
|
select.add("BreedFactory_ID"); |
|
|
|
select.add("BreedFactory_Name"); |
|
|
|
select.add("Date"); |
|
|
|
// select.add("Remark"); |
|
|
|
// select.add("AccountingUnit_ID"); |
|
|
|
// select.add("AccountingUnit_Name"); |
|
|
|
|
|
|
|
// Map<Object, Object> where = queryObj.getMap("Where"); |
|
|
|
// where.put("MobileToDo",true); |
|
|
|
|
|
|
|
// List<Object> orderList = queryObj.getList("OrderBy"); |
|
|
|
// RpcObject orderBy1 = RpcObject.create(RpcUrl.paixu); |
|
|
|
// orderBy1.setString("Name", "CreateTime"); |
|
|
|
// orderBy1.setBoolean("Desc", true); |
|
|
|
// orderList.add(orderBy1); |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.DayProductRpc_Query,queryObj); |
|
|
|
rpcobj = result.getRpcObjectList(RpcUrl.DayProductRpc_Query_fanhui); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
DayProductRpcQuerypTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onRefresh() { |
|
|
|
rfl_productiondaily.setRefreshing(false); |
|
|
|
|