• 大小: 24.88MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-17
  • 语言: 其他
  • 标签: ssm框架  easyUI  mysql  POI  

资源简介

学习ssm框架的朋友可以看一下 还有easyUI的树形菜单,功能基本实现,但页面好像不是很好看。里面有源码 文档 还有数据库

资源截图

代码片段和文件信息

package com.cqgcxy.evaluate.controllers;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.cqgcxy.evaluate.domain.Action;
import com.cqgcxy.evaluate.domain.ActionList;

import com.cqgcxy.evaluate.domain.scaleAction;
import com.cqgcxy.evaluate.service.ActionService;

import net.sf.json.JSONArray;
/**
 * 
 * @author kelei
 *菜单
 */
@Controller

public class ActionController {
@Autowired
private ActionService actionService;

/**
 * 閫氳繃UserId灞曠ず鍔熻兘鑿滃崟鍒楄〃
 * @param userId
 * @param request
 * @return
 */
@RequestMapping(“/findActionListByUserId“)
public ModelAndView findQuotaListByUserId(int userId HttpServletRequest request) {
List actionList = actionService.findActionListByUserId(userId);
JSONArray jsonArray = JSONArray.fromobject(actionList);
ModelAndView modelAndView = new ModelAndView(“forward:/index.jsp“);
HttpSession session = request.getSession();
session.setAttribute(“action“ jsonArray.toString());
return modelAndView;
}

/**
 * 灞曠ず鍔熻兘鑿滃崟鍒楄〃
 * @param action
 * @param request
 * @return
 */
@RequestMapping(“/findActionAction“)
// @ResponseBody
public ModelAndView findAction(Action action HttpServletRequest request) {
ModelAndView modelAndView;
List actions = actionService.findAction(action);
/*
 * HttpSession session=request.getSession(); //JSONArray json =
 * JSONArray.fromobject(actions); session.setAttribute(“actions“
 * actions);
 */
if (actions != null) {
modelAndView = new ModelAndView(“forward:/moduls/scale/add.jsp“);
modelAndView.addobject(“actions“ actions);
} else {
modelAndView = new ModelAndView(“loginfailed“);
}
/* request.setAttribute(“flag“ “yes“); */
return modelAndView;
// return scales;
}

/**
 * 灞曠ず浜岀骇鑿滃崟鍒楄〃
 * @param action
 * @param request
 * @return
 */
@RequestMapping(“/findSecondActionAction“)
// @ResponseBody
public ModelAndView findSecondAction(Action action HttpServletRequest request) {
ModelAndView modelAndView;
List actions = actionService.findAction(action);
String id = request.getParameter(“id“);
System.out.println(“LLLLLLLLLLLLL“ + id);
if (actions != null) {
modelAndView = new ModelAndView(“forward:/findScaleByIdAction“);
modelAndView.addobject(“actions“ actions);
} else {
modelAndView = new ModelAndView(“loginfailed“);
}
/* request.setAttribute(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        889  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.classpath

     文件       1057  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.project

     文件        567  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\.jsdtscope

     文件        106  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.jdt.core.prefs

     文件        603  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.wst.common.component

     文件        345  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1967  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\application.xml

     文件       9692  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\ActionController.class

     文件       6241  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\BatchController.class

     文件       5834  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\ClassinfoController.class

     文件       5790  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\CourseController.class

     文件       5865  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\DepartmentController.class

     文件       3210  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\EvaluateController.class

     文件       2272  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\GradesControllers.class

     文件       4836  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\QuotaController.class

     文件       2256  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\QuotaoptionsController.class

     文件       5711  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\scaleActionController.class

     文件       9452  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\scaleController.class

     文件       4178  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\ScoreSearchController.class

     文件       4037  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\StateControl.class

     文件      10422  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\TeachingController.class

     文件       3363  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\uploadController.class

     文件       9031  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\UserController.class

     文件       5657  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\controllers\userscaleController.class

     文件       1342  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\domain\Action.class

     文件       1061  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\domain\ActionList.class

     文件       1203  2018-10-19 10:57  源代码\TeacherScoreMangerSystem\build\classes\com\cqgcxy\evaluate\domain\Avgscores.class

............此处省略1215个文件信息

评论

共有 条评论