├── DataBase Sql.txt ├── README.md ├── WorkManageSystem ├── .classpath ├── .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 ├── WebContent │ ├── BootStrap │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap-theme.min.css.map │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ ├── jquery-2.1.1.min.js │ │ │ ├── jquery-3.1.1.js │ │ │ └── npm.js │ ├── META-INF │ │ └── MANIFEST.MF │ ├── WEB-INF │ │ ├── jsp │ │ │ ├── login.jsp │ │ │ ├── manager │ │ │ │ ├── m_addcourse.jsp │ │ │ │ ├── m_addstudent.jsp │ │ │ │ ├── m_addteacher.jsp │ │ │ │ ├── m_coursemanage.jsp │ │ │ │ ├── m_personalseting.jsp │ │ │ │ ├── m_studentmanage.jsp │ │ │ │ ├── m_teachermanage.jsp │ │ │ │ ├── m_updatecourse.jsp │ │ │ │ ├── m_updatestudent.jsp │ │ │ │ ├── m_updateteacher.jsp │ │ │ │ └── manager.jsp │ │ │ ├── student │ │ │ │ ├── s_downloadwork.jsp │ │ │ │ ├── s_home.jsp │ │ │ │ ├── s_personalseting.jsp │ │ │ │ ├── s_showcheck.jsp │ │ │ │ ├── s_uploadwork.jsp │ │ │ │ └── student.jsp │ │ │ └── teacher │ │ │ │ ├── t_allnotice.jsp │ │ │ │ ├── t_allworks.jsp │ │ │ │ ├── t_personalseting.jsp │ │ │ │ ├── t_publishnotice.jsp │ │ │ │ ├── t_publishwork.jsp │ │ │ │ ├── t_statistics.jsp │ │ │ │ ├── t_statistics_details.jsp │ │ │ │ └── teacher.jsp │ │ ├── lib │ │ │ ├── antlr-2.7.7.jar │ │ │ ├── aopalliance-1.0.jar │ │ │ ├── commons-dbcp-1.4.jar │ │ │ ├── commons-fileupload-1.2.1.jar │ │ │ ├── commons-io-1.4.jar │ │ │ ├── commons-logging-1.2.jar │ │ │ ├── commons-pool-1.5.4.jar │ │ │ ├── dom4j-1.6.1.jar │ │ │ ├── hibernate-commons-annotations-4.0.5.Final.jar │ │ │ ├── hibernate-core-4.3.10.Final.jar │ │ │ ├── hibernate-jpa-2.1-api-1.0.0.Final.jar │ │ │ ├── hibernate-validator-4.3.2.Final.jar │ │ │ ├── jandex-1.1.0.Final.jar │ │ │ ├── javassist-3.18.1-GA.jar │ │ │ ├── jboss-logging-3.1.3.GA.jar │ │ │ ├── jboss-logging-annotations-1.2.0.Beta1.jar │ │ │ ├── jboss-transaction-api_1.2_spec-1.0.0.Final.jar │ │ │ ├── jstl-1.2.jar │ │ │ ├── mysql-connector-java-5.1.38.jar │ │ │ ├── spring-aop-4.1.6.RELEASE.jar │ │ │ ├── spring-beans-4.1.6.RELEASE.jar │ │ │ ├── spring-context-4.1.6.RELEASE.jar │ │ │ ├── spring-core-4.1.6.RELEASE.jar │ │ │ ├── spring-expression-4.1.6.RELEASE.jar │ │ │ ├── spring-jdbc-4.1.6.RELEASE.jar │ │ │ ├── spring-orm-4.1.6.RELEASE.jar │ │ │ ├── spring-tx-4.1.6.RELEASE.jar │ │ │ ├── spring-web-4.1.6.RELEASE.jar │ │ │ ├── spring-webmvc-4.1.6.RELEASE.jar │ │ │ ├── validation-api-1.0.0.GA.jar │ │ │ └── xml-apis-1.0.b2.jar │ │ └── web.xml │ ├── img │ │ ├── back.jpg │ │ ├── bom.gif │ │ └── header.gif │ ├── js │ │ └── jQuery_Validate │ │ │ └── jquery-validation-1.14.0 │ │ │ ├── dist │ │ │ ├── jquery.validate.min.js │ │ │ └── localization │ │ │ │ └── messages_zh.js │ │ │ └── lib │ │ │ └── jquery.js │ └── login │ │ └── assets │ │ ├── css │ │ ├── reset.css │ │ ├── style.css │ │ └── supersized.css │ │ ├── img │ │ ├── 1.jpg │ │ ├── 2.gif │ │ ├── 3.jpg │ │ └── 4.jpg │ │ └── js │ │ ├── jquery-1.8.2.min.js │ │ ├── scripts.js │ │ ├── supersized-init.js │ │ └── supersized.3.2.7.min.js ├── build │ └── classes │ │ ├── config │ │ ├── springAnnotation-core.xml │ │ ├── springAnnotation-hibernate.xml │ │ └── springAnnotation-servlet.xml │ │ └── wms │ │ ├── controller │ │ ├── HomeController.class │ │ ├── ManagerController.class │ │ ├── StudentController.class │ │ └── TeacherController.class │ │ ├── dao │ │ ├── CheckWorkDao.class │ │ ├── ClazzDao.class │ │ ├── CourseDao.class │ │ ├── ICheckWorkDao.class │ │ ├── IClazzDao.class │ │ ├── ICourseDao.class │ │ ├── IManagerDao.class │ │ ├── INoticeDao.class │ │ ├── IStudentDao.class │ │ ├── ITeacherDao.class │ │ ├── IWorkDao.class │ │ ├── ManagerDao.class │ │ ├── NoticeDao.class │ │ ├── StudentDao.class │ │ ├── TeacherDao.class │ │ └── WorkDao.class │ │ ├── entity │ │ ├── CheckWork.class │ │ ├── CheckWork.hbm.xml │ │ ├── Clazz.class │ │ ├── Clazz.hbm.xml │ │ ├── Course.class │ │ ├── Course.hbm.xml │ │ ├── Manager.class │ │ ├── Manager.hbm.xml │ │ ├── Notice.class │ │ ├── Notice.hbm.xml │ │ ├── Student.class │ │ ├── Student.hbm.xml │ │ ├── Teacher.class │ │ ├── Teacher.hbm.xml │ │ ├── Work.class │ │ └── Work.hbm.xml │ │ ├── hibernate │ │ └── hibernate.cfg.test.xml │ │ ├── service │ │ ├── CheckWorkManager.class │ │ ├── ClazzManager.class │ │ ├── CourseManager.class │ │ ├── ICheckWorkManager.class │ │ ├── IClazzManager.class │ │ ├── ICourseManager.class │ │ ├── IManagerService.class │ │ ├── INoticeManager.class │ │ ├── IStudentManager.class │ │ ├── ITeacherManager.class │ │ ├── IWorkManager.class │ │ ├── ManagerService.class │ │ ├── NoticeManager.class │ │ ├── StudentManager.class │ │ ├── TeacherManager.class │ │ └── WorkManager.class │ │ └── spring │ │ ├── springCheckWorkBean.xml │ │ ├── springClazzBean.xml │ │ ├── springCourseBean.xml │ │ ├── springManagerBean.xml │ │ ├── springNoticeBean.xml │ │ ├── springStudentBean.xml │ │ ├── springTeacherBean.xml │ │ └── springWorkBean.xml └── src │ ├── config │ ├── springAnnotation-core.xml │ ├── springAnnotation-hibernate.xml │ └── springAnnotation-servlet.xml │ └── wms │ ├── controller │ ├── HomeController.java │ ├── ManagerController.java │ ├── StudentController.java │ └── TeacherController.java │ ├── dao │ ├── CheckWorkDao.java │ ├── ClazzDao.java │ ├── CourseDao.java │ ├── ICheckWorkDao.java │ ├── IClazzDao.java │ ├── ICourseDao.java │ ├── IManagerDao.java │ ├── INoticeDao.java │ ├── IStudentDao.java │ ├── ITeacherDao.java │ ├── IWorkDao.java │ ├── ManagerDao.java │ ├── NoticeDao.java │ ├── StudentDao.java │ ├── TeacherDao.java │ └── WorkDao.java │ ├── entity │ ├── CheckWork.hbm.xml │ ├── CheckWork.java │ ├── Clazz.hbm.xml │ ├── Clazz.java │ ├── Course.hbm.xml │ ├── Course.java │ ├── Manager.hbm.xml │ ├── Manager.java │ ├── Notice.hbm.xml │ ├── Notice.java │ ├── Student.hbm.xml │ ├── Student.java │ ├── Teacher.hbm.xml │ ├── Teacher.java │ ├── Work.hbm.xml │ └── Work.java │ ├── hibernate │ └── hibernate.cfg.test.xml │ ├── service │ ├── CheckWorkManager.java │ ├── ClazzManager.java │ ├── CourseManager.java │ ├── ICheckWorkManager.java │ ├── IClazzManager.java │ ├── ICourseManager.java │ ├── IManagerService.java │ ├── INoticeManager.java │ ├── IStudentManager.java │ ├── ITeacherManager.java │ ├── IWorkManager.java │ ├── ManagerService.java │ ├── NoticeManager.java │ ├── StudentManager.java │ ├── TeacherManager.java │ └── WorkManager.java │ └── spring │ ├── springCheckWorkBean.xml │ ├── springClazzBean.xml │ ├── springCourseBean.xml │ ├── springManagerBean.xml │ ├── springNoticeBean.xml │ ├── springStudentBean.xml │ ├── springTeacherBean.xml │ └── springWorkBean.xml └── screenshots ├── FunctionalStructure.png ├── LoginPage.png ├── ManagerModule.png ├── Spring.png ├── SpringDao.png ├── SpringMVC.png ├── StatisticalSubmissionPage.png ├── StudentModule.png ├── StudentPage.png ├── TeacherModule.png └── TeacherOverviewPage.png /WorkManageSystem/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 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 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /WorkManageSystem/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | WorkManageSystem 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /WorkManageSystem/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WorkManageSystem/.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.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 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.8 8 | -------------------------------------------------------------------------------- /WorkManageSystem/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WorkManageSystem/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WorkManageSystem/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /WorkManageSystem/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/BootStrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/BootStrap/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 登录界面(Login) 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 29 | 30 |
31 |

作业管理系统

32 |
33 | 34 |

35 | 类型: 36 |

42 |

${errMsg}

43 |    44 |


45 |
+
46 | 47 |
48 |
49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
57 |

58 |

59 | 版权:南昌航空大学 软件学院 142011班 邮编:330036  联系电话:18279175436 60 |

61 |

62 |
63 | 64 | 65 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_addcourse.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 课程管理-增加 13 | 14 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_addstudent.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 学生管理-增加 13 | 14 | 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 | 87 | 88 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_addteacher.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 教师管理-增加 13 | 14 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_coursemanage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 课程管理 14 | 15 | 42 | 43 | 44 | 45 | <% 46 | int a = 0; 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 | 81 | 82 | 83 | 84 | 85 | 86 |
序号课程名学分修改删除
<%=++a %>${ c.c_name }${ c.c_credit }修改 76 | 77 | 78 | 关闭 79 | 80 |
87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_studentmanage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 学生管理 14 | 15 | 43 | 44 | 45 | 46 | 47 | <% 48 | int a = 0; 49 | %> 50 | 51 |
52 | 学生总览 53 | 54 |
55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 69 | 70 | 71 | 72 | 73 | 74 | <%-- 75 | 76 | 77 | --%> 78 | 79 | <%-- --%> 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 95 | 96 | 97 | 98 |
序号学号姓名性别班级密码学院修改 67 | 删除 68 |
<%=++a %>${ s.s_account }${ s.s_name }${ s.s_sex }${ s.s_c_id }${ s.s_password }${ s.s_dept }修改 89 | 90 | 91 | 关闭 92 | 93 |
99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_teachermanage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 教师管理 14 | 15 | 43 | 44 | 45 | 46 | <% 47 | int a = 0; 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 | 88 | 89 | 90 | 91 | 92 | 93 |
序号教师工号姓名性别系部密码修改删除
<%=++a %>${ t.t_account }${ t.t_name }${ t.t_sex }${ t.t_dept }${ t.t_password }修改 83 | 84 | 85 | 关闭 86 | 87 |
94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_updatecourse.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_updatestudent.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/manager/m_updateteacher.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/student/s_personalseting.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 学生个人设置 13 | 14 | 15 |
16 |
17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 32 | 33 | 34 |
25 | 修 改 信 息 26 |
30 | 修 改 密 码 31 |
35 |
36 | 37 | 66 | 67 | 97 |
98 |
99 |
100 |
101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/student/s_showcheck.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | <%@ page import="java.util.*" %> 5 | <%@ page import="wms.entity.*" %> 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 查看批阅 21 | 22 | 23 | 24 | 25 | 26 | <% 27 | int a = 0; 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 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
序号主题课程截止时间得分评语批阅状态
<%=++a %>${w.w_title }${w.w_course }${w.w_deadline }${checkwork[loop.count-1].ch_score } 56 | 查看 57 | 未批阅已批阅
73 | 74 | 75 | 76 | 77 | 96 | 97 | 98 |
99 |
100 |
101 | 102 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/student/s_uploadwork.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 上传作业 19 | 20 | 21 | 38 | 39 | 40 | 41 | <% 42 | String s_account = session.getAttribute("s_account").toString(); 43 | String clazz = session.getAttribute("clazz").toString(); 44 | %> 45 | 46 |
47 |
48 |
49 | 50 |
51 |
52 |
53 | <%-- 54 | --%> 55 | 作业 56 | 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 | 106 |
107 |
108 | 109 |

110 |
111 |
112 | 113 |
114 |
115 |
116 |
117 |
--%> 118 | 119 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/teacher/t_allnotice.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 30 | 教师作业总览 31 | 32 | 33 | 34 | <% 35 | int i=1; 36 | request.setAttribute("i", i); 37 | %> 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | <%request.setAttribute("i", i++); %> 60 | 61 | 62 | 63 | 64 | 65 | 66 | 71 | 72 | 73 | 74 | 75 | 76 | 77 |
序号主题内容发布时间班级查看 51 | 删除 52 |
${i }${n. nt_title }${n. nt_content }${n. nt_time }${n. nt_c_id }查看 67 | 68 | 69 | 70 |
78 | 79 | 80 | 81 | 82 | 83 | 102 | 103 | 104 |
105 |
106 | 107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/teacher/t_allworks.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 30 | 教师作业总览 31 | 32 | 33 | 34 | <% 35 | int i=1; 36 | request.setAttribute("i", i); 37 | %> 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | <%request.setAttribute("i", i++); %> 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 71 | 72 | 73 | 74 | 75 | 76 | 77 |
序号主题内容课程班级截止时间查看 删除
${i }${w.w_title }${w.w_content }${w.w_course }${w.w_c_id }${w.w_deadline }查看 67 | 68 | 69 | 70 |
78 | 79 | 80 | 81 | 82 | 83 | 102 | 103 | 104 |
105 |
106 | 107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/teacher/t_publishnotice.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 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 | 43 |


44 |
45 | 46 | 47 |
48 |
49 |
50 | 51 |
52 | 53 | 54 |
55 |
56 |
57 |
58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/jsp/teacher/t_publishwork.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | 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 | --%> 40 | 41 | 42 | 43 |


44 |
45 | 班级 46 | 53 |


54 |
55 | 56 | 57 |
58 |
59 |
60 | 61 |
62 | 63 | 64 |
65 |
66 |
67 |
68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/antlr-2.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/antlr-2.7.7.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/aopalliance-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/aopalliance-1.0.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/commons-io-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/commons-io-1.4.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/commons-pool-1.5.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/commons-pool-1.5.4.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/dom4j-1.6.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/dom4j-1.6.1.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/hibernate-commons-annotations-4.0.5.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/hibernate-commons-annotations-4.0.5.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/hibernate-core-4.3.10.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/hibernate-core-4.3.10.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/hibernate-validator-4.3.2.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/hibernate-validator-4.3.2.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/jandex-1.1.0.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/jandex-1.1.0.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/javassist-3.18.1-GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/javassist-3.18.1-GA.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/jboss-logging-3.1.3.GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/jboss-logging-3.1.3.GA.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/jboss-logging-annotations-1.2.0.Beta1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/jboss-logging-annotations-1.2.0.Beta1.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/jboss-transaction-api_1.2_spec-1.0.0.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/jboss-transaction-api_1.2_spec-1.0.0.Final.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/mysql-connector-java-5.1.38.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/mysql-connector-java-5.1.38.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-aop-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-aop-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-beans-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-beans-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-core-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-core-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-orm-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-orm-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/lib/xml-apis-1.0.b2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/WEB-INF/lib/xml-apis-1.0.b2.jar -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | WorkManageSystem 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | 13 | 23 | 24 | 25 | 26 | 27 | contextConfigLocation 28 | classpath*:config/springAnnotation-*.xml 29 | 30 | 31 | 32 | 34 | 35 | org.springframework.web.context.ContextLoaderListener 36 | 37 | 38 | 39 | 40 | 41 | 42 | spring 43 | 44 | org.springframework.web.servlet.DispatcherServlet 45 | 46 | 47 | 48 | contextConfigLocation 49 | 50 | classpath*:config/springAnnotation-servlet.xml 51 | 52 | 53 | 1 54 | 55 | 56 | 57 | 58 | 59 | 60 | characterEncodingFilter 61 | org.springframework.web.filter.CharacterEncodingFilter 62 | 63 | encoding 64 | UTF-8 65 | 66 | 67 | forceEncoding 68 | true 69 | 70 | 71 | 72 | characterEncodingFilter 73 | /* 74 | 75 | 76 | 77 | spring 78 | / 79 | 80 | 81 | 82 | 83 | 84 | spring 85 | *.css 86 | 87 | 88 | 89 | spring 90 | *.gif 91 | 92 | 93 | 94 | 95 | spring 96 | *.jpg 97 | 98 | 99 | 100 | spring 101 | *.png 102 | 103 | 104 | 105 | spring 106 | *.js 107 | 108 | 109 | 110 | 113 | 114 | 115 | openSession 116 | org.springframework.orm.hibernate4.support.OpenSessionInViewFilter 117 | 118 | 119 | 120 | openSession 121 | /* 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/img/back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/img/back.jpg -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/img/bom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/img/bom.gif -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/img/header.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/img/header.gif -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/js/jQuery_Validate/jquery-validation-1.14.0/dist/localization/messages_zh.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "这是必填字段", 15 | remote: "请修正此字段", 16 | email: "请输入有效的电子邮件地址", 17 | url: "请输入有效的网址", 18 | date: "请输入有效的日期", 19 | dateISO: "请输入有效的日期 (YYYY-MM-DD)", 20 | number: "请输入有效的数字", 21 | digits: "只能输入数字", 22 | creditcard: "请输入有效的信用卡号码", 23 | equalTo: "你的输入不相同", 24 | extension: "请输入有效的后缀", 25 | maxlength: $.validator.format("最多可以输入 {0} 个字符"), 26 | minlength: $.validator.format("最少要输入 {0} 个字符"), 27 | rangelength: $.validator.format("请输入长度在 {0} 到 {1} 之间的字符串"), 28 | range: $.validator.format("请输入范围在 {0} 到 {1} 之间的数值"), 29 | max: $.validator.format("请输入不大于 {0} 的数值"), 30 | min: $.validator.format("请输入不小于 {0} 的数值") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/js/jQuery_Validate/jquery-validation-1.14.0/lib/jquery.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | var parts = document.location.search.slice( 1 ).split( "&" ), 4 | length = parts.length, 5 | scripts = document.getElementsByTagName("script"), 6 | src = scripts[ scripts.length - 1].src, 7 | i = 0, 8 | current, 9 | version = "1.11.1", 10 | file = "http://code.jquery.com/jquery-git.js"; 11 | 12 | for ( ; i < length; i++ ) { 13 | current = parts[ i ].split( "=" ); 14 | if ( current[ 0 ] === "jquery" ) { 15 | version = current[ 1 ]; 16 | break; 17 | } 18 | } 19 | 20 | if (version != "git") { 21 | file = src.replace(/jquery\.js$/, "jquery-" + version + ".js"); 22 | } 23 | 24 | 25 | document.write( "" ); 26 | 27 | })(); 28 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/css/reset.css: -------------------------------------------------------------------------------- 1 | 2 | /* ------- This is the CSS Reset ------- */ 3 | 4 | html, body, div, span, applet, object, iframe, 5 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, 6 | abbr, acronym, address, big, cite, code, del, 7 | dfn, em, img, ins, kbd, q, s, samp, small, 8 | strike, strong, sub, sup, tt, var, u, i, center, 9 | dl, dt, dd, ol, ul, li, fieldset, form, label, 10 | legend, table, caption, tbody, tfoot, thead, tr, 11 | th, td, article, aside, canvas, details, embed, 12 | figure, figcaption, footer, header, hgroup, menu, 13 | nav, output, ruby, section, summary, time, mark, audio, video { 14 | margin: 0; 15 | padding: 0; 16 | border: 0; 17 | font-size: 100%; 18 | font: inherit; 19 | vertical-align: baseline; 20 | } 21 | 22 | /* ------- HTML5 display-role reset for older browsers ------- */ 23 | 24 | article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 25 | display: block; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, q:before, q:after { 37 | content: ''; 38 | content: none; 39 | } 40 | table { 41 | border-collapse: collapse; 42 | border-spacing: 0; 43 | } 44 | 45 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/css/supersized.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Supersized - Fullscreen Slideshow jQuery Plugin 4 | Version : 3.2.7 5 | Site : www.buildinternet.com/project/supersized 6 | 7 | Author : Sam Dunn 8 | Company : One Mighty Roar (www.onemightyroar.com) 9 | License : MIT License / GPL License 10 | 11 | */ 12 | 13 | * { margin:0; padding:0; } 14 | body { background:#111; height:100%; } 15 | img { border:none; } 16 | 17 | #supersized-loader { position:absolute; top:50%; left:50%; z-index:0; width:60px; height:60px; margin:-30px 0 0 -30px; text-indent:-999em; background:url(../img/progress.gif) no-repeat center center;} 18 | 19 | #supersized { display:block; position:fixed; left:0; top:0; overflow:hidden; z-index:-999; height:100%; width:100%; } 20 | #supersized img { width:auto; height:auto; position:relative; display:none; outline:none; border:none; } 21 | #supersized.speed img { -ms-interpolation-mode:nearest-neighbor; image-rendering: -moz-crisp-edges; } /*Speed*/ 22 | #supersized.quality img { -ms-interpolation-mode:bicubic; image-rendering: optimizeQuality; } /*Quality*/ 23 | 24 | #supersized li { display:block; list-style:none; z-index:-30; position:fixed; overflow:hidden; top:0; left:0; width:100%; height:100%; background:#111; } 25 | #supersized a { width:100%; height:100%; display:block; } 26 | #supersized li.prevslide { z-index:-20; } 27 | #supersized li.activeslide { z-index:-10; } 28 | #supersized li.image-loading { background:#111 url(../img/progress.gif) no-repeat center center; width:100%; height:100%; } 29 | #supersized li.image-loading img{ visibility:hidden; } 30 | #supersized li.prevslide img, #supersized li.activeslide img{ display:inline; } 31 | 32 | 33 | #supersized img { max-width: none !important } 34 | 35 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/img/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/login/assets/img/1.jpg -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/img/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/login/assets/img/2.gif -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/img/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/login/assets/img/3.jpg -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/img/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/WebContent/login/assets/img/4.jpg -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/js/scripts.js: -------------------------------------------------------------------------------- 1 | 2 | jQuery(document).ready(function() { 3 | 4 | $('.page-container form').submit(function(){ 5 | var username = $(this).find('.username').val(); 6 | var password = $(this).find('.password').val(); 7 | if(username == '') { 8 | $(this).find('.error').fadeOut('fast', function(){ 9 | $(this).css('top', '27px'); 10 | }); 11 | $(this).find('.error').fadeIn('fast', function(){ 12 | $(this).parent().find('.username').focus(); 13 | }); 14 | return false; 15 | } 16 | 17 | if(password == '') { 18 | $(this).find('.error').fadeOut('fast', function(){ 19 | $(this).css('top', '96px'); 20 | }); 21 | $(this).find('.error').fadeIn('fast', function(){ 22 | $(this).parent().find('.password').focus(); 23 | }); 24 | return false; 25 | } 26 | }); 27 | 28 | $('.page-container form .username, .page-container form .password').keyup(function(){ 29 | $(this).parent().find('.error').fadeOut('fast'); 30 | }); 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /WorkManageSystem/WebContent/login/assets/js/supersized-init.js: -------------------------------------------------------------------------------- 1 | jQuery(function($){ 2 | 3 | $.supersized({ 4 | 5 | // 功能 6 | slide_interval : 4000, // 转换之间的长度 7 | transition : 1, // 0 - 无,1 - 淡入淡出,2 - 滑动顶,3 - 滑动向右,4 - 滑底,5 - 滑块向左,6 - 旋转木马右键,7 - 左旋转木马 8 | transition_speed : 1000, // 转型速度 9 | performance : 1, // 0 - 正常,1 - 混合速度/质量,2 - 更优的图像质量,三优的转换速度//(仅适用于火狐/ IE浏览器,而不是Webkit的) 10 | 11 | // 大小和位置 12 | min_width : 0, // 最小允许宽度(以像素为单位) 13 | min_height : 0, // 最小允许高度(以像素为单位) 14 | vertical_center : 1, // 垂直居中背景 15 | horizontal_center : 1, // 水平中心的背景 16 | fit_always : 0, // 图像绝不会超过浏览器的宽度或高度(忽略分钟。尺寸) 17 | fit_portrait : 1, // 纵向图像将不超过浏览器高度 18 | fit_landscape : 0, // 景观的图像将不超过宽度的浏览器 19 | 20 | // 组件 21 | slide_links : 'blank', // 个别环节为每张幻灯片(选项:假的,'民','名','空') 22 | slides : [ // 幻灯片影像 23 | {image : 'login/assets/img/1.jpg'}, 24 | {image : 'login/assets/img/2.gif'}, 25 | {image : 'login/assets/img/3.jpg'}, 26 | {image : 'login/assets/img/4.jpg'} 27 | ] 28 | 29 | }); 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/config/springAnnotation-core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/config/springAnnotation-hibernate.xml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | ]> 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | org.hibernate.dialect.MySQLDialect 28 | 31 | update 32 | 33 | true 34 | true 35 | 36 | 37 | 38 | 39 | 40 | 41 | classpath*:wms/hibernate/hibernate.cfg.test.xml 42 | 43 | 44 | 45 | 46 | 47 | 48 | 50 | 51 | 52 | 53 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | PROPAGATION_REQUIRED,-Exception 65 | PROPAGATION_REQUIRED,-Exception 66 | PROPAGATION_REQUIRED,-Exception 67 | PROPAGATION_REQUIRED,-Exception 68 | PROPAGATION_REQUIRED,-Exception 69 | PROPAGATION_NEVER 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/config/springAnnotation-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/controller/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/controller/HomeController.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/controller/ManagerController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/controller/ManagerController.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/controller/StudentController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/controller/StudentController.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/controller/TeacherController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/controller/TeacherController.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/CheckWorkDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/CheckWorkDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/ClazzDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/ClazzDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/CourseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/CourseDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/ICheckWorkDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/ICheckWorkDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/IClazzDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/IClazzDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/ICourseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/ICourseDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/IManagerDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/IManagerDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/INoticeDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/INoticeDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/IStudentDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/IStudentDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/ITeacherDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/ITeacherDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/IWorkDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/IWorkDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/ManagerDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/ManagerDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/NoticeDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/NoticeDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/StudentDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/StudentDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/TeacherDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/TeacherDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/dao/WorkDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/dao/WorkDao.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/CheckWork.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/CheckWork.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/CheckWork.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the checkwork detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Clazz.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Clazz.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Clazz.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the Clazz detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Course.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Course.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Course.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the course detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Manager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Manager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Manager.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the Manager detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Notice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Notice.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Notice.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the notice detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Student.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Student.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the student detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Teacher.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Teacher.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the teacher detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Work.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/entity/Work.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/entity/Work.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the work detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/hibernate/hibernate.cfg.test.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/CheckWorkManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/CheckWorkManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/ClazzManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/ClazzManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/CourseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/CourseManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/ICheckWorkManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/ICheckWorkManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/IClazzManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/IClazzManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/ICourseManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/ICourseManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/IManagerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/IManagerService.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/INoticeManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/INoticeManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/IStudentManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/IStudentManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/ITeacherManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/ITeacherManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/IWorkManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/IWorkManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/ManagerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/ManagerService.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/NoticeManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/NoticeManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/StudentManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/StudentManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/TeacherManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/TeacherManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/service/WorkManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/WorkManageSystem/build/classes/wms/service/WorkManager.class -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springCheckWorkBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springClazzBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springCourseBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springManagerBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springNoticeBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springStudentBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springTeacherBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/build/classes/wms/spring/springWorkBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/config/springAnnotation-core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WorkManageSystem/src/config/springAnnotation-hibernate.xml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | ]> 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | org.hibernate.dialect.MySQLDialect 28 | 31 | update 32 | 33 | true 34 | true 35 | 36 | 37 | 38 | 39 | 40 | 41 | classpath*:wms/hibernate/hibernate.cfg.test.xml 42 | 43 | 44 | 45 | 46 | 47 | 48 | 50 | 51 | 52 | 53 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | PROPAGATION_REQUIRED,-Exception 65 | PROPAGATION_REQUIRED,-Exception 66 | PROPAGATION_REQUIRED,-Exception 67 | PROPAGATION_REQUIRED,-Exception 68 | PROPAGATION_REQUIRED,-Exception 69 | PROPAGATION_NEVER 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /WorkManageSystem/src/config/springAnnotation-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/controller/HomeController.java: -------------------------------------------------------------------------------- 1 | package wms.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import javax.annotation.Resource; 7 | import javax.servlet.http.HttpSession; 8 | 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.ui.Model; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.RequestMethod; 13 | 14 | import wms.entity.Manager; 15 | import wms.entity.Student; 16 | import wms.entity.Teacher; 17 | import wms.service.IManagerService; 18 | import wms.service.IStudentManager; 19 | import wms.service.ITeacherManager; 20 | 21 | @Controller 22 | public class HomeController { 23 | 24 | /*@Autowired 25 | private LabService labService;*/ 26 | 27 | @Resource(name="managerManager") 28 | private IManagerService managerManager; 29 | 30 | @Resource(name="teacherManager") 31 | private ITeacherManager teacherManager; 32 | 33 | @Resource(name="studentManager") 34 | private IStudentManager studentManager; 35 | 36 | /** 37 | * 请求登录页面 38 | */ 39 | @RequestMapping("/") 40 | public String index(){ 41 | return "login"; 42 | } 43 | 44 | /** 45 | * 登录操作 46 | */ 47 | @RequestMapping(value="/login",method=RequestMethod.GET) 48 | public String login(String account,String password,String type,HttpSession session){ 49 | System.out.println("输入的账号和姓名:"+account+","+password); 50 | List listNav = new ArrayList(); 51 | listNav.add("首页");//设置面包屑导航 52 | session.setAttribute("listNav", listNav); 53 | if( type.equals("Manager") ){//如果类型等于管理员 54 | //通过账号得到一个教师对象,判断 (账号是否为空)-和-(密码是否正确) 55 | Manager manager = managerManager.getManagerLogin(account); 56 | if( manager != null ){ //如果不等于空说明账号正确 57 | if( manager.getM_password().equals(password) ){ 58 | session.setAttribute("manager",manager); 59 | return "manager/manager"; 60 | }else{ 61 | session.setAttribute("errMsg","密码错误!!"); 62 | return "login"; 63 | } 64 | }else{//账号错误 65 | session.setAttribute("errMsg","账号或密码错误!!"); //账号不存在! 66 | return "login"; 67 | } 68 | 69 | }else if( type.equals("Teacher") ){//如果类型等于教师 70 | //通过账号得到一个教师对象,判断 (账号是否为空)-和-(密码是否正确) 71 | Teacher teacher = teacherManager.getTeacherLogin(account); 72 | if( teacher != null ){ //如果不等于空说明账号正确 73 | if( teacher.getT_password().equals(password) ){ 74 | session.setAttribute("teacher",teacher); 75 | return "teacher/teacher"; 76 | }else{ 77 | session.setAttribute("errMsg","密码错误!!"); 78 | return "login"; 79 | } 80 | }else{//账号错误 81 | session.setAttribute("errMsg","账号或密码错误!!"); 82 | return "login"; 83 | } 84 | 85 | }else if( type.equals("Student") ){//如果类型等于学生 86 | //通过账号得到一个学生对象,判断 (账号是否为空)-和-(密码是否正确) 87 | Student student = studentManager.getStudentLogin(account); 88 | if( student != null ){ //如果不等于空说明账号正确 89 | if( student.getS_password().equals(password) ){ 90 | session.setAttribute("student",student); 91 | return "student/student"; 92 | }else{ 93 | session.setAttribute("errMsg","密码错误!"); 94 | return "login"; 95 | } 96 | } 97 | else{//账号错误 98 | session.setAttribute("errMsg","账号或密码错误!"); 99 | return "login"; 100 | } 101 | 102 | }else 103 | session.setAttribute("errMsg","未选择类型错误!!"); 104 | return "login"; 105 | 106 | 107 | } 108 | 109 | /** 110 | * 注销操作 111 | */ 112 | @RequestMapping("/logout") 113 | public String logout(HttpSession session){ 114 | //session.invalidate(); 115 | return "login"; 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/ClazzDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.hibernate.Query; 6 | import org.hibernate.SessionFactory; 7 | 8 | import wms.entity.Clazz; 9 | 10 | public class ClazzDao implements IClazzDao{ 11 | 12 | //引入SessionFactory变量,SessionFactory接口负责初始化Hibernate。它充当数据存储源的代理,并负责创建Session对象 13 | private SessionFactory sessionFactory; 14 | 15 | public void setSessionFactory(SessionFactory sessionFactory) { 16 | this.sessionFactory = sessionFactory; 17 | } 18 | @Override 19 | public List getAllClazz() { 20 | // TODO Auto-generated method stub 21 | String hql = "from Clazz"; 22 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 23 | return query.list(); 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/CourseDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.hibernate.Query; 6 | import org.hibernate.SessionFactory; 7 | 8 | import wms.entity.Course; 9 | import wms.entity.Teacher; 10 | 11 | public class CourseDao implements ICourseDao{ 12 | 13 | //引入SessionFactory变量,SessionFactory接口负责初始化Hibernate。它充当数据存储源的代理,并负责创建Session对象 14 | private SessionFactory sessionFactory; 15 | 16 | public void setSessionFactory(SessionFactory sessionFactory) { 17 | this.sessionFactory = sessionFactory; 18 | } 19 | 20 | @Override 21 | public void addCourse(Course course) {//添加课程 22 | sessionFactory.getCurrentSession().save(course); 23 | } 24 | 25 | @Override 26 | public boolean deleteCourse(int id) {//删除课程 27 | String hql = "delete Course c where c.c_id = ?"; 28 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 29 | query.setInteger(0, id); 30 | 31 | return (query.executeUpdate()>0); //大于0,删除成功 32 | } 33 | 34 | @Override 35 | public boolean updateCourse(Course course) {//修改课程信息,hql语句 36 | System.out.println("管理员--教师信息--修改:"+course.getC_id()+course.getC_name()+course.getC_credit()); 37 | String hql = "update Course c set c.c_name=?, c.c_credit=? where c.c_id=?"; 38 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 39 | query.setString(0, course.getC_name()); 40 | query.setInteger(1, course.getC_credit()); 41 | query.setInteger(2, course.getC_id()); 42 | return (query.executeUpdate()>0); 43 | } 44 | 45 | @Override 46 | public Course getCourse(int id) {//根据id得到单个教师 47 | String hql = "from Course c where c.c_id = ?"; 48 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 49 | query.setInteger(0, id); 50 | 51 | return (Course) query.uniqueResult(); 52 | } 53 | 54 | @Override 55 | public List getAllCourse() {//查找所有教师信息 56 | String hql = "from Course"; 57 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 58 | 59 | return query.list(); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/ICheckWorkDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.CheckWork; 6 | 7 | public interface ICheckWorkDao { 8 | 9 | //*********教师用到的方法************************************* 10 | //增加一条批改作业记录 11 | public void addCheckWork(CheckWork checkwork); 12 | //删除一条批改作业记录 13 | public boolean deleteCheckWork(int id); 14 | //修改一条批改作业记录 15 | public boolean updateCheckWork(CheckWork checkwork); 16 | //查询一条批改作业记录 17 | public CheckWork getCheckWork(int id); 18 | //查询批改作业表所有的数据 19 | public List getAllCheckWork(); 20 | 21 | //通过作业号和班级号查找一条批改作业记录 22 | public List getCheckWorkByWnoClno(int wno, String CLno); 23 | 24 | //批改-添加评语和分数 25 | public boolean Check(String ch_mark,int ch_score,int ch_id); 26 | 27 | //*********学生用到的方法************************************* 28 | //上传文件时向提交表(CheckWork)中插入数据 29 | public boolean addCheckWorkByFile(String Sno,String clazz, int Wno, String Uptime, String path); 30 | 31 | //上传文件时向提交表(CheckWork)中更新数据 32 | public boolean updateCheckWorkByFile(String Sno,String clazz, int Wno, String Uptime, String path); 33 | 34 | //通过作业号和学号查找一条批改作业记录 35 | public CheckWork getCheckWorkByWnoSno(int wno, String Sno); 36 | 37 | /*//通过id号判断是否有成绩和评语,若有则表示教师已批改过,否则未批改过。 38 | public boolean getCheckResult(int id);*/ 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/IClazzDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Clazz; 6 | 7 | public interface IClazzDao { 8 | 9 | //*********教师用到的方法************************************* 10 | //获取全部班级 11 | public List getAllClazz(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/ICourseDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Course; 6 | 7 | public interface ICourseDao { 8 | 9 | //*********课程用到的方法************************************* 10 | //增加一条课程记录 11 | public void addCourse(Course course); 12 | //删除一条课程记录 13 | public boolean deleteCourse(int id); 14 | //修改一条课程记录 15 | public boolean updateCourse(Course course); 16 | //查询一条课程记录 17 | public Course getCourse(int id); 18 | //查询课程表所有的数据 19 | public List getAllCourse(); 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/IManagerDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Manager; 6 | 7 | public interface IManagerDao { 8 | 9 | //*********登录用到的方法************************************* 10 | //获得一个管理员对象 -->(用于登录验证) 11 | public Manager getManagerLogin(String account); 12 | 13 | 14 | //*********管理员用到的方法************************************* 15 | //查询管理员表所有的数据 16 | public List getAllManager(); 17 | //查询一条管理员记录----通过名字 18 | public Manager getManagerByName(String name); 19 | //查询一条管理员记录----通过id 20 | public Manager getManagerById(int id); 21 | //修改管理员账号 22 | public boolean updateManagerAccount(int id, String account); 23 | //修改管理员姓名 24 | public boolean updateManagerName(int id, String name); 25 | //修改管理员密码 26 | public boolean updateManagerPassword(int id, String password); 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/INoticeDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Notice; 6 | 7 | public interface INoticeDao { 8 | 9 | //增加一条公告记录 10 | public void addNotice(Notice notice); 11 | //删除一条公告记录 12 | public boolean deleteNotice(int id); 13 | //修改一条公告记录 14 | public boolean updateNotice(Notice notice); 15 | //查询一条公告记录 16 | public Notice getNotice(int id); 17 | //查询公告表所有的数据 18 | public List getAllNotice(); 19 | //根据教师ID查公告数据 20 | public List getNoticeByTid(String t_id); 21 | 22 | /* 23 | //增加一条作业记录 24 | public void addWork(Work work); 25 | //增加一条作业记录 26 | public boolean deleteWork(int id); 27 | //修改一条作业记录 28 | public boolean updateWork(Work work); 29 | //查询一条作业记录 30 | public Work getWork(int id); 31 | //查询作业表所有的数据 32 | public List getAllWork(); 33 | 34 | */ 35 | } 36 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/IStudentDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.CheckWork; 6 | import wms.entity.Notice; 7 | import wms.entity.Student; 8 | import wms.entity.Work; 9 | 10 | public interface IStudentDao { 11 | 12 | //*********管理员用到的方法************************************************************ 13 | //增加一条学生记录 14 | public void addStudent(Student student); 15 | //删除一条学生记录 16 | public boolean deleteStudent(String id); 17 | //修改一条学生记录 18 | public boolean updateStudent(Student student); 19 | //查询一条学生记录 20 | public Student getStudent(int id); 21 | //查询学生表所有的数据 22 | public List getAllStudent(); 23 | 24 | 25 | //*********登录用到的方法************************************************************ 26 | //获得一个学生对象 -->(用于登录验证) 27 | public Student getStudentLogin(String account); 28 | 29 | 30 | //*********学生用到的方法************************************************************ 31 | //修改一个学生姓名 32 | public boolean updateStudentName(Student student); 33 | 34 | //修改一个学生的密码 35 | public boolean updateStudentPassword(Student student); 36 | //获得学生的公告 37 | public List getAllNotice(String c_id); 38 | //获得学生的所有作业 39 | public List getAllWork(String w_c_id); 40 | //获得学生的作业批改状态 41 | public boolean getCheckWorkStatus(int ch_w_id,String s_account); 42 | //获得作业的教师姓名 43 | public String getWork_TeacherName(String t_account); 44 | //获得批阅列表 45 | public List getAllCheckWork(String s_account); 46 | //获得已提交作业 47 | public Work getWorkBycheckwork(int ch_w_id); 48 | 49 | 50 | 51 | //根据学号获取班级号(上传作业,学号-->班级号-->作业主题) 52 | public String getClazzBySno(String Sno); 53 | 54 | public String getTeacherNameByAccount(String t_account); 55 | //***************教师用到的方法****************************************** 56 | //通过班级号查询一条学生记录 57 | public List getStudentByCLno(String CLno); 58 | 59 | } 60 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/ITeacherDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Teacher; 6 | 7 | public interface ITeacherDao { 8 | 9 | //*********管理员用到的方法************************************* 10 | //增加一条教师记录 11 | public void addTeacher(Teacher teacher); 12 | //删除一条教师记录 13 | public boolean deleteTeacher(String id); 14 | //修改一条教师记录 15 | public boolean updateTeacher(Teacher teacher); 16 | //查询一条教师记录 17 | public Teacher getTeacher(int id); 18 | //查询教师表所有的数据 19 | public List getAllTeacher(); 20 | 21 | 22 | //修改教师账号 23 | public boolean updateTeacherAccount(int id, String account); 24 | //修改教师姓名 25 | public boolean updateTeacherName(int id, String name); 26 | //修改教师密码 27 | public boolean updateTeacherPassword(int id, String password); 28 | 29 | 30 | 31 | //*********登录用到的方法************************************* 32 | //获得一个教师对象 -->(用于登录验证) 33 | public Teacher getTeacherLogin(String account); 34 | 35 | 36 | //*********教师用到的方法************************************* 37 | //修改一条教师姓名 38 | public boolean updateTeacherName(Teacher teacher); 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/IWorkDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Work; 6 | 7 | 8 | public interface IWorkDao { 9 | 10 | //*********作业用到的方法************************************* 11 | //增加一条作业记录 12 | public void addWork(Work work); 13 | //增加一条作业记录 14 | public boolean deleteWork(int id); 15 | //修改一条作业记录 16 | public boolean updateWork(Work work); 17 | //查询一条作业记录 18 | public Work getWork(int id); 19 | //查询作业表所有的数据 20 | public List getAllWork(); 21 | 22 | 23 | //*********学生用到的方法************************************* 24 | public Work getWorkByWtitle(String Wtitle); 25 | 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/ManagerDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.hibernate.Query; 6 | import org.hibernate.SessionFactory; 7 | 8 | import wms.entity.Manager; 9 | 10 | public class ManagerDao implements IManagerDao{ 11 | 12 | //引入SessionFactory变量,SessionFactory接口负责初始化Hibernate。它充当数据存储源的代理,并负责创建Session对象 13 | private SessionFactory sessionFactory; 14 | 15 | public void setSessionFactory(SessionFactory sessionFactory) { 16 | this.sessionFactory = sessionFactory; 17 | } 18 | 19 | //*********登录用到的方法************************************* 20 | //获得一个管理员对象 -->(用于登录验证) 21 | public Manager getManagerLogin(String account){ 22 | String hql = "from Manager m where m.m_account=?"; 23 | Query query = sessionFactory.openSession().createQuery(hql).setString(0,account); 24 | return (Manager)query.uniqueResult(); 25 | } 26 | 27 | //*********管理员用到的方法************************************* 28 | @Override 29 | public List getAllManager() { //查询管理员表所有的数据 30 | String hql = "from Manager"; 31 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 32 | return query.list(); 33 | } 34 | 35 | @Override 36 | public Manager getManagerByName(String name) { //查询一条管理员记录----通过名字 37 | String hql = "from Manager m where m.m_name = ?"; 38 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 39 | query.setString(0, name); 40 | return (Manager) query.uniqueResult(); 41 | } 42 | 43 | @Override 44 | public Manager getManagerById(int id) { //查询一条管理员记录----通过id 45 | String hql = "from Manager m where m.id = ?"; 46 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 47 | query.setInteger(0, id); 48 | return (Manager) query.uniqueResult(); 49 | } 50 | 51 | @Override 52 | public boolean updateManagerAccount(int id, String account) { //修改管理员账号 53 | String hql = "update Manager m set m.m_account=? where m.id=? "; 54 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 55 | query.setString(0, account); 56 | query.setInteger(1, id); 57 | return (query.executeUpdate()>0); 58 | } 59 | 60 | @Override 61 | public boolean updateManagerName(int id, String name) { //修改管理员姓名 62 | String hql = "update Manager m set m.m_name =? where m.id=? "; 63 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 64 | query.setString(0, name); 65 | query.setInteger(1, id); 66 | return (query.executeUpdate()>0); 67 | } 68 | 69 | @Override 70 | public boolean updateManagerPassword(int id, String password) { //修改管理员密码 71 | String hql = "update Manager m set m.m_password=? where m.id=? "; 72 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 73 | query.setString(0, password); 74 | query.setInteger(1, id); 75 | return (query.executeUpdate()>0); 76 | } 77 | 78 | 79 | 80 | } 81 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/NoticeDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.hibernate.Query; 6 | import org.hibernate.SessionFactory; 7 | 8 | import wms.entity.Notice; 9 | 10 | public class NoticeDao implements INoticeDao{ 11 | 12 | //引入SessionFactory变量,SessionFactory接口负责初始化Hibernate。它充当数据存储源的代理,并负责创建Session对象 13 | private SessionFactory sessionFactory; 14 | 15 | public void setSessionFactory(SessionFactory sessionFactory) { 16 | this.sessionFactory = sessionFactory; 17 | } 18 | 19 | @Override 20 | public void addNotice(Notice notice) { 21 | // TODO Auto-generated method stub 22 | sessionFactory.getCurrentSession().save(notice); 23 | } 24 | 25 | @Override 26 | public boolean deleteNotice(int id) { 27 | // TODO Auto-generated method stub 28 | String hql = "delete Notice n where n.nt_id = ?"; 29 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 30 | query.setInteger(0, id); 31 | 32 | return (query.executeUpdate()>0); //大于0,删除成功 33 | } 34 | 35 | @Override 36 | public boolean updateNotice(Notice notice) { 37 | // TODO Auto-generated method stub 38 | String hql = "update Notice n set n.nt_title=?, n.nt_content=?, n.nt_time=?, n.nt_t_account=? ,n.nt_c_id=? where n.nt_id=?"; 39 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 40 | query.setString(0, notice.getNt_title()); 41 | query.setString(1, notice.getNt_content()); 42 | query.setString(2, notice.getNt_time()); 43 | query.setString(3, notice.getNt_t_account()); 44 | query.setString(4, notice.getNt_c_id()); 45 | query.setInteger(5, notice.getNt_id()); 46 | return (query.executeUpdate()>0); 47 | } 48 | 49 | @Override 50 | public Notice getNotice(int id) { 51 | // TODO Auto-generated method stub 52 | String hql = "from Notice n where n.nt_id = ?"; 53 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 54 | query.setInteger(0, id); 55 | 56 | return (Notice) query.uniqueResult(); 57 | } 58 | 59 | @Override 60 | public List getAllNotice() { 61 | // TODO Auto-generated method stub 62 | String hql = "from Notice"; 63 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 64 | 65 | return query.list(); 66 | } 67 | 68 | public List getNoticeByTid(String t_account){ 69 | System.out.println("t_account123:"+t_account); 70 | String hql = "from Notice n where n.nt_t_account=?"; 71 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 72 | query.setString(0, t_account); 73 | List notice = query.list(); 74 | for( int i=0;i0); //大于0,删除成功 31 | } 32 | 33 | @Override 34 | public boolean updateTeacher(Teacher teacher) {//修改教师信息,hql语句 35 | System.out.println("管理员--教师信息--修改:"+teacher.getId()+teacher.getT_account()+teacher.getT_name()+teacher.getT_sex()+teacher.getT_dept()+teacher.getT_password()); 36 | String hql = "update Teacher t set t.t_account=?, t.t_name=?, t.t_sex=?, t.t_dept=?, t.t_password=? where t.id=?"; 37 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 38 | query.setString(0, teacher.getT_account()); 39 | query.setString(1, teacher.getT_name()); 40 | query.setString(2, teacher.getT_sex()); 41 | query.setString(3, teacher.getT_dept()); 42 | query.setString(4, teacher.getT_password()); 43 | query.setInteger(5, teacher.getId()); 44 | return (query.executeUpdate()>0); 45 | } 46 | 47 | @Override 48 | public Teacher getTeacher(int id) {//根据id得到单个教师 49 | String hql = "from Teacher t where t.id = ?"; 50 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 51 | query.setInteger(0, id); 52 | 53 | return (Teacher) query.uniqueResult(); 54 | } 55 | 56 | @Override 57 | public List getAllTeacher() {//查找所有教师信息 58 | String hql = "from Teacher"; 59 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 60 | 61 | return query.list(); 62 | } 63 | 64 | 65 | @Override 66 | public boolean updateTeacherAccount(int id, String account) { //修改教师账号 67 | // TODO Auto-generated method stub 68 | String hql = "update Teacher t set t.t_account=? where t.id=? "; 69 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 70 | query.setString(0, account); 71 | query.setInteger(1, id); 72 | return (query.executeUpdate()>0); 73 | } 74 | 75 | @Override 76 | public boolean updateTeacherName(int id, String name) { //修改教师姓名 77 | // TODO Auto-generated method stub 78 | String hql = "update Teacher t set t.t_name =? where t.id=? "; 79 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 80 | query.setString(0, name); 81 | query.setInteger(1, id); 82 | return (query.executeUpdate()>0); 83 | } 84 | 85 | @Override 86 | public boolean updateTeacherPassword(int id, String password) { //修改教师密码 87 | // TODO Auto-generated method stub 88 | String hql = "update Teacher t set t.t_password=? where t.id=? "; 89 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 90 | query.setString(0, password); 91 | query.setInteger(1, id); 92 | return (query.executeUpdate()>0); 93 | } 94 | 95 | 96 | @Override 97 | public boolean updateTeacherName(Teacher teacher) {//修改一条教师姓名 98 | String hql = "update Teacher t set t.t_name=? where t.t_account=?"; 99 | Query query = sessionFactory.openSession().createQuery(hql); 100 | query.setString(0, teacher.getT_name()); 101 | query.setString(1, teacher.getT_account()); 102 | return (query.executeUpdate() > 0); 103 | } 104 | 105 | @Override 106 | public Teacher getTeacherLogin(String account) {//获得一个教师对象 -->(用于登录验证) 107 | String hql = "from Teacher t where t.t_account=?"; 108 | Query query = sessionFactory.openSession().createQuery(hql).setString(0,account); 109 | return (Teacher)query.uniqueResult(); 110 | } 111 | 112 | } 113 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/dao/WorkDao.java: -------------------------------------------------------------------------------- 1 | package wms.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.hibernate.Query; 6 | import org.hibernate.SQLQuery; 7 | import org.hibernate.SessionFactory; 8 | 9 | import wms.entity.Teacher; 10 | import wms.entity.Work; 11 | 12 | public class WorkDao implements IWorkDao { 13 | 14 | //引入SessionFactory变量,SessionFactory接口负责初始化Hibernate。它充当数据存储源的代理,并负责创建Session对象 15 | private SessionFactory sessionFactory; 16 | 17 | public void setSessionFactory(SessionFactory sessionFactory) { 18 | this.sessionFactory = sessionFactory; 19 | } 20 | 21 | @Override 22 | public void addWork(Work work) { 23 | sessionFactory.getCurrentSession().save(work); 24 | } 25 | 26 | @Override 27 | public boolean deleteWork(int id) { 28 | String hql = "delete Work w where w.w_id = ?"; 29 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 30 | query.setInteger(0, id); 31 | 32 | return (query.executeUpdate()>0); //大于0,删除成功 33 | } 34 | 35 | @Override 36 | public boolean updateWork(Work work) { 37 | // private int w_id; //作业号 38 | // private String w_title; //主题 39 | // private String w_content; //内容 40 | // private String w_deadline; //截止时间 41 | // private String w_course; //课程号 42 | // private String w_t_account; //教师号 43 | // private String w_c_id; //班级号 44 | //System.out.println("222222:"+work.getId()+teacher.getT_account()+teacher.getT_name()+teacher.getT_sex()+teacher.getT_dept()+teacher.getT_password()); 45 | String hql = "update Work w set w.w_title=?, w.w_content=?, w.w_deadline=?, w.w_course=?, w.w_t_account=? ,w.w_c_id=? where w.w_id=?"; 46 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 47 | query.setString(0, work.getW_title()); 48 | query.setString(1, work.getW_content()); 49 | query.setString(2, work.getW_deadline()); 50 | query.setString(3, work.getW_course()); 51 | query.setString(4, work.getW_t_account()); 52 | query.setString(5,work.getW_c_id()); 53 | query.setInteger(6, work.getW_id()); 54 | return (query.executeUpdate()>0); 55 | } 56 | 57 | @Override 58 | public Work getWork(int id) { 59 | String hql = "from Work w where w.w_id = ?"; 60 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 61 | query.setInteger(0, id); 62 | 63 | return (Work) query.uniqueResult(); 64 | } 65 | 66 | @Override 67 | public List getAllWork() { 68 | String hql = "from Work"; 69 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 70 | 71 | return query.list(); 72 | } 73 | 74 | //*********学生用到的方法************************************* 75 | @Override 76 | public Work getWorkByWtitle(String Wtitle) { 77 | String hql = "from Work w where w.w_title=?"; 78 | Query query = sessionFactory.getCurrentSession().createQuery(hql); 79 | query.setString(0, Wtitle); 80 | return (Work) query.uniqueResult(); 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/CheckWork.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the checkwork detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/CheckWork.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class CheckWork {//作业批改表 4 | private int ch_id; //作业批改号 5 | private String ch_s_account;//学号 6 | private String ch_c_id; //班级号 7 | private int ch_w_id; //作业号 8 | private int ch_score; //得分 9 | private String ch_mark; //评语 10 | private java.sql.Timestamp ch_checkTime;//批改时间 11 | private java.sql.Timestamp ch_upTime; //提交时间 12 | private String ch_path; //答案 13 | public int getCh_id() { 14 | return ch_id; 15 | } 16 | public void setCh_id(int ch_id) { 17 | this.ch_id = ch_id; 18 | } 19 | public String getCh_s_account() { 20 | return ch_s_account; 21 | } 22 | public void setCh_s_account(String ch_s_account) { 23 | this.ch_s_account = ch_s_account; 24 | } 25 | public String getCh_c_id() { 26 | return ch_c_id; 27 | } 28 | public void setCh_c_id(String ch_c_id) { 29 | this.ch_c_id = ch_c_id; 30 | } 31 | public int getCh_w_id() { 32 | return ch_w_id; 33 | } 34 | public void setCh_w_id(int ch_w_id) { 35 | this.ch_w_id = ch_w_id; 36 | } 37 | public int getCh_score() { 38 | return ch_score; 39 | } 40 | public void setCh_score(int ch_score) { 41 | this.ch_score = ch_score; 42 | } 43 | public String getCh_mark() { 44 | return ch_mark; 45 | } 46 | public void setCh_mark(String ch_mark) { 47 | this.ch_mark = ch_mark; 48 | } 49 | public java.sql.Timestamp getCh_checkTime() { 50 | return ch_checkTime; 51 | } 52 | public void setCh_checkTime(java.sql.Timestamp ch_checkTime) { 53 | this.ch_checkTime = ch_checkTime; 54 | } 55 | public java.sql.Timestamp getCh_upTime() { 56 | return ch_upTime; 57 | } 58 | public void setCh_upTime(java.sql.Timestamp ch_upTime) { 59 | this.ch_upTime = ch_upTime; 60 | } 61 | public String getCh_path() { 62 | return ch_path; 63 | } 64 | public void setCh_path(String ch_path) { 65 | this.ch_path = ch_path; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Clazz.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the Clazz detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Clazz.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Clazz {//班级表 4 | private int id; //id号 5 | private String c_id; //班级号 6 | private int c_count; //人数 7 | 8 | public int getId() { 9 | return id; 10 | } 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | public String getC_id() { 15 | return c_id; 16 | } 17 | public void setC_id(String c_id) { 18 | this.c_id = c_id; 19 | } 20 | public int getC_count() { 21 | return c_count; 22 | } 23 | public void setC_count(int c_count) { 24 | this.c_count = c_count; 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Course.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the course detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Course.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Course {//课程表 4 | private int c_id; //id号 5 | private String c_name; //课程名 6 | private int c_credit; //学分 7 | public int getC_id() { 8 | return c_id; 9 | } 10 | public void setC_id(int c_id) { 11 | this.c_id = c_id; 12 | } 13 | public String getC_name() { 14 | return c_name; 15 | } 16 | public void setC_name(String c_name) { 17 | this.c_name = c_name; 18 | } 19 | public int getC_credit() { 20 | return c_credit; 21 | } 22 | public void setC_credit(int c_credit) { 23 | this.c_credit = c_credit; 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Manager.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the Manager detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Manager.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Manager {//管理员表 4 | private int id; //id号 5 | private String m_account; //管理员账号 6 | private String m_name; //姓名 7 | private String m_password; //密码 8 | 9 | public int getId() { 10 | return id; 11 | } 12 | public void setId(int id) { 13 | this.id = id; 14 | } 15 | public String getM_account() { 16 | return m_account; 17 | } 18 | public void setM_account(String m_account) { 19 | this.m_account = m_account; 20 | } 21 | public String getM_name() { 22 | return m_name; 23 | } 24 | public void setM_name(String m_name) { 25 | this.m_name = m_name; 26 | } 27 | public String getM_password() { 28 | return m_password; 29 | } 30 | public void setM_password(String m_password) { 31 | this.m_password = m_password; 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Notice.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the notice detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Notice.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Notice {//公告表 4 | private int nt_id; //公告号 5 | private String nt_title; //主题 6 | private String nt_content; //内容 7 | private String nt_time; //发布时间 8 | private String nt_t_account;//教师号 9 | private String nt_c_id; //班级号 10 | public int getNt_id() { 11 | return nt_id; 12 | } 13 | public void setNt_id(int nt_id) { 14 | this.nt_id = nt_id; 15 | } 16 | public String getNt_title() { 17 | return nt_title; 18 | } 19 | public void setNt_title(String nt_title) { 20 | this.nt_title = nt_title; 21 | } 22 | public String getNt_content() { 23 | return nt_content; 24 | } 25 | public void setNt_content(String nt_content) { 26 | this.nt_content = nt_content; 27 | } 28 | 29 | public String getNt_time() { 30 | return nt_time; 31 | } 32 | public void setNt_time(String nt_time) { 33 | this.nt_time = nt_time; 34 | } 35 | public String getNt_t_account() { 36 | return nt_t_account; 37 | } 38 | public void setNt_t_account(String nt_t_account) { 39 | this.nt_t_account = nt_t_account; 40 | } 41 | public String getNt_c_id() { 42 | return nt_c_id; 43 | } 44 | public void setNt_c_id(String nt_c_id) { 45 | this.nt_c_id = nt_c_id; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Student.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the student detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Student.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Student {//学生表 4 | private int id; //id号 5 | private String s_account; //学号 6 | private String s_name; //姓名 7 | private String s_sex; //性别 8 | private String s_c_id; //班级号 9 | private String s_password; //密码 10 | private String s_dept; //所在系 11 | 12 | public int getId() { 13 | return id; 14 | } 15 | public void setId(int id) { 16 | this.id = id; 17 | } 18 | public String getS_account() { 19 | return s_account; 20 | } 21 | public void setS_account(String s_account) { 22 | this.s_account = s_account; 23 | } 24 | public String getS_name() { 25 | return s_name; 26 | } 27 | public void setS_name(String s_name) { 28 | this.s_name = s_name; 29 | } 30 | public String getS_sex() { 31 | return s_sex; 32 | } 33 | public void setS_sex(String s_sex) { 34 | this.s_sex = s_sex; 35 | } 36 | public String getS_c_id() { 37 | return s_c_id; 38 | } 39 | public void setS_c_id(String s_c_id) { 40 | this.s_c_id = s_c_id; 41 | } 42 | public String getS_password() { 43 | return s_password; 44 | } 45 | public void setS_password(String s_password) { 46 | this.s_password = s_password; 47 | } 48 | public String getS_dept() { 49 | return s_dept; 50 | } 51 | public void setS_dept(String s_dept) { 52 | this.s_dept = s_dept; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Teacher.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the teacher detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Teacher.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Teacher {//教师表 4 | private int id; //id号 5 | private String t_account; //教师号 6 | private String t_name; //教师名 7 | private String t_sex; //性别 8 | private String t_dept; //所在系 9 | private String t_password; //密码 10 | 11 | public int getId() { 12 | return id; 13 | } 14 | public void setId(int id) { 15 | this.id = id; 16 | } 17 | public String getT_account() { 18 | return t_account; 19 | } 20 | public void setT_account(String t_account) { 21 | this.t_account = t_account; 22 | } 23 | public String getT_name() { 24 | return t_name; 25 | } 26 | public void setT_name(String t_name) { 27 | this.t_name = t_name; 28 | } 29 | public String getT_sex() { 30 | return t_sex; 31 | } 32 | public void setT_sex(String t_sex) { 33 | this.t_sex = t_sex; 34 | } 35 | public String getT_dept() { 36 | return t_dept; 37 | } 38 | public void setT_dept(String t_dept) { 39 | this.t_dept = t_dept; 40 | } 41 | public String getT_password() { 42 | return t_password; 43 | } 44 | public void setT_password(String t_password) { 45 | this.t_password = t_password; 46 | } 47 | 48 | 49 | } -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Work.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | This class contains the work detail. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/entity/Work.java: -------------------------------------------------------------------------------- 1 | package wms.entity; 2 | 3 | public class Work {//作业表 4 | private int w_id; //作业号 5 | private String w_title; //主题 6 | private String w_content; //内容 7 | private String w_deadline; //截止时间 8 | private String w_course; //课程号 9 | private String w_t_account; //教师号 10 | private String w_c_id; //班级号 11 | public int getW_id() { 12 | return w_id; 13 | } 14 | public void setW_id(int w_id) { 15 | this.w_id = w_id; 16 | } 17 | public String getW_title() { 18 | return w_title; 19 | } 20 | public void setW_title(String w_title) { 21 | this.w_title = w_title; 22 | } 23 | public String getW_content() { 24 | return w_content; 25 | } 26 | public void setW_content(String w_content) { 27 | this.w_content = w_content; 28 | } 29 | public String getW_deadline() { 30 | return w_deadline; 31 | } 32 | public void setW_deadline(String w_deadline) { 33 | this.w_deadline = w_deadline; 34 | } 35 | public String getW_course() { 36 | return w_course; 37 | } 38 | public void setW_course(String w_course) { 39 | this.w_course = w_course; 40 | } 41 | public String getW_t_account() { 42 | return w_t_account; 43 | } 44 | public void setW_t_account(String w_t_account) { 45 | this.w_t_account = w_t_account; 46 | } 47 | public String getW_c_id() { 48 | return w_c_id; 49 | } 50 | public void setW_c_id(String w_c_id) { 51 | this.w_c_id = w_c_id; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/hibernate/hibernate.cfg.test.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/CheckWorkManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.sql.Timestamp; 4 | import java.util.List; 5 | 6 | import wms.dao.ICheckWorkDao; 7 | import wms.dao.IWorkDao; 8 | import wms.entity.CheckWork; 9 | 10 | public class CheckWorkManager implements ICheckWorkManager { 11 | 12 | private ICheckWorkDao checkWorkDao; //引入教师dao层接口 13 | 14 | public void setCheckWorkDao(ICheckWorkDao checkWorkDao) { 15 | this.checkWorkDao = checkWorkDao; 16 | } 17 | @Override 18 | public void addCheckWork(CheckWork checkwork) { 19 | // TODO Auto-generated method stub 20 | checkWorkDao.addCheckWork(checkwork); 21 | } 22 | 23 | @Override 24 | public boolean deleteCheckWork(int id) { 25 | // TODO Auto-generated method stub 26 | return checkWorkDao.deleteCheckWork(id); 27 | } 28 | 29 | @Override 30 | public boolean updateCheckWork(CheckWork checkwork) { 31 | // TODO Auto-generated method stub 32 | return checkWorkDao.updateCheckWork(checkwork); 33 | } 34 | 35 | @Override 36 | public CheckWork getCheckWork(int id) { 37 | // TODO Auto-generated method stub 38 | return checkWorkDao.getCheckWork(id); 39 | } 40 | 41 | @Override 42 | public List getAllCheckWork() { 43 | // TODO Auto-generated method stub 44 | return checkWorkDao.getAllCheckWork(); 45 | } 46 | 47 | @Override 48 | public List getCheckWorkByWnoClno(int wno, String CLno) { 49 | return checkWorkDao.getCheckWorkByWnoClno(wno, CLno); 50 | } 51 | 52 | //*********学生用到的方法************************************* 53 | //上传文件时向提交表(CheckWork)中插入数据 54 | @Override 55 | public boolean addCheckWorkByFile(String Sno, String clazz, int Wno, String Uptime, String path) { 56 | return checkWorkDao.addCheckWorkByFile(Sno, clazz, Wno, Uptime, path); 57 | } 58 | 59 | 60 | 61 | //批改-添加评语和分数 62 | @Override 63 | public boolean Check(String ch_mark, int ch_score, int ch_id) { 64 | return checkWorkDao.Check(ch_mark, ch_score, ch_id); 65 | } 66 | 67 | //通过作业号和学号查找一条批改作业记录 68 | public CheckWork getCheckWorkByWnoSno(int wno, String Sno){ 69 | return checkWorkDao.getCheckWorkByWnoSno(wno, Sno); 70 | } 71 | 72 | //上传文件时向提交表(CheckWork)中更新数据 73 | public boolean updateCheckWorkByFile(String Sno,String clazz, int Wno, String Uptime, String path){ 74 | return checkWorkDao.updateCheckWorkByFile(Sno, clazz, Wno, Uptime, path); 75 | } 76 | 77 | 78 | /*//通过id号判断是否有成绩和评语,若有则表示教师已批改过,否则未批改过。 79 | public boolean getCheckResult(int id){ 80 | return checkWorkDao.getCheckResult(id); 81 | }*/ 82 | 83 | } 84 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/ClazzManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.IClazzDao; 6 | import wms.entity.Clazz; 7 | 8 | public class ClazzManager implements IClazzManager { 9 | 10 | private IClazzDao clazzDao; 11 | 12 | public void setClazzDao(IClazzDao clazzDao) { 13 | this.clazzDao = clazzDao; 14 | } 15 | @Override 16 | public List getAllClazz() { 17 | // TODO Auto-generated method stub 18 | 19 | return clazzDao.getAllClazz(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/CourseManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.ICourseDao; 6 | import wms.entity.Course; 7 | 8 | public class CourseManager implements ICourseManager{ 9 | 10 | private ICourseDao courseDao; 11 | 12 | 13 | public void setCourseDao(ICourseDao courseDao) { 14 | this.courseDao = courseDao; 15 | } 16 | 17 | @Override 18 | public void addCourse(Course course) { 19 | courseDao.addCourse(course); 20 | } 21 | 22 | @Override 23 | public boolean deleteCourse(int id) { 24 | return courseDao.deleteCourse(id); 25 | } 26 | 27 | @Override 28 | public boolean updateCourse(Course course) { 29 | return courseDao.updateCourse(course); 30 | } 31 | 32 | @Override 33 | public Course getCourse(int id) { 34 | return courseDao.getCourse(id); 35 | } 36 | 37 | @Override 38 | public List getAllCourse() { 39 | return courseDao.getAllCourse(); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/ICheckWorkManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.CheckWork; 6 | 7 | public interface ICheckWorkManager { 8 | 9 | //*********教师用到的方法************************************* 10 | //增加一条作业记录 11 | public void addCheckWork(CheckWork checkwork); 12 | //增加一条作业记录 13 | public boolean deleteCheckWork(int id); 14 | //修改一条作业记录 15 | public boolean updateCheckWork(CheckWork checkwork); 16 | //查询一条作业记录 17 | public CheckWork getCheckWork(int id); 18 | //查询作业表所有的数据 19 | public List getAllCheckWork(); 20 | 21 | //通过作业号和班级号查找一条批改作业记录 22 | public List getCheckWorkByWnoClno(int wno, String CLno); 23 | 24 | 25 | 26 | //批改-添加评语和分数 27 | public boolean Check(String ch_mark,int ch_score,int ch_id); 28 | 29 | 30 | //*********学生用到的方法************************************* 31 | //上传文件时向提交表(CheckWork)中插入数据 32 | public boolean addCheckWorkByFile(String Sno,String clazz, int Wno, String Uptime, String path); 33 | 34 | //上传文件时向提交表(CheckWork)中更新数据 35 | public boolean updateCheckWorkByFile(String Sno,String clazz, int Wno, String Uptime, String path); 36 | 37 | 38 | //通过作业号和学号查找一条批改作业记录 39 | public CheckWork getCheckWorkByWnoSno(int wno, String Sno); 40 | 41 | /*//通过id号判断是否有成绩和评语,若有则表示教师已批改过,否则未批改过。 42 | public boolean getCheckResult(int id);*/ 43 | 44 | } 45 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/IClazzManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Clazz; 6 | 7 | public interface IClazzManager { 8 | 9 | //*********教师用到的方法************************************* 10 | //获取全部班级 11 | public List getAllClazz(); 12 | } 13 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/ICourseManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Course; 6 | 7 | public interface ICourseManager { 8 | 9 | //*********课程用到的方法************************************* 10 | //增加一条课程记录 11 | public void addCourse(Course course); 12 | //删除一条课程记录 13 | public boolean deleteCourse(int id); 14 | //修改一条课程记录 15 | public boolean updateCourse(Course course); 16 | //查询一条课程记录 17 | public Course getCourse(int id); 18 | //查询课程表所有的数据 19 | public List getAllCourse(); 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/IManagerService.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Manager; 6 | 7 | public interface IManagerService { 8 | 9 | //*********登录用到的方法************************************* 10 | //获得一个管理员对象 -->(用于登录验证) 11 | public Manager getManagerLogin(String account); 12 | 13 | 14 | //*********管理员用到的方法************************************* 15 | //查询管理员表所有的数据 16 | public List getAllManager(); 17 | //查询一条管理员记录----通过名字 18 | public Manager getManagerByName(String name); 19 | //查询一条管理员记录----通过id 20 | public Manager getManagerById(int id); 21 | //修改管理员账号 22 | public boolean updateManagerAccount(int id, String account); 23 | //修改管理员姓名 24 | public boolean updateManagerName(int id, String name); 25 | //修改管理员密码 26 | public boolean updateManagerPassword(int id, String password); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/INoticeManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Notice; 6 | 7 | public interface INoticeManager { 8 | 9 | //*********教师用到的方法************************************* 10 | //增加一条作业记录 11 | public void addNotice(Notice notice); 12 | //增加一条作业记录 13 | public boolean deleteNotice(int id); 14 | //修改一条作业记录 15 | public boolean updateNotice(Notice notice); 16 | //查询一条作业记录 17 | public Notice getNotice(int id); 18 | //查询作业表所有的数据 19 | public List getAllNotice(); 20 | //根据教师账号查询数据 21 | public List getNoticeByTid(String t_id); 22 | } 23 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/IStudentManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.CheckWork; 6 | import wms.entity.Notice; 7 | import wms.entity.Student; 8 | import wms.entity.Work; 9 | 10 | public interface IStudentManager { 11 | 12 | //*********管理员用到的方法************************************* 13 | //增加一条学生记录 14 | public void addStudent(Student student); 15 | //删除一条学生记录 16 | public boolean deleteStudent(String id); 17 | //修改一条学生记录 18 | public boolean updateStudent(Student student); 19 | //查询一条学生记录 20 | public Student getStudent(int id); 21 | //查询学生表所有的数据 22 | public List getAllStudent(); 23 | 24 | 25 | //*********登录用到的方法************************************************************ 26 | //获得一个学生对象 -->(用于登录验证) 27 | public Student getStudentLogin(String account); 28 | 29 | //*********学生用到的方法************************************* 30 | //修改一条学生姓名 31 | public boolean updateStudentName(Student student); 32 | 33 | 34 | //修改一个学生的密码 35 | public boolean updateStudentPassword(Student student); 36 | //获得学生的公告 37 | public List getAllNotice(String c_id); 38 | //获得学生的所有作业 39 | public List getAllWork(String w_c_id); 40 | //获得学生的作业批改状态 41 | public boolean getCheckWorkStatus(int ch_w_id,String s_account); 42 | //获得作业的教师姓名 43 | public String getWork_TeacherName(String t_account); 44 | //获得批阅列表 45 | public List getAllCheckWork(String s_account); 46 | //获得已提交作业 47 | public Work getWorkBycheckwork(int ch_w_id); 48 | 49 | public String getTeacherNameByAccount(String t_account); 50 | 51 | //根据学号获取班级号(上传作业,学号-->班级号-->作业主题) 52 | public String getClazzBySno(String Sno); 53 | 54 | 55 | 56 | //***************教师用到的方法****************************************** 57 | //通过班级号查询一条学生记录 58 | public List getStudentByCLno(String CLno); 59 | 60 | } 61 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/ITeacherManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Teacher; 6 | 7 | public interface ITeacherManager { 8 | 9 | //*********管理员用到的方法************************************* 10 | //增加一条教师记录 11 | public void addTeacher(Teacher teacher); 12 | //删除一条教师记录 13 | public boolean deleteTeacher(String id); 14 | //修改一条教师记录 15 | public boolean updateTeacher(Teacher teacher); 16 | //查询一条教师记录 17 | public Teacher getTeacher(int id); 18 | //查询教师表所有的数据 19 | public List getAllTeacher(); 20 | 21 | 22 | //修改教师账号 23 | public boolean updateTeacherAccount(int id, String account); 24 | //修改教师姓名 25 | public boolean updateTeacherName(int id, String name); 26 | //修改教师密码 27 | public boolean updateTeacherPassword(int id, String password); 28 | 29 | //*********教师用到的方法************************************* 30 | //修改一条教师姓名 31 | public boolean updateTeacherName(Teacher teacher); 32 | //获得一个教师对象 -->(用于登录验证) 33 | public Teacher getTeacherLogin(String account); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/IWorkManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.entity.Work; 6 | 7 | public interface IWorkManager { 8 | 9 | //*********作业用到的方法************************************* 10 | //增加一条作业记录 11 | public void addWork(Work work); 12 | //增加一条作业记录 13 | public boolean deleteWork(int id); 14 | //修改一条作业记录 15 | public boolean updateWork(Work work); 16 | //查询一条作业记录 17 | public Work getWork(int id); 18 | //查询作业表所有的数据 19 | public List getAllWork(); 20 | 21 | 22 | //*********学生用到的方法************************************* 23 | public Work getWorkByWtitle(String Wtitle); 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/ManagerService.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.IManagerDao; 6 | import wms.entity.Manager; 7 | 8 | public class ManagerService implements IManagerService{ 9 | 10 | private IManagerDao managerDao; //引入学生dao层接口 11 | 12 | public void setManagerDao(IManagerDao managerDao) { 13 | this.managerDao = managerDao; 14 | } 15 | 16 | //*********登录用到的方法************************************* 17 | @Override 18 | public Manager getManagerLogin(String account) { //获得一个管理员对象 -->(用于登录验证) 19 | return managerDao.getManagerLogin(account); 20 | } 21 | 22 | 23 | //*********管理员用到的方法************************************* 24 | @Override 25 | public List getAllManager() { //查询管理员表所有的数据 26 | return managerDao.getAllManager(); 27 | } 28 | 29 | @Override 30 | public Manager getManagerByName(String name) { //查询一条管理员记录----通过名字 31 | return managerDao.getManagerByName(name); 32 | } 33 | 34 | @Override 35 | public Manager getManagerById(int id) { //查询一条管理员记录----通过id 36 | return managerDao.getManagerById(id); 37 | } 38 | 39 | @Override 40 | public boolean updateManagerAccount(int id, String account) { //修改管理员账号 41 | return managerDao.updateManagerAccount(id, account); 42 | } 43 | 44 | @Override 45 | public boolean updateManagerName(int id, String name) { //修改管理员姓名 46 | return managerDao.updateManagerName(id, name); 47 | } 48 | 49 | @Override 50 | public boolean updateManagerPassword(int id, String password) { //修改管理员密码 51 | return managerDao.updateManagerPassword(id, password); 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/NoticeManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.INoticeDao; 6 | import wms.entity.Notice; 7 | 8 | public class NoticeManager implements INoticeManager{ 9 | 10 | private INoticeDao noticeDao; //引入教师dao层接口 11 | 12 | public void setNoticeDao(INoticeDao noticeDao) { 13 | this.noticeDao = noticeDao; 14 | } 15 | 16 | @Override 17 | public void addNotice(Notice notice) { 18 | // TODO Auto-generated method stub 19 | noticeDao.addNotice(notice); 20 | } 21 | 22 | @Override 23 | public boolean deleteNotice(int id) { 24 | // TODO Auto-generated method stub 25 | return noticeDao.deleteNotice(id); 26 | } 27 | 28 | @Override 29 | public boolean updateNotice(Notice notice) { 30 | // TODO Auto-generated method stub 31 | return noticeDao.updateNotice(notice); 32 | } 33 | 34 | @Override 35 | public Notice getNotice(int id) { 36 | // TODO Auto-generated method stub 37 | return noticeDao.getNotice(id); 38 | } 39 | 40 | @Override 41 | public List getAllNotice() { 42 | // TODO Auto-generated method stub 43 | return noticeDao.getAllNotice(); 44 | } 45 | 46 | public List getNoticeByTid(String t_id){ 47 | 48 | return noticeDao.getNoticeByTid(t_id); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/StudentManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.IStudentDao; 6 | import wms.entity.CheckWork; 7 | import wms.entity.Notice; 8 | import wms.entity.Student; 9 | import wms.entity.Work; 10 | 11 | public class StudentManager implements IStudentManager{ 12 | 13 | private IStudentDao studentDao; //引入学生dao层接口 14 | 15 | public void setStudentDao(IStudentDao studentDao) { 16 | this.studentDao = studentDao; 17 | } 18 | 19 | @Override 20 | public void addStudent(Student student) { 21 | studentDao.addStudent(student); 22 | } 23 | 24 | @Override 25 | public boolean deleteStudent(String id) { 26 | return studentDao.deleteStudent(id); 27 | } 28 | 29 | @Override 30 | public boolean updateStudent(Student student) { 31 | return studentDao.updateStudent(student); 32 | } 33 | 34 | @Override 35 | public Student getStudent(int id) { 36 | return studentDao.getStudent(id); 37 | } 38 | 39 | @Override 40 | public List getAllStudent() { 41 | return studentDao.getAllStudent(); 42 | } 43 | 44 | @Override 45 | public boolean updateStudentName(Student student) { 46 | return studentDao.updateStudentName(student); 47 | } 48 | 49 | @Override 50 | public Student getStudentLogin(String account) { 51 | return studentDao.getStudentLogin(account); 52 | } 53 | 54 | @Override 55 | public boolean updateStudentPassword(Student student) { 56 | return studentDao.updateStudentPassword(student); 57 | } 58 | 59 | @Override 60 | public List getAllNotice(String c_id) { 61 | return studentDao.getAllNotice(c_id); 62 | } 63 | 64 | @Override 65 | public List getAllWork(String w_c_id) { 66 | return studentDao.getAllWork(w_c_id); 67 | } 68 | 69 | @Override 70 | public boolean getCheckWorkStatus(int ch_w_id,String s_account) { 71 | return studentDao.getCheckWorkStatus(ch_w_id,s_account); 72 | } 73 | 74 | @Override 75 | public String getWork_TeacherName(String t_account) { 76 | return studentDao.getWork_TeacherName(t_account); 77 | } 78 | 79 | @Override 80 | public List getAllCheckWork(String s_account) { 81 | return studentDao.getAllCheckWork(s_account); 82 | } 83 | 84 | @Override 85 | public Work getWorkBycheckwork(int ch_w_id) { 86 | return studentDao.getWorkBycheckwork(ch_w_id); 87 | } 88 | 89 | @Override 90 | public List getStudentByCLno(String CLno) { 91 | return studentDao.getStudentByCLno(CLno); 92 | } 93 | 94 | @Override 95 | public String getTeacherNameByAccount(String t_account) { 96 | return studentDao.getTeacherNameByAccount(t_account); 97 | } 98 | 99 | @Override 100 | public String getClazzBySno(String Sno) { 101 | return studentDao.getClazzBySno(Sno); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/TeacherManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.ITeacherDao; 6 | import wms.entity.Teacher; 7 | 8 | public class TeacherManager implements ITeacherManager{ 9 | 10 | private ITeacherDao teacherDao; //引入教师dao层接口 11 | 12 | public void setTeacherDao(ITeacherDao teacherDao) { 13 | this.teacherDao = teacherDao; 14 | } 15 | 16 | @Override 17 | public void addTeacher(Teacher teacher) { 18 | teacherDao.addTeacher(teacher); 19 | } 20 | 21 | @Override 22 | public boolean deleteTeacher(String id) { 23 | return teacherDao.deleteTeacher(id); 24 | } 25 | 26 | @Override 27 | public boolean updateTeacher(Teacher teacher) { 28 | return teacherDao.updateTeacher(teacher); 29 | } 30 | 31 | @Override 32 | public Teacher getTeacher(int id) { 33 | return teacherDao.getTeacher(id); 34 | } 35 | 36 | @Override 37 | public List getAllTeacher() { 38 | return teacherDao.getAllTeacher(); 39 | } 40 | 41 | @Override 42 | public boolean updateTeacherName(Teacher teacher) { 43 | return teacherDao.updateTeacherName(teacher); 44 | } 45 | 46 | @Override 47 | public Teacher getTeacherLogin(String account) { 48 | return teacherDao.getTeacherLogin(account); 49 | } 50 | 51 | @Override 52 | public boolean updateTeacherAccount(int id, String account) { 53 | // TODO Auto-generated method stub 54 | return teacherDao.updateTeacherAccount(id, account); 55 | } 56 | 57 | @Override 58 | public boolean updateTeacherName(int id, String name) { 59 | // TODO Auto-generated method stub 60 | return teacherDao.updateTeacherName(id, name); 61 | } 62 | 63 | @Override 64 | public boolean updateTeacherPassword(int id, String password) { 65 | // TODO Auto-generated method stub 66 | return teacherDao.updateTeacherPassword(id, password); 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/service/WorkManager.java: -------------------------------------------------------------------------------- 1 | package wms.service; 2 | 3 | import java.util.List; 4 | 5 | import wms.dao.IWorkDao; 6 | import wms.entity.Work; 7 | 8 | public class WorkManager implements IWorkManager { 9 | 10 | private IWorkDao workDao; //引入作业dao层接口 11 | 12 | public void setWorkDao(IWorkDao workDao) { 13 | this.workDao = workDao; 14 | } 15 | 16 | @Override 17 | public void addWork(Work work) { 18 | workDao.addWork(work); 19 | } 20 | 21 | @Override 22 | public boolean deleteWork(int id) { 23 | return workDao.deleteWork(id); 24 | } 25 | 26 | @Override 27 | public boolean updateWork(Work work) { 28 | return workDao.updateWork(work); 29 | } 30 | 31 | @Override 32 | public Work getWork(int id) { 33 | return workDao.getWork(id); 34 | } 35 | 36 | @Override 37 | public List getAllWork() { 38 | return workDao.getAllWork(); 39 | } 40 | 41 | //*********学生用到的方法************************************* 42 | @Override 43 | public Work getWorkByWtitle(String Wtitle) { 44 | return workDao.getWorkByWtitle(Wtitle); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springCheckWorkBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springClazzBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springCourseBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springManagerBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springNoticeBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springStudentBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springTeacherBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WorkManageSystem/src/wms/spring/springWorkBean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | ]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /screenshots/FunctionalStructure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/FunctionalStructure.png -------------------------------------------------------------------------------- /screenshots/LoginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/LoginPage.png -------------------------------------------------------------------------------- /screenshots/ManagerModule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/ManagerModule.png -------------------------------------------------------------------------------- /screenshots/Spring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/Spring.png -------------------------------------------------------------------------------- /screenshots/SpringDao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/SpringDao.png -------------------------------------------------------------------------------- /screenshots/SpringMVC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/SpringMVC.png -------------------------------------------------------------------------------- /screenshots/StatisticalSubmissionPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/StatisticalSubmissionPage.png -------------------------------------------------------------------------------- /screenshots/StudentModule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/StudentModule.png -------------------------------------------------------------------------------- /screenshots/StudentPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/StudentPage.png -------------------------------------------------------------------------------- /screenshots/TeacherModule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/TeacherModule.png -------------------------------------------------------------------------------- /screenshots/TeacherOverviewPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenshix/SSH/a2d7dbd5b84d229562f000c7e8e362efd34aef68/screenshots/TeacherOverviewPage.png --------------------------------------------------------------------------------