基于javaweb+jsp的企业行政信息管理系统(带报告文档)

基于javaweb+jsp的企业行政信息管理系统(带报告文档)

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可修改

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

    //增加表单提交之前进行检查,如果return false,则不允许提交
    function addCheck() {
        //根据ID获取值
        if (document.getElementById("add-noticeName").value.trim().length == 0) {
            alert("标题不能为空");
            return false;
        }
        if (document.getElementById("add-noticeType").value.trim().length == 0) {
            alert("类型不能为空");
            return false;
        }
        if (document.getElementById("add-createDate").value.trim().length == 0) {
            alert("创建时间不能为空");
            return false;
        }
        return true;
    }
    //编辑表单提交之前进行检查,如果return false,则不允许提交
    function editCheck() {
        //根据ID获取值
        if (document.getElementById("edit-noticeName").value.trim().length == 0) {
            alert("标题不能为空");
            return false;
        }
        if (document.getElementById("edit-noticeType").value.trim().length == 0) {
    function addCheck() {
        //根据ID获取值
        if (document.getElementById("add-huiName").value.trim().length == 0) {
            alert("主题不能为空");
            return false;
        }
        if (document.getElementById("add-huiDate").value.trim().length == 0) {
            alert("时间不能为空");
            return false;
        }
        if (document.getElementById("add-huiDept").value.trim().length == 0) {
            alert("部门不能为空");
            return false;
        }
        if (document.getElementById("add-huiShi").value.trim().length == 0) {
            alert("地点不能为空");
            return false;
        }
        return true;
    public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Serializable id = Util.decode(request, "id");//取出主键id
        Pei vo = peiService.get(id);
        response.getWriter().println(com.alibaba.fastjson.JSONObject.toJSONString(vo));
    }

    /**
     * 根据条件查询培训的列表并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("peiList")
    public void list(HttpServletResponse response, HttpServletRequest request) throws IOException {
        this.redirectList(request, response);
    }

    /**
     * 跳转到列表页面
     *
     * @param request
     * @param response
     */
    private void redirectList(HttpServletRequest request, HttpServletResponse response) throws IOException {
        </where>
    </select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.demo.dao.NoticeMapper">

    <resultMap id="BaseResultMap" type="com.demo.vo.Notice" >
            <result column="id" property="id" />
            <result column="notice_name" property="noticeName" />
            <result column="notice_text" property="noticeText" />
            <result column="notice_type" property="noticeType" />
            <result column="create_date" property="createDate" />
    </resultMap>

    <sql id="Base_Column_List">
        `id`,`notice_name`,`notice_text`,`notice_type`,`create_date`
    </sql>

    <!--新增-->
    <insert id="doCreate" useGeneratedKeys="true" keyColumn="id" keyProperty="id" parameterType="com.demo.vo.Notice">
        INSERT INTO `t_notice`
        <trim prefix="(" suffix=")" suffixOverrides=",">
                    <if test ='id != null'>`id`,</if>
                    <if test ='noticeName != null'>`notice_name`,</if>
                    <if test ='noticeText != null'>`notice_text`,</if>
                <div class="modal-footer">
                    <button type="button" class="btn btn-line btn-info" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-line btn-warning">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- delete -->
<div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form action="huiDelete">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">删除会议</h4>
                </div>
                <div class="modal-body">
                    确认要删除该会议记录吗?
                    <div class="form-group hidden">
                        <label class="control-label">(hidden)</label>
                        <input type="hidden" class="form-control" name="action" value="delete">
                        <input type="text" class="form-control" name="id" id="delete-id">
                    </div>
                    </table>
                    <br>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-line btn-info" data-dismiss="modal">关闭</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- edit -->
<div class="modal fade" id="modal-edit" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">

    /**
     * 编辑节假
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("jiaEdit")
    public void edit(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Jia vo = new Jia();
        vo.setId(Long.valueOf(Util.decode(request, "id")));
        vo.setJiaName(Util.decode(request, "jiaName"));
        vo.setJiaSdate(Util.decode(request, "jiaSdate"));
        vo.setJiaEdate(Util.decode(request, "jiaEdate"));
        vo.setJiaZhuyi(Util.decode(request, "jiaZhuyi"));
        vo.setJiaText(Util.decode(request, "jiaText"));
        jiaService.update(vo);
        this.redirectList(request, response);
    }

    /**
     * @throws IOException
     */
    @RequestMapping("huiEdit")
    public void edit(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Hui vo = new Hui();
        vo.setId(Long.valueOf(Util.decode(request, "id")));
        vo.setHuiName(Util.decode(request, "huiName"));
        vo.setHuiDate(Util.decode(request, "huiDate"));
        vo.setHuiDept(Util.decode(request, "huiDept"));
        vo.setHuiShi(Util.decode(request, "huiShi"));
        vo.setHuiText(Util.decode(request, "huiText"));
        huiService.update(vo);
        this.redirectList(request, response);
    }

    /**
     * 获取会议的详细信息(详情页面与编辑页面要显示该会议的详情)并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping({"huiGet", "huiEditPre"})
    public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
            if (isMessyCode(str)) {
                str = new String(str.getBytes("UTF-8"), "GBK");
            }
            if (isMessyCode(str)) {
                str = new String(str.getBytes("ISO-8859-1"), "GBK");
            }
            if (isMessyCode(str)) {
                str = new String(str.getBytes("GB2312"), "GBK");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(parameterName + "==" + str.trim());
        return str.trim();
    }
}

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可修改

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

登录、注册、退出、用户模块、公告模块、会议模块、培训模块、节假模块的增删改查管理

20220319010011

20220319010012

20220319010013

20220319010014

20220319010015

20220319010016

20220319010017

20220319010018

20220319010019

20220319010020

20220319010021

document

加粗样式

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值