From 7d60b75e689c9194ac631a830ddec9fce9176acb Mon Sep 17 00:00:00 2001 From: Elvis Date: Tue, 5 Jun 2018 11:24:14 +0800 Subject: [PATCH] 添加班级-1 --- WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp | 2 +- WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp | 8 ++++++-- resources/mybatis1/api/V1Mapper.xml | 3 ++- resources/mybatis1/sunvote/StudentMapper.xml | 53 ++++++++++++++++++++++++++++++----------------------- src/com/fh/controller/sunvote/student/StudentController.java | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- src/com/fh/controller/system/login/LoginController.java | 2 ++ src/com/fh/service/sunvote/student/StudentManager.java | 7 +++++++ src/com/fh/service/sunvote/student/impl/StudentService.java | 9 +++++++++ src/com/fh/util/Const.java | 1 + 11 files changed, 682 insertions(+), 28 deletions(-) create mode 100644 WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp diff --git a/WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp b/WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp new file mode 100644 index 0000000..7f97285 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp @@ -0,0 +1,226 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
学生姓名:
学籍号:
学号:
性别: + <%--
组号:
签到码:
家长姓名:
家长手机号:
键盘ID:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp b/WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp new file mode 100644 index 0000000..2656c84 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp @@ -0,0 +1,309 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号姓名性别组号签到码键盘ID操作
+ + ${vs.index+1}${var.NAME}${var.SEX == 1 ? "男":"女"}${var.GROUPID}${var.SIGN_NO}${var.KEYPAD_ID} + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp b/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp index f6b33e6..451ed96 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp @@ -78,7 +78,7 @@
- +
diff --git a/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp b/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp index 2a3d0f6..60c6221 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp @@ -93,8 +93,8 @@ -
-

${var.GRADE_NAME}${var.SUBJECT_NAME} ${var.CLASS_NAME}

+
测验
@@ -207,6 +207,10 @@ $(".test").click(function(){ $(".content_r").html(''); }) + + function chooseClass(classID,termID){ + $(".content_r").html(''); + } $(".analysis").click(function(){ $(".content_r").html(''); }) diff --git a/resources/mybatis1/api/V1Mapper.xml b/resources/mybatis1/api/V1Mapper.xml index c6a842c..c5a3cf2 100644 --- a/resources/mybatis1/api/V1Mapper.xml +++ b/resources/mybatis1/api/V1Mapper.xml @@ -133,7 +133,8 @@ sv_subject.CNAME AS SUBJECT_NAME, sv_subject.ID AS SUBJECT_ID, sv_school.`NAME` as SCHOOL_NAME, - sv_school.ID AS SCHOOL_ID + sv_school.ID AS SCHOOL_ID, + term.TERM_ID FROM sv_coursemanagement AS couse LEFT JOIN sv_term AS term ON couse.TERM_ID = term.TERM_ID diff --git a/resources/mybatis1/sunvote/StudentMapper.xml b/resources/mybatis1/sunvote/StudentMapper.xml index da4f162..745d4db 100644 --- a/resources/mybatis1/sunvote/StudentMapper.xml +++ b/resources/mybatis1/sunvote/StudentMapper.xml @@ -41,29 +41,9 @@ insert into - ( - NAME, - SNO, - NUMBER, - SEX, - GROUPID, - SIGN_NO, - PARENT_NAME, - PARENT_PHONE, - KEYPAD_ID, - REMARK - ) values ( - #{NAME}, - #{SNO}, - #{NUMBER}, - #{SEX}, - #{GROUPID}, - #{SIGN_NO}, - #{PARENT_NAME}, - #{PARENT_PHONE}, - #{KEYPAD_ID}, - #{REMARK} - ) + () + values + () @@ -123,6 +103,33 @@ + + +