while(rs.next()) {
if(tblCostList==null)
{
tblCostList=new ArrayList<TblCost>();
}
TblCost tc=new TblCost();
tc.setId(rs.getInt("id"));
tc.setAgentPhone(rs.getString("agent_phone"));
tc.setAgentId(rs.getString("agent_id"));
tc.setAgentMonth(rs.getString("agent_month"));
tc.setInnetReward(rs.getString("innet_reward"));
tc.setPhoneReward(rs.getString("phone_reward"));
tc.setAgentPhineReward(rs.getString("agentphine_reward"));
tc.setNewBusinessReward(rs.getString("newbusiness_reward"));
tc.setSealCardReward(rs.getString("sealcard_reward"));
tc.setRoutineCheck(rs.getString("routine_check"));
tc.setJcProject(rs.getString("jc_project"));
tc.setChannelJl(rs.getString("channel_jl"));
tc.setInforateKf(rs.getString("inforate_kf"));
tc.setCustomerKf(rs.getString("customer_kf"));
tc.setAnotherKf(rs.getString("another_kf"));
tc.setMonthOut(rs.getString("month_out"));
tc.setEnterTime(rs.getString("enter_time"));
tc.setRemarks(rs.getString("remarks"));
tblCostList.add(tc);
}
} catch (Exception e) {
e.printStackTrace();