Android应用之个人应用软件开发(3)【SQLite数据库及理财功能实现(12)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-17 14:39 点击:次
c.moveToFirst();
spinnerid = Integer.parseInt(c.getString(0));
tv_Morning.setText(c.getString(1));
tv_noon.setText(c.getString(2));
tv_Night.setText(c.getString(3));
tv_OtherSpend.setText(c.getString(4));
tv_DailySpend.setText(c.getString(5));
c.close();
}
publicvoidonNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
});
//理财信息显示及处理
Cursor c2 = db.query( PublicDataCost.Tb_Name_1, AllFeild , "DateTimes='" + str + "'" , null, null, null, null);
c2.moveToFirst();
if(c2.getCount()>0)
{
intlastspend = Integer.parseInt(c2.getString(1))+Integer.parseInt(c2.getString(2))+Integer.parseInt(c2.getString(3))+Integer.parseInt(c2.getString(4))+Integer.parseInt(c2.getString(5));
jrzkx_01.setText("早:" + c2.getString(1) + " 中:"+ c2.getString(2)+" 晚:"+c2.getString(3));
jrzkx_02.setText("购置:"+ c2.getString(4)+" 日常:"+c2.getString(5));
jrzkx_03.setText("今日总消费金额:"+ lastspend);
bt_addspend.setText("修 改");
addflag = true;
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>