基于javaweb+jsp的医院住院管理系统
Posted qq_1742826239
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于javaweb+jsp的医院住院管理系统相关的知识,希望对你有一定的参考价值。
基于javaweb+jsp的医院住院管理系统
JavaWeb JavaBean JSP MVC mysql Tomcat javascript idea eclipse MyEclipse Servlet SSM Maven …
部分代码实现JSP
<td>${vo.bingfangNo}</td>
<td>${vo.bingfangName}</td>
<td>${vo.bingfangType}</td>
<td>${vo.bingfangCount}</td>
<td>${vo.bingfangPrice}</td>
<td>
<button class="btn btn-pill btn-danger btn-sm" style="padding: 0px 1px;" onclick="window.location.href='bingfangGet?id=${vo.id}'">详情</button>
<button class="btn btn-pill btn-primary btn-sm" style="padding: 0px 1px;"
<c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
οnclick="window.location.href='bingfangEditPre?id=${vo.id}'">编辑</button>
<button class="btn btn-pill btn-default btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:${vo.bingfangName}?'))window.location.href='bingfangDelete?id=${vo.id}'">删除</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ 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>
<br>
</div>
<jsp:include page="menu.jsp"/>
<div class="index-content">
<div class="index-content-operation">
<a class="info-detail">病房 详情</a>
<br>
<br>
</div>
<br>
<form>
<table class="index-content-table-add" style="font-size: 18px;">
<tr>
<td>病房号:<b>${vo.bingfangNo}</b></td>
</tr>
<tr>
<td>科室:<b>${vo.bingfangName}</b></td>
</tr>
<tr>
<td>类型:
<b>${vo.bingfangType}</b>
</td>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ 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>
<br>
</body>
<script>
function searchList() {
window.location.href = "bingfangList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
}
</script>
<div class="index-content-operation">
<button class="btn btn-pill btn-info btn-sm" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='bingfang_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="bingfang_name"/><button class="btn btn-pill btn-info 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>
<th>容量</th>
<th>价格</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="vo">
return true;
}
</script>
</html>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ 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>
</td>
</tr>
<tr>
<td width="12%">容量:</td><td><input class="index-content-table-td-add" type="text" id="bingfangCount" name="bingfangCount" value="${vo.bingfangCount}"/></td>
</tr>
<tr>
<td width="12%">价格:</td><td><input class="index-content-table-td-add" type="text" id="bingfangPrice" name="bingfangPrice" value="${vo.bingfangPrice}"/></td>
</tr>
<tr>
<td width="12%">详情:</td><td><textarea id="bingfangText" name="bingfangText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">${vo.bingfangText}</textarea></td>
</tr>
</table>
<br>
<br>
<br>
<button type="submit" class="btn btn-pill btn-info btn-sm">提交</button> <button type="button" class="btn btn-pill btn-danger btn-sm" onclick="javascript:history.back(-1);">取消</button>
</form>
</body>
<script type="text/javascript">
//提交之前进行检查,如果return false,则不允许提交
function check() {
//根据ID获取值
if (document.getElementById("bingfangNo").value.trim().length == 0) {
alert("病房号不能为空!");
return false;
}
if (document.getElementById("bingfangName").value.trim().length == 0) {
alert("科室不能为空!");
return false;
}
if (document.getElementById("bingfangCount").value.trim().length == 0) {
alert("容量不能为空!");
return false;
}
if (document.getElementById("bingfangPrice").value.trim().length == 0) {
alert("价格不能为空!");
return false;
</tr>
<tr>
<td width="12%">容量:</td><td><input class="index-content-table-td-add" type="text" id="bingfangCount" name="bingfangCount" value=""/></td>
</tr>
<tr>
<td width="12%">价格:</td><td><input class="index-content-table-td-add" type="text" id="bingfangPrice" name="bingfangPrice" value=""/></td>
</tr>
<tr>
<td width="12%">详情:</td><td><textarea id="bingfangText" name="bingfangText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......"></textarea></td>
</tr>
</table>
<br>
<br>
<br>
<button type="submit" class="btn btn-pill btn-info btn-sm">提交</button> <button type="button" class="btn btn-pill btn-danger btn-sm" onclick="javascript:history.back(-1);">取消基于java的医院住院管理系统