记账系统毕业设计(5)

2019-04-16 15:42

大连交通大学2012届本科毕业设计(论文)

HttpServletResponse response) {

TechContentForm form = (TechContentForm) actionForm; IdentityBean idBean = this.getIdBean(request); List list = null; String forward = \if (this.isButton(request, \ list = DBController.getMaxRate(idBean.getUserId(), form .getCreateDate(), form.getEndDate()); } else if (this.isButton(request, \ list = DBController.getMaxFee(idBean.getUserId(), form .getCreateDate(), form.getEndDate()); } else {

list = DBController.getFeeList(idBean.getUserId(), form .getCreateDate(), form.getEndDate()); }

if (list != null && !list.isEmpty()) { TechContentForm form2 = (TechContentForm) list .get(list.size() - 1); form.setTotalFee(form2.getTotalFee()); form.setTotalRate(form2.getTotalRate()); }

form.setTechList(list);

return actionMapping.findForward(\

图4-3 收支情况输入页面截图

4.3.1 收支信息添加

点击“添加信息”button,页面跳转到“web/enterAddFeeAction.do?path=Y”日期栏选择支出日期(系统自动弹出日期选择对话框),选择收支原因 (下拉list给出备选选项) 工资,奖金,分红,额外津贴,其他收入,生活费,交通费,服装费,休息娱

21

大连交通大学2012届本科毕业设计(论文)

乐,电话费,医疗保险,其他费用,备注录入支出具体原因。点击提交进行提交。点击后退,取消录入。如图4-3.1所示:

关键代码:

public class AddFeeAction extends BaseAction { public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { TechContentForm form = (TechContentForm) actionForm; IdentityBean idBean = this.getIdBean(request); if (StringUtils.isEmpty(form.getNoId())) { DBController.addFee(Integer.parseInt(idBean.getUserId()),form); } else { DBController.updateFee(form); }

if (\

return actionMapping.findForward(\ }

return actionMapping.findForward(\

添加收支分析主要是对用户的收入和支出进行记录,单击添加按钮的单击事件主要程序如下:

public class AddFeeAction extends BaseAction {

public ActionForward execute(ActionMapping actionMapping,

ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception {

TechContentForm form = (TechContentForm) actionForm; IdentityBean idBean = this.getIdBean(request);

if (StringUtils.isEmpty(form.getNoId())) { //执行插入操作的方法

DBController.addFee(Integer.parseInt(idBean.getUserId()),form); } else {

}

DBController.updateFee(form);

if (\

22

大连交通大学2012届本科毕业设计(论文)

//执行成功页面的转向

return actionMapping.findForward(\

}

}

return actionMapping.findForward(\

图 4-3.1添加支出信息截图

4.3.2收支分析报警模块

收支分析报警页面:如果用户支出大于则系统会进行报警。如图4-3.2所示:

图4-3.2收支报警页面截图

4.4股票模块

股票列表页面:股票管理主要是对股票的信息的买入和卖出价格的计算,卖出价格

减去买入价格乘以股数即为股票盈利金额。点击日期范围输入要查询的股票日期,或输

23

大连交通大学2012届本科毕业设计(论文)

入股票代码进行股票信息查询,或输入股票名称进行股票信息查询。如果输值不存在,显示所有股票信息 。点击“投资股票”进行股票信息的录入。选择股票条目,进行删除操作。如图4-4所示 : 关键代码:

public class SearchStockAction extends BaseAction { public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { TechContentForm form = (TechContentForm) actionForm; IdentityBean idBean = this.getIdBean(request); List list = null; String forward = \ list = DBController.getStockList(idBean.getUserId(), form.getCreateDate(), form.getEndDate(),form.getCode(),form.getName()); // if (list != null && !list.isEmpty()) { // TechContentForm form2 = (TechContentForm) list.get(list.size() - 1); // form.setTotalFee(form2.getTotalFee()); // form.setTotalRate(form2.getTotalRate()); form.setTechList(list); return actionMapping.findForward(\

图4-4 股票列表页面截图

4.4.2 股票信息添加

在股票信息页面点击“投资股票”button 。页面跳转到

“web/enterAddStockAction.do?path=Y”页面进行股票信息的录入 。输入股票日期(系统弹出日期选择对话框),输入股票代码(数字),输入股票名称,买入价格(单位:元),股数,卖出价格(单位:元)。录入后系统自动算出股票盈亏情况。点击后退取消操作。

24

大连交通大学2012届本科毕业设计(论文)

如图4-4.2所示 : 关键代码:

public class AddStockAction extends BaseAction { public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { TechContentForm form = (TechContentForm) actionForm; IdentityBean idBean = this.getIdBean(request); if (StringUtils.isEmpty(form.getNoId())) { DBController.addStock(Integer.parseInt(idBean.getUserId()),form); } else { DBController.updateStock(form); }

if (\

return actionMapping.findForward(\ } return actionMapping.findForward(\

图4-4.2 股票信息录入截图

4.5资产管理模块

资产管理主要是对个人买入和卖出信息的统计,资产管理列表页面。

输入日期范围(系统弹出日期选择对话框),选择买入,卖出,查询资产状况。如果选择为空值,则显示所有资产状况。选择收支条目,进行删除操作。点击“添加内容”添加资产增减条目。点击“查询内容”查询资产内容。如图5-5所示: 关键代码:

public class SearchAssetAction extends BaseAction {

25


记账系统毕业设计(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:高中物理-8电磁学 2恒定电流 4压轴题(金华常青藤家教题库) -

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: