基于javaweb+jsp的药店医药信息管理系统

Posted javayms

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于javaweb+jsp的药店医药信息管理系统相关的知识,希望对你有一定的参考价值。

基于javaweb+jsp的药店医药信息管理系统

JavaWeb JavaBean JSP MVC mysql Tomcat javascript

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

开发工具:idea或eclipse或myeclipse

部分代码实现JSP

            <th>联系号码</th>
            <th>身份证</th>
            <th>职位</th>
            <th>入职时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="$list" var="vo">
            <tr class="index-content-table-td">
                <td>$vo.employeeName</td>
                <td>$vo.employeeNo</td>
                <td>$vo.employeeAge</td>
                <td>$vo.employeePhone</td>
                <td>$vo.employeeIdno</td>
                <td>$vo.employeePosition</td>
                <td>$vo.employeeIntime</td>
                <td>
                    <button class="btn btn-grad btn-danger btn-sm" style="padding: 0px 1px;" onclick="window.location.href='EmployeeServlet?action=get&id=$vo.id'">详情</button>&nbsp;
                    <button class="btn btn-grad btn-danger btn-sm" style="padding: 0px 1px;"
                            <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if>
                    οnclick="window.location.href='EmployeeServlet?action=editPre&id=$vo.id'">编辑</button>&nbsp;
                    <button class="btn btn-grad btn-warning btn-sm" style="padding: 0px 1px;" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:$vo.employeeName?'))window.location.href='EmployeeServlet?action=delete&id=$vo.id'">删除</button>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    </div>
    <br>
    <div class="index-content-operation">
        <button class="btn btn-grad btn-danger btn-sm" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='employee_add.jsp'">添加</button>
        <div class="index-content-operation-search"><input id="search_keyword" placeholder="姓名" type="text" name="search_keyword"/><input type="hidden" id="searchColumn" name="searchColumn" value="employee_name"/><button class="btn btn-grad btn-default btn-sm" onclick="searchList()">搜索</button></div>
    </div>
    <br>
    <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr class="index-content-table-th">
            <th>姓名</th>
            <th>工号</th>
            <th>性别</th>
            </tr>
            <tr>
                <td width="12%">性别:</td>
                <td>
                   <input name="employeeSex" type="radio" value="男" $vo.employeeSex=='男'?'checked':''/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   <input name="employeeSex" type="radio" value="女" $vo.employeeSex=='女'?'checked':''/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td width="12%">年龄:</td><td><input class="index-content-table-td-add" type="text" id="employeeAge" name="employeeAge" value="$vo.employeeAge"/></td>
            </tr>
            <tr>
                <td width="12%">联系号码:</td><td><input class="index-content-table-td-add" type="text" id="employeePhone" name="employeePhone" value="$vo.employeePhone"/></td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td>工号:<b>$vo.employeeNo</b></td>
            </tr>
            <tr>
                <td>性别:
                    <b>$vo.employeeSex</b>
                </td>
            </tr>
            <tr>
                <td>年龄:<b>$vo.employeeAge</b></td>
            </tr>
            <tr>
                <td>联系号码:<b>$vo.employeePhone</b></td>
            </tr>
            <tr>
                <td>身份证:<b>$vo.employeeIdno</b></td>
    </form>
</div>

</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() 
        //根据ID获取值
        if (document.getElementById("employeeName").value.trim().length == 0) 
            alert("姓名不能为空!");
            return false;
        
        if (document.getElementById("employeeNo").value.trim().length == 0) 
            alert("工号不能为空!");
            return false;
        
        if (document.getElementById("employeeAge").value.trim().length == 0) 
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">添加员工 </a>
        <br>
        <br>
    </div>
    <br>
    <form action="EmployeeServlet?action=add" method="post" onsubmit="return check()">
        <table class="index-content-table-add">
            <tr>
                <td width="12%">姓名:</td><td><input class="index-content-table-td-add" type="text" id="employeeName" name="employeeName" value=""/></td>
            </tr>
            <tr>
                <td width="12%">工号:</td><td><input class="index-content-table-td-add" type="text" id="employeeNo" name="employeeNo" value=""/></td>
            </tr>
            <tr>
                <td width="12%">性别:</td>
            </tr>
            <tr>
                <td width="12%">职位:</td><td><input class="index-content-table-td-add" type="text" id="employeePosition" name="employeePosition" value="$vo.employeePosition"/></td>
            </tr>
            <tr>
                <td width="12%">入职时间:</td><td><input class="index-content-table-td-add" type="text" id="employeeIntime" name="employeeIntime" value="$vo.employeeIntime"/></td>
            </tr>
            <tr>
                <td width="12%">备注:</td><td><textarea id="employeeText" name="employeeText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">$vo.employeeText</textarea></td>
            </tr>
        </table>
        <br>
        <br>
        <br>
            <tr>
                <td>职位:<b>$vo.employeePosition</b></td>
            </tr>
            <tr>
                <td>入职时间:<b>$vo.employeeIntime</b></td>
            </tr>
            <tr>
                <td>备注:<b>$vo.employeeText</b></td>
            </tr>
        </table>
        <br>
        <button type="button" class="btn btn-grad btn-danger btn-sm" onclick="javascript:history.back(-1);">返回</button>
    </form>
</div>
</body>
</html>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>员工 管理</title>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">员工 管理</a>
        <br>
                        <input name="employeeSex" type="radio" value="" checked="checked"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input name="employeeSex" type="radio" value=""/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;以上是关于基于javaweb+jsp的药店医药信息管理系统的主要内容,如果未能解决你的问题,请参考以下文章

基于JAVAEE的网上药店销售平台的设计与实现

基于php+mysql的社区药店管理系统

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

寻找基于javaweb的毕业设计代做?请找我们

基于javaweb+jsp的房产房屋交易管理系统

乘风破浪,勇战新挑,看亮通打开智慧医疗新格局