首页 > 作文

基于javaweb+jsp实现企业财务记账管理系统

更新时间:2023-04-04 07:41:31 阅读: 评论:0

前言

运行环境

java≥6、tomcat≥7.0、mysql≥5.5

开发工具

idea/eclip/myeclip

技术框架

javaweb javabean jsp mvc mysql tomcat javascript

基础jsp+rvlet或jsp+ssm(spring、springmvc、mybatis)框架或jsp+ssm+maven(pom.xml)框架…均可

开发工具:idea或eclip或myeclip

适用

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

功能说明

登录、注册、退出、用户模块、公告模块、职工工资模块、企业资产模块、项目经营模块的增删改查管理

部分代码实现jsp

                            <th>投入(万元)</th>                            <th>收入(万元)</th>                            <th>利润(万元)</th>                            <th>盈亏</th>                        <th style="text-align: center;">操作</th>                    </tr>                    </thead>                    <tbody>                    <c:foreach items="${list}" var="vo">                        <tr>                <td>${vo.jingyinname}</td>                <td>${vo.jingyindate}<六年级上册英语作文;/td>                <td>${vo.jingyintou}</td>                <td>${vo.jingyinshou}</td>
        <div class="modal-content">            <form action="jingyinrvlet">                <div class="modal-header">                    <button type="button" class="clo" data-dismiss="modal" aria-label="clo">                        <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>                <div class="modal-body">                    <table class="table table-striped table-hover" style="font-size: 15px;">                        <tr>                            <td style="width: 15%;">项目名称:</td>                            <td><b id="info-jingyinname"></b></td>                        </tr>                        <tr>                            <td style="width: 15%;">时间:</td>                            <td><b id="info-jingyindate"></b></td>                        </tr>                        <tr>                            <td style="width: 15%;">投入(万元):</td>                            <八年级英语教学总结;td><b id="info-jingyintou"></b></td>                        </tr>                        <tr>                            <td style="width: 15%;">收入(万元):</td>                            <td><b id="info-jingyinshou"></b></td>                        </tr>                        <tr>                            <td style="width: 15%;">利润(万元):</td>
        </div>    </div></div><!-- add --><div class="modal fade" id="modal-add" tabindex="-1" role="dialog"     aria-labelledby="mymodallabel">    <div class="modal-dialog" role="document">        <div class="modal-content">            <form action="jingyinrvlet" onsubmit="return addcheck()">                <div class="modal-header">                    <button type="button" class="clo" data-dismiss="modal"
            </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">        <div class="modal-content">            <form action="jingyinrvlet" onsubmit="return editcheck()">                <div class="modal-header">                    <button type="button" class="clo" data-dismiss="modal" aria-label="clo">                        <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>
        }        if (document.getelementbyid("edit-jingyintou").value.trim().length == 0) {            alert("投入(万元)不能为空");            return fal;        }        if (document.getelementbyid("edit-jingyinshou").value.trim().length == 0) {            alert("收入(万元)不能为空");            return fal;        }        if (document.getelementbyid("edit-jingyinlirun").value.trim().length == 0) {            alert("利润(万元)不能为空");            return fal;        }        return true;    }</script>
        let button = $(event.relatedtarget);        let id = button.data('id');        let modal = $(this);        $.ajax({            url: 'jingyinrvlet?action=get&id=' + id,            type: "get",            success: function (vostring) {                let vo = eval('(' + vostring + ')');                        modal.find('#edit-id').val(vo.id);                        modal.find('#edit-jingyinname').val(vo.jingyinname);                        modal.find('#edit-jingyindate').val(vo.jingyindate);                        modal.find('#edit-jingyintou').val(vo.jingyintou);
                        <label for="edit-createtime" class="control-label">创建时间:</label>                        <input type="text" class="form-control" name="createtime" id汽车智能技术="edit-createtime">                    </div>                </div>                <div class="modal-footer">                    <button type="button" class="btn btn-pill btn-line btn-warning" data-dismiss="modal">取消</button>                    <button type="submit" class="btn btn-pill btn-line btn-danger">提交</button>                </div>            </form>        </div>    </div></div><!-- delete --><div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="mymodallabel">
                    <div class="form-group">                        <label class="control-label">盈亏:</label>                        <input name="jingyinstatus" id="add-jingyinstatus_盈利" type="radio" value="盈利" checked="checked"/>盈利                        <input name="jingyinstatus" id="add-jingyinstatus_亏损" type="radio" value="亏损"/>亏损                    </div>                    <div class="form-group">                        <label for="add-jingyintext" class="control-label">备注:</label>                        <textarea style="height: 100px;" class="form-control" name="jingyintext" id="add-jingyintext"></textarea>                    </div>雨滴                </div>                <div class="modal-footer">                    <button type="button" class="btn btn-pill btn-line btn-warning" data-dismiss="modal">取消</button>                    <button type="submit" class="btn btn-pill btn-line btn-danger">提交</button>                </div>            </form>
    </div></div><!-- info --><div class="modal fade" id="modal-info" tabindex="-1" role="dialog"     aria-labelledby="mymodallabel">    <div class="modal-dialog" role="document">        <div class="modal-content">            <form>                <div class="modal-header">                    <button type="button" class="clo" data-dismiss="modal" aria-label="clo">                        <span aria-hidden="true">&times;</span>                    </button>
                <td>${vo.jingyinstatus}</td>                            <th style="text-align: center;">                                <button class="btn btn-pill btn-line btn-info btn-sm" data-id="${vo.id}"                                        data-toggle="modal" data-target="#modal-info">详情                                </button>                                <button class="btn btn-pill btn-line btn-success btn-sm"                                                <c:if test="${loginur.urtype != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>                                        data-id="${vo.id}"                                        data-toggle="modal" data-target="#modal-edit">编辑                                </button>                                <button class="btn btn-pill btn-line btn-warning btn-sm" <c:if test="${loginur.urtype != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> data-id="${vo.id}"                                        data-toggle="modal" data-target="#modal-delete">删除                                </button>                            </th>                        </tr>                    </c:foreach>                    </tbody>                </table>            </div>
                let vo = eval('(' + vostring + ')');                modal.find('#info-jingyinname').text(vo.jingyinname);                modal.find('#info-jingyindate').text(vo.jingyindate);                modal.find('#info-jingyintou').text(vo.jingyintou);                modal.find('#info-jingyinshou').text(vo.jingyinshou);                modal.find('#info-jingyinlirun').text(vo.jingyinlirun);                modal.find('#info-jingyinstatus').text(vo.jingyinstatus);                modal.find('#info-jingyintext').text(vo.jingyintext);            }        })    })    function archlist() {        window.location.href = "jingyinrvlet?action=list&archcolumn="+document.getelementbyid("archcolumn").value+"&keyword=" + document.getelementbyid("arch_keyword").value;    }
                        </tr>                        <tr>                            <td style="width: 15%;">盈亏:</td>                            <td><b id="info-jingyinstatus"></b></td>                        </tr>                        <tr>                            <td style="width: 15%;">备注:</td>                            <td><b id="info-jingyintext"></b></td>                        </tr>                    </table>                    <br>                </div>                <div class="modal-footer">                    <button type="button" class="btn btn-pill btn-line btn-warning" data-dismiss="modal">关闭</button>
                        <span aria-hidden="true">&times;</span>                    </button>                    <h4 class="modal-title" id="mymodallabel">增加项目经营</h4>                </div>                <div class="modal-body">                    <div class="form-group hidden">                        <label class="control-label">(hidden)</label>                        <input type="text" class="form-control" name="action" value="add">                    </div>                    <div class="form-group">                        <label for="add-jingyinname" class="control-label">项目名称:</label>                        <input type="text" class="form-control" name="jingyinname" id="add-jingyinname">
                    </div>                    <div class="form-group">                        <label for="edit-jingyinshou" class="control-label">收入(万元):</label>                        <input type="text" class="form-control" name="jingyinshou" id="edit-jingyinshou">                    </div>                    <div class="form-group">                        <label for="edit-jingyinlirun" class="control-label">利润(万元):</label>                        <input type="text" class="form-control" name="jingyinlirun" id="edit-jingyinlirun">                    </div>                    <div class="form-group">                        <label class="control-label">盈亏:</label>                               <input name="jingyinstatus" id="edit-jingyinstatus_盈利" type="radio" value="盈利"/>盈利                               <input name="jingyinstatus" id="edit-jingyinstatus_亏损" type="radio" value="亏损"/>亏损                    </div>                    <div class="form-group">                        <label for="edit-jingyintext" class="control-label">备注:</label>                        <textarea style="height: 100px;" class="form-control" name="jingyintext" id="edit-jingyintext"></textarea>                    </div>
                    <div class="form-group">                        <label for="add-jingyindate" class="control-label">时间:</label>                        <input type="text" class="form-control" name="jingyindate" id="add-jingyindate">                    </div>                    <div class="form-group">                        <label for="add-jingyintou" class="control-label">投入(万元):</label>                        <input type="text" class="form-control" name="jingyintou" id="add-jingyintou">                    </div>                    <div class="form-group">                        <label for="add-jingyinshou" class="control-label">收入(万元):</label>                        <input type="text" class="form-control" name="jingyinshou" id="add-jingyinshou">                    </div>                    <div class="form-group">                        <label for="add-jingyinlirun" class="control-label">利润(万元):</label>                        <input type="text" class="form-control" name="jingyinlirun" id="add-jingyinlirun">
<%@ page contenttype="text/html; chart=utf-8" pageencoding="utf-8" %><%@ taglib uri="/d/file/titlepic/" prefix="c" %><%@ taglib prefix="fn" uri="/d/file/titlepic/" %><%@ taglib prefix="fmt" uri="/d/file/titlepic/" %><!doctype html><html><head>    <meta chart="utf-8">    <title>项目经营管理</title>    <link rel="stylesheet" href="css/bootstrap.css" rel="external nofollow" >    <link rel="stylesheet" href="css/main.css" rel="external nofollow" >    <script src="js/jquery-3.5.1.js"></script>    <script src="js/bootstrap.js"></script></head>
            </ul>        </div>    </div></nav><div class="container-fluid">    <div class="row">        <div class="col-sm-3 col-md-2 sidebar">            <!-- 侧边栏 -->            <jsp:include page="menu.jsp">                <jsp:param value="active" name="jingyin_active"/>            </jsp:include>        </div>        <br>        <div class="col-sm-9 col-sm-offt-3 col-md-10 col-md-offt-2 main">            <div class="row">                <div class="col-sm-7">                    <div class="input-group">                        <input class="form-control" type="hidden" id="archcolumn" name="archcolumn" value="jingyin_name"/>                        <input class="form-control" type="text" id="arch_keyword" name="arch_keyword" placeholder="项目名称"/> <span class="input-group-btn"><button class="btn btn-pill btn-line btn-primary" type="button" onclick="archlist()">搜索</button></span>                    </div>
                        <input type="text" readonly class="form-control" name="id" id="edit-id">                    </div>                    <div class="form-group">                        <label for="edit-jingyinname" class="control-label">项目名称:</label>                        <input type="text" class="form-control" name="jingyinname" id="edit-jingyinname">                    </div>                    <div class="form-group">                        <label for="edit-jingyindate" class="control-label">时间:</label>                        <input type="text" class="form-control" name="jingyindate" id="edit-jingyindate">                    </div>                    <div class="form-group">                        <label for="edit-jingyintou" class="control-label">投入(万元):</label>
            住字组词            modal.find('#edit-jingyinlirun').val(vo.jingyinlirun);                        for (let val of "盈利/亏损".split('/')) {                            if (val == vo.jingyinstatus) {                                modal.find('#edit-jingyinstatus_' + vo.jingyinstatus).prop("checked", true);                            } el {                                modal.find('#edit-jingyinstatus_' + vo.jingyinstatus).removeattr("checked");                            }                        };                        modal.find('#edit-jingyintext').val(vo.jingyintext);            }        })    })    $('#modal-info').on('show.bs.modal', function (event) {        let button = $(event.relatedtarget);        let id = button.data('id');        let modal = $(this);        $.ajax({            url: 'jingyinrvlet?action=get&id=' + id,            type: "get",
                <div class="col-sm-5">                    <button type="button" <c:if test="${loginur.urtype != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> class="btn btn-pill btn-line btn-danger" data-toggle="modal" data-target="#modal-add">添加项目经营                    </button>                </div>            </div>            <br>            <br>            <div class="table-responsive">                <table class="table table-striped table-hover">                    <thead>                    <tr>                            <th>项目名称</th>
<body><nav class="navbar navbar-inver navbar-fixed-top">    <div class="container-fluid">        <div class="navbar-header">            <button type="button" class="navbar-toggle collapd" data-toggle="collap" data-target="#navbar" aria-expanded="fal" aria-controls="navbar">                <span class="sr-only">企业财务记账管理系统</span> <span class="icon-bar"></span>                <span class="icon-bar"></span> <span class="icon-bar"></span>            </button>            <a class="navbar-brand" href="#" rel="external nofollow"  rel="external nofollow" >企业财务记账管理系统</a>        </div>        <div id="navbar" class="navbar-collap collap">            <ul class="nav navbar-nav navbar-right">                <li><a href="#" rel="external nofollow"  rel="external nofollow" >欢迎:<span style="color: yellow">${loginur.urname}</span></a></li>
    function addcheck() {        //根据id获取值        if (document.getelementbyid("add-jingyinname").value.trim().length == 0) {            alert("项目名称不能为空");            return fal;        }        if (document.getelementbyid("add-jingyindate").value.trim().length == 0) {            alert("时间不能为空");            return fal;        }        if (document.getelementbyid("add-jingyintou").value.trim().length == 0) {            alert("投入(万元)不能为空");            return fal;        }
                </div>                <div class="modal-footer">                    <button type="button" class="btn btn-pill btn-line btn-warning" data-dismiss="modal">取消</button>                    <button type="submit" class="btn btn-pill btn-line btn-warning">删除</button>                </div>            </form>        </div>    </div></div></body><script>    $('#modal-delete').on('show.bs.modal', function (event) {        let button = $(event.relatedtarget);        let id = button.data('id');        let modal = $(this);        modal.find('#delete-id').val(id);    })
            alert("收入(万元)不能为空");            return fal;        }        if (document.getelementbyid("add-jingyinlirun").value.trim().length == 0) {            alert("利润(万元)不能为空");            return fal;        }        return true;    }    //编辑表单提交之前进行检查,如果return fal,则不允许提交    function editcheck() {        //根据id获取值        if (document.getelementbyid("edit-jingyinname").value.trim().length == 0) {            alert("项目名称不能为空");            return fal;        }        if (document.getelementbyid("edit-jingyindate").value.trim().length == 0) {            alert("时间不能为空");

效果图

以上就是基于javaweb+jsp实现企业财务记账管理系统的详细内容,更多关于javaweb jsp企业财务记账管理系统的资料请关注www.887551.com其它相关文章!

本文发布于:2023-04-04 07:41:25,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/15b04f3e445575600362231f670ffa96.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:基于javaweb+jsp实现企业财务记账管理系统.doc

本文 PDF 下载地址:基于javaweb+jsp实现企业财务记账管理系统.pdf

下一篇:返回列表
标签:万元   项目   为空   管理系统
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图