Commit 8f88069a84455432bfcf83895191f036d730b588
1 parent
45213c57
1.英文翻译(4)
Showing
10 changed files
with
37 additions
and
10 deletions
WebRoot/WEB-INF/jsp/sunvote/coursemanagement/en_coursemanagement_list2.jsp
WebRoot/WEB-INF/jsp/sunvote/grade/en_grade_list2.jsp
... | ... | @@ -66,7 +66,7 @@ |
66 | 66 | <tr> |
67 | 67 | <td><input type="checkbox" name='ids' id="ids" |
68 | 68 | value="${var.SCHOOLGRADESUBJECT_ID}" />${vs.index+1}</td> |
69 | - <td class='center'>${var.NAME}</td> | |
69 | + <td class='center'>${var.ENAME}</td> | |
70 | 70 | <td class='center'>${var.DESC}</td> |
71 | 71 | </tr> |
72 | 72 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/pagetemplate/en_pagetemplate_list2.jsp
... | ... | @@ -76,8 +76,8 @@ |
76 | 76 | <tr> |
77 | 77 | <td><input type="checkbox" name='ids' id="ids" value="${var.PAGETEMPLATE_ID}" />${vs.index+1}</td> |
78 | 78 | <td class='center'>${var.NAME}</td> |
79 | - <td class='center'>${myelfun:findSubjectCName(var.SUBJECT_ID)}</td> | |
80 | - <td class='center'>${myelfun:findGradeName(var.GRADE_ID)}</td> | |
79 | + <td class='center'>${myelfun:findSubjectEName(var.SUBJECT_ID)}</td> | |
80 | + <td class='center'>${myelfun:findGradeEName(var.GRADE_ID)}</td> | |
81 | 81 | <td class='center'>${var.PAGE_SCORE}</td> |
82 | 82 | <td><a hidden onclick="edit('${var.PAGETEMPLATE_ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a> |
83 | 83 | <a onclick="del('${var.PAGETEMPLATE_ID}');"><img src="static/images/remove.png" /></a></td> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/paper/en_paper_list4.jsp
... | ... | @@ -116,8 +116,8 @@ |
116 | 116 | value="${var.PAPER_ID}" />${vs.index+1}</td> |
117 | 117 | <td><a target="_blank" |
118 | 118 | href="<%=basePath%>paper/iteminfo.do?paper_id=${var.PAPER_ID}">${var.TITLE}</a></td> |
119 | - <td>${myelfun:findGradeName(var.GRADE_ID)}</td> | |
120 | - <td>${myelfun:findSubjectCName(var.SUBJECT_ID)}</td> | |
119 | + <td>${myelfun:findGradeEName(var.GRADE_ID)}</td> | |
120 | + <td>${myelfun:findSubjectEName(var.SUBJECT_ID)}</td> | |
121 | 121 | <td>${myelfun:findTeacherName(var.USER_ID)}</td> |
122 | 122 | <td>${var.CREATE_DATE}</td> |
123 | 123 | <td>${var.EXAM_TIME}</td> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/paper/en_paper_list5.jsp
... | ... | @@ -95,8 +95,8 @@ |
95 | 95 | <td><input type="checkbox" name='ids' id="ids" value="${var.PAPER_ID}"/>${vs.index+1}</td> |
96 | 96 | <td ><a target="_blank" href="<%=basePath%>paper/iteminfo.do?paper_id=${var.PAPER_ID}">${var.TITLE}</a></td> |
97 | 97 | <td >${var.CREATE_DATE}</td> |
98 | - <td >${myelfun:findGradeName(var.GRADE_ID)}</td> | |
99 | - <td >${myelfun:findSubjectCName(var.SUBJECT_ID)}</td> | |
98 | + <td >${myelfun:findGradeEName(var.GRADE_ID)}</td> | |
99 | + <td >${myelfun:findSubjectEName(var.SUBJECT_ID)}</td> | |
100 | 100 | <td >${var.EXAM_TIME}</td> |
101 | 101 | <td >${var.SCORE}</td> |
102 | 102 | <td> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/teacher/en_teacher_list2.jsp
... | ... | @@ -94,7 +94,7 @@ |
94 | 94 | <td class='center'>${var.ACCOUT}</td> |
95 | 95 | <td class='center'>${var.SEX == 1? "male":"female"}</td> |
96 | 96 | <td class='center'>${var.KEYPAD_ID}</td> |
97 | - <td class='center'>${myelfun:findSubjectCName(var.SUBJECT_IDS)}</td> | |
97 | + <td class='center'>${myelfun:findSubjectEName(var.SUBJECT_IDS)}</td> | |
98 | 98 | <td><a onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td> |
99 | 99 | |
100 | 100 | </tr> | ... | ... |
WebRoot/WEB-INF/tld/elfun.tld
... | ... | @@ -25,6 +25,14 @@ |
25 | 25 | </function> |
26 | 26 | |
27 | 27 | <function> |
28 | + <description>根据ID获取年级名称</description><!-- 对该标签的说明 --> | |
29 | + <name>findGradeEName</name><!-- 定义标签名,放在短标签之后 --> | |
30 | + <function-class>com.fh.controller.sunvote.Myelfun</function-class><!-- 标签处理域值的类路径 --> | |
31 | + <function-signature>java.lang.String findGradeEName(java.lang.String)</function-signature><!-- 标签处理域值的具体的类方法 --> | |
32 | + <example>${myelfun:findGradeEName(obj1)}</example><!-- 自定义标签的使用示范 ,域参数会自动传递到具体的方法里面--> | |
33 | + </function> | |
34 | + | |
35 | + <function> | |
28 | 36 | <description>根据ID获取班级类型名称</description><!-- 对该标签的说明 --> |
29 | 37 | <name>findClassTypeName</name><!-- 定义标签名,放在短标签之后 --> |
30 | 38 | <function-class>com.fh.controller.sunvote.Myelfun</function-class><!-- 标签处理域值的类路径 --> | ... | ... |
resources/mybatis1/sunvote/GradeMapper.xml
src/com/fh/controller/sunvote/Myelfun.java
... | ... | @@ -61,6 +61,24 @@ public class Myelfun { |
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | + * 根据ID获取年级名称 | |
65 | + * @param type | |
66 | + * @return | |
67 | + * @throws Exception | |
68 | + */ | |
69 | + public static String findGradeEName(String type) throws Exception{ | |
70 | + GradeService gradeService = (GradeService)SpringBeanFactoryUtils.getBean("gradeService"); | |
71 | + PageData pageData = new PageData(); | |
72 | + pageData.put("ID", type); | |
73 | + pageData = gradeService.findById(pageData); | |
74 | + if(pageData != null){ | |
75 | + return pageData.getString("ENAME"); | |
76 | + }else{ | |
77 | + return "" ; | |
78 | + } | |
79 | + } | |
80 | + | |
81 | + /** | |
64 | 82 | * 根据ID或者班级类型名称 |
65 | 83 | * @param type |
66 | 84 | * @return | ... | ... |
src/com/fh/controller/sunvote/paper/PaperController.java
... | ... | @@ -379,6 +379,7 @@ public class PaperController extends BaseController { |
379 | 379 | } |
380 | 380 | pd.put("PAPER_TYPE","1"); |
381 | 381 | page.setPd(pd); |
382 | + page.setLangIsChina(isChineseLanguageClient()); | |
382 | 383 | List<PageData> varList = paperService.list(page); //列出Paper列表 |
383 | 384 | // pd.put("PAPER_TYPE","2"); |
384 | 385 | // List<PageData> varList2 = paperService.list(page); //列出Paper列表 | ... | ... |