├── .settings
├── org.eclipse.wst.jsdt.ui.superType.name
├── org.eclipse.wst.jsdt.ui.superType.container
├── org.eclipse.wst.common.project.facet.core.xml
├── .jsdtscope
├── org.eclipse.jdt.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.core.resources.prefs
├── com.genuitec.eclipse.j2eedt.core.prefs
└── com.genuitec.eclipse.j2eedt.ui.prefs
├── src
└── main
│ ├── webapp
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── WEB-INF
│ │ ├── lib
│ │ │ ├── asm-5.0.2.jar
│ │ │ ├── gson-2.2.4.jar
│ │ │ ├── ognl-3.0.6.jar
│ │ │ ├── kaptcha-2.3.2.jar
│ │ │ ├── log4j-1.2.17.jar
│ │ │ ├── asm-tree-5.0.2.jar
│ │ │ ├── commons-io-2.2.jar
│ │ │ ├── asm-commons-5.0.2.jar
│ │ │ ├── commons-lang3-3.2.jar
│ │ │ ├── freemarker-2.3.19.jar
│ │ │ ├── xwork-core-2.3.20.jar
│ │ │ ├── javassist-3.11.0.GA.jar
│ │ │ ├── struts2-core-2.3.20.jar
│ │ │ ├── commons-fileupload-1.3.1.jar
│ │ │ └── mysql-connector-java-5.1.38-bin.jar
│ │ └── web.xml
│ ├── css
│ │ ├── login.css
│ │ ├── common
│ │ │ └── custom.css
│ │ └── main.css
│ ├── plugins
│ │ ├── bootstrap-3.3.2
│ │ │ ├── fonts
│ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ └── js
│ │ │ │ └── npm.js
│ │ ├── angularjs
│ │ │ └── angular-route.min.js
│ │ └── security
│ │ │ └── sha1.js
│ ├── view
│ │ ├── welcome.html
│ │ ├── about.html
│ │ ├── apply.html
│ │ ├── pay.html
│ │ ├── review.html
│ │ └── billforin.html
│ ├── js
│ │ ├── view
│ │ │ ├── welcome.js
│ │ │ ├── about.js
│ │ │ ├── apply.js
│ │ │ ├── pay.js
│ │ │ ├── review.js
│ │ │ ├── user.js
│ │ │ ├── billforin.js
│ │ │ └── billforout.js
│ │ ├── login.js
│ │ └── main.js
│ ├── error
│ │ ├── error.jsp
│ │ ├── nopower.jsp
│ │ └── notfound.jsp
│ └── index.html
│ ├── resources
│ ├── jdbc.properties
│ ├── log4j.properties
│ └── struts.xml
│ └── java
│ └── com
│ └── ming
│ ├── util
│ ├── ID.java
│ ├── Permission.java
│ ├── Validate.java
│ ├── ConsoleMessage.java
│ ├── KaptchaUtil.java
│ ├── Condition.java
│ ├── IllegalCharacterInterceptor.java
│ ├── PermissionInterceptor.java
│ ├── DataUtil.java
│ ├── DataSecurity.java
│ ├── CommonFilter.java
│ ├── MailUtil.java
│ ├── HtmlUtil.java
│ ├── WebUtil.java
│ └── SqlUtil.java
│ ├── entity
│ ├── Role.java
│ ├── Page.java
│ ├── Permission.java
│ ├── Menu.java
│ ├── Message.java
│ ├── BillForIn.java
│ ├── BillForOut.java
│ └── User.java
│ ├── service
│ ├── IMenuService.java
│ ├── IPageService.java
│ ├── IRoleService.java
│ ├── IUserService.java
│ ├── IMessageService.java
│ ├── IPermissionService.java
│ ├── IBillForInService.java
│ ├── IBillForOutService.java
│ ├── MenuService.java
│ ├── PageService.java
│ ├── RoleService.java
│ ├── UserService.java
│ ├── MessageService.java
│ ├── PermissionService.java
│ └── BillForInService.java
│ ├── dao
│ └── BaseDao.java
│ └── action
│ ├── RoleAction.java
│ ├── MenuAction.java
│ └── BillForInAction.java
├── README.md
├── .classpath
└── .project
/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/src/main/webapp/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/asm-5.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/asm-5.0.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/gson-2.2.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/gson-2.2.4.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/ognl-3.0.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/ognl-3.0.6.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/kaptcha-2.3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/kaptcha-2.3.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/log4j-1.2.17.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/asm-tree-5.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/asm-tree-5.0.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/commons-io-2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/commons-io-2.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/asm-commons-5.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/asm-commons-5.0.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/commons-lang3-3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/commons-lang3-3.2.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/freemarker-2.3.19.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/freemarker-2.3.19.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/xwork-core-2.3.20.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/xwork-core-2.3.20.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/javassist-3.11.0.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/javassist-3.11.0.GA.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/struts2-core-2.3.20.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/struts2-core-2.3.20.jar
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/commons-fileupload-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/commons-fileupload-1.3.1.jar
--------------------------------------------------------------------------------
/src/main/webapp/css/login.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 |
3 | body {
4 | padding-top: 20px;
5 | }
6 | .desktop-fixed {
7 | height: 80px;
8 | }
9 |
10 | /* By Ming */
11 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar
--------------------------------------------------------------------------------
/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mingslife/MoneyManager/HEAD/src/main/webapp/plugins/bootstrap-3.3.2/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MoneyManager
2 | 财务管理系统
3 |
4 | ## 简介
5 | 该项目是我大二项目期间空闲时间写的,写写停停用了半年时间,当时是我初学Bootstrap前端框架, 后端用的是Struts2,数据库持久化部分是自己写的(数据库连接池是别人网上的代码,然后再修改的),后来又做了一些修改,不过代码没有托管,然后电脑在这个学期被偷了(大三下学期),所以都没了,这份代码是我突然想起来我在我服务器SVN上放了一份,虽然不是最新,但至少还是幸存下来了。
6 |
--------------------------------------------------------------------------------
/src/main/resources/jdbc.properties:
--------------------------------------------------------------------------------
1 | # By Ming
2 | # 2015-02-21
3 | driverName=com.mysql.jdbc.Driver
4 | url=jdbc\:mysql\://localhost\:3306/moneymanager
5 | username=root
6 | password=root
7 | maxActive=50
8 | maxIdle=10
9 | maxWait=10000
10 |
--------------------------------------------------------------------------------
/src/main/webapp/css/common/custom.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 |
3 | body {
4 | font-family: "Microsoft Yahei",微软雅黑,"Microsoft JhengHei",华文细黑,STHeiti,MingLiu;
5 | }
6 | th {
7 | text-align: center;
8 | }
9 | td {
10 | white-space: nowrap;
11 | overflow: hidden;
12 | text-overflow: ellipsis;
13 | }
14 |
15 | /* By Ming */
16 |
--------------------------------------------------------------------------------
/src/main/java/com/ming/util/ID.java:
--------------------------------------------------------------------------------
1 | package com.ming.util;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * 主键注解
10 | * @author Ming
11 | * @description 作为数据库表主键的注解
12 | * @date 2015-03-12
13 | */
14 | @Target (ElementType.FIELD)
15 | @Retention (RetentionPolicy.RUNTIME)
16 | public @interface ID {
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/com/ming/util/Permission.java:
--------------------------------------------------------------------------------
1 | package com.ming.util;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * 登录验证方法注解
10 | * @author Ming
11 | * @description 进行Struts2登录验证方法的注解
12 | * @date 2015-03-15
13 | */
14 | @Target (ElementType.METHOD)
15 | @Retention (RetentionPolicy.RUNTIME)
16 | public @interface Permission {
17 | }
18 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/webapp/view/welcome.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
欢迎使用财务管理系统
5 |
您好,超级管理员
6 |
您有条未审核的报账申请,合计金额元
7 |
您有条未支付的报账记录,合计金额元
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/webapp/plugins/bootstrap-3.3.2/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/webapp/css/main.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 |
3 | body {
4 | padding-top: 75px;
5 | }
6 | .navbar-right .btn-group {
7 | margin-right: 10px;
8 | }
9 | .jumbotron h1 {
10 | margin-bottom: 30px;
11 | }
12 | .toolbar {
13 | margin-bottom: 10px;
14 | }
15 | .toolbar label {
16 | margin-left: 10px;
17 | }
18 | .search {
19 | margin-left: 5px;
20 | }
21 | .sum span {
22 | margin-right: 20px;
23 | }
24 | .page {
25 | height: 34px;
26 | margin-right: 10px;
27 | line-height: 34px;
28 | }
29 | .footer {
30 | height: 60px;
31 | margin-top: 30px;
32 | padding-top: 20px;
33 | background-color: #eee;
34 | }
35 | #replyContent {
36 | height: 100px;
37 | resize: none;
38 | }
39 |
40 | /* By Ming */
41 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6 | org.eclipse.jdt.core.compiler.compliance=1.6
7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.source=1.6
13 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/webapp/error/error.jsp=UTF-8
3 | encoding//src/main/webapp/error/nopower.jsp=UTF-8
4 | encoding//src/main/webapp/error/notfound.jsp=UTF-8
5 | encoding//src/main/webapp/js/view/apply.js=UTF-8
6 | encoding//src/main/webapp/view=UTF-8
7 | encoding//src/main/webapp/view/about.html=UTF-8
8 | encoding//src/main/webapp/view/apply.html=UTF-8
9 | encoding//src/main/webapp/view/billforin.html=UTF-8
10 | encoding//src/main/webapp/view/billforout.html=UTF-8
11 | encoding//src/main/webapp/view/pay.html=UTF-8
12 | encoding//src/main/webapp/view/review.html=UTF-8
13 | encoding//src/main/webapp/view/user.html=UTF-8
14 | encoding//src/main/webapp/view/welcome.html=UTF-8
15 | encoding/=UTF-8
16 |
--------------------------------------------------------------------------------
/src/main/java/com/ming/util/Validate.java:
--------------------------------------------------------------------------------
1 | package com.ming.util;
2 |
3 |
4 | /**
5 | * 验证类
6 | * @author Ming
7 | * @description 验证数据合法性,未完工
8 | * @date 2015-02-21
9 | */
10 | public class Validate {
11 | /**
12 | * 验证字符串
13 | * @param value 待验证的数据
14 | * @return 结果
15 | */
16 | public static String string(String value) {
17 | if (value != null)
18 | return value.trim();
19 | else
20 | return null;
21 | }
22 |
23 | /**
24 | * 验证字符串(带长度验证)
25 | * @param value 待验证的数据
26 | * @param length 长度
27 | * @return 结果
28 | */
29 | public static String string(String value, int length) {
30 | value = string(value);
31 | if (value != null && value.length() <= length)
32 | return value;
33 | else
34 | return null;
35 | }
36 |
37 | // TODO 未完待续
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/webapp/js/view/welcome.js:
--------------------------------------------------------------------------------
1 | app.controller("welcomeController", function($scope) {
2 | $scope.init = function() {
3 | $.ajax({
4 | url: "user_welcome.action",
5 | type: "POST",
6 | dataType: "json",
7 | data: {},
8 | beforeSend: function() {},
9 | complete: function() {},
10 | success: function(data) {
11 | $scope.userName = data.userName;
12 | $scope.numberOfUncheck = data.numberOfUncheck;
13 | $scope.amountOfUncheck = data.amountOfUncheck;
14 | $scope.numberOfUnpaid = data.numberOfUnpaid;
15 | $scope.amountOfUnpaid = data.amountOfUnpaid;
16 | $scope.$apply();
17 | if (data.result)
18 | alert(data.result);
19 | },
20 | error: function() {
21 | alert("请求错误");
22 | }
23 | });
24 | };
25 | $scope.init();
26 | });
27 | /* By Ming */
28 |
--------------------------------------------------------------------------------
/src/main/java/com/ming/entity/Role.java:
--------------------------------------------------------------------------------
1 | package com.ming.entity;
2 |
3 | import com.ming.util.ID;
4 |
5 | /**
6 | *
7 | * @author Ming
8 | * @description
9 | * @date 2015-03-12
10 | */
11 | public class Role {
12 | @ID
13 | private Integer roleId;
14 | private String roleName;
15 |
16 | public Integer getRoleId() {
17 | return roleId;
18 | }
19 |
20 | public void setRoleId(Integer roleId) {
21 | this.roleId = roleId;
22 | }
23 |
24 | public String getRoleName() {
25 | return roleName;
26 | }
27 |
28 | public void setRoleName(String roleName) {
29 | this.roleName = roleName;
30 | }
31 |
32 | public Role() {
33 | }
34 |
35 | public Role(Integer roleId) {
36 | this.roleId = roleId;
37 | }
38 |
39 | public Role(Integer roleId, String roleName) {
40 | this.roleId = roleId;
41 | this.roleName = roleName;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/com/ming/service/IMenuService.java:
--------------------------------------------------------------------------------
1 | package com.ming.service;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import com.ming.entity.Menu;
7 |
8 | public interface IMenuService {
9 | public List