实例介绍
【实例简介】
系统主要实现了仓库管理员对仓库基本管理、系统维护管理、商品基本管理、商品统计报表和统计汇总分析的管理;实现了普通管理员对商品基本管理模块、商品入库模块、商品出库模块、商品退货维修模块的管理。论文主要介绍了系统的设计和规划,系统分析,数据库设计,每个模块和特定接口的设计。仓库管理系统通过测试及试运行之后,可以完成管理员想要实现的功能。
基于JAVA平台开发的一套电器仓库管理系统。该系统主要采用JAVA为编程语言,采用面向对象的开发方法和B/ S架构,数据库采用SQL SERVER建立数据之间的转换。主要运用了STRUTS框架和JSP的开发技术
Win7操作系统,MyEclipse的调试环境,SQL SERVER 数据库。经过多次测试,本系统能在Win7操作系统,MyEclipse的调试环境上可以正常的运行。基本上实现了仓库管理系统预期的功能,并且目前试运行良好。
【实例截图】
【核心代码】
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="cb" scope="page" class="com.bean.ComBean" />
<%
String path = request.getContextPath();
String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>ºǫ́²Ù×÷Çø</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="<%=basePath %>admin/images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-family: "ËÎÌå";
font-size: 12px;
color: #333333;
background-color: #2286C2;
}
-->
</style>
</head>
<SCRIPT language=JavaScript src="<%=basePath %>admin/images/calendar.js"></SCRIPT>
<script type="text/javascript">
function check()
{//
if(document.form1.spid.value==""||document.form1.sl.value==""||document.form1.bz.value=="" )
{
alert("È«²¿ÄÚÈݶ¼ÒªÌîд£¡");
//document.form1.xzryj.focus();
return false;
}
if(isNaN(document.form1.sl.value))
{
alert("ÊýÁ¿±ØÐëΪÊý×Ö£¡");
document.form1.sl.focus();
return false;
}
}
</script>
<%
String message = (String)request.getAttribute("message");
if(message == null){
message = "";
}
if (!message.trim().equals("")){
out.println("<script language='javascript'>");
out.println("alert('" message "');");
out.println("</script>");
}
request.removeAttribute("message");
String username=(String)session.getAttribute("user");
if(username==null){
response.sendRedirect(path "index.jsp");
}
else{
String method=request.getParameter("method");
String id="";String spid = "";String sl=""; String bz="";
if(method.equals("upck")){
id=request.getParameter("id");
List jlist = cb.get1Com("select * from ck where id='" id "'",5);
spid=jlist.get(1).toString();sl=jlist.get(2).toString();bz=jlist.get(3).toString();
}
%>
<BODY >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2"> </td>
</tr>
<tr>
<td background="<%=basePath %>admin/images/index1_45.gif"></td>
<td bgcolor="#FFFFFF" style="height:490px; vertical-align:top;">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C4E7FB">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td class="font2"> ³ö¿âÐÅÏ¢¹ÜÀí</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<form action="<%=basePath %>ComServlet?method=<%=method%>&id=<%=id%>" method="post" name="form1" onSubmit="return check()">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB">
<tbody>
<tr bgColor=#ffffff>
<td class="font1" height="26" width="35%" align=right>ÉÌÆ·Ãû³Æ£º</td>
<td class="font1" align=left><select name=spid>
<%if(method.equals("upck")){ %><option value="<%=spid%>"><%=cb.getString("select mc from sp where id='" spid "'") %></option><%} %>
<%List list1=cb.getCom("select * from sp order by id asc",2);if(!list1.isEmpty()){for(int i=0;i<list1.size();i ){List list2 =(List)list1.get(i); %>
<option value=<%=list2.get(0).toString() %>><%=list2.get(1).toString() %></option>
<%}} %>
</select></td>
</tr>
<tr bgColor=#ffffff>
<td class="font1" height="26" width="35%" align=right>³ö¿âÊýÁ¿£º</td>
<td class="font1" align=left><input type="text" name=sl value="<%=sl %>" size=30/></td>
</tr>
<tr bgColor=#ffffff>
<td class="font1" height="26" width="35%" align=right>±¸×¢ÐÅÏ¢£º</td>
<td class="font1" align=left><textarea name=bz cols=50 rows=9><%=bz %></textarea></td>
</tr>
<tr bgColor=#ffffff>
<td class="font1" colspan="2" height="23" align=center><input type="submit" value="È·¶¨"></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</table>
</td>
<td background="images/index1_47.gif"></td>
</tr>
<tr>
<td width="8" height="8"><img src="images/index1_91.gif" width="8" height="8" /></td>
<td background="images/index1_92.gif"></td>
<td width="8" height="8"><img src="images/index1_93.gif" width="8" height="8" /></td>
</tr>
</table>
</body>
<%} %>
相关软件
网友评论
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
支持(0) 盖楼(回复)
支持(0) 盖楼(回复)