-
大小: 9.75MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-10-05
- 语言: Java
- 标签:
资源简介
javaWeb个人理财系统源码SQL Server 2005,适用于毕业设计。
代码片段和文件信息
package com.sanqing.action;
import java.text.SimpleDateFormat;
import java.util.Map;
import com.sanqing.dao.PayOutDAO;
import com.sanqing.dao.UserDAO;
import com.sanqing.po.PayOut;
import com.sanqing.po.User;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class AddPayOutAction extends ActionSupport{
private String payOutName;
private Double payOutMoney;
private String payOutDate;
private boolean success;
private String msg;
private PayOutDAO payOutDAO;
private UserDAO userDAO;
public String getPayOutName() {
return payOutName;
}
public void setPayOutName(String payOutName) {
this.payOutName = payOutName;
}
public Double getPayOutMoney() {
return payOutMoney;
}
public void setPayOutMoney(Double payOutMoney) {
this.payOutMoney = payOutMoney;
}
public String getPayOutDate() {
return payOutDate;
}
public void setPayOutDate(String payOutDate) {
this.payOutDate = payOutDate;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public PayOutDAO getPayOutDAO() {
return payOutDAO;
}
public void setPayOutDAO(PayOutDAO payOutDAO) {
this.payOutDAO = payOutDAO;
}
public UserDAO getUserDAO() {
return userDAO;
}
public void setUserDAO(UserDAO userDAO) {
this.userDAO = userDAO;
}
public String execute() throws Exception {
//获得当前登陆的用户
Map session = ActionContext.getContext().getSession();
String username = (String) session.get(“username“);
User user = (User) userDAO.findByUsername(username).get(0);
//添加支出记录
PayOut payOut = new PayOut();
payOut.setPayOutName(payOutName);
payOut.setPayOutMoney(payOutMoney);
payOut.setPayOutDate(new SimpleDateFormat(“yyyy年MM月dd日“).parse(payOutDate));
payOut.setUser(user);
payOutDAO.save(payOut);
success = true;
msg = “添加支出记录成功!“;
return this.SUCCESS;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-05-20 20:40 web\
文件 1368 2009-12-16 10:36 web\.classpath
目录 0 2014-05-20 20:46 web\.myeclipse\
文件 529 2009-12-16 10:36 web\.myhibernatedata
文件 304 2010-01-31 11:42 web\.myme
文件 1430 2009-12-16 10:38 web\.project
目录 0 2014-05-20 20:40 web\.settings\
文件 1040 2009-12-16 10:39 web\.settings\com.genuitec.eclipse.j2eedt.core.prefs
目录 0 2014-05-20 20:40 web\WebRoot\
目录 0 2014-05-20 20:40 web\WebRoot\Ext\
文件 11548 2009-05-15 16:39 web\WebRoot\Ext\CHANGES.html
文件 893 2009-05-15 16:39 web\WebRoot\Ext\INCLUDE_ORDER.txt
目录 0 2012-08-29 15:16 web\WebRoot\Ext\adapter\
目录 0 2014-05-20 20:40 web\WebRoot\Ext\adapter\ext\
文件 35849 2009-05-15 16:39 web\WebRoot\Ext\adapter\ext\ext-ba
目录 0 2014-05-20 20:40 web\WebRoot\Ext\adapter\jquery\
文件 15551 2009-05-15 16:39 web\WebRoot\Ext\adapter\jquery\ext-jquery-adapter.js
文件 96763 2009-05-15 16:39 web\WebRoot\Ext\adapter\jquery\jquery.js
目录 0 2014-05-20 20:40 web\WebRoot\Ext\adapter\prototype\
文件 38986 2009-05-15 16:39 web\WebRoot\Ext\adapter\prototype\effects.js
文件 16135 2009-05-15 16:39 web\WebRoot\Ext\adapter\prototype\ext-prototype-adapter.js
文件 130347 2009-05-15 16:39 web\WebRoot\Ext\adapter\prototype\prototype.js
文件 2654 2009-05-15 16:39 web\WebRoot\Ext\adapter\prototype\sc
目录 0 2014-05-20 20:40 web\WebRoot\Ext\adapter\yui\
文件 13125 2009-05-15 16:39 web\WebRoot\Ext\adapter\yui\ext-yui-adapter.js
文件 83879 2009-05-15 16:39 web\WebRoot\Ext\adapter\yui\yui-utilities.js
目录 0 2014-05-20 20:40 web\WebRoot\Ext\air\
文件 552 2009-05-15 16:39 web\WebRoot\Ext\air\README.txt
文件 46339 2009-05-15 16:39 web\WebRoot\Ext\air\air.jsb
文件 43722 2009-05-15 16:39 web\WebRoot\Ext\air\ext-air.js
目录 0 2014-05-20 20:40 web\WebRoot\Ext\air\resources\
............此处省略1307个文件信息
- 上一篇:android studio仿微信主界面
- 下一篇:基于java的在线考试系统
评论
共有 条评论