Commit 03a14c0e150b2580ed9fcb461121f31c46f1b39e
1 parent
9338b563
更新报表
Showing
5 changed files
with
15 additions
and
5 deletions
WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp
... | ... | @@ -34,9 +34,6 @@ |
34 | 34 | <input type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}"/> |
35 | 35 | <input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}"/> |
36 | 36 | <table style="margin-top:5px;"> |
37 | - <tr> | |
38 | - <th class="center" style="float:right"><a href="javascript:;">查看成绩报表</a></th> | |
39 | - </tr> | |
40 | 37 | </table> |
41 | 38 | <!-- 检索 --> |
42 | 39 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_report_1.jsp
... | ... | @@ -100,8 +100,11 @@ |
100 | 100 | <c:when test="${not empty studentList}"> |
101 | 101 | <c:forEach items="${studentList}" var="var" varStatus="vs"> |
102 | 102 | <tr> |
103 | - <td class="center"><a | |
103 | + <%-- <td class="center"><a | |
104 | 104 | href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> |
105 | + </td> --%> | |
106 | + <td class="center"><a | |
107 | + href="report/student_report_data?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
105 | 108 | </td> |
106 | 109 | <td class="center"><fmt:formatNumber type="number" |
107 | 110 | value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}" | ... | ... |
src/com/fh/bean/TestPaper.java
... | ... | @@ -43,6 +43,7 @@ public class TestPaper { |
43 | 43 | // 平均分 |
44 | 44 | private String avgScore ; |
45 | 45 | |
46 | + private String totalScore; | |
46 | 47 | // 备注 |
47 | 48 | private String remark ; |
48 | 49 | |
... | ... | @@ -163,6 +164,14 @@ public class TestPaper { |
163 | 164 | this.students = students; |
164 | 165 | } |
165 | 166 | |
167 | + public String getTotalScore() { | |
168 | + return totalScore; | |
169 | + } | |
170 | + | |
171 | + public void setTotalScore(String totalScore) { | |
172 | + this.totalScore = totalScore; | |
173 | + } | |
174 | + | |
166 | 175 | public static TestPaper parse(String json){ |
167 | 176 | Gson gson = new Gson(); |
168 | 177 | return gson.fromJson(json, TestPaper.class); | ... | ... |
src/com/fh/controller/api/V1.java
... | ... | @@ -782,6 +782,7 @@ public class V1 extends BaseController { |
782 | 782 | testPd.put("HIGHT_SCORE", testPaper.getHighScore()); |
783 | 783 | testPd.put("LOW_SCORE", testPaper.getLowScore()); |
784 | 784 | testPd.put("AVG_SCORE", testPaper.getAvgScore()); |
785 | + testPd.put("TOTAL_SCORE", testPaper.getTotalScore()); | |
785 | 786 | testPd.put("REMARK", testPaper.getRemark()); |
786 | 787 | testpaperService.save(testPd); |
787 | 788 | if (testPaper.getStudents() != null) { | ... | ... |
src/com/fh/controller/sunvote/report/ReportController.java
... | ... | @@ -124,7 +124,7 @@ public class ReportController extends BaseController { |
124 | 124 | logBefore(logger, Jurisdiction.getUsername()+"学生报表数据"); |
125 | 125 | PageData pd = getPageData(); |
126 | 126 | ResponseGson<List<PageData>> ret = new ResponseGson(); |
127 | - pd.put("CLASS_ID", pd.get("CLASSID")); | |
127 | +// pd.put("CLASS_ID", pd.get("CLASSID")); | |
128 | 128 | List<PageData> studentList = studentService.listAllClass(pd); |
129 | 129 | List<PageData> testpaperList = testpaperService.listAll(pd); |
130 | 130 | ... | ... |