├── .classpath
├── .gitignore
├── .project
├── .settings
├── .jsdtscope
├── org.eclipse.jdt.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.wst.common.project.facet.core.xml
├── org.eclipse.wst.jsdt.ui.superType.container
└── org.eclipse.wst.jsdt.ui.superType.name
├── README.md
├── WebContent
├── AddEmp.jsp
├── AddExtraWork.jsp
├── ChangePwd.jsp
├── ComSalary.jsp
├── DepartDetail.jsp
├── DepartEW.jsp
├── DepartEmp.jsp
├── DepartImp.jsp
├── DepartList.jsp
├── DualApply.jsp
├── EditDepart.jsp
├── EditEmp.jsp
├── EditImp.jsp
├── EmpDetail.jsp
├── EmpList.jsp
├── ExtraWorkDetail.jsp
├── KaoQinSearch.jsp
├── LeftTree.jsp
├── LeftTree2.jsp
├── Login.jsp
├── META-INF
│ └── MANIFEST.MF
├── PKaoQin.jsp
├── PKaoQinSearch.jsp
├── PSalaryList.jsp
├── PersonEW.jsp
├── Personal.jsp
├── QianDao.jsp
├── QianDaoOption.jsp
├── QingJiaDetail.jsp
├── SalaryTable.jsp
├── SearchImp.jsp
├── TodayAttend.jsp
├── Top.jsp
├── WEB-INF
│ └── web.xml
├── addDepartment.jsp
├── appSearch.jsp
├── apply.jsp
├── images
│ ├── 001.gif
│ ├── 002.gif
│ ├── 002.png
│ ├── 003.gif
│ ├── 004.gif
│ ├── adddepart.css
│ ├── addextraword.css
│ ├── addimp.css
│ ├── background.gif
│ ├── baina.gif
│ ├── bga1.gif
│ ├── bga2.gif
│ ├── bga3.gif
│ ├── bgtop.png
│ ├── cuo.gif
│ ├── departListstyle.css
│ ├── departdetail.css
│ ├── editdepartstyle.css
│ ├── impListstyle.css
│ ├── impdetail.css
│ ├── jiang.gif
│ ├── jiang.png
│ ├── login.jpg
│ ├── loginStyle.css
│ ├── mainstyle.css
│ ├── manage.js
│ ├── qiandao.css
│ ├── qingjiadetail.css
│ ├── sheng.gif
│ ├── sheng1.png
│ ├── style.css
│ ├── top.js
│ ├── topstyle.css
│ ├── tree2style.css
│ ├── treestyle.css
│ └── up.gif
├── impimage
│ └── default.png
├── index.jsp
└── yanzhengma.jsp
├── hibernate.reveng.xml
└── src
├── MSG
├── change.bat
├── myApplication.properties
└── myApplication.txt
├── applicationContext.xml
├── com
├── action
│ ├── LoginAction.java
│ ├── attendanceAction.java
│ ├── departAction.java
│ ├── empAction.java
│ ├── extraworkAction.java
│ ├── holsAction.java
│ ├── salaryAction.java
│ └── userAction.java
├── biz
│ ├── IbaseBiz.java
│ ├── IuserBiz.java
│ ├── baseBizImpl.java
│ └── userBizImpl.java
├── dao
│ ├── IBaseDao.java
│ ├── IuserDao.java
│ ├── baseDaoImpl.java
│ └── userDaoImpl.java
├── entity
│ ├── Attendanceinfo.hbm.xml
│ ├── Attendanceinfo.java
│ ├── Departmentinfo.hbm.xml
│ ├── Departmentinfo.java
│ ├── Employeeinfo.hbm.xml
│ ├── Employeeinfo.java
│ ├── Extrawork.hbm.xml
│ ├── Extrawork.java
│ ├── Holsinfo.hbm.xml
│ ├── Holsinfo.java
│ ├── Salaryinfo.hbm.xml
│ ├── Salaryinfo.java
│ ├── Userinfo.hbm.xml
│ └── Userinfo.java
└── util
│ └── login.java
├── hibernate.cfg.xml
├── jdbc.properties
├── permanagement.sql
├── struts.properties
├── struts.xml
├── template
└── simple
│ └── myfielderror.ftl
└── textMsg
├── change.bat
├── myApplication.properties
└── myApplication.txt
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | /build
3 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | perManaGement
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.jsdt.core.javascriptValidator
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.wst.common.project.facet.core.builder
20 |
21 |
22 |
23 |
24 | org.eclipse.wst.validation.validationbuilder
25 |
26 |
27 |
28 |
29 |
30 | org.eclipse.jem.workbench.JavaEMFNature
31 | org.eclipse.wst.common.modulecore.ModuleCoreNature
32 | org.eclipse.wst.common.project.facet.core.nature
33 | org.eclipse.jdt.core.javanature
34 | org.eclipse.wst.jsdt.core.jsNature
35 |
36 |
37 |
--------------------------------------------------------------------------------
/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.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.targetPlatform=1.7
4 | org.eclipse.jdt.core.compiler.compliance=1.7
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.source=1.7
8 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 人事管理OA系统
2 |
3 | 案例作者邮箱:lyayzh#live.com
4 |
5 |
6 |
7 | 本案例开发环境:
8 | 数据库:Mysql
9 | IDE :STS3.0
10 | JDk :1.7
11 | Tomcat:7.0
12 |
13 | 本案例所使用技术:
14 | 1、struts2标签
15 | 2、jsp页面
16 | 3、SSH2 框架
17 |
18 |
19 |
20 | 目前完成功能:
21 | 1、用户登录判断权限
22 | 2、普通用户登录主页详情查看
23 | 3、员工考勤查询
24 | 4、员工个人薪资查询
25 | 5、员工假期申请与查询及修改
26 | 6、用户密码修改
27 |
28 |
29 | 2013-08-26 18:48
30 | 新完成的模块
31 | 1、人事部职员管理职工模块
32 | a、添加职工
33 | b、多种条件查询职工
34 | c、查看职工详情
35 |
36 |
37 | 2013-08-26 18:38
38 | 新完成的模块
39 | 1、公司部门管理
40 | a、所有部门查询(详情查询)
41 | b、部门详情修改
42 | c、查看部门所有员工
43 | d、添加部门
44 | f、修改部门
45 | 2、员工考勤管理
46 | a、当天考勤查询
47 | b、所有考勤查询(多条件考勤查询)
48 | 问题:
49 | 如果action同用全局属性会出现属性上次查询被赋值的情况
50 | 正在在解决方案?????
51 |
52 | 2013-08-28
53 | 新完成的模块
54 | 1、员工考勤管理
55 | a、职工签到
56 | 2、职工加班管理
57 | b、部门加班查询(部门Id条件查询)
58 | c、个人加班查询 (员工Id和时间查询)
59 | d、添加加班信息
60 | e、修改加班信息
61 | 3、职工薪资管理
62 | f、按月查询薪资(部门Id查询)
63 | g、薪资发放
64 | 4、个人页面(同用普通用户页面)
65 |
66 | spring 默认注入为单例模式 如有些action不需要刻意在bean标签加入scope="prototype"属性
67 | 内部私有属性定义时最好赋初值(尤其字符串)这样对后面判断有益
68 | 如果action无法传值 刻意考虑用session传值
69 |
70 | 2013-08-29 10:19
71 | 新完成模块
72 | 1、请假管理
73 | a、添加拦截器作为用户登录验证
74 |
75 | 此案例到此结束!源码中可能有些地方不够细致 没加大数据测试不足之处还请谅解!
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/WebContent/AddEmp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
74 |
81 |
82 |
83 |
84 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/WebContent/AddExtraWork.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib prefix="sx" uri="/struts-dojo-tags"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 添加加班信息
28 |
29 |
30 | 职工编号: |
31 | |
32 | 加班日期: |
33 | |
34 |
35 |
36 |
37 |
41 | |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/WebContent/ChangePwd.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 修改密码 |
25 |
26 |
27 | * 您的旧密码: |
28 | |
29 | *旧密码不能为空 |
30 |
31 |
32 | * 您的新密码: |
33 | |
34 | *新密码不能为空 |
35 |
36 |
37 | * 再次输入新密码: |
38 | |
39 | *请再次输入新密码 |
40 |
41 |
42 |       |
44 |
45 |
46 |
47 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/WebContent/ComSalary.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 请选择月份:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/WebContent/DepartDetail.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 | 部门详细信息
6 |
7 |
8 |
9 |
10 |
11 |
12 | 部门详细信息
13 |
14 | 部门编号 |
15 | |
16 | 部门名称 |
17 |
18 | |
19 |
20 |
21 | 在职人数 |
22 | " target="_blank" alt="点击查看详细职工信息"> |
23 | |
24 | |
25 |
26 |
27 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/WebContent/DepartEW.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | 请选择部门:
49 | |
50 | 起始时间:
51 | |
52 | 终止时间:
53 | |
54 | |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | 个人加班列表
64 |
65 |
74 |
75 |
" class="oddRow" class="evenRow"
76 | onmouseover="this.className='selectedRow';"
77 | onmouseout="mymouseout('e',
78 | 'oddRow'
79 | 'evenRow');">
80 | |
81 | |
82 | |
83 | |
84 | |
85 | " target="_blank">详情 |
86 | ">删除 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | |
94 | |
95 |
96 | ">
97 |
98 | |
99 |
100 | ">
101 |
102 | |
103 |
104 |
105 |
106 |
107 |
108 |
109 | |
110 |
111 |
112 |
113 |
114 |
115 | 没有相关信息
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/WebContent/DepartEmp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s" %>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
33 |
34 |
"
35 | class="oddRow"
36 | class="evenRow"
37 | onmouseover="this.className='selectedRow';"
38 | onmouseout="mymouseout('imp',
39 | 'oddRow'
40 | 'evenRow');"
41 | >
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | " target="_blank">查看 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
63 |
64 |
65 |
66 | ">
67 |
68 |
69 |
70 |
71 | ">
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | 没有相应的职工信息
88 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/WebContent/DepartImp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s" %>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
33 |
34 |
"
35 | class="oddRow"
36 | class="evenRow"
37 | onmouseover="this.className='selectedRow';"
38 | onmouseout="mymouseout('imp',
39 | 'oddRow'
40 | 'evenRow');"
41 | >
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | " target="_blank">查看 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
63 |
64 |
65 |
66 | ">
67 |
68 |
69 |
70 |
71 | ">
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | 没有相应的职工信息
88 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/WebContent/DepartList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | 部门列表
47 |
48 |
56 |
57 |
" class="oddRow" class="evenRow"
58 | onmouseover="this.className='selectedRow';"
59 | onmouseout="mymouseout('d',
60 | 'oddRow'
61 | 'evenRow');">
62 | |
63 | |
64 | " target="_blank" title="点击查看详细职工信息"> |
66 | |
67 | ">删除 |
68 | " target="_blank">编辑 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
79 |
80 |
81 |
82 | ">
83 |
84 |
85 | ">
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/WebContent/DualApply.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | 请选择部门:
47 | |
48 | 状态:
50 | |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | 薪资列表
60 |
61 |
72 |
73 |
" class="oddRow" class="evenRow"
74 | onmouseover="this.className='selectedRow';"
75 | onmouseout="mymouseout('h',
76 | 'oddRow'
77 | 'evenRow');">
78 | |
79 | |
80 | |
81 | |
82 |
83 | |
84 | |
85 | |
86 |
87 | |
88 |
89 | &holsState=1">
90 | &holsState=3"> |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | |
101 | |
102 |
103 | ">
104 |
105 | |
106 |
107 | ">
108 |
109 | |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | |
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/WebContent/EditDepart.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 | EditDepart.jsp
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 部门详细信息
15 |
16 | 部门编号 |
17 | |
18 | 部门名称 |
19 | |
20 |
21 |
22 | 在职人数 |
23 | |
24 | |
25 | |
26 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/WebContent/EditEmp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s"%>
3 | <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
18 |
19 |
20 |
21 |
22 |
23 |
70 |
77 |
78 |
79 |
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/WebContent/EditImp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s" %>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
20 |
21 |
69 |
74 |
75 |
76 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/WebContent/EmpDetail.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 | 职工详细信息
6 |
7 |
8 |
9 |
10 |
11 |
12 |
的详细信息
13 |
14 |
15 |

" onload="changePic('personpic');">
16 |
17 |
18 |
的头像
19 |
20 |
21 |
22 |
23 |
24 | 职工编号: |
25 | |
26 |
27 |
28 | 职工姓名: |
29 | |
30 |
31 |
32 | 职工性别: |
33 | |
34 |
35 |
36 | 出生日期: |
37 | |
38 |
39 |
40 | 个人邮箱: |
41 | |
42 |
43 |
44 | 个人电话: |
45 | |
46 |
47 |
48 | 所属部门: |
49 | |
50 |
51 |
52 | 职 位: |
53 | |
54 |
55 |
56 | 薪 资: |
57 | |
58 |
59 |
60 |
61 |
62 |
63 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/WebContent/EmpList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
50 |
51 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
71 |
72 |
" class="oddRow" class="evenRow"
73 | onmouseover="this.className='selectedRow';"
74 | onmouseout="mymouseout('e',
75 | 'oddRow'
76 | 'evenRow');">
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | " target="_blank">查看 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
94 |
95 |
96 |
97 | ">
98 |
99 |
100 | ">
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | 没有相应的职工信息
117 |
118 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/WebContent/ExtraWorkDetail.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="s" uri="/struts-tags" %>
3 |
4 |
5 | ExtraWorkDetail.jsp
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 加班详细信息
14 |
15 | 职工编号 |
16 | |
17 | 职工姓名 |
18 | |
19 |
20 |
21 | 所属部门 |
22 | |
23 | 加班日期 |
24 | |
25 |
26 |
27 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/WebContent/KaoQinSearch.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | 请选择部门:
50 | |
51 | 状态:
52 | |
53 | 起始时间:
54 | |
55 | 终止时间:
56 | |
57 | |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | 考勤表
67 |
68 |
76 |
77 |
" class="oddRow" class="evenRow"
78 | onmouseover="this.className='selectedRow';"
79 | onmouseout="mymouseout('a',
80 | 'oddRow'
81 | 'evenRow');">
82 | |
83 | |
84 | |
85 | |
86 | &date="
88 | target="_blank"> |
89 |
90 |
91 |
92 |
93 |
94 |
95 | 共页 条记录
96 | |
97 |
98 | ">上一页
99 | |
100 |
101 | ">下一页
102 | |
103 | 跳转到第页
105 | |
106 |
107 |
108 |
109 |
110 |
111 | 暂没有相关的考勤信息
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/WebContent/LeftTree.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 |
3 |
4 |
5 | 高级链接
6 |
7 |
34 |
35 |
36 |
65 |
66 |
--------------------------------------------------------------------------------
/WebContent/LeftTree2.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 |
3 |
4 |
5 | 高级链接
6 |
7 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/WebContent/Login.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s" %>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |

14 |
15 |
16 |
17 |
18 |
19 |

20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
45 |
46 |
47 |
48 |
49 |
50 |
62 |
63 |
--------------------------------------------------------------------------------
/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/WebContent/PKaoQin.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | 选择状态:
51 | |
52 | 起始时间:
53 | |
54 | 终止时间:
55 | |
56 | |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | 考勤表
66 |
67 |
75 |
76 |
" class="oddRow"
77 | class="evenRow" onmouseover="this.className='selectedRow';"
78 | onmouseout="mymouseout('atd',
79 | 'oddRow'
80 | 'evenRow');">
81 | |
82 | |
83 | |
84 | |
85 | &date=" target="_blank"> |
88 |
89 |
90 |
91 |
92 |
93 |
94 | 共页 条记录
95 | |
96 |
97 | ">上一页
98 | |
99 |
100 | ">下一页
101 | |
102 | 跳转到第页
104 | |
105 |
106 |
107 |
108 |
109 |
110 | 暂没有相关的考勤信息
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/WebContent/PKaoQinSearch.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | 请选择时间段 |
33 | 至 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/WebContent/PSalaryList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | 薪资列表
43 |
55 |
56 |
"
57 | class="oddRow"
58 | class="evenRow"
59 | onmouseover="this.className='selectedRow';"
60 | onmouseout="mymouseout('s',
61 | 'oddRow'
62 | 'evenRow');"
63 | >
64 | |
65 | |
66 | |
67 | |
68 |
69 | |
70 | |
71 | |
72 | |
73 |
74 | |
75 | |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | |
85 | |
86 |
87 | |
88 |
89 |
90 |
91 | ">
92 |
93 |
94 | |
95 |
96 |
97 |
98 | ">
99 |
100 |
101 | |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/WebContent/PersonEW.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 职工编号: |
49 | 起始时间: |
50 | 终止时间: |
51 | |
52 |
53 |
54 |
55 |
56 |
57 |
58 | 个人加班列表
59 |
60 |
69 |
70 |
" class="oddRow" class="evenRow"
71 | onmouseover="this.className='selectedRow';"
72 | onmouseout="mymouseout('e',
73 | 'oddRow'
74 | 'evenRow');">
75 | |
76 | |
77 | |
78 | |
79 | |
80 | " target="_blank">详情 |
81 | ">删除 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | |
89 | |
90 |
91 | ">
92 |
93 | |
94 |
95 | ">
96 |
97 | |
98 |
99 |
100 |
101 |
102 |
103 |
104 | |
105 |
106 |
107 |
108 |
109 |
110 | 没有相关信息
111 |
112 |
113 |
114 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/WebContent/Personal.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | 的详细信息
33 |
34 |
35 |
36 |

"
37 | onload="changePic('personpic');">
38 |
39 |
40 |
的头像
41 |
42 |
43 |
44 |
45 |
46 | 职工编号: |
47 | |
48 |
49 |
50 | 职工姓名: |
51 | |
52 |
53 |
54 | 职工性别: |
55 | |
56 |
57 |
58 | 出生日期: |
59 | |
60 |
61 |
62 | 个人邮箱: |
63 | |
64 |
65 |
66 | 个人电话: |
67 | |
68 |
69 |
70 | 所属部门: |
71 | |
72 |
73 |
74 | 职 位: |
75 | |
76 |
77 |
78 | 薪 资: |
79 | |
80 |
81 |
82 |
83 |
84 |
85 |
92 |
93 |
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/WebContent/QianDao.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | 请输入职工号:
46 |
47 |
48 |
49 |
50 |
51 | 职工签到表
52 |
53 |
61 |
62 |
" class="oddRow" class="evenRow"
63 | onmouseover="this.className='selectedRow';"
64 | onmouseout="mymouseout('a',
65 | 'oddRow'
66 | 'evenRow');">
67 | |
68 | |
69 | |
70 | |
71 | |
72 | "> |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | 共页 条记录
83 | |
84 |
85 | ">上一页
86 | |
87 |
88 | ">下一页
89 | |
90 | 跳转到第页
92 | |
93 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/WebContent/QianDaoOption.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 请选择日期:
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/WebContent/QingJiaDetail.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 请假详细信息
13 |
14 | 职工编号: |
15 | |
16 | 职工姓名: |
17 | |
18 |
19 |
20 | 申请时间: |
21 | |
22 | 天数: |
23 | |
24 |
25 |
26 | 开始时间: |
27 | |
28 | 结束时间: |
29 | |
30 |
31 |
32 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/WebContent/SalaryTable.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
47 |
48 |
49 |
50 |
51 | 薪资列表
52 |
53 |
66 |
67 |
" class="oddRow" class="evenRow"
68 | onmouseover="this.className='selectedRow';"
69 | onmouseout="mymouseout('s',
70 | 'oddRow'
71 | 'evenRow');">
72 | |
73 | |
74 | |
75 | |
76 |
77 | |
78 | |
79 | |
80 | |
81 |
82 | |
83 | |
84 | "> |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | |
94 | |
95 |
96 | &salaryMonth=">
98 |
99 | |
100 |
101 | &salaryMonth=">
103 |
104 | |
105 |
106 |
107 |
108 |
109 |
110 |
111 | |
112 |
113 |
114 |
115 |
116 | 没有相应的薪资信息
117 |
118 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/WebContent/SearchImp.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | 部门:
45 | |
46 | 职工编号:
47 | |
48 | 职工姓名:
49 | |
50 | 薪资:至
51 | |
52 | |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
72 |
73 |
" class="oddRow" class="evenRow"
74 | onmouseover="this.className='selectedRow';"
75 | onmouseout="mymouseout('e',
76 | 'oddRow'
77 | 'evenRow');">
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | " target="_blank">查看 |
87 | " target="_blank">编辑/">删除 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
97 |
98 |
99 |
100 | ">
101 |
102 |
103 | ">
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 | 没有相应的职工信息
121 |
122 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/WebContent/TodayAttend.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 请选择部门:
50 | |
51 | 请选择状态:
53 | |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | 今日考勤表
63 |
64 |
72 |
73 |
" class="oddRow" class="evenRow"
74 | onmouseover="this.className='selectedRow';"
75 | onmouseout="mymouseout('a',
76 | 'oddRow'
77 | 'evenRow');">
78 | |
79 | |
80 | |
81 | |
82 | &attendState=" target="_blank"> |
85 |
86 |
87 |
88 |
89 |
90 |
91 | 共页 条记录
92 | |
93 |
94 | ">上一页
95 | |
96 |
97 | ">下一页
98 | |
99 | 跳转到第页
101 | |
102 |
103 |
104 |
105 |
106 |
107 | 暂没有相关的考勤信息
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/WebContent/Top.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib uri="/struts-tags" prefix="s" %>
3 |
4 |
5 | top.jsp
6 |
7 |
8 |
11 |
12 |
13 |
21 |
22 |
--------------------------------------------------------------------------------
/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | org.springframework.web.context.ContextLoaderListener
6 |
7 |
8 | contextConfigLocation
9 | classpath:applicationContext.xml
10 |
11 |
12 | OpenSessionInView
13 | org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
14 |
15 |
16 | OpenSessionInView
17 | *.action
18 |
19 |
20 |
21 | struts2
22 | org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
23 |
24 |
25 | struts2
26 | *.action
27 |
28 |
29 | struts2
30 | /*
31 |
32 |
33 | /Login.jsp
34 |
35 |
--------------------------------------------------------------------------------
/WebContent/addDepartment.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 添加部门
26 |
27 |
28 | 部门编号: |
29 | |
30 | 部门名称: |
31 | |
32 |
33 |
34 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/WebContent/appSearch.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | 请假情况列表
43 |
54 |
55 |
"
56 | class="oddRow"
57 | class="evenRow"
58 | onmouseover="this.className='selectedRow';"
59 | onmouseout="mymouseout('h',
60 | 'oddRow'
61 | 'evenRow');"
62 | >
63 | |
64 | |
65 | |
66 | |
67 |
68 | |
69 | |
70 | |
71 |
72 |
73 |
74 |
75 |
76 | |
77 |
78 |
79 |
80 |
81 | ">
82 |
83 | |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | |
93 | |
94 |
95 | |
96 |
97 |
98 |
99 | &departId=">
100 |
101 |
102 | |
103 |
104 |
105 |
106 | &departId=">
107 |
108 |
109 | |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 | |
119 |
120 |
121 |
122 |
123 |
124 |
--------------------------------------------------------------------------------
/WebContent/apply.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@taglib prefix="s" uri="/struts-tags"%>
3 | <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 起始时间:
28 | |
29 | 终止时间:
30 | |
31 |
32 |
33 |
34 |
35 |
40 | |
41 |
42 |
43 | |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/WebContent/images/001.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/001.gif
--------------------------------------------------------------------------------
/WebContent/images/002.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/002.gif
--------------------------------------------------------------------------------
/WebContent/images/002.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/002.png
--------------------------------------------------------------------------------
/WebContent/images/003.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/003.gif
--------------------------------------------------------------------------------
/WebContent/images/004.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/004.gif
--------------------------------------------------------------------------------
/WebContent/images/adddepart.css:
--------------------------------------------------------------------------------
1 | #addcontain{
2 | width:500px;margin-top:30px;margin-left:30px;text-align:center;
3 | }
4 | #addcontain table{
5 | width:100%;
6 | }
7 | #addcontain table caption{
8 | display:block;background:f2fdf2;color:#007b00;font-size:16px;
9 | }
10 | #addcontain table .info{
11 | text-align:center;font-size:14px;color:#404040;
12 | }
13 | #addcontain table .infield{
14 | text-align:left;font-size:14px;color:#404040;height:20px;
15 | }
16 | .tianjia{
17 | height:20px;color:#007b00;font-weight:700px;background:#f2fdf2;width:50px;font-size:14px;
18 | }
--------------------------------------------------------------------------------
/WebContent/images/addextraword.css:
--------------------------------------------------------------------------------
1 | #contain{
2 | width:100%;text-align:center;
3 | }
4 | table{
5 | margin-top:10px;font-size:14px;color:#404040;width:600px;
6 | }
7 | caption{
8 | color:#007b00;font-size:16px;
9 | }
10 | fieldset{
11 | width:515px;
12 | }
13 | legend{
14 | color:#007b00
15 | }
16 | .tijiao{
17 | height:20px;color:#007b00;font-weight:700px;background:#f2fdf2;
18 | }
19 |
--------------------------------------------------------------------------------
/WebContent/images/addimp.css:
--------------------------------------------------------------------------------
1 |
2 | #maincontent fieldset{
3 | width:500px;
4 | }
5 | #ftdiv{
6 | width:500px;margin-left:100px;
7 | }
8 | #ftdiv .inputarea{
9 | width:200px;
10 | }
11 | #ftdiv tr{
12 | height:25px;
13 | }
14 | #ftdiv .tijiao{
15 | margin-left:250px;width:70px;color:#007b00;height:25px;background:#f2fdf2;margin-top:2px;
16 | }
17 | #ftdiv .tijiaoover{
18 | margin-left:250px;width:70px;color:#red;height:25px;background:#f2fdf2;margin-top:2px;font-size:15px;
19 | }
20 | #ftdiv .infile{
21 | width:200px;height:20px;
22 | }
23 | #ftdiv legend{
24 | color:#007b00;
25 | }
26 | #ftdiv td{
27 | color:#404040;font-size:15px;
28 | }
29 | .fielderr{
30 | color:#ff0000;font-size:13px;font-weight:400;
31 | }
--------------------------------------------------------------------------------
/WebContent/images/background.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/background.gif
--------------------------------------------------------------------------------
/WebContent/images/baina.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/baina.gif
--------------------------------------------------------------------------------
/WebContent/images/bga1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/bga1.gif
--------------------------------------------------------------------------------
/WebContent/images/bga2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/bga2.gif
--------------------------------------------------------------------------------
/WebContent/images/bga3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/bga3.gif
--------------------------------------------------------------------------------
/WebContent/images/bgtop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/bgtop.png
--------------------------------------------------------------------------------
/WebContent/images/cuo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/cuo.gif
--------------------------------------------------------------------------------
/WebContent/images/departListstyle.css:
--------------------------------------------------------------------------------
1 | @charset "utf-8";
2 | .headerClass{
3 | height: 25px;text-align: center;color:#404040;background: #c7e9ad;font-size:14px;
4 | }
5 | .evenRow{
6 | height: 23px;background:#e3fcff;text-align:center;font-size:14px;color:#404040
7 | }
8 |
9 | .oddRow{
10 | height: 23px;background:#f4f4f4;text-align:center;font-size:14px;color:#404040
11 | }
12 | .selectedRow{
13 | background:white;height: 23px;text-align:center;font-size:14px;
14 | }
15 | table a{
16 | color:#007b00;text-decoration:none;
17 | }
18 | table a:hover{
19 | color:red;text-decoration:underline;
20 | }
21 | table caption{
22 | display:block;background:f2fdf2;color:#007b00;font-size:16px;
23 | }
24 | .gongye{
25 | font-size:14px;color:#404040;
26 | }
27 | .yeinput{
28 | width:20px;height:20px;
29 | }
30 | .queding{
31 | height:20px;color:#007b00;font-weight:700px;background:#f2fdf2;
32 | }
33 |
34 | label{
35 | font-size:14px;color:#404040;font-family:"宋体";
36 | }
37 |
38 |
39 | #buttomop{
40 | width:400px;font-size:14px;color:#404040;
41 | }
42 | #buttomop .info{
43 | float:left;width:150px; margin-left:142px;
44 | }
45 | #buttomop .info span{
46 | margin-right:20px;
47 | }
48 | #buttomop .pageop{
49 | float:right;width:250px;
50 | }
51 | #buttomop .pageop .shangye{
52 | margin-left:220px;position:absolute; margin-top:-17px;
53 | }
54 | #buttomop .pageop .xiaye{
55 | margin-left:250px;position:absolute;margin-top:-17px;
56 | }
57 | #buttomop .pageop .tiaozhuan{
58 | margin-left:305px;position:absolute;width:60px;margin-top:-16px;
59 | }
60 | #buttomop .pageop .yefield{
61 | margin-left:370px;width:25px;height:16px;position:absolute;
62 | margin-top:-16px;
63 | }
64 | #buttomop .pageop .ye{
65 | margin-left:400px;margin-top:1px;position:absolute;margin-top:-16px;
66 | }
67 | #buttomop .pageop .queding{
68 | margin-left:425px;position:absolute;font-size:13px;height:20px;
69 | color:#007b00;background:#f2fdf2;height:18px;margin-top:-17px;
70 | }
71 |
72 | #buttomop .pageop .quedingover{
73 | margin-left:425px;position:absolute;font-size:13px;height:20px;
74 | color:red;background:#f2fdf2;height:18px;margin-top:-17px;
75 | }
--------------------------------------------------------------------------------
/WebContent/images/departdetail.css:
--------------------------------------------------------------------------------
1 | #contain{
2 | width:750px;height:400px;background-color:white;
3 | }
4 | table{
5 | width:80%;margin-top:30px;
6 | }
7 | fieldset{
8 | width:80%;text-align:left;word-break:break-all;word-wrap:break-word;height:300px;
9 | }
10 | fieldset p{
11 | text-indent:2em;margin-top:2px;color:#333;font-size:15px;
12 | }
13 | fieldset legend{
14 | color:#007b00;font-size:15px;
15 | }
16 | caption{
17 | background:f2fdf2;color:#007b00;height:20px;font-size:20px;
18 | }
19 |
20 | table .tdtitle{
21 | text-align:center;color:#404040;font-size:15px;background: #c7e9ad;
22 | }
23 | table .tddata{
24 | text-align:center;font-size:14px;background:#f4f4f4;width:25%;
25 | }
26 | a{
27 | color:#007b00;text-decoration:none;
28 | }
29 | a:hover{
30 | color:red;text-decoration:underline;
31 | }
--------------------------------------------------------------------------------
/WebContent/images/editdepartstyle.css:
--------------------------------------------------------------------------------
1 | #contain{
2 | width:750px;height:400px;background-color:white;
3 | }
4 | table{
5 | width:80%;margin-top:30px;border:1px;border-color:black;
6 | }
7 | fieldset{
8 | width:80%;text-align:left;word-break:break-all;word-wrap:break-word;height:300px;font-size:14px;text-indent:1.5em;color:#404040;
9 | }
10 | fieldset legend{
11 | color:#007b00;font-size:15px;
12 | }
13 | caption{
14 | background:f2fdf2;color:#007b00;height:20px;font-size:20px;
15 | }
16 |
17 | table .tdtitle{
18 | text-align:center;color:#404040;font-size:15px;background: #c7e9ad;
19 | }
20 | table .tddata{
21 | text-align:center;font-size:14px;background:#f4f4f4;width:25%;
22 | }
--------------------------------------------------------------------------------
/WebContent/images/impListstyle.css:
--------------------------------------------------------------------------------
1 | .headerClass{
2 | height: 25px;text-align: center;color:#404040;background: #c7e9ad;font-size:14px;
3 | }
4 | .evenRow{
5 | height: 23px;background:#e3fcff;text-align:center;font-size:14px;color:#404040
6 | }
7 |
8 | .oddRow{
9 | height: 23px;background:#f4f4f4;text-align:center;font-size:14px;color:#404040
10 | }
11 | .selectedRow{
12 | background:white;height: 23px;text-align:center;font-size:14px;
13 | }
14 | #topop{
15 | width:780px;height:25px;float:left;font-size:14px;margin-top:5px;
16 | }
17 |
18 | #topop form{
19 | font-size:14px;float:left;margin-top:-2px;
20 | }
21 | #topop label{
22 | font-size:14px;color:#404040;
23 | }
24 | #topop .paixu{
25 | position:absolute;margin-left:200px;margin-top:0px;float:left;
26 | }
27 | #topop .xinzipai{
28 | margin-left:40px;margin-right:30px;
29 | }
30 | #topop a{
31 | color:green;text-decoration:none;
32 | }
33 | #topop a:hover{
34 | color:red;
35 | }
36 | #buttomop{
37 | width:600px;font-size:14px;margin-top:3px;color:#404040;height:18px;
38 | }
39 | #buttomop .info{
40 | float:left;width:200px;
41 | }
42 | #buttomop .info span{
43 | margin-right:20px;
44 | }
45 | #buttomop .pageop{
46 | float:right;width:300px;
47 | }
48 | #buttomop .pageop .shangye{
49 | margin-top:1px;margin-left:10px;position:absolute;
50 | }
51 | #buttomop .pageop .xiaye{
52 | margin-top:1px;margin-left:60px;position:absolute;
53 | }
54 | #buttomop .pageop .tiaozhuan{
55 | margin-top:1px;margin-left:150px;position:absolute;width:60px;
56 | }
57 | #buttomop .pageop .yefield{
58 | margin-left:207px;width:25px;height:16px;margin-top:-2px;position:absolute;
59 | }
60 | #buttomop .pageop .ye{
61 | margin-left:234px;margin-top:1px;position:absolute;
62 | }
63 | #buttomop .pageop .queding{
64 | margin-left:250px;margin-top:-2px;position:absolute;font-size:13px;height:20px;
65 | color:#007b00;background:#f2fdf2;height:18px;
66 | }
67 | #buttomop .pageop .quedingover{
68 | margin-left:250px;margin-top:-2px;position:absolute;font-size:13px;height:20px;
69 | color:red;background:#f2fdf2;height:18px;
70 | }
71 | #maincontent a{
72 | text-decoration:none;color:#007b00;
73 | }
74 | #maincontent a:hover{
75 | color:red;
76 | }
77 | #pagespan{
78 | margin-left:-100px;margin-top:-2px;position:absolute;
79 | }
--------------------------------------------------------------------------------
/WebContent/images/impdetail.css:
--------------------------------------------------------------------------------
1 | #container1{
2 | width:600px;height:500px;background-color:white;margin-top:50px;
3 | }
4 | #infohead{
5 | background-color:#f2fdf2;color:#007b00;height:30px;line-height:30px;font-weight:600px;width:600px;font-size:20px;
6 | }
7 | #pic{
8 | width:200px;
9 | height:200px;
10 | float:left;margin-botton:0px;
11 | }
12 | #pic img{
13 | margin:0 auto;
14 | }
15 | #pic span{
16 | height:20px;line-height:20px;color:#404040;font-size:14px;
17 | }
18 | #info{
19 | width:390px;float:right;
20 | }
21 | #info table{
22 | backgrond:black;width:390px;border:0px;cellpadding:0px; cellspacing:0px;
23 | }
24 | #info .evenrow{
25 | background:#e3fcff;color:#404040;
26 | }
27 | #info .oddrow{
28 | background:#f4f4f4;color:#404040;
29 | }
30 | #jianli fieldset{
31 | border:1px solid #ccc;width:600px;text-align:left;height:250px;word-break:break-all;word-wrap:break-word;
32 | }
33 | #jianli fieldset p{
34 | text-indent:2em;color:#404040;margin:0;padding:0 5;margin-top:5px;
35 | }
36 | #jianli legend{
37 | color:#007b00;
38 | }
--------------------------------------------------------------------------------
/WebContent/images/jiang.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/jiang.gif
--------------------------------------------------------------------------------
/WebContent/images/jiang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/jiang.png
--------------------------------------------------------------------------------
/WebContent/images/login.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/login.jpg
--------------------------------------------------------------------------------
/WebContent/images/loginStyle.css:
--------------------------------------------------------------------------------
1 | body {
2 | min-width: 680px;
3 | }
4 | #container{
5 | width:670px;margin:0 auto;margin-top:25px;text-align:left;background-color:white;
6 | }
7 | #headcontainer{
8 | width:670px;height:50px;margin:0 atuo;
9 | }
10 | #headcontainer img{
11 | width:50px;height:50px;
12 | }
13 | #headcontainer h2{
14 | font-size:25px;color:#1669a6;margin-top:10px;position:absolute;
15 | }
16 | #headcontainer h4{
17 | font-size:14px;color:#1669a6;margin-top:35px;font:Verdana, Helvetica, sans-serif;position:absolute;
18 | }
19 | #mainbody{
20 | background-color:#edecec;margin-top:10px;height:100px;
21 | }
22 | #operate{
23 | height:200px;position:relative;width:670px;
24 | }
25 | #operate p{
26 | font-size:18px;text-align:center;margin:10px auto 0 auto;position:relative;color:#666666;
27 | }
28 | #operate .uid{
29 | position:absolute;margin-left:200px;margin-top:12px;font-size:15px;color:#666666;
30 | }
31 | #operate .pwd{
32 | position:absolute;margin-left:212px;margin-top:41px;font-size:15px;color:#666666;
33 | }
34 | #operate .yanzhengma{
35 | position:absolute;margin-left:200px;margin-top:71px;font-size:15px;color:#666666;
36 | }
37 | #operate .inuid{
38 | height:20px;position:absolute;margin-top:10px;margin-left:300px;width:160px;
39 | }
40 | #operate .inpwd{
41 | height:20px;position:absolute;margin-top:39px;margin-left:300px;width:160px;
42 | }
43 | #operate .inyanzhengma{
44 | height:20px;position:absolute;margin-top:68px;margin-left:300px;width:80px;
45 | }
46 | #operate .logins{
47 | width:60px;position:absolute;margin-top:91px;margin-left:300px;
48 | }
49 | #operate img{
50 | position:absolute;margin-top:68px;margin-left:400px;
51 | }
52 | #operate a{
53 | position:absolute;margin-top:70px;margin-left:465px;color:#000;font-size:15px;text-decoration: none;
54 | }
55 | #operate a:hover{
56 | color:red;text-decoration:underline;
57 | }
58 | .jd{
59 | visibility:hidden;position:absolute;z-index:1;
60 | }
61 |
--------------------------------------------------------------------------------
/WebContent/images/mainstyle.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/mainstyle.css
--------------------------------------------------------------------------------
/WebContent/images/qiandao.css:
--------------------------------------------------------------------------------
1 | #maincontent .choseinfo{
2 | color:#404040;font-size:14px;
3 | }
4 | #maincontent .shengcheng{
5 | width:80px;color:#007b00;font-weight:700px;height:20px;background:#f2fdf2;margin-top:2px;margin-left:2px;
6 | }
7 | .headerClass{
8 | height: 25px;text-align: center;color:#404040;background: #c7e9ad;font-size:14px;
9 | }
10 | .evenRow{
11 | height: 23px;background:#e3fcff;text-align:center;font-size:14px;color:#404040
12 | }
13 |
14 | .oddRow{
15 | height: 23px;background:#f4f4f4;text-align:center;font-size:14px;color:#404040
16 | }
17 | .selectedRow{
18 | background:white;height: 23px;text-align:center;font-size:14px;
19 | }
20 | table caption{
21 | display:block;background:f2fdf2;color:#007b00;font-size:16px;
22 | }
23 | a{
24 | text-decoration:none;color:#007b00;
25 | }
26 | a:hover{
27 | color:red;
28 | }
29 | .tiaozhuan{
30 | height:20px;color:#007b00;font-weight:700px;background:#f2fdf2;
31 | }
32 |
33 | label{
34 | font-size:14px;color:#404040;
35 | }
--------------------------------------------------------------------------------
/WebContent/images/qingjiadetail.css:
--------------------------------------------------------------------------------
1 | #container{
2 | width:700px;margin:0 auto;text-align: left;background-color:white;height:500px;
3 | }
4 | table{
5 | width:100%;text-align:center;border:1;background:#f2fdf2; cellspacing:0;cellpadding:0px;margin-top:30px;font-size:14px;color:black;
6 | }
7 | caption{
8 | display:block;background:#f2fdf2;color:#007b00;font-size:16px;
9 | }
10 | td{
11 | background:white;
12 | }
13 | legend{
14 | font-size:14px;color:#007b00
15 | }
16 | fieldset p{
17 | font-size:14px;color:#404040;padding-top:0;margin-top:3px;text-indent:1.5em;
18 | }
19 | fieldset{
20 | height:100px;
21 | }
--------------------------------------------------------------------------------
/WebContent/images/sheng.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/sheng.gif
--------------------------------------------------------------------------------
/WebContent/images/sheng1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/sheng1.png
--------------------------------------------------------------------------------
/WebContent/images/style.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/style.css
--------------------------------------------------------------------------------
/WebContent/images/top.js:
--------------------------------------------------------------------------------
1 | function realtime()
2 | {
3 | var com=document.getElementById("time");
4 | var date=new Date();
5 | var year=date.getFullYear();
6 | var month=date.getMonth()+1;
7 | var day=date.getDate();
8 | var hour=date.getHours();
9 | var min=date.getMinutes();
10 | var second=date.getSeconds();
11 |
12 | com.innerHTML="现在的时间是"+year+"年"+month+"月"+day+"日"+hour+":"+min+":"+second;
13 |
14 | setTimeout('realtime()',1000);
15 |
16 | }
--------------------------------------------------------------------------------
/WebContent/images/topstyle.css:
--------------------------------------------------------------------------------
1 | #container{
2 | width:980px;margin:0 auto;text-align: left;
3 | }
4 | #mainHead{
5 | float:left;width:980px;margin:0 0;height:80px;background:url(bgtop.png) no-repeat left top;
6 | }
7 | #mainHead h1{
8 | font-size:45px;margin:0;text-align:center;height:80px;line-height:80px;letter-spacing:10px;
9 | }
10 | #simpleinfo{
11 | float:left;width:980px;height:20px;background-color:#eeeeee;
12 | }
13 | #simpleinfo span{
14 | margin-left:20px;color:#333333;line-height:20px;font-size:12px;
15 | }
16 | #simpleinfo a{
17 | line-height:20px;font-size:12px;margin-left:450px;color:#007b00;
18 | }
19 | #simpleinfo a:hover{
20 | line-height:20px;font-size:12px;margin-left:450px;color:red;
21 | }
--------------------------------------------------------------------------------
/WebContent/images/tree2style.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/tree2style.css
--------------------------------------------------------------------------------
/WebContent/images/treestyle.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/treestyle.css
--------------------------------------------------------------------------------
/WebContent/images/up.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/images/up.gif
--------------------------------------------------------------------------------
/WebContent/impimage/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/WebContent/impimage/default.png
--------------------------------------------------------------------------------
/WebContent/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%
3 | String path = request.getContextPath();
4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 | My JSP 'index.jsp' starting page
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 | This is my JSP page.
25 |
26 |
27 |
--------------------------------------------------------------------------------
/WebContent/yanzhengma.jsp:
--------------------------------------------------------------------------------
1 | <%@ page
2 | contentType="image/jpeg"
3 | import="java.awt.image.*,java.awt.*,java.util.*,javax.imageio.*"
4 | %>
5 | <%!
6 | public Color getRandomColor(int firstcolor,int secondcolor)
7 | {
8 | Random random = new Random();
9 | if(firstcolor>255) firstcolor=255;
10 | if(secondcolor>255) secondcolor=255;
11 | int r=firstcolor+random.nextInt(secondcolor-firstcolor);
12 | int g=firstcolor+random.nextInt(secondcolor-firstcolor);
13 | int b=firstcolor+random.nextInt(secondcolor-firstcolor);
14 | return new Color(r,g,b);
15 | }
16 | %>
17 | <%
18 | int width=60,height=20;
19 | BufferedImage image=new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
20 | Graphics g= image.getGraphics();
21 | Random random=new Random();
22 | g.setColor(getRandomColor(200,250));
23 | g.fillRect(0, 0, width, height);
24 | g.setFont(new Font("Times New Roman",Font.PLAIN,18));
25 | g.setColor(getRandomColor(160,200));
26 | for (int i=0;i<155;i++)
27 | {
28 | int x = random.nextInt(width);
29 | int y = random.nextInt(height);
30 | int xl = random.nextInt(12);
31 | int yl = random.nextInt(12);
32 | g.drawLine(x,y,x+xl,y+yl);
33 | }
34 | String yanZhengMa="";
35 | for (int i=0;i<4;i++){
36 | int leixing=random.nextInt(62);
37 | String yanzhengmatemp="r";
38 | if(leixing<10)
39 | {
40 | yanzhengmatemp=String.valueOf(random.nextInt(10));
41 | }
42 | else if(leixing<36)
43 | {
44 | yanzhengmatemp=((char)(random.nextInt(122-97)+97))+"";
45 | }
46 | else
47 | {
48 | yanzhengmatemp=((char)(random.nextInt(90-65)+65))+"";
49 | }
50 | yanZhengMa+=yanzhengmatemp;
51 | g.setColor(new Color(25+random.nextInt(110),25+random.nextInt(110),25+random.nextInt(110)));
52 | g.drawString(yanzhengmatemp,13*i+6,16);
53 | }
54 |
55 | session.setAttribute("yzm",yanZhengMa.toLowerCase());
56 | g.dispose();
57 | ImageIO.write(image, "JPEG", response.getOutputStream());
58 | out.clear();
59 | out = pageContext.pushBody();
60 | %>
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/hibernate.reveng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/MSG/change.bat:
--------------------------------------------------------------------------------
1 | path=C:\Program Files\Java\jdk1.6.0_10\bin;%path%
2 |
3 | native2ascii -encoding gb2312 myApplication.txt myApplication.properties
--------------------------------------------------------------------------------
/src/MSG/myApplication.properties:
--------------------------------------------------------------------------------
1 | login.title=\u767b\u9646\u9875\u9762
2 | system.name=\u9633\u5149\u667a\u4fe1\u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf
3 | system.englishname=yangguangzhixin person management
4 | login.info=\u7528\u6237\u767b\u5f55
5 | login.name=\u8bf7\u8f93\u5165\u7528\u6237\u540d\uff1a
6 | login.pwd=\u8bf7\u8f93\u5165\u5bc6\u7801\uff1a
7 | login.yanzheng=\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\uff1a
8 |
9 |
--------------------------------------------------------------------------------
/src/MSG/myApplication.txt:
--------------------------------------------------------------------------------
1 | login.title=登录页面
2 | system.name=阳光知信人事管理系统
3 | system.englishname=yangguangzhixin person management
4 | login.info=用户登录
5 | login.name=请输入用户名:
6 | login.pwd=请输入密码:
7 | login.yanzheng=请输入验证码:
8 |
9 |
--------------------------------------------------------------------------------
/src/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 | classpath:jdbc.properties
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
33 |
34 | classpath:hibernate.cfg.xml
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/com/action/LoginAction.java:
--------------------------------------------------------------------------------
1 | package com.action;
2 |
3 | import java.util.Map;
4 |
5 | import com.biz.IuserBiz;
6 | import com.entity.Userinfo;
7 | import com.opensymphony.xwork2.ActionContext;
8 | import com.opensymphony.xwork2.ActionSupport;
9 |
10 | public class LoginAction extends ActionSupport {
11 |
12 | private IuserBiz userBiz;
13 | private Userinfo user;
14 | private String yzm;
15 | private String result = "";
16 |
17 | // 登录
18 | public String login() {
19 | String autoyzh = (String) ActionContext.getContext().getSession().get("yzm");
20 | Map session = ActionContext.getContext().getSession();
21 | Userinfo userinfo = userBiz.login(user);
22 | if (!yzm.equalsIgnoreCase(autoyzh)) {
23 | result = this.getText("login.yanzhengmaerror");
24 | return "Error";
25 | } else if (userinfo != null) {
26 | if (Integer.parseInt(userinfo.getEmployeeinfo().getDepartmentinfo().getDepartId()) == 1) {
27 | session.put("right", "manage");
28 | session.put("loginuser", user);
29 | return "manage";
30 | } else {
31 | session.put("right", "personal");
32 | session.put("loginuser", user);
33 | return "personal";
34 | }
35 | } else {
36 | result = this.getText("login.wronguid");
37 | }
38 | return "loginError";
39 | }
40 |
41 | public String logout() {
42 | ActionContext.getContext().getSession().remove("loginuser");
43 | ActionContext.getContext().getSession().remove("right");
44 | return "logout";
45 | }
46 |
47 | public Userinfo getUser() {
48 | return user;
49 | }
50 |
51 | public void setUser(Userinfo user) {
52 | this.user = user;
53 | }
54 |
55 | public String getResult() {
56 | return result;
57 | }
58 |
59 | public void setUserBiz(IuserBiz userBiz) {
60 | this.userBiz = userBiz;
61 | }
62 |
63 | public void setYzm(String yzm) {
64 | this.yzm = yzm;
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/src/com/action/departAction.java:
--------------------------------------------------------------------------------
1 | package com.action;
2 |
3 | import java.util.List;
4 |
5 | import com.biz.IbaseBiz;
6 | import com.entity.Departmentinfo;
7 | import com.opensymphony.xwork2.ActionSupport;
8 |
9 | public class departAction extends ActionSupport {
10 |
11 | private IbaseBiz baseBiz;
12 | private Departmentinfo depart;
13 | private List departs;
14 | private String depId;
15 | private int currenPage;
16 | private int size = 3;
17 | private String hql = "from Departmentinfo";
18 | private int maxPageNo;
19 | private int totalMessage;
20 |
21 | // 计算总页数
22 | public void getPage(String hql) {
23 | totalMessage = baseBiz.findList(hql).size();
24 | maxPageNo = (totalMessage - 1) / size + 1;
25 | }
26 |
27 | // 添加部门UI跳转
28 | public String addDepUI() {
29 |
30 | return "addDepUI";
31 | }
32 |
33 | // 添加部门
34 | public String addDep() {
35 | Boolean flag = baseBiz.add(depart);
36 | if (flag) {
37 | return "addDepOk";
38 | }
39 | return "Error";
40 | }
41 |
42 | // 删除部门
43 | public String dellDep() {
44 | Boolean flag = baseBiz.dell(new Departmentinfo(), depId);
45 | if (flag) {
46 | return "dellDepOk";
47 | }
48 | return "Error";
49 | }
50 |
51 | // 修改部门UI跳转
52 | public String updateDepUI() {
53 | depart = baseBiz.getById(new Departmentinfo(), depId);
54 | return "updateDepUI";
55 | }
56 |
57 | // 修改部门
58 | public String updateDep() {
59 | Boolean flag = baseBiz.update(depart);
60 | if (flag) {
61 | return "updateDepOk";
62 | }
63 | return "Error";
64 | }
65 |
66 | // 查询部门信息
67 | public String findDepPageList() {
68 | getPage(hql);
69 | if (0 == currenPage) {
70 | currenPage = 1;
71 | }
72 | departs = baseBiz.findPageList(hql, currenPage, size);
73 | return "findDepPageList";
74 | }
75 |
76 | public Departmentinfo getDepart() {
77 | return depart;
78 | }
79 |
80 | public void setDepart(Departmentinfo depart) {
81 | this.depart = depart;
82 | }
83 |
84 | public int getIndex() {
85 | return currenPage;
86 | }
87 |
88 | public void setIndex(int index) {
89 | this.currenPage = index;
90 | }
91 |
92 | public List getDeparts() {
93 | return departs;
94 | }
95 |
96 | public void setBaseBiz(IbaseBiz baseBiz) {
97 | this.baseBiz = baseBiz;
98 | }
99 |
100 | public void setDepId(String depId) {
101 | this.depId = depId;
102 | }
103 |
104 | public void setSize(int size) {
105 | this.size = size;
106 | }
107 |
108 | public int getPageCount() {
109 | return maxPageNo;
110 | }
111 |
112 | public int getCurrenPage() {
113 | return currenPage;
114 | }
115 |
116 | public void setCurrenPage(int currenPage) {
117 | this.currenPage = currenPage;
118 | }
119 |
120 | public int getMaxPageNo() {
121 | return maxPageNo;
122 | }
123 |
124 | public int getTotalMessage() {
125 | return totalMessage;
126 | }
127 |
128 | }
129 |
--------------------------------------------------------------------------------
/src/com/action/extraworkAction.java:
--------------------------------------------------------------------------------
1 | package com.action;
2 |
3 | import java.util.HashMap;
4 | import java.util.List;
5 | import java.util.Map;
6 |
7 | import com.biz.IbaseBiz;
8 | import com.entity.Departmentinfo;
9 | import com.entity.Extrawork;
10 | import com.opensymphony.xwork2.ActionSupport;
11 |
12 | public class extraworkAction extends ActionSupport {
13 |
14 | private IbaseBiz baseBiz;
15 | private Extrawork extrawork;
16 | private IbaseBiz departBiz;
17 | private Map departList;
18 | private String departId = "";
19 | private String startTime = "";
20 | private String endTime = "";
21 | private String empId = "";
22 | private List extraworks;
23 | private int extId;
24 | private int currenPage = 1;
25 | private int size = 3;
26 | private String hql = "from Extrawork e where 1=1";
27 | private int maxPage;
28 | private int totalMessage;
29 |
30 | // 计算总页数
31 | public void getPage(String hql) {
32 | totalMessage = baseBiz.findList(hql).size();
33 | maxPage = (totalMessage - 1) / size + 1;
34 | }
35 |
36 | // 加班单详情查询
37 | public String extDetail() {
38 | extrawork = baseBiz.getById(new Extrawork(), extId);
39 | return "extDetail";
40 | }
41 |
42 | // 添加加班UI
43 | public String addExtUI() {
44 |
45 | return "addExtUI";
46 | }
47 |
48 | // 添加加班单
49 | public String addExt() {
50 | Boolean flag = baseBiz.add(extrawork);
51 | if (flag) {
52 | return "addExtOk";
53 | }
54 | return "Error";
55 | }
56 |
57 | // 删除加班单
58 | public String dellExt() {
59 | Boolean flag = baseBiz.dell(new Extrawork(), extId);
60 | if (flag) {
61 | return "dellExtOk";
62 | }
63 | return "Error";
64 | }
65 |
66 | // 修改加班单UI跳转
67 | public String updateExtUI() {
68 | extrawork = baseBiz.getById(new Extrawork(), extId);
69 | return "updateExtUI";
70 | }
71 |
72 | // 修改加班单
73 | public String updateExt() {
74 | Boolean flag = baseBiz.update(extrawork);
75 | if (flag) {
76 | return "updateExtOk";
77 | }
78 | return "Error";
79 | }
80 |
81 | // 查询个人加班
82 | public String findOneExtPageList() {
83 | if (!"".equals(empId)) {
84 | hql += " and e.employeeinfo.empId = " + empId;
85 | }
86 | if (!"".equals(endTime)) {
87 | hql += " and e.workTime < '" + endTime + "'";
88 | }
89 | if (!"".equals(startTime)) {
90 | hql += " and e.workTime > '" + startTime + "'";
91 | }
92 | System.out.println("hql +++++ " + hql);
93 | getPage(hql);
94 | extraworks = baseBiz.findPageList(hql, currenPage, size);
95 | return "findOneExtPageList";
96 | }
97 |
98 | // 查询所有加班单信息
99 | public String findExtPageList() {
100 | if (!"".equals(departId)) {
101 | hql += " and e.employeeinfo.departmentinfo.departId = " + departId;
102 | }
103 | if (!"".equals(endTime)) {
104 | hql += " and e.workTime < '" + endTime + "'";
105 | }
106 | if (!"".equals(startTime)) {
107 | hql += " and e.workTime > '" + startTime + "'";
108 | }
109 | System.out.println("hql +++++ " + hql);
110 | getPage(hql);
111 | extraworks = baseBiz.findPageList(hql, currenPage, size);
112 | return "findExtPageList";
113 | }
114 |
115 | public Extrawork getExtrawork() {
116 | return extrawork;
117 | }
118 |
119 | public void setExtrawork(Extrawork extrawork) {
120 | this.extrawork = extrawork;
121 | }
122 |
123 | public int getIndex() {
124 | return currenPage;
125 | }
126 |
127 | public void setIndex(int index) {
128 | this.currenPage = index;
129 | }
130 |
131 | public List getExtraworks() {
132 | return extraworks;
133 | }
134 |
135 | public void setBaseBiz(IbaseBiz baseBiz) {
136 | this.baseBiz = baseBiz;
137 | }
138 |
139 | public void setExtId(int extId) {
140 | this.extId = extId;
141 | }
142 |
143 | public void setSize(int size) {
144 | this.size = size;
145 | }
146 |
147 | public int getMaxPage() {
148 | return maxPage;
149 | }
150 |
151 | public int getTotalMessage() {
152 | return totalMessage;
153 | }
154 |
155 | public void setCurrenPage(int currenPage) {
156 | this.currenPage = currenPage;
157 | }
158 |
159 | public void setDepartBiz(IbaseBiz departBiz) {
160 | this.departBiz = departBiz;
161 | }
162 |
163 | public int getCurrenPage() {
164 | return currenPage;
165 | }
166 |
167 | public void setDepartId(String departId) {
168 | this.departId = departId;
169 | }
170 |
171 | public void setStartTime(String startTime) {
172 | this.startTime = startTime;
173 | }
174 |
175 | public void setEndTime(String endTime) {
176 | this.endTime = endTime;
177 | }
178 |
179 | public void setEmpId(String empId) {
180 | this.empId = empId;
181 | }
182 |
183 | public Map getDepartList() {
184 | List list = departBiz.findList("from Departmentinfo");
185 | departList = new HashMap();
186 | departList.put("", "全部");
187 | for (Departmentinfo d : list) {
188 | departList.put(d.getDepartId(), d.getDepartName());
189 | }
190 | return departList;
191 | }
192 | }
193 |
--------------------------------------------------------------------------------
/src/com/action/holsAction.java:
--------------------------------------------------------------------------------
1 | package com.action;
2 |
3 | import java.util.Date;
4 | import java.util.HashMap;
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | import com.biz.IbaseBiz;
9 | import com.entity.Departmentinfo;
10 | import com.entity.Employeeinfo;
11 | import com.entity.Holsinfo;
12 | import com.entity.Userinfo;
13 | import com.opensymphony.xwork2.ActionContext;
14 | import com.opensymphony.xwork2.ActionSupport;
15 |
16 | public class holsAction extends ActionSupport {
17 |
18 | private IbaseBiz baseBiz;
19 | private IbaseBiz empBiz;
20 | private IbaseBiz departBiz;
21 | private Map departList;
22 | private Holsinfo hols;
23 | private List holss;
24 | private int holsId;
25 | private int currenPage = 1;
26 | private int size = 3;
27 | private String hql = "from Holsinfo h where 1=1";
28 | private int maxPage;
29 | private int totalMessage;
30 | private int holsState = -1;
31 | private String departId = "";
32 |
33 | // 计算总页数
34 | public void getPage(String hql) {
35 | totalMessage = baseBiz.findList(hql).size();
36 | maxPage = (totalMessage - 1) / size + 1;
37 | }
38 |
39 | // 添加请假条UI跳转
40 | public String addHolsUI() {
41 |
42 | return "addHolsUI";
43 | }
44 |
45 | // 添加请假条
46 | public String addHols() {
47 | Userinfo user = (Userinfo) ActionContext.getContext().getSession().get("loginuser");
48 | Employeeinfo emp = empBiz.getById(new Employeeinfo(), user.getEmpId());
49 | emp.setEmpId(user.getEmpId());
50 | hols.setEmployeeinfo(emp);
51 | hols.setApplyTime(new Date());
52 | long l = hols.getEndTime().getTime() - hols.getStartTime().getTime();
53 | int day = (int) (l / (24 * 60 * 60 * 1000)) + 1;
54 | hols.setHoldays((byte) day);
55 | Boolean flag = baseBiz.add(hols);
56 | if (flag) {
57 | return "addHolsOk";
58 | }
59 | return "Error";
60 | }
61 |
62 | // 删除请假条
63 | public String dellHols() {
64 | Boolean flag = baseBiz.dell(new Holsinfo(), holsId);
65 | if (flag) {
66 | return "dellHolsOk";
67 | }
68 | return "Error";
69 | }
70 |
71 | // 修改请假条UI跳转
72 | public String updateHolsUI() {
73 | hols = baseBiz.getById(new Holsinfo(), holsId);
74 | return "updateHolsUI";
75 | }
76 |
77 | // 修改请假条
78 | public String updateHols() {
79 | hols = baseBiz.getById(new Holsinfo(), holsId);
80 | hols.setHolsState(holsState);
81 | Boolean flag = baseBiz.update(hols);
82 | if (flag) {
83 | return "updateHolsOk";
84 | }
85 | return "Error";
86 | }
87 |
88 | // 管理请假条
89 | public String adminHols() {
90 | if (!"".equals(departId)) {
91 | hql += " and h.employeeinfo.departmentinfo.departId = " + departId;
92 | }
93 |
94 | if (-1 != holsState) {
95 | hql += " and h.holsState = " + holsState;
96 | }
97 | getPage(hql);
98 | holss = baseBiz.findPageList(hql, currenPage, size);
99 | return "adminHols";
100 | }
101 |
102 | // 查询所有请假条
103 | public String findHolsPageList() {
104 | Userinfo user = (Userinfo) ActionContext.getContext().getSession().get("loginuser");
105 | hql += " and h.employeeinfo.empId = " + user.getEmpId();
106 | getPage(hql);
107 | holss = baseBiz.findPageList(hql, currenPage, size);
108 | return "findHolsPageList";
109 | }
110 |
111 | public Holsinfo getHols() {
112 | return hols;
113 | }
114 |
115 | public void setHols(Holsinfo hols) {
116 | this.hols = hols;
117 | }
118 |
119 | public List getHolss() {
120 | return holss;
121 | }
122 |
123 | public void setBaseBiz(IbaseBiz baseBiz) {
124 | this.baseBiz = baseBiz;
125 | }
126 |
127 | public void setHolsId(int holsId) {
128 | this.holsId = holsId;
129 | }
130 |
131 | public void setSize(int size) {
132 | this.size = size;
133 | }
134 |
135 | public void setEmpBiz(IbaseBiz empBiz) {
136 | this.empBiz = empBiz;
137 | }
138 |
139 | public int getCurrenPage() {
140 | return currenPage;
141 | }
142 |
143 | public void setCurrenPage(int currenPage) {
144 | this.currenPage = currenPage;
145 | }
146 |
147 | public int getMaxPage() {
148 | return maxPage;
149 | }
150 |
151 | public int getTotalMessage() {
152 | return totalMessage;
153 | }
154 |
155 | public void setDepartBiz(IbaseBiz departBiz) {
156 | this.departBiz = departBiz;
157 | }
158 |
159 | public void setHolsState(int holsState) {
160 | this.holsState = holsState;
161 | }
162 |
163 | public void setDepartId(String departId) {
164 | this.departId = departId;
165 | }
166 |
167 | public Map getDepartList() {
168 | List list = departBiz.findList("from Departmentinfo");
169 | departList = new HashMap();
170 | departList.put("", "全部");
171 | for (Departmentinfo d : list) {
172 | departList.put(d.getDepartId(), d.getDepartName());
173 | }
174 | return departList;
175 | }
176 |
177 | public Map getStateList() {
178 | Map map = new HashMap();
179 | map.put(0, "未处理");
180 | map.put(1, "同意");
181 | map.put(2, "撤消");
182 | map.put(3, "拒绝");
183 | return map;
184 |
185 | }
186 | }
187 |
--------------------------------------------------------------------------------
/src/com/action/userAction.java:
--------------------------------------------------------------------------------
1 | package com.action;
2 |
3 | import java.util.List;
4 |
5 | import com.biz.IbaseBiz;
6 | import com.biz.IuserBiz;
7 | import com.entity.Employeeinfo;
8 | import com.entity.Userinfo;
9 | import com.opensymphony.xwork2.ActionContext;
10 | import com.opensymphony.xwork2.ActionSupport;
11 |
12 | public class userAction extends ActionSupport {
13 |
14 | private IuserBiz userBiz;
15 | private Userinfo user;
16 | private List users;
17 | private String userId;
18 | private int index;
19 | private int size = 3;
20 | private String hql = "from Userinfo";
21 | private int PageCount;
22 | private String result;
23 | private String newpwd;
24 |
25 | // 计算总页数
26 | public void getPage() {
27 | int count = userBiz.findList(hql).size();
28 | PageCount = (count - 1) / size + 1;
29 | }
30 |
31 | // 添加用户UI跳转
32 | public String addUserUI() {
33 |
34 | return "addUserUI";
35 | }
36 |
37 | // 添加用户数据
38 | public String addUser(Userinfo u) {
39 | Boolean flag = userBiz.add(u);
40 | if (flag) {
41 | return "addUserOk";
42 | }
43 | return "Error";
44 | }
45 |
46 | // 删除用户信息
47 | public String dellUser(Userinfo u) {
48 | Boolean flag = userBiz.dell(new Userinfo(), userId);
49 | if (flag) {
50 | return "dellUserOk";
51 | }
52 | return "Error";
53 | }
54 |
55 | // 修改用户UI跳转
56 | public String updateUserUI() {
57 | user = userBiz.getById(new Userinfo(), userId);
58 | return "updateUserUI";
59 | }
60 |
61 | // 修改用户
62 | public String updateUser() {
63 | Boolean flag = userBiz.update(user);
64 | if (flag) {
65 | return "updateUserOk";
66 | }
67 | return "Error";
68 | }
69 |
70 | // 修改密码
71 | public String updatePwd() {
72 | Userinfo userinfo = (Userinfo) ActionContext.getContext().getSession().get("loginuser");
73 | user.setEmpId(userinfo.getEmpId());
74 | if (user.getPwd().equals(userinfo.getPwd())) {
75 | user.setPwd(newpwd);
76 | Boolean flag = userBiz.update(user);
77 | if (flag) {
78 | return "updatePwdOk";
79 | }
80 | }
81 | result = this.getText("validate.oldpwderror");
82 | return "updatePwdError";
83 | }
84 |
85 | public String findUserPageList() {
86 | if (0 == index) {
87 | index = 1;
88 | }
89 | users = userBiz.findPageList(hql, index, size);
90 | return "findUserPageList";
91 | }
92 |
93 | public Userinfo getUser() {
94 | return user;
95 | }
96 |
97 | public void setUser(Userinfo user) {
98 | this.user = user;
99 | }
100 |
101 | public List getUsers() {
102 | return users;
103 | }
104 |
105 | public void setUserBiz(IuserBiz userBiz) {
106 | this.userBiz = userBiz;
107 | }
108 |
109 | public void setUserId(String userId) {
110 | this.userId = userId;
111 | }
112 |
113 | public void setIndex(int index) {
114 | this.index = index;
115 | }
116 |
117 | public void setSize(int size) {
118 | this.size = size;
119 | }
120 |
121 | public int getIndex() {
122 | return index;
123 | }
124 |
125 | public int getPageCount() {
126 | return PageCount;
127 | }
128 |
129 | public String getResult() {
130 | return result;
131 | }
132 |
133 | public void setNewpwd(String newpwd) {
134 | this.newpwd = newpwd;
135 | }
136 |
137 | }
138 |
--------------------------------------------------------------------------------
/src/com/biz/IbaseBiz.java:
--------------------------------------------------------------------------------
1 | package com.biz;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | public interface IbaseBiz {
7 |
8 | // 通过主键获取对象
9 | public T getById(T t, Serializable id);
10 |
11 | // 增加数据
12 | public Boolean add(T t);
13 |
14 | // 删除数据
15 | public Boolean dell(T t, Serializable id);
16 |
17 | // 修改数据
18 | public Boolean update(T t);
19 |
20 | // 查询所有数据
21 | public List findList(String hql);
22 |
23 | // 分页查询
24 | public List findPageList(String hql, int index, int size);
25 | }
26 |
--------------------------------------------------------------------------------
/src/com/biz/IuserBiz.java:
--------------------------------------------------------------------------------
1 | package com.biz;
2 |
3 | import com.entity.Userinfo;
4 |
5 | public interface IuserBiz extends IbaseBiz {
6 |
7 | // 用户登录并返回用户信息
8 | public Userinfo login(Userinfo user);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/com/biz/baseBizImpl.java:
--------------------------------------------------------------------------------
1 | package com.biz;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | import com.dao.IBaseDao;
7 |
8 | public class baseBizImpl implements IbaseBiz {
9 |
10 | private IBaseDao baseDao;
11 |
12 | @Override
13 | public T getById(T t, Serializable id) {
14 | return baseDao.getByID(t, id);
15 | }
16 |
17 | @Override
18 | public Boolean add(T t) {
19 | return baseDao.add(t);
20 | }
21 |
22 | @Override
23 | public Boolean dell(T t, Serializable id) {
24 | return baseDao.dell(t, id);
25 | }
26 |
27 | @Override
28 | public Boolean update(T t) {
29 | return baseDao.update(t);
30 | }
31 |
32 | @Override
33 | public List findList(String hql) {
34 | return baseDao.findList(hql);
35 | }
36 |
37 | @Override
38 | public List findPageList(String hql, int index, int size) {
39 | return baseDao.findPageList(hql, index, size);
40 | }
41 |
42 | public void setBaseDao(IBaseDao baseDao) {
43 | this.baseDao = baseDao;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/com/biz/userBizImpl.java:
--------------------------------------------------------------------------------
1 | package com.biz;
2 |
3 | import java.util.List;
4 |
5 | import com.dao.IuserDao;
6 | import com.entity.Userinfo;
7 |
8 | public class userBizImpl extends baseBizImpl implements IuserBiz {
9 |
10 | private IuserDao userDao;
11 |
12 | @Override
13 | public Userinfo login(Userinfo user) {
14 | List users = userDao.login(user);
15 | if (users.size() > 0) {
16 | return users.get(0);
17 | }
18 | return null;
19 | }
20 |
21 | public void setUserDao(IuserDao userDao) {
22 | this.userDao = userDao;
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/com/dao/IBaseDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | public interface IBaseDao {
7 |
8 | // 通过主键获取对象
9 | public T getByID(T obj, Serializable id);
10 |
11 | // 添加数据
12 | public Boolean add(T t);
13 |
14 | // 通过主键删除数据
15 | public Boolean dell(T obj, Serializable id);
16 |
17 | // 修改数据
18 | public Boolean update(T t);
19 |
20 | // 查询所有数据
21 | public List findList(String hql);
22 |
23 | // 分页查询所有数据
24 | public List findPageList(final String hql, final int index, final int size);
25 | }
26 |
--------------------------------------------------------------------------------
/src/com/dao/IuserDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import java.util.List;
4 |
5 | import com.entity.Userinfo;
6 |
7 | public interface IuserDao extends IBaseDao {
8 |
9 | // 用户登录验证并返回用户对象
10 | public List login(Userinfo user);
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/com/dao/baseDaoImpl.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import java.io.Serializable;
4 | import java.sql.SQLException;
5 | import java.util.List;
6 |
7 | import org.hibernate.HibernateException;
8 | import org.hibernate.Query;
9 | import org.hibernate.Session;
10 | import org.springframework.orm.hibernate3.HibernateCallback;
11 | import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
12 |
13 | public class baseDaoImpl extends HibernateDaoSupport implements IBaseDao {
14 |
15 | @Override
16 | public T getByID(T obj, Serializable id) {
17 | T t = (T) this.getHibernateTemplate().load(obj.getClass(), id);
18 | return t;
19 | }
20 |
21 | @Override
22 | public Boolean add(T t) {
23 | Boolean flag = false;
24 | try {
25 | this.getHibernateTemplate().save(t);
26 | flag = true;
27 | } catch (Exception e) {
28 | e.printStackTrace();
29 | }
30 | return flag;
31 | }
32 |
33 | @Override
34 | public Boolean dell(T obj, Serializable id) {
35 | Boolean flag = false;
36 | try {
37 | T t = (T) this.getHibernateTemplate().load(obj.getClass(), id);
38 | this.getHibernateTemplate().delete(t);
39 | flag = true;
40 | } catch (Exception e) {
41 | e.printStackTrace();
42 | }
43 | return flag;
44 | }
45 |
46 | @Override
47 | public Boolean update(T t) {
48 | Boolean flag = false;
49 | try {
50 | this.getHibernateTemplate().update(t);
51 | flag = true;
52 | } catch (Exception e) {
53 | e.printStackTrace();
54 | }
55 | return flag;
56 | }
57 |
58 | @Override
59 | public List findList(String hql) {
60 | List list = null;
61 | try {
62 | list = this.getHibernateTemplate().find(hql);
63 | } catch (Exception e) {
64 | e.printStackTrace();
65 | }
66 | return list;
67 | }
68 |
69 | @Override
70 | public List findPageList(final String hql, final int index,
71 | final int size) {
72 | List list = null;
73 | try {
74 | list = this.getHibernateTemplate().executeFind(
75 | new HibernateCallback() {
76 | @Override
77 | public Object doInHibernate(Session session)
78 | throws HibernateException, SQLException {
79 | Query query = session.createQuery(hql);
80 | query.setFirstResult((index - 1) * size);
81 | query.setMaxResults(size);
82 | return query.list();
83 | }
84 | });
85 | } catch (Exception e) {
86 | e.printStackTrace();
87 | }
88 | return list;
89 | }
90 |
91 | }
92 |
--------------------------------------------------------------------------------
/src/com/dao/userDaoImpl.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import java.util.List;
4 |
5 | import com.entity.Userinfo;
6 |
7 | public class userDaoImpl extends baseDaoImpl implements IuserDao {
8 |
9 | @Override
10 | public List login(Userinfo user) {
11 | String hql = "from Userinfo u where u.empId=? and u.pwd=?";
12 | List users = this.getHibernateTemplate().find(hql, new Object[] { user.getEmpId(), user.getPwd() });
13 | return users;
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/src/com/entity/Attendanceinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/com/entity/Attendanceinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.util.Date;
6 |
7 | /**
8 | * Attendanceinfo generated by hbm2java
9 | */
10 | public class Attendanceinfo implements java.io.Serializable {
11 |
12 | private Integer attendId;
13 | private Employeeinfo employeeinfo;
14 | private Date attendTime;
15 | private int attendState;
16 |
17 | public Attendanceinfo() {
18 | }
19 |
20 | public Attendanceinfo(Employeeinfo employeeinfo, Date attendTime, int attendState) {
21 | this.employeeinfo = employeeinfo;
22 | this.attendTime = attendTime;
23 | this.attendState = attendState;
24 | }
25 |
26 | public Integer getAttendId() {
27 | return this.attendId;
28 | }
29 |
30 | public void setAttendId(Integer attendId) {
31 | this.attendId = attendId;
32 | }
33 |
34 | public Employeeinfo getEmployeeinfo() {
35 | return this.employeeinfo;
36 | }
37 |
38 | public void setEmployeeinfo(Employeeinfo employeeinfo) {
39 | this.employeeinfo = employeeinfo;
40 | }
41 |
42 | public Date getAttendTime() {
43 | return this.attendTime;
44 | }
45 |
46 | public void setAttendTime(Date attendTime) {
47 | this.attendTime = attendTime;
48 | }
49 |
50 | public int getAttendState() {
51 | return this.attendState;
52 | }
53 |
54 | public void setAttendState(int attendState) {
55 | this.attendState = attendState;
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/com/entity/Departmentinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/com/entity/Departmentinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.util.HashSet;
6 | import java.util.Set;
7 |
8 | /**
9 | * Departmentinfo generated by hbm2java
10 | */
11 | public class Departmentinfo implements java.io.Serializable {
12 |
13 | private String departId;
14 | private String departName;
15 | private Integer departNum;
16 | private String departDesc;
17 | private Set employeeinfos = new HashSet(0);
18 |
19 | public Departmentinfo() {
20 | }
21 |
22 | public Departmentinfo(String departId) {
23 | this.departId = departId;
24 | }
25 |
26 | public Departmentinfo(String departId, String departName, Integer departNum, String departDesc, Set employeeinfos) {
27 | this.departId = departId;
28 | this.departName = departName;
29 | this.departNum = departNum;
30 | this.departDesc = departDesc;
31 | this.employeeinfos = employeeinfos;
32 | }
33 |
34 | public String getDepartId() {
35 | return this.departId;
36 | }
37 |
38 | public void setDepartId(String departId) {
39 | this.departId = departId;
40 | }
41 |
42 | public String getDepartName() {
43 | return this.departName;
44 | }
45 |
46 | public void setDepartName(String departName) {
47 | this.departName = departName;
48 | }
49 |
50 | public Integer getDepartNum() {
51 | return this.departNum;
52 | }
53 |
54 | public void setDepartNum(Integer departNum) {
55 | this.departNum = departNum;
56 | }
57 |
58 | public String getDepartDesc() {
59 | return this.departDesc;
60 | }
61 |
62 | public void setDepartDesc(String departDesc) {
63 | this.departDesc = departDesc;
64 | }
65 |
66 | public Set getEmployeeinfos() {
67 | return this.employeeinfos;
68 | }
69 |
70 | public void setEmployeeinfos(Set employeeinfos) {
71 | this.employeeinfos = employeeinfos;
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/src/com/entity/Employeeinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/src/com/entity/Employeeinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.math.BigDecimal;
6 | import java.util.Date;
7 | import java.util.HashSet;
8 | import java.util.Set;
9 |
10 | /**
11 | * Employeeinfo generated by hbm2java
12 | */
13 | public class Employeeinfo implements java.io.Serializable {
14 |
15 | private String empId;
16 | private Departmentinfo departmentinfo;
17 | private String empName;
18 | private String empSex;
19 | private Date empBirth;
20 | private String empEmail;
21 | private String empRoll;
22 | private BigDecimal empSalary;
23 | private String empTel;
24 | private String empPic;
25 | private String empBio;
26 | private Boolean empState;
27 | private Set extraworks = new HashSet(0);
28 | private Set attendanceinfos = new HashSet(0);
29 | private Set salaryinfos = new HashSet(0);
30 | private Set holsinfos = new HashSet(0);
31 | private Userinfo userinfo;
32 |
33 | public Employeeinfo() {
34 | }
35 |
36 | public Employeeinfo(String empId, Departmentinfo departmentinfo, String empName, String empSex, Date empBirth, String empEmail, String empRoll,
37 | BigDecimal empSalary, String empTel) {
38 | this.empId = empId;
39 | this.departmentinfo = departmentinfo;
40 | this.empName = empName;
41 | this.empSex = empSex;
42 | this.empBirth = empBirth;
43 | this.empEmail = empEmail;
44 | this.empRoll = empRoll;
45 | this.empSalary = empSalary;
46 | this.empTel = empTel;
47 | }
48 |
49 | public Employeeinfo(String empId, Departmentinfo departmentinfo, String empName, String empSex, Date empBirth, String empEmail, String empRoll,
50 | BigDecimal empSalary, String empTel, String empPic, String empBio, Boolean empState, Set extraworks, Set attendanceinfos,
51 | Set salaryinfos, Set holsinfos, Userinfo userinfo) {
52 | this.empId = empId;
53 | this.departmentinfo = departmentinfo;
54 | this.empName = empName;
55 | this.empSex = empSex;
56 | this.empBirth = empBirth;
57 | this.empEmail = empEmail;
58 | this.empRoll = empRoll;
59 | this.empSalary = empSalary;
60 | this.empTel = empTel;
61 | this.empPic = empPic;
62 | this.empBio = empBio;
63 | this.empState = empState;
64 | this.extraworks = extraworks;
65 | this.attendanceinfos = attendanceinfos;
66 | this.salaryinfos = salaryinfos;
67 | this.holsinfos = holsinfos;
68 | this.userinfo = userinfo;
69 | }
70 |
71 | public String getEmpId() {
72 | return this.empId;
73 | }
74 |
75 | public void setEmpId(String empId) {
76 | this.empId = empId;
77 | }
78 |
79 | public Departmentinfo getDepartmentinfo() {
80 | return this.departmentinfo;
81 | }
82 |
83 | public void setDepartmentinfo(Departmentinfo departmentinfo) {
84 | this.departmentinfo = departmentinfo;
85 | }
86 |
87 | public String getEmpName() {
88 | return this.empName;
89 | }
90 |
91 | public void setEmpName(String empName) {
92 | this.empName = empName;
93 | }
94 |
95 | public String getEmpSex() {
96 | return this.empSex;
97 | }
98 |
99 | public void setEmpSex(String empSex) {
100 | this.empSex = empSex;
101 | }
102 |
103 | public Date getEmpBirth() {
104 | return this.empBirth;
105 | }
106 |
107 | public void setEmpBirth(Date empBirth) {
108 | this.empBirth = empBirth;
109 | }
110 |
111 | public String getEmpEmail() {
112 | return this.empEmail;
113 | }
114 |
115 | public void setEmpEmail(String empEmail) {
116 | this.empEmail = empEmail;
117 | }
118 |
119 | public String getEmpRoll() {
120 | return this.empRoll;
121 | }
122 |
123 | public void setEmpRoll(String empRoll) {
124 | this.empRoll = empRoll;
125 | }
126 |
127 | public BigDecimal getEmpSalary() {
128 | return this.empSalary;
129 | }
130 |
131 | public void setEmpSalary(BigDecimal empSalary) {
132 | this.empSalary = empSalary;
133 | }
134 |
135 | public String getEmpTel() {
136 | return this.empTel;
137 | }
138 |
139 | public void setEmpTel(String empTel) {
140 | this.empTel = empTel;
141 | }
142 |
143 | public String getEmpPic() {
144 | return this.empPic;
145 | }
146 |
147 | public void setEmpPic(String empPic) {
148 | this.empPic = empPic;
149 | }
150 |
151 | public String getEmpBio() {
152 | return this.empBio;
153 | }
154 |
155 | public void setEmpBio(String empBio) {
156 | this.empBio = empBio;
157 | }
158 |
159 | public Boolean getEmpState() {
160 | return this.empState;
161 | }
162 |
163 | public void setEmpState(Boolean empState) {
164 | this.empState = empState;
165 | }
166 |
167 | public Set getExtraworks() {
168 | return this.extraworks;
169 | }
170 |
171 | public void setExtraworks(Set extraworks) {
172 | this.extraworks = extraworks;
173 | }
174 |
175 | public Set getAttendanceinfos() {
176 | return this.attendanceinfos;
177 | }
178 |
179 | public void setAttendanceinfos(Set attendanceinfos) {
180 | this.attendanceinfos = attendanceinfos;
181 | }
182 |
183 | public Set getSalaryinfos() {
184 | return this.salaryinfos;
185 | }
186 |
187 | public void setSalaryinfos(Set salaryinfos) {
188 | this.salaryinfos = salaryinfos;
189 | }
190 |
191 | public Set getHolsinfos() {
192 | return this.holsinfos;
193 | }
194 |
195 | public void setHolsinfos(Set holsinfos) {
196 | this.holsinfos = holsinfos;
197 | }
198 |
199 | public Userinfo getUserinfo() {
200 | return this.userinfo;
201 | }
202 |
203 | public void setUserinfo(Userinfo userinfo) {
204 | this.userinfo = userinfo;
205 | }
206 |
207 | }
208 |
--------------------------------------------------------------------------------
/src/com/entity/Extrawork.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/com/entity/Extrawork.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.util.Date;
6 |
7 | /**
8 | * Extrawork generated by hbm2java
9 | */
10 | public class Extrawork implements java.io.Serializable {
11 |
12 | private Integer extraId;
13 | private Employeeinfo employeeinfo;
14 | private Date workTime;
15 | private String executes;
16 | private int workHours;
17 |
18 | public Extrawork() {
19 | }
20 |
21 | public Extrawork(Employeeinfo employeeinfo, Date workTime, String executes, int workHours) {
22 | this.employeeinfo = employeeinfo;
23 | this.workTime = workTime;
24 | this.executes = executes;
25 | this.workHours = workHours;
26 | }
27 |
28 | public Integer getExtraId() {
29 | return this.extraId;
30 | }
31 |
32 | public void setExtraId(Integer extraId) {
33 | this.extraId = extraId;
34 | }
35 |
36 | public Employeeinfo getEmployeeinfo() {
37 | return this.employeeinfo;
38 | }
39 |
40 | public void setEmployeeinfo(Employeeinfo employeeinfo) {
41 | this.employeeinfo = employeeinfo;
42 | }
43 |
44 | public Date getWorkTime() {
45 | return this.workTime;
46 | }
47 |
48 | public void setWorkTime(Date workTime) {
49 | this.workTime = workTime;
50 | }
51 |
52 | public String getExecutes() {
53 | return this.executes;
54 | }
55 |
56 | public void setExecutes(String executes) {
57 | this.executes = executes;
58 | }
59 |
60 | public int getWorkHours() {
61 | return this.workHours;
62 | }
63 |
64 | public void setWorkHours(int workHours) {
65 | this.workHours = workHours;
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/src/com/entity/Holsinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/com/entity/Holsinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.util.Date;
6 |
7 | /**
8 | * Holsinfo generated by hbm2java
9 | */
10 | public class Holsinfo implements java.io.Serializable {
11 |
12 | private Integer holsId;
13 | private Employeeinfo employeeinfo;
14 | private Date applyTime;
15 | private Date startTime;
16 | private Date endTime;
17 | private byte holdays;
18 | private String executes;
19 | private int holsState;
20 |
21 | public Holsinfo() {
22 | }
23 |
24 | public Holsinfo(Employeeinfo employeeinfo, Date applyTime, Date startTime, Date endTime, byte holdays, String executes, int holsState) {
25 | this.employeeinfo = employeeinfo;
26 | this.applyTime = applyTime;
27 | this.startTime = startTime;
28 | this.endTime = endTime;
29 | this.holdays = holdays;
30 | this.executes = executes;
31 | this.holsState = holsState;
32 | }
33 |
34 | public Integer getHolsId() {
35 | return this.holsId;
36 | }
37 |
38 | public void setHolsId(Integer holsId) {
39 | this.holsId = holsId;
40 | }
41 |
42 | public Employeeinfo getEmployeeinfo() {
43 | return this.employeeinfo;
44 | }
45 |
46 | public void setEmployeeinfo(Employeeinfo employeeinfo) {
47 | this.employeeinfo = employeeinfo;
48 | }
49 |
50 | public Date getApplyTime() {
51 | return this.applyTime;
52 | }
53 |
54 | public void setApplyTime(Date applyTime) {
55 | this.applyTime = applyTime;
56 | }
57 |
58 | public Date getStartTime() {
59 | return this.startTime;
60 | }
61 |
62 | public void setStartTime(Date startTime) {
63 | this.startTime = startTime;
64 | }
65 |
66 | public Date getEndTime() {
67 | return this.endTime;
68 | }
69 |
70 | public void setEndTime(Date endTime) {
71 | this.endTime = endTime;
72 | }
73 |
74 | public byte getHoldays() {
75 | return this.holdays;
76 | }
77 |
78 | public void setHoldays(byte holdays) {
79 | this.holdays = holdays;
80 | }
81 |
82 | public String getExecutes() {
83 | return this.executes;
84 | }
85 |
86 | public void setExecutes(String executes) {
87 | this.executes = executes;
88 | }
89 |
90 | public int getHolsState() {
91 | return holsState;
92 | }
93 |
94 | public void setHolsState(int holsState) {
95 | this.holsState = holsState;
96 | }
97 |
98 | }
99 |
--------------------------------------------------------------------------------
/src/com/entity/Salaryinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/src/com/entity/Salaryinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | import java.math.BigDecimal;
6 |
7 | /**
8 | * Salaryinfo generated by hbm2java
9 | */
10 | public class Salaryinfo implements java.io.Serializable {
11 |
12 | private Integer salaryId;
13 | private Employeeinfo employeeinfo;
14 | private String syear;
15 | private String smonth;
16 | private BigDecimal sbase;
17 | private BigDecimal sextra;
18 | private BigDecimal sholiday;
19 | private BigDecimal sabsence;
20 | private BigDecimal stotal;
21 | private int sstate;
22 |
23 | public Salaryinfo() {
24 | }
25 |
26 | public Salaryinfo(Employeeinfo employeeinfo, String syear, String smonth, BigDecimal sbase, BigDecimal sextra, BigDecimal sholiday,
27 | BigDecimal sabsence, BigDecimal stotal, char sstate) {
28 | this.employeeinfo = employeeinfo;
29 | this.syear = syear;
30 | this.smonth = smonth;
31 | this.sbase = sbase;
32 | this.sextra = sextra;
33 | this.sholiday = sholiday;
34 | this.sabsence = sabsence;
35 | this.stotal = stotal;
36 | this.sstate = sstate;
37 | }
38 |
39 | public Integer getSalaryId() {
40 | return this.salaryId;
41 | }
42 |
43 | public void setSalaryId(Integer salaryId) {
44 | this.salaryId = salaryId;
45 | }
46 |
47 | public Employeeinfo getEmployeeinfo() {
48 | return this.employeeinfo;
49 | }
50 |
51 | public void setEmployeeinfo(Employeeinfo employeeinfo) {
52 | this.employeeinfo = employeeinfo;
53 | }
54 |
55 | public String getSyear() {
56 | return this.syear;
57 | }
58 |
59 | public void setSyear(String syear) {
60 | this.syear = syear;
61 | }
62 |
63 | public String getSmonth() {
64 | return this.smonth;
65 | }
66 |
67 | public void setSmonth(String smonth) {
68 | this.smonth = smonth;
69 | }
70 |
71 | public BigDecimal getSbase() {
72 | return this.sbase;
73 | }
74 |
75 | public void setSbase(BigDecimal sbase) {
76 | this.sbase = sbase;
77 | }
78 |
79 | public BigDecimal getSextra() {
80 | return this.sextra;
81 | }
82 |
83 | public void setSextra(BigDecimal sextra) {
84 | this.sextra = sextra;
85 | }
86 |
87 | public BigDecimal getSholiday() {
88 | return this.sholiday;
89 | }
90 |
91 | public void setSholiday(BigDecimal sholiday) {
92 | this.sholiday = sholiday;
93 | }
94 |
95 | public BigDecimal getSabsence() {
96 | return this.sabsence;
97 | }
98 |
99 | public void setSabsence(BigDecimal sabsence) {
100 | this.sabsence = sabsence;
101 | }
102 |
103 | public BigDecimal getStotal() {
104 | return this.stotal;
105 | }
106 |
107 | public void setStotal(BigDecimal stotal) {
108 | this.stotal = stotal;
109 | }
110 |
111 | public int getSstate() {
112 | return sstate;
113 | }
114 |
115 | public void setSstate(int sstate) {
116 | this.sstate = sstate;
117 | }
118 |
119 | }
120 |
--------------------------------------------------------------------------------
/src/com/entity/Userinfo.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | employeeinfo
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/com/entity/Userinfo.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | // Generated 2013-8-23 15:06:50 by Hibernate Tools 3.4.0.CR1
4 |
5 | /**
6 | * Userinfo generated by hbm2java
7 | */
8 | public class Userinfo implements java.io.Serializable {
9 |
10 | private String empId;
11 | private Employeeinfo employeeinfo;
12 | private String pwd;
13 | private int empRight;
14 |
15 | public Userinfo() {
16 | }
17 |
18 | public Userinfo(Employeeinfo employeeinfo, String pwd, int empRight) {
19 | this.employeeinfo = employeeinfo;
20 | this.pwd = pwd;
21 | this.empRight = empRight;
22 | }
23 |
24 | public String getEmpId() {
25 | return this.empId;
26 | }
27 |
28 | public void setEmpId(String empId) {
29 | this.empId = empId;
30 | }
31 |
32 | public Employeeinfo getEmployeeinfo() {
33 | return this.employeeinfo;
34 | }
35 |
36 | public void setEmployeeinfo(Employeeinfo employeeinfo) {
37 | this.employeeinfo = employeeinfo;
38 | }
39 |
40 | public String getPwd() {
41 | return this.pwd;
42 | }
43 |
44 | public void setPwd(String pwd) {
45 | this.pwd = pwd;
46 | }
47 |
48 | public int getEmpRight() {
49 | return this.empRight;
50 | }
51 |
52 | public void setEmpRight(int empRight) {
53 | this.empRight = empRight;
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/com/util/login.java:
--------------------------------------------------------------------------------
1 | package com.util;
2 |
3 | import com.entity.Userinfo;
4 | import com.opensymphony.xwork2.ActionInvocation;
5 | import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
6 |
7 | public class login extends AbstractInterceptor {
8 |
9 | private static final long serialVersionUID = 1L;
10 |
11 | @Override
12 | public String intercept(ActionInvocation actionInvocation) throws Exception {
13 | // TODO Auto-generated method stub
14 | Userinfo user = (Userinfo) actionInvocation.getInvocationContext().getSession().get("loginuser");
15 | if (user != null) {
16 | return actionInvocation.invoke();
17 | }
18 | return "loginError";
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | org.hibernate.dialect.MySQLDialect
7 | true
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/jdbc.properties:
--------------------------------------------------------------------------------
1 | driverClassName=com.mysql.jdbc.Driver
2 | url=jdbc:mysql://localhost:3306/permanagement
3 | username=root
4 | password=toor
--------------------------------------------------------------------------------
/src/struts.properties:
--------------------------------------------------------------------------------
1 | struts.custom.i18n.resources=textMsg.myApplication
2 | struts.i18n.encoding=utf-8
--------------------------------------------------------------------------------
/src/template/simple/myfielderror.ftl:
--------------------------------------------------------------------------------
1 | <#if fieldErrors?exists><#t/>
2 | <#assign eKeys = fieldErrors.keySet()><#t/>
3 | <#assign eKeysSize = eKeys.size()><#t/>
4 | <#assign doneStartUlTag=false><#t/>
5 | <#assign doneEndUlTag=false><#t/>
6 | <#assign haveMatchedErrorField=false><#t/>
7 | <#if (fieldErrorFieldNames?size > 0) ><#t/>
8 | <#list fieldErrorFieldNames as fieldErrorFieldName><#t/>
9 | <#list eKeys as eKey><#t/>
10 | <#if (eKey = fieldErrorFieldName)><#t/>
11 | <#assign haveMatchedErrorField=true><#t/>
12 | <#assign eValue = fieldErrors[fieldErrorFieldName]><#t/>
13 | <#if (haveMatchedErrorField && (!doneStartUlTag))><#t/>
14 | <#assign doneStartUlTag=true><#t/>
15 | #if><#t/>
16 | <#list eValue as eEachValue><#t/>${eEachValue}#list><#t/>
17 | #if><#t/>
18 | #list><#t/>
19 | #list><#t/>
20 | <#if (haveMatchedErrorField && (!doneEndUlTag))><#t/>
21 | <#assign doneEndUlTag=true><#t/>
22 | #if><#t/>
23 | <#else><#t/>
24 | <#if (eKeysSize > 0)><#t/>
25 | <#list eKeys as eKey><#t/>
26 | <#assign eValue = fieldErrors[eKey]><#t/>
27 | <#list eValue as eEachValue><#t/>${eEachValue}#list><#t/>
28 | #list><#t/>
29 | #if><#t/>
30 | #if><#t/>
31 | #if><#t/>
--------------------------------------------------------------------------------
/src/textMsg/change.bat:
--------------------------------------------------------------------------------
1 | path=C:\Program Files\Java\jdk1.6.0_10\bin;%path%
2 |
3 | native2ascii -encoding gb2312 myApplication.txt myApplication.properties
--------------------------------------------------------------------------------
/src/textMsg/myApplication.properties:
--------------------------------------------------------------------------------
1 | login.title=\u767b\u9646\u9875\u9762
2 | system.name=\u65f6\u8baf\u79d1\u6280\u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf
3 | system.englishname=shixunkeji person management
4 | login.info=\u7528\u6237\u767b\u5f55
5 | login.name=\u8bf7\u8f93\u5165\u7528\u6237\u540d\uff1a
6 | login.pwd=\u8bf7\u8f93\u5165\u5bc6\u7801\uff1a
7 | login.yanzheng=\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\uff1a
8 | login.login=\u767b\u5f55
9 | login.change=\u6362\u4e00\u5f20
10 | login.yanzhengmaerror=\u9a8c\u8bc1\u7801\u8f93\u5165\u6709\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01\uff01
11 | validate.uidempty=\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a
12 | validate.pwdempty=\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a
13 | validate.oldpwderror=\u65e7\u5bc6\u7801\u9519\u8bef\uff01\uff01\uff01
14 | login.wronguid=\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef
15 | top.title=\u65f6\u8baf\u79d1\u6280\u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf
16 | top.info=\u4f60\u597d\uff0c\u6b22\u8fce\u5149\u4e34\u65f6\u8baf\u79d1\u6280\u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf
17 | mainmanage.title=\u7ba1\u7406\u4e3b\u9875
18 | impleeyList.xuanbumen=\u8bf7\u9009\u62e9\u76f8\u5e94\u90e8\u95e8
19 | impleeyList.xinzipai=\u85aa\u8d44\u6392\u5e8f
20 | impleeyList.nianlingpai=\u5e74\u9f84\u6392\u5e8f
21 | impleeyList.shengxu=\u5347\u5e8f
22 | impleeyList.jiangxu=\u964d\u5e8f
23 | impleeyList.gong=\u5171
24 | impleeyList.ye=\u9875
25 | impleeyList.jilushu=\u6761\u8bb0\u5f55
26 | impleeyList.shangye=\u4e0a\u4e00\u9875
27 | impleeyList.xiaye=\u4e0b\u4e00\u9875
28 | impleeyList.tiaozhuan=\u8df3\u8f6c\u5230\u7b2c
29 | impleeyList.queding=\u786e\u5b9a
30 | validate.pagenum=\u9875\u6570\u5e94\u8be5\u5728{0}\u4e0e{1}\u4e4b\u95f4
31 | validate.impIdEM=\u804c\u5de5\u7f16\u53f7\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
32 | validate.impIdE=\u804c\u5de5\u7f16\u53f7\u5fc5\u987b\u4e3a6~10\u4f4d\u6570\u5b57\uff01\uff01\uff01
33 | validate.impNameEM=\u804c\u5de5\u59d3\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
34 | validate.impGenderEM=\u804c\u5de5\u6027\u522b\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
35 | validate.impBirthEM=\u804c\u5de5\u51fa\u751f\u65e5\u671f\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
36 | validate.impRollEM=\u804c\u5de5\u804c\u4f4d\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
37 | validate.impSalaryEM=\u804c\u5de5\u57fa\u672c\u85aa\u8d44\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
38 | validate.impimpSalaryE=\u804c\u5de5\u57fa\u672c\u85aa\u8d44\u5fc5\u987b\u662f\u6570\u5b57\u683c\u5f0f\uff0c\u4e14\u5927\u4e8e\u7b49\u4e8e0\uff01\uff01\uff01
39 | validate.impTelEM=\u804c\u5de5\u7535\u8bdd\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
40 | validate.impTelE=\u804c\u5de5\u7535\u8bdd\u5fc5\u987b\u4e3a5-20\u4f4d\u6570\u5b57\u7ec4\u6210\uff01\uff01\uff01
41 | validate.impEmailEM=\u804c\u5de5\u90ae\u7bb1\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
42 | validate.impEmailE=\u804c\u5de5\u90ae\u7bb1\u683c\u5f0f\u6709\u8bef\uff01\uff01\uff01
43 | validate.impBioEM=\u804c\u5de5\u4e2a\u4eba\u7b80\u5386\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
44 | xwork.default.invalid.fieldvalue={0}\u5b57\u6bb5\u683c\u5f0f\u975e\u6cd5
45 | validate.departIdEM=\u90e8\u95e8\u7f16\u53f7\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
46 | validate.departIdE=\u90e8\u95e8\u7f16\u53f7\u5fc5\u987b\u4e3a3-4\u4f4d\u6570\u5b57\uff01\uff01\uff01
47 | validate.departNameEM=\u90e8\u95e8\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
48 | validate.departDescripEM=\u90e8\u95e8\u8bf4\u660e\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
49 | validate.workTimeEM=\u52a0\u73ed\u65e5\u671f\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
50 | validate.workExecutesEM=\u539f\u56e0\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
51 | validate.startTimeEM=\u8d77\u59cb\u65f6\u95f4\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
52 | validate.endTimeEM=\u7ec8\u6b62\u65f6\u95f4\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
53 | validate.salaryMontEM=\u6708\u4efd\u4e0d\u80fd\u4e3a\u7a7a\uff01\uff01\uff01
54 | struts.messages.error.content.type.not.allowed=\u60a8\u4e0a\u4f20\u7684\u6587\u4ef6\u7c7b\u578b\u53ea\u80fd\u662f\u56fe\u7247\uff01\u8bf7\u91cd\u65b0\u9009\u62e9\uff01
55 | struts.messages.error.file.too.large=\u60a8\u8981\u4e0a\u4f20\u7684\u6587\u4ef6\u592a\u5927\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\uff01
56 | validate.qiandaoEM=\u65e5\u671f\u4e0d\u80fd\u4e3a\u7a7a
57 | dayAdtError=\u4f60\u9009\u62e9\u7684\u65e5\u671f\u5927\u4e8e\u5f53\u5929\u65f6\u95f4\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9!
58 | yearError=\u4eca\u5e74\u8fd8\u6ca1\u8fc7\u5b8c\uff0c\u4e0d\u80fd\u53d1\u653e\uff01\uff01\uff01
59 | monthError=\u8be5\u6708\u8fd8\u672a\u7ed3\u675f\uff0c\u4e0d\u80fd\u53d1\u653e\uff01\uff01\uff01
60 |
61 |
--------------------------------------------------------------------------------
/src/textMsg/myApplication.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mojooo/perManaGement/e8708c0134d0163c41cfe1b96136147dd6448bd1/src/textMsg/myApplication.txt
--------------------------------------------------------------------------------