资源简介

大学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.xml

     文件        393  2020-05-27 11:40  StudentScoreManageSystem-master\StudentScoreManageSystem-master\.settings\org.eclipse.wst.common.project.facet.core.xml

    .......        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.xml

     文件       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个文件信息

评论

共有 条评论