Commit f8d83f1f6899cefd43d6f83e42037642439ebee9
1 parent
ee61a3f0
添加学校界面
Showing
4 changed files
with
109 additions
and
0 deletions
WebRoot/WEB-INF/jsp/sunvote/school/school_main.jsp
0 → 100644
1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | ||
2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | ||
3 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | ||
4 | +<% | ||
5 | + String path = request.getContextPath(); | ||
6 | + String basePath = request.getScheme() + "://" | ||
7 | + + request.getServerName() + ":" + request.getServerPort() | ||
8 | + + path + "/"; | ||
9 | +%> | ||
10 | +<!DOCTYPE html> | ||
11 | +<html lang="en"> | ||
12 | +<head> | ||
13 | +<base href="<%=basePath%>"> | ||
14 | +<!-- 下拉框 --> | ||
15 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | ||
16 | +<!-- jsp文件头和头部 --> | ||
17 | +<%@ include file="../../system/index/top.jsp"%> | ||
18 | +<!-- 日期框 --> | ||
19 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | ||
20 | +</head> | ||
21 | +<body class="no-skin"> | ||
22 | + | ||
23 | + <table style="width:100%;height:100%" border="1px solid red" > | ||
24 | + <tr> | ||
25 | + <td style="width:20%; font-size:12px; margin-right: 20px" valign="top" bgcolor="#F5F5F5"> | ||
26 | + <div id="tree"></div> | ||
27 | + </td> | ||
28 | + <td style="width:80%;" valign="top" > | ||
29 | + <div style="background-color:#F0F0F0;width:100%" border="1px" ></div> | ||
30 | + <iframe name="treeFrame" id="treeFrame" frameborder="0" src="" style="margin:0 auto;width:100%;height:100%"></iframe> | ||
31 | + </td> | ||
32 | + </tr> | ||
33 | + </table> | ||
34 | + | ||
35 | + <!-- basic scripts --> | ||
36 | + <!-- 页面底部js¨ --> | ||
37 | + <%@ include file="../../system/index/foot.jsp"%> | ||
38 | + <!-- 删除时确认窗口 --> | ||
39 | + <script src="static/ace/js/bootbox.js"></script> | ||
40 | + <!-- ace scripts --> | ||
41 | + <script src="static/ace/js/ace/ace.js"></script> | ||
42 | + <!-- 下拉框 --> | ||
43 | + <script src="static/ace/js/chosen.jquery.js"></script> | ||
44 | + <!-- 日期框 --> | ||
45 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | ||
46 | + <!--提示框--> | ||
47 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | ||
48 | + | ||
49 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | ||
50 | + | ||
51 | + <script src="static/treeview/bootstrap-treeview.js"></script> | ||
52 | + | ||
53 | + <script type="text/javascript"> | ||
54 | + $(top.hangge());//关闭加载状态 | ||
55 | + | ||
56 | + | ||
57 | + </script> | ||
58 | + | ||
59 | + | ||
60 | +</body> | ||
61 | +</html> | ||
0 | \ No newline at end of file | 62 | \ No newline at end of file |
resources/mybatis1/sunvote/PaperMapper.xml
@@ -156,6 +156,9 @@ | @@ -156,6 +156,9 @@ | ||
156 | <if test="pd.USER_ID != null and pd.USER_ID != ''"> | 156 | <if test="pd.USER_ID != null and pd.USER_ID != ''"> |
157 | and USER_ID = #{pd.USER_ID} | 157 | and USER_ID = #{pd.USER_ID} |
158 | </if> | 158 | </if> |
159 | + <if test="pd.SUBJECT_ID != null and pd.SUBJECT_ID != ''"> | ||
160 | + and SUBJECT_ID = #{pd.SUBJECT_ID} | ||
161 | + </if> | ||
159 | 162 | ||
160 | order by CREATE_DATE DESC | 163 | order by CREATE_DATE DESC |
161 | </select> | 164 | </select> |
src/com/fh/controller/api/V1.java
@@ -334,6 +334,7 @@ public class V1 extends BaseController { | @@ -334,6 +334,7 @@ public class V1 extends BaseController { | ||
334 | Page page = new Page(); | 334 | Page page = new Page(); |
335 | page.getPd().put("PAPER_TYPE", pd.get("PAPER_TYPE")); | 335 | page.getPd().put("PAPER_TYPE", pd.get("PAPER_TYPE")); |
336 | page.getPd().put("USER_ID", pd.get("USER_ID")); | 336 | page.getPd().put("USER_ID", pd.get("USER_ID")); |
337 | + page.getPd().put("SUBJECT_ID", pd.get("SUBJECT_ID")); | ||
337 | if (pd.containsKey("CURRENTPAGE")) { | 338 | if (pd.containsKey("CURRENTPAGE")) { |
338 | String curpage = pd.getString("CURRENTPAGE"); | 339 | String curpage = pd.getString("CURRENTPAGE"); |
339 | try { | 340 | try { |
src/com/fh/controller/sunvote/school/SchoolTreeController.java
0 → 100644
1 | +package com.fh.controller.sunvote.school; | ||
2 | + | ||
3 | +import java.util.List; | ||
4 | + | ||
5 | +import javax.annotation.Resource; | ||
6 | + | ||
7 | +import org.springframework.stereotype.Controller; | ||
8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
9 | +import org.springframework.web.servlet.ModelAndView; | ||
10 | + | ||
11 | +import com.fh.controller.base.BaseController; | ||
12 | +import com.fh.service.sunvote.school.SchoolManager; | ||
13 | +import com.fh.util.PageData; | ||
14 | + | ||
15 | +@Controller | ||
16 | +@RequestMapping(value="/schooltree") | ||
17 | +public class SchoolTreeController extends BaseController { | ||
18 | + | ||
19 | + | ||
20 | + @Resource(name="schoolService") | ||
21 | + private SchoolManager schoolService; | ||
22 | + | ||
23 | + @RequestMapping(value="/tree") | ||
24 | + public ModelAndView save() throws Exception{ | ||
25 | + ModelAndView mv = this.getModelAndView(); | ||
26 | + PageData pd = new PageData(); | ||
27 | + List<PageData> list = schoolService.listAll(pd); | ||
28 | + | ||
29 | + // 学校 | ||
30 | + for(PageData schoolPageData : list){ | ||
31 | + // 年级 | ||
32 | + | ||
33 | + // 班级 | ||
34 | + | ||
35 | + // | ||
36 | + | ||
37 | + } | ||
38 | + | ||
39 | + mv.setViewName("sunvote/school/school_main"); | ||
40 | + return mv; | ||
41 | + } | ||
42 | + | ||
43 | + | ||
44 | +} |