资源简介
大学java ee软件开发课程的课程设计项目,基于ssm框架的学生信息管理系统,支持上传文件和下载文件
代码片段和文件信息
package com.beacon.sms.action;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.beacon.sms.bean.Course;
import com.beacon.sms.bean.CourseSearchBean;
import com.beacon.sms.bean.DatagridBean;
import com.beacon.sms.service.CourseService;
import com.beacon.sms.utils.JsonUtil;
/**
* 描述:课程Action
*/
public class CourseAction {
private Course course;
private CourseService courseService;
private String idString;
private JsonUtil jsonUtil;
private int courseId;
private int page;
private int rows;
private CourseSearchBean courseSearchBean;
public CourseSearchBean getCourseSearchBean() {
return courseSearchBean;
}
public void setCourseSearchBean(CourseSearchBean courseSearchBean) {
this.courseSearchBean = courseSearchBean;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
public int getRows() {
return rows;
}
public void setRows(int rows) {
this.rows = rows;
}
public int getCourseId() {
return courseId;
}
public void setCourseId(int courseId) {
this.courseId = courseId;
}
public JsonUtil getJsonUtil() {
return jsonUtil;
}
public void setJsonUtil(JsonUtil jsonUtil) {
this.jsonUtil = jsonUtil;
}
public String getIdString() {
return idString;
}
public void setIdString(String idString) {
this.idString = idString;
}
public CourseService getCourseService() {
return courseService;
}
public void setCourseService(CourseService courseService) {
this.courseService = courseService;
}
public Course getCourse() {
return course;
}
public void setCourse(Course course) {
this.course = course;
}
public void list(){
if(courseSearchBean==null){
courseSearchBean=new CourseSearchBean();
}
courseSearchBean.setPage(page);
courseSearchBean.setRows(rows);
List list=courseService.getCourseList(courseSearchBean);
int total=courseService.getCourseListSize(courseSearchBean);
DatagridBean datagridBean=new DatagridBean();
datagridBean.setRows(list);
datagridBean.setTotal(total);
String result=JSON.toJSONString(datagridBean);
jsonUtil.writeJson(result);
System.out.println(result);
}
public void add(){
courseService.addCourse(course);
}
public void update(){
courseService.updateCourse(course);
}
public void delete(){
List list=new ArrayList();
String[] ids=idString.split(““);
for(int i=0;i list.add(Integer.parseInt(ids[i]));
}
courseService.deleteCourse(list);
}
public void getCourseList(){
String result=JSON.toJSONString(courseService.getCourseList());
jsonUtil.writeJson(result);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20561 2020-05-27 11:36 StudentScoreManageSystem-master\db.sql
文件 974 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.classpath
文件 1421 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.project
....... 555 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\.jsdtscope
文件 124 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\com.genuitec.eclipse.migration.prefs
....... 357 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.jdt.core.prefs
....... 456 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.common.component
文件 172 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.common.project.facet.core.prefs.xm
文件 393 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.common.project.facet.core.xm
....... 49 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.jsdt.ui.superType.container
....... 6 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 100 2020-05-27 11:40 StudentScoreManageSystem-master\StudentScoreManageSystem-master\.tern-project
....... 8175 2017-11-27 22:23 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\applicationContext.xm
文件 4518 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\CourseAction.class
文件 6512 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\LoginAction.class
文件 2379 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\MajorAction.class
文件 4340 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\ScoreAction.class
文件 1494 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\SemesterAction.class
文件 4970 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\StudentAction.class
文件 5602 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\TeacherAction.class
文件 5226 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\TeachingAction.class
文件 6930 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\action\UpLoadAction.class
文件 1844 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Address.class
文件 1271 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Admin.class
文件 2300 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Class.class
文件 1709 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Course.class
文件 917 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\CourseSearchBean.class
文件 1504 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\DatagridBean.class
文件 1040 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Department.class
文件 1419 2020-06-12 19:49 StudentScoreManageSystem-master\StudentScoreManageSystem-master\build\classes\com\beacon\sms\bean\Major.class
............此处省略311个文件信息
相关资源
- 基于Java的固定资产管理系统.zip
- 基于JavaEE和MySQL技术实现的教室使用申
- ssh框架信息管理系统
- java或android调用阿里云的人脸比对服务
- javaee代码.zip
- JavaWeb开发实战经典基础篇源码
- java招商银行接口文档,源码
- java语言程序设计基础,进阶篇课后答
- java版你画我猜
- svm多分类的java源码
- JAVA JSP+SQL校友录系统.zip
- JavaWeb——图书管理系统
- 火车票售票系统
- spring boot 项目,Meeting会议管理系统
- web系统和数据库文件.zip
- spring与Mybatis整合所有jar包
- Springboot实现电影网站
- java旅游管理信息系统网站jsp
- 基于Android开发的天气预报app.zip
- ava web程序设计任务教程全书源代码黑
- java使用idea搭建ssm+maven框架项目,单
- JSP项目,家装网
- Myeclipse+Tomcat+SQL Server 开发javaweb网站
- JavaEE7-api 文档 中英 谷歌翻译版
- java Java Runtime Environment jre1.4.2
- 泛微E-cology 二次开发Java Jar包
- Java+SQL Server项目开发实践
- 2018 黑马java面试宝典 beta 5
- aspose-words-20.5-java.rar
- java人脸识别源代码
评论
共有 条评论