⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 goodsinstore.jsp

📁 老牌java开发的物流管理系统 详细的我也没有怎么看 好像是恒基的
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="t"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'goodsInStore.jsp' starting page</title> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
   <script type='text/javascript' src='/wl/dwr/interface/GoodsManager.js'></script>
   <script type='text/javascript' src='/wl/dwr/engine.js'></script>   
   <script type='text/javascript' src='/wl/dwr/util.js'></script>
  </head>

<style type="text/css">
   @import cssjs/tian.css;
   .input{   
   border-style:none;
   color:red;
   }
</style>
<script type="text/javascript">
    function googsRefer(){
    var goodsName=dwr.util.getValue("goodsName")
    GoodsManager.selectGoodsByName(goodsName,result);
    }
    function result(data){
      var goodsInType= dwr.util.getValue("goodsInType");
      dwr.util.setValue("goodsInType",data.goodsCommodityName);
      var goodsNum=dwr.util.getValue("goodsNum");
      dwr.util.setValue("goodsNum",data.goodsNum);
      var goodsCommect=dwr.util.getValue("goodsCommect");
      dwr.util.setValue("goodsCommect",data.goodsTypeName);
      var goodsInTypeId=dwr.util.getValue("goodsInTypeId");
      dwr.util.setValue("goodsInTypeId",data.goodsTypeId);
      var goodsCommectId=dwr.util.getValue("goodsCommectId");
      dwr.util.setValue("goodsCommectId",data.commodityId);
    }
    function check(){
       var goodsInId=document.getElementById("goodsInId").value;
        var result=document.getElementById("reslut");
         var goodsInName=document.getElementById("goodsInName").value;
       if(goodsInId==''){
           result.value='编号不能为空!';
           return false;
       } 
       if(isNaN(goodsInId)){
          result.value='编号只能为数字且小于六位!';
          return false;
       }
       if(goodsInId.length>6){
          result.value='编号只能大于六位!';
          return false;
       }
      if(goodsInName==''){
         result.value='请选择商品名称!';
         return false;
       } 
       return true;
     }
</script>
  <body>
  <h2 align="center" style="color:red">入库单操作</h2>
  <br>
  <form action="GoodsInStrore.do?num=1" method="post">
  <center><font size="4" color="red" face="黑体">${sessionScope.result}</font></center>
  <table width="700" height="450" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
    <tr>
     <td height="200" colspan="2">
      <table width="600" height="400" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
        <tr>
          <td class="tdManager">入库编号:</td>
          <td><input name="goodsInId" type="text"  size="20" id="goodsInId">
          </td>
          <td class="tdManager">商品名称:</td>
          <td>
             <select id="goodsName" onchange="googsRefer()" name="goodsInName">
               <option value="">请选择商品名称</option>
               <t:forEach var="allGoodsInfoList" items="${sessionScope.allGoodsInfoList}">
                <option value="${allGoodsInfoList.id}">${allGoodsInfoList.goodsName}</option>
               </t:forEach>
             </select>
         </td>
        </tr>
        <tr>
          <td class="tdManager" >商品分类:</td>
          <td>
              <input class="input" type="text" id="goodsInType" size=20 contentEditable="false"/>          
          </td>
        <td class="tdManager">商品等级:</td>
          <td align="left"><input type="text" size="20" class="input" id="goodsCommect" contentEditable="false"/>
          </td>
        </tr>
        <tr>
          <td class="tdManager">商品数量:</td>
          <td align="left"><input name="goodsNum" type="text" size="20" class="input">
          </td>
        </tr>
        <tr>
          <td>备注:</td>
          <td colspan="4" class="texteareManager"><textarea rows="5" cols="70" name="remark"></textarea></td>
        </tr>
        <tr>
          <td colspan="2" height="30"><input type="hidden" name="goodsInType" id="goodsInTypeId" contentEditable="false"/></td>
          <td colspan="2" height="30"><input type="hidden" name="goodsCommect" id="goodsCommectId" contentEditable="false"/></td>
        </tr>
        <tr align="center">
          <td height="34" colspan="4"><input name="Submit" type="submit" class="buttonstyle"  value="确认入库" onclick="return check()">
      &nbsp;&nbsp;&nbsp;
      <input name="cancle" type="reset" class="buttonstyle" id="cancle" value="重填数据"></td>
        </tr>
        <tr>
          <td colspan="4"><input type="text" class="input" contentEditable="false" id="reslut"/></td>
        </tr>
      </table>
     </td>
  </tr>
</table>
</form>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -