package com.smart.business.common;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.smart.common.business.BaseBusiness;
import com.smart.common.constant.ConfigConstants;
import com.smart.common.proxy.Carrier;
import com.smart.dao.common.DropDownListDAO;
import com.smart.dao.factory.FactoryDAO;
import com.smart.entity.chapter.SmartCourse;
import com.smart.entity.chapter.SmartKnowledgePoint;
import com.smart.entity.chapter.SmartSection;
import com.smart.entity.common.Code;
import com.smart.entity.common.SmartCity;
import com.smart.entity.common.SmartCounty;
import com.smart.entity.common.SmartProvince;
import com.smart.entity.module.Module;
import com.smart.entity.paper.SmartExamType;
import com.smart.entity.resource.SmartSource;
import com.smart.entity.resource.SmartBookPublishingCompany;
import com.smart.entity.units.SmartClass;
import com.smart.entity.units.SmartRealGrade;
import com.smart.entity.units.SmartSchool;
public class DropDownListBusiness extends BaseBusiness {
public Map processCourseSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao()).getCourseSelection();
Map map = new HashMap();
SmartCourse course = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
course = (SmartCourse) iterator.next();
map.put(course.getCourseNo(), course.getCourseName());
}
}
map.put("--", "--");
return map;
}
public Map processSchoolSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao()).getSchoolSelection();
Map map = new HashMap();
SmartSchool enity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
enity = (SmartSchool) iterator.next();
map.put(enity.getSchoolNo(), enity.getSchoolName());
}
}
map.put("--", "--");
return map;
}
public Map processGradeSelection(Carrier vop) {
Map data = vop.getData();
String parent = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
List list = ((DropDownListDAO) this.getDao()).getGradeSelection(parent);
Map map = new HashMap();
SmartRealGrade entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartRealGrade) iterator.next();
map.put(entity.getGradeNo(), entity.getGradeName());
}
}
map.put("--", "--");
return map;
}
public Map processRefreshGradeSelection(Carrier vop) {
Map data = vop.getData();
String parent = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
List list = ((DropDownListDAO) this.getDao()).getGradeSelection(parent);
Map map = new HashMap();
SmartRealGrade entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartRealGrade) iterator.next();
map.put(entity.getGradeName(), entity.getGradeNo());
}
}
map.put("--", "--");
return map;
}
public Map processGradeAllSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao()).getGradeAllSelection();
Map map = new HashMap();
SmartRealGrade grade = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
grade = (SmartRealGrade) iterator.next();
map.put(grade.getGradeId(), grade.getGradeName());
}
}
map.put("--", "--请选择年级--");
return map;
}
public Map processCourseSelectionBy(Carrier vop) {
Map data = vop.getData();
String parent = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
if (parent.equals(""))
return null;
String gradeId = parent;
List list = ((DropDownListDAO) this.getDao())
.getCourseSelectionBy(gradeId);
Map map = new HashMap();
SmartCourse entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartCourse) iterator.next();
map.put(entity.getCourseName(), entity.getCourseNo());
}
}
map.put("--", "--");
return map;
}
public Map processBookSelectionBy(Carrier vop) {
Map data = vop.getData();
String courseNo = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
if (courseNo.equals(""))
return null;
List list = ((DropDownListDAO) this.getDao())
.getBookSelectionBy(courseNo);
Map map = new HashMap();
SmartBookPublishingCompany entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartBookPublishingCompany) iterator.next();
map.put(entity.getBookName() + "(" + entity.getCompanyName()
+ ")", entity.getBookNo());
}
return map;
}
return null;
}
public Map processKnowledgeSelectionBy(Carrier vop) {
Map data = vop.getData();
String sectionNo = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
if (sectionNo.equals("")) {
Map map1 = new HashMap();
map1.put("--", "--");
return map1;
}
List list = ((DropDownListDAO) this.getDao())
.getKnowledgeSelectionBy(sectionNo);
Map map = new HashMap();
SmartKnowledgePoint entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartKnowledgePoint) iterator.next();
map.put(entity.getKnowledgeName(), entity.getKnowledgeNo());
}
return map;
}
return null;
}
public Map processDiffcultyTypeSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao())
.getDiffcultyTypeSelection();
Map map = new HashMap();
Code code = null;
if (list != null && list.size() > 0) {
map.put("", "--");
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
code = (Code) iterator.next();
map.put(code.getCodeNo(), code.getCodeValue());
}
return map;
}
return null;
}
public Map processProblemSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao()).getProblemSelection();
Map map = new HashMap();
Code code = null;
if (list != null && list.size() > 0) {
map.put("", "--");
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
code = (Code) iterator.next();
map.put(code.getCodeNo(), code.getCodeName());
}
return map;
}
return null;
}
public Map processSectionSelectionBy(Carrier vop) {
Map data = vop.getData();
String courseNo = data.get("parent") == null ? "" : (String) data.get(
"parent").toString().trim();
List list = ((DropDownListDAO) this.getDao())
.getSectionSelectionBy(courseNo);
Map map = new HashMap();
SmartSection entity = null;
if (list != null && list.size() > 0) {
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
entity = (SmartSection) iterator.next();
map.put(entity.getSectionName(), entity.getSectionNo()
.toString());
}
return map;
}
return null;
}
public Map processSourceSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao()).getSourceSelection();
Map map = new HashMap();
SmartSource source = null;
if (list != null && list.size() > 0) {
map.put("--", "--请选择试题来源--");
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
source = (SmartSource) iterator.next();
map.put(source.getSourceNo(), source.getSourceName());
}
return map;
}
return null;
}
public Map processGetPaperTypeListSelection(Carrier vop) {
List list = ((DropDownListDAO) this.getDao())
.getPaperTypeListSelection();
没有合适的资源?快使用搜索试试~ 我知道了~
java权限管理与日志记录模块的设计与开发(源代码+论文)
共528个文件
gif:236个
java:130个
xml:72个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 136 浏览量
2022-03-25
10:30:03
上传
评论
收藏 1.18MB ZIP 举报
温馨提示
JAVA技术、在框架架构上采用流行的MVC架构、在业务架构中采用Spring的IOC思想和ORM技术的一个新型智能在线考试信息管理系统,该系统主要实现了学生在线考试与评估以及教师对学生在线考试信息的管理和维护。本文设计的系统管理功能模块采用了多用户多角色管理机制,确保不同的用户登录系统后能够操作属于自己权限范围内的功能。系统功能管理模块主要由用户管理子模块、角色管理子模块、角色设置管理子模块、权限管理子模块、系统菜单管理子模块、日志管理子模块和用户登录验证子模块构成。通过对系统功能的各种设置,实现对系统各级用户的角色设置和角色分配,限制和记录各级用户在系统中的对信息的功能操作,体现了系统权限设置的灵活性、数据操作的安全性。
资源详情
资源评论
资源推荐
收起资源包目录
java权限管理与日志记录模块的设计与开发(源代码+论文) (528个子文件)
style_new.css 53KB
cssedc.css 4KB
dtreer.css 1KB
myStyle.css 762B
Thumbs.db 190KB
Thumbs.db 9KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
logoleadchange.gif 95KB
bg5.gif 33KB
bghd1.gif 32KB
bghd.gif 32KB
bottom.gif 21KB
login_title.gif 18KB
login_r3_c32.gif 17KB
left2.gif 14KB
login_logo.gif 14KB
login_r3_c60.gif 11KB
login_r3_c11.gif 8KB
login_r3_c31.gif 8KB
error_r4_c1.gif 8KB
error_r4_c4.gif 6KB
error2_r3_c5.gif 4KB
login_copyright.gif 4KB
exam_log.gif 4KB
system_log.gif 3KB
tch_manager.gif 3KB
login_r4_c3.gif 3KB
stu_manager.gif 3KB
login_text.gif 3KB
table_bar.gif 3KB
login_r4_c10.gif 3KB
btn_menu_2.gif 2KB
btn_menu_3.gif 2KB
btn_menu_9.gif 2KB
btn_menu_6.gif 2KB
btn_menu_5.gif 2KB
btn_menu_4.gif 2KB
error_r1_c1.gif 2KB
btn_menu_7.gif 2KB
btn_menu_8.gif 2KB
btn_delete.gif 2KB
btn_back5.gif 2KB
BtnUpdate.gif 2KB
login_r8_c3.gif 2KB
login_r3_c5.gif 2KB
EIMS_4.gif 2KB
calendar_bg.gif 2KB
EIMS_1.gif 2KB
login_r3_c10.gif 2KB
login4_r2_c22.gif 2KB
btn1_down.gif 2KB
BtnChangePassword.gif 2KB
BtnAdjust.gif 2KB
EIMS_2.gif 2KB
EIMS_3.gif 2KB
left.gif 2KB
calendar_over1.gif 2KB
btn1.gif 2KB
btn_back.gif 2KB
btn.gif 2KB
login_r4_c13.gif 1KB
btn_quit1.gif 1KB
login_r3_c111.gif 1KB
btn_quit.gif 1KB
btn3.gif 1KB
btn2.gif 1KB
btn_select2.gif 1KB
btn_back3.gif 1KB
btn_resume1.gif 1KB
back.gif 1KB
forward.gif 1KB
btn_close.gif 1KB
login_close.gif 1KB
btn_save1.gif 1KB
btn_read.gif 1KB
login_bottom.gif 1KB
line.gif 1KB
base.gif 1KB
btn_down.gif 1017B
btn_feedback.gif 1014B
login_enter.gif 993B
btn_delete2.gif 978B
btn_bg2.gif 978B
btn_add.gif 970B
btn_submit.gif 954B
login_r10_c3.gif 924B
btn_all_cancel.gif 921B
btn_cancel1.gif 903B
btn_send.gif 896B
btn_cancel.gif 894B
btn_save.gif 890B
btn_modify1.gif 890B
login_r10_c10.gif 888B
nolines_plus0.gif 870B
nolines_minus0.gif 861B
SortUp.gif 837B
共 528 条
- 1
- 2
- 3
- 4
- 5
- 6
办公模板库素材蛙
- 粉丝: 1548
- 资源: 2289
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0