package com.controller;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.entity.Huojiangxinxi;
import com.server.HuojiangxinxiServer;
import com.util.PageBean;
import net.sf.json.JSONObject;
import com.util.db;
import java.sql.SQLException;
import java.sql.*;
@Controller
public class HuojiangxinxiController {
@Resource
private HuojiangxinxiServer huojiangxinxiService;
@RequestMapping("addHuojiangxinxi.do")
public String addHuojiangxinxi(HttpServletRequest request,Huojiangxinxi huojiangxinxi,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
huojiangxinxi.setAddtime(time.toString().substring(0, 19));
huojiangxinxiService.add(huojiangxinxi);
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
//session.setAttribute("backurl", "huojiangxinxiList.do");
return "redirect:postback.jsp";
//return "redirect:huojiangxinxiList.do";
}
// 处理编辑
@RequestMapping("doUpdateHuojiangxinxi.do")
public String doUpdateHuojiangxinxi(int id,ModelMap map,Huojiangxinxi huojiangxinxi){
huojiangxinxi=huojiangxinxiService.getById(id);
map.put("huojiangxinxi", huojiangxinxi);
return "huojiangxinxi_updt";
}
@RequestMapping("doUpdateHuojiangxinxilb.do")
public String doUpdateHuojiangxinxilb(int id,ModelMap map,Huojiangxinxi huojiangxinxi){
huojiangxinxi=huojiangxinxiService.getById(id);
map.put("huojiangxinxi", huojiangxinxi);
return "huojiangxinxi_updtlb";
}
@RequestMapping("updateHuojiangxinxilb.do")
public String updateHuojiangxinxilb(int id,ModelMap map,Huojiangxinxi huojiangxinxi){
huojiangxinxiService.updatelb(huojiangxinxi);
return "redirect:huojiangxinxiList.do";
}
// 后台详细
@RequestMapping("huojiangxinxiDetail.do")
public String huojiangxinxiDetail(int id,ModelMap map,Huojiangxinxi huojiangxinxi){
huojiangxinxi=huojiangxinxiService.getById(id);
map.put("huojiangxinxi", huojiangxinxi);
return "huojiangxinxi_detail";
}
// 前台详细
@RequestMapping("hjxxDetail.do")
public String hjxxDetail(int id,ModelMap map,Huojiangxinxi huojiangxinxi){
huojiangxinxi=huojiangxinxiService.getById(id);
map.put("huojiangxinxi", huojiangxinxi);
return "huojiangxinxidetail";
}
//
@RequestMapping("updateHuojiangxinxi.do")
public String updateHuojiangxinxi(int id,ModelMap map,Huojiangxinxi huojiangxinxi,HttpServletRequest request,HttpSession session){
huojiangxinxiService.update(huojiangxinxi);
session.setAttribute("backxx", "修改成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
//String url = request.getHeader("Referer");
//return "redirect:"+url;
//return "redirect:huojiangxinxiList.do";
}
// 分页查询
@RequestMapping("huojiangxinxiList.do")
public String huojiangxinxiList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Huojiangxinxi huojiangxinxi, String xuehao, String xingming, String yuanximingcheng, String banjimingcheng, String zhuanyemingcheng, String jiangxiangbianhao, String jiangxiangmingcheng, String huojiangriqi1,String huojiangriqi2, String huojiangwenjian, String yuanxishenhejieguo, String dengjiren, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(yuanximingcheng==null||yuanximingcheng.equals("")){pmap.put("yuanximingcheng", null);}else{pmap.put("yuanximingcheng", yuanximingcheng);}
if(banjimingcheng==null||banjimingcheng.equals("")){pmap.put("banjimingcheng", null);}else{pmap.put("banjimingcheng", banjimingcheng);}
if(zhuanyemingcheng==null||zhuanyemingcheng.equals("")){pmap.put("zhuanyemingcheng", null);}else{pmap.put("zhuanyemingcheng", zhuanyemingcheng);}
if(jiangxiangbianhao==null||jiangxiangbianhao.equals("")){pmap.put("jiangxiangbianhao", null);}else{pmap.put("jiangxiangbianhao", jiangxiangbianhao);}
if(jiangxiangmingcheng==null||jiangxiangmingcheng.equals("")){pmap.put("jiangxiangmingcheng", null);}else{pmap.put("jiangxiangmingcheng", jiangxiangmingcheng);}
if(huojiangriqi1==null||huojiangriqi1.equals("")){pmap.put("huojiangriqi1", null);}else{pmap.put("huojiangriqi1", huojiangriqi1);}
if(huojiangriqi2==null||huojiangriqi2.equals("")){pmap.put("huojiangriqi2", null);}else{pmap.put("huojiangriqi2", huojiangriqi2);}
if(huojiangwenjian==null||huojiangwenjian.equals("")){pmap.put("huojiangwenjian", null);}else{pmap.put("huojiangwenjian", huojiangwenjian);}
if(yuanxishenhejieguo==null||yuanxishenhejieguo.equals("")){pmap.put("yuanxishenhejieguo", null);}else{pmap.put("yuanxishenhejieguo", yuanxishenhejieguo);}
if(dengjiren==null||dengjiren.equals("")){pmap.put("dengjiren", null);}else{pmap.put("dengjiren", dengjiren);}
int total=huojiangxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Huojiangxinxi> list=huojiangxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "huojiangxinxi_list";
}
@RequestMapping("huojiangxinxi_yanben1.do")
public String huojiangxinxi_yanben1(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Huojiangxinxi huojiangxinxi, String xuehao, String xingming, String yuanximingcheng, String banjimingcheng, String zhuanyemingcheng, String jiangxiangbianhao, String jiangxiangmingcheng, String huojiangriqi1,String huojiangriqi2, String huojiangwenjian, String yuanxishenhejieguo, String dengjiren, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(xuehao==null||xuehao.equals("")){pmap.put("xuehao", null);}else{pmap.put("xuehao", xuehao);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(yuanximingcheng==null||yuanximingcheng.equals("")){pmap.put("yuanximingcheng", null);}else{pmap.put("yuanximingcheng", yuanximingcheng);}
if(banjimingcheng==null||banjimingcheng.equals("")){pmap.put("banjimingcheng", null);}else{pmap.put("banjimingcheng", banjimingcheng);}
if(zhuanyemingcheng==null||zhuanyemingcheng.equals("")){pmap.put("zhuanyemingcheng", null);}else{pmap.put("zhuanyemingcheng", zhuanyemingcheng);}
if(jiangxiangbianhao==null||jiangxiangbianhao.equals("")){pmap.put("jiangxiangbianhao", null);}else{pmap.put("jiangxiangbianhao", jiangxiangbianhao);}
if(jiangxiangmingcheng==null||jiangxiangmingcheng.equals("")){pmap.put("jiangxiangmingcheng", null);}else{pmap.put("jiangxiangmingcheng", jiangxiangmingcheng);}
if(huojiangriqi1==null||huojiangriqi1.equals("")){pmap.put("huojiangriqi1", null);}else{pmap.put("huojiangriqi1", huojiangriqi1);}
i
没有合适的资源?快使用搜索试试~ 我知道了~
ssm高校综合素质测评系统毕业设计程序
共459个文件
class:88个
java:85个
jsp:84个
需积分: 30 17 下载量 149 浏览量
2020-09-11
16:50:10
上传
评论 8
收藏 22.02MB ZIP 举报
温馨提示
采用java技术构建的一个管理系统。整个开发过程首先对系统进行需求分析,得出系统的主要功能。接着对系统进行总体设计和详细设计。总体设计主要包括系统功能设计、系统总体结构设计、系统数据结构设计和系统安全设计等;详细设计主要包括系统数据库访问的实现,主要功能模块的具体实现,模块实现关键代码等。最后对系统进行功能测试,并对测试结果进行分析总结。 包括程序毕设程序源代码一份,数据库一份,完美运行。配置环境里面有说明。如有不会运行源代码或定制私信。
资源推荐
资源详情
资源评论
收起资源包目录
ssm高校综合素质测评系统毕业设计程序 (459个子文件)
KaohechengjiController.class 18KB
Info.class 18KB
HuojiangxinxiController.class 18KB
XueshengxinxiController.class 16KB
JiaoshixinxiController.class 15KB
db.class 14KB
ZhuanyexinxiController.class 13KB
YuanxixinxiController.class 12KB
BanjixinxiController.class 12KB
ChengjitongjiController.class 12KB
YonghuzhuceController.class 9KB
VeDate.class 9KB
AllusersController.class 7KB
ShoucangjiluController.class 7KB
LiuyanbanController.class 7KB
XinwentongzhiController.class 6KB
YouqinglianjieController.class 6KB
PinglunController.class 6KB
Huojiangxinxi.class 4KB
Yonghuzhuce.class 4KB
StrUtil.class 4KB
Xueshengxinxi.class 3KB
Kaohechengji.class 3KB
Jiaoshixinxi.class 3KB
HuojiangxinxiServerImpi.class 3KB
LiuyanbanServerImpi.class 3KB
YouqinglianjieServerImpi.class 3KB
ChengjitongjiServerImpi.class 3KB
XueshengxinxiServerImpi.class 3KB
JiaoshixinxiServerImpi.class 3KB
ZhuanyexinxiServerImpi.class 3KB
KaohechengjiServerImpi.class 3KB
YonghuzhuceServerImpi.class 3KB
YuanxixinxiServerImpi.class 3KB
BanjixinxiServerImpi.class 3KB
XinwentongzhiServerImpi.class 3KB
AllusersServerImpi.class 3KB
Xinwentongzhi.class 2KB
Liuyanban.class 2KB
ShoucangjiluServerImpi.class 2KB
Chengjitongji.class 2KB
PinglunServerImpi.class 2KB
Zhuanyexinxi.class 2KB
Yuanxixinxi.class 2KB
hsgloginController.class 2KB
Banjixinxi.class 2KB
Pinglun.class 2KB
Shoucangjilu.class 2KB
Md5.class 2KB
SetChar.class 2KB
IndexController.class 2KB
Youqinglianjie.class 2KB
Allusers.class 2KB
PageBean.class 1KB
PageInfo.class 1KB
testFilter.class 1KB
HuojiangxinxiMapper.class 1KB
YouqinglianjieMapper.class 1KB
XinwentongzhiMapper.class 1020B
XueshengxinxiMapper.class 1020B
ChengjitongjiMapper.class 1020B
LiuyanbanMapper.class 1016B
ZhuanyexinxiMapper.class 1009B
JiaoshixinxiMapper.class 1009B
KaohechengjiMapper.class 1009B
YonghuzhuceMapper.class 998B
YuanxixinxiMapper.class 998B
BanjixinxiMapper.class 987B
CheckCode.class 922B
HuojiangxinxiServer.class 904B
ShoucangjiluMapper.class 898B
AllusersMapper.class 898B
YouqinglianjieServer.class 896B
ChengjitongjiServer.class 885B
XueshengxinxiServer.class 885B
KaohechengjiServer.class 874B
JiaoshixinxiServer.class 874B
ZhuanyexinxiServer.class 874B
YonghuzhuceServer.class 863B
YuanxixinxiServer.class 863B
LiuyanbanServer.class 860B
PinglunMapper.class 858B
BanjixinxiServer.class 852B
XinwentongzhiServer.class 796B
AllusersServer.class 763B
ShoucangjiluServer.class 763B
PinglunServer.class 723B
Constant.class 674B
.classpath 1KB
org.eclipse.wst.common.component 604B
org.eclipse.wst.jsdt.ui.superType.container 49B
style.css 12KB
datepicker.css 4KB
CssAdmin.css 4KB
datepicker.css 4KB
StyleSheet.css 1KB
WdatePicker.css 158B
2_01.gif 35KB
1_03.gif 25KB
down.gif 20KB
共 459 条
- 1
- 2
- 3
- 4
- 5
资源评论
Yvonne2464
- 粉丝: 143
- 资源: 541
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功