基于javaweb+jsp的倉庫進銷存管理系統
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代碼實作JSP
<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.chukuHuohao}</td>
<td>${vo.chukuName}</td>
<td>${vo.chukuSuliang}</td>
<td>${vo.chukuClientname}</td>
</tr>
<tr>
<td width="12%">操作員:</td><td><input class="index-content-table-td-add" type="text" id="chukuMan" name="chukuMan" value="${vo.chukuMan}"/></td>
</tr>
<tr>
<td width="12%">備注:</td><td><textarea id="chukuText" name="chukuText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="請輸入內容......">${vo.chukuText}</textarea></td>
</tr>
</table>
<br>
<br>
<br>
<button type="submit" class="btn btn-pill btn-line btn-success btn-sm">提交</button> <button type="button" class="btn btn-pill btn-line btn-danger btn-sm" onclick="javascript:history.back(-1);">取消</button>
</form>
</div>
</body>
<script type="text/javascript">
function searchList() {
window.location.href = "chukuList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
}
</script>
if (document.getElementById("chukuSuliang").value.trim().length == 0) {
alert("數量不能為空!");
return false;
}
if (document.getElementById("chukuClientname").value.trim().length == 0) {
alert("客戶名不能為空!");
return false;
}
if (document.getElementById("chukuTel").value.trim().length == 0) {
alert("聯系方式不能為空!");
return false;
}
if (document.getElementById("chukuMan").value.trim().length == 0) {
alert("操作員不能為空!");
return false;
}
return true;
}
</script>
<%@ 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"/>
function check() {
//根據ID獲取值
if (document.getElementById("chukuHuohao").value.trim().length == 0) {
alert("貨號不能為空!");
return false;
}
if (document.getElementById("chukuName").value.trim().length == 0) {
alert("貨物名稱不能為空!");
return false;
}
if (document.getElementById("chukuSuliang").value.trim().length == 0) {
alert("數量不能為空!");
return false;
}
if (document.getElementById("chukuClientname").value.trim().length == 0) {
alert("客戶名不能為空!");
return false;
}
if (document.getElementById("chukuTel").value.trim().length == 0) {
alert("聯系方式不能為空!");
return false;
<div class="index-content-operation">
<a class="info-detail">添加出庫 </a>
<br>
<br>
</div>
<br>
<form action="chukuAdd" 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="chukuHuohao" name="chukuHuohao" value=""/></td>
</tr>
<tr>
<td width="12%">貨物名稱:</td><td><input class="index-content-table-td-add" type="text" id="chukuName" name="chukuName" value=""/></td>
</tr>
<tr>
<tr>
<td>貨物名稱:<b>${vo.chukuName}</b></td>
</tr>
<tr>
<td>數量:<b>${vo.chukuSuliang}</b></td>
</tr>
<tr>
<td>客戶名:<b>${vo.chukuClientname}</b></td>
</tr>
<tr>
<td>聯系方式:<b>${vo.chukuTel}</b></td>
</tr>
<tr>
<td>操作員:<b>${vo.chukuMan}</b></td>
</tr>
<tr>
<td>備注:<b>${vo.chukuText}</b></td>
</tr>
</table>
<br>
<button type="button" class="btn btn-pill btn-line btn-danger btn-sm" onclick="javascript:history.back(-1);">回傳</button>
<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.chukuHuohao}</b></td>
<br>
<br>
</div>
<br>
<form action="chukuEdit" method="post" onsubmit="return check()">
<input type="hidden" id="id" name="id" value="${vo.id}"/>
<table class="index-content-table-add">
<tr>
<td width="12%">貨號:</td><td><input class="index-content-table-td-add" type="text" id="chukuHuohao" name="chukuHuohao" value="${vo.chukuHuohao}"/></td>
</tr>
<tr>
<td width="12%">貨物名稱:</td><td><input class="index-content-table-td-add" type="text" id="chukuName" name="chukuName" value="${vo.chukuName}"/></td>
</tr>
<tr>
<td width="12%">數量:</td><td><input class="index-content-table-td-add" type="text" id="chukuSuliang" name="chukuSuliang" value="${vo.chukuSuliang}"/></td>
</tr>
<tr>
<td width="12%">客戶名:</td><td><input class="index-content-table-td-add" type="text" id="chukuClientname" name="chukuClientname" value="${vo.chukuClientname}"/></td>
</tr>
<tr>
<td>${vo.chukuMan}</td>
<td>
<button class="btn btn-pill btn-line btn-danger btn-sm" style="padding: 0px 1px;" onclick="window.location.href='chukuGet?id=${vo.id}'">詳情</button>
<button class="btn btn-pill btn-line btn-primary btn-sm" style="padding: 0px 1px;"
<c:if test="${loginUser.userType != '管理員'}">disabled="disabled" title="沒有權限!!!"</c:if>
οnclick="window.location.href='chukuEditPre?id=${vo.id}'">編輯</button>
<button class="btn btn-pill btn-line btn-primary btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理員'}">disabled="disabled" title="沒有權限!!!"</c:if> οnclick="if(window.confirm('將要洗掉:${vo.chukuName}?'))window.location.href='chukuDelete?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>
</div>
</body>
<%@ 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">
</table>
<br>
<br>
<br>
<button type="submit" class="btn btn-pill btn-line btn-success btn-sm">提交</button> <button type="button" class="btn btn-pill btn-line btn-danger btn-sm" onclick="javascript:history.back(-1);">取消</button>
</form>
</div>
</body>
<script type="text/javascript">
//提交之前進行檢查,如果return false,則不允許提交
function check() {
//根據ID獲取值
if (document.getElementById("chukuHuohao").value.trim().length == 0) {
alert("貨號不能為空!");
return false;
}
if (document.getElementById("chukuName").value.trim().length == 0) {
alert("貨物名稱不能為空!");
return false;
if (document.getElementById("chukuMan").value.trim().length == 0) {
alert("操作員不能為空!");
return false;
}
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>
</div>
</body>
</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>
</tr>
<tr>
<td width="12%">客戶名:</td><td><input class="index-content-table-td-add" type="text" id="chukuClientname" name="chukuClientname" value=""/></td>
</tr>
<tr>
<td width="12%">聯系方式:</td><td><input class="index-content-table-td-add" type="text" id="chukuTel" name="chukuTel" value=""/></td>
</tr>
<tr>
<td width="12%">操作員:</td><td><input class="index-content-table-td-add" type="text" id="chukuMan" name="chukuMan" value=""/></td>
</tr>
<tr>
<td width="12%">備注:</td><td><textarea id="chukuText" name="chukuText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="請輸入內容......"></textarea></td>
<jsp:include page="menu.jsp"/>
<div class="index-content">
<div class="index-content-operation">
<a class="info-detail">出庫 管理</a>
<br>
<br>
</div>
<br>
<div class="index-content-operation">
<button class="btn btn-pill btn-line btn-success btn-sm" <c:if test="${loginUser.userType != '管理員'}">disabled="disabled" title="沒有權限!!!"</c:if> οnclick="window.location.href='chuku_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="chuku_name"/><button class="btn btn-pill btn-line btn-primary 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>
運行環境
Java≥6、Tomcat≥7.0、MySQL≥5.5
開發工具
idea/eclipse/MyEclipse
技術框架
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
適用
課程設計,大作業,畢業設計,專案練習,學習演示等
功能說明
登錄、注冊、退出、用戶模塊、公告模塊、出庫模塊、庫存模塊、入庫模塊的增刪改查管理






轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/317877.html
標籤:其他
