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

📄 informadd.jsp

📁 仓库管理系统,适合各种行业的仓库管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*,com.bean.DTO.*,com.bean.DAO.*,com.database.*" errorPage="" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link  href="<%=request.getContextPath()%>/css/SMSpublic.css" rel="stylesheet" type="text/css"/>
<link  href="../css/SMSpublic.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="../js/birthday.js"></script>
<script type="text/javascript" language="javascript">
function check(){
    var name = document.form1.budgetprice.value;
	var age = document.form1.buytime.value;
	var email = document.form1.checkerID.value;
	var em = document.form1.directorID.value;
	if(name==""){
	   alert("预算价格不能为空!");
	   return false;
	}
	if(age==""){
	 alert("采购时间不能为空!");
	   return false;
	}
	if(email==""){
	 alert("采购员ID不能为空!");
	   return false;
	}
	if(em==""){
	 alert("负责人ID不能为空!");
	   return false;
	}
	if(isNaN(name)){
	 alert("预算价格必须位数字!");
	   return false;
	}
	if(isNaN(email)){
	 alert("采购员ID必须位数字!");
	   return false;
	}
	if(isNaN(em)){
	 alert("负责人ID必须位数字!");
	   return false;
	}
	
	
}
</script>
<style type="text/css">
<!--
.STYLE1 {color: #9999FF}
-->
</style>
</head>
<%
  Connection con = DataSourceFactory.getDataSource().getConnection();
			AppbuyDAO dao = new AppbuyDAO(con);
			String product = request.getParameter("productID");
			String page1 = request.getParameter("curpage");
			int curpage = Integer.parseInt(page1);
			String project = request.getParameter("projectID");
			int productID = Integer.parseInt(product);
			int projectID = Integer.parseInt(project);
			dao.updproduct2(projectID,productID);
			con.close();
 %>
<body>
<table width="1010" border="0" height="21" bgcolor="#6495ED"cellpadding="0" cellspacing="0" >
  <tr>
<td width="15%"  ><font class="title1 STYLE1">          填 写 预 购 表</font></td>
  </tr>
</table>
<form id="form1" name="form1" method="post" action="/SMS/infomadd.do?curpage=<%=curpage %>" onsubmit="return check()" ><!-- 修改 -->
  <table width="80%"  border="0"  cellpadding="1" cellspacing="1">
      <tr>
         <td height="41" colspan="6" align="center" class="title1">填  写  预  购  表</td>
      </tr>
      <tr>
        <td width="29%" height="30" class="title2">采购项目ID:</td>
        <td width="71%" height="30" class="STYLE18"><%=project %><input type="hidden" name="projectID" value="<%=project %>"/></td>
      </tr>
      
      <tr>
        <td height="30" class="title2">采购货物ID:</td>
        <td height="30" class="STYLE18"><%=product %><input type="hidden" name="productID" value="<%=product %>"/></td>
      </tr>
      
      <tr>
        <td height="30" class="title2">预算价 格:</td>
        <td height="30" class="STYLE18"><input name="budgetprice" type="text" class="inputcontent" /></td>
      </tr>
      <tr>
        <td height="30" class="title2">供货  商:</td>
        <td height="30" class="STYLE18"><input name="provider" type="text" class="inputcontent" /></td>
      </tr>
      <tr>
        <td height="30" class="title2">采购时 间:</td>
        <td height="30" class="STYLE18"><input name="buytime" type="text" class="inputcontent" onfocus="show_cele_date(buytime,'','',buytime)"/></td>
      </tr>
      <tr>
        <td height="30" class="title2">采购员 ID:</td>
        <td height="30" class="STYLE18"><input name="checkerID" type="text" class="inputcontent" /></td>
      </tr>
      
      <tr>
        <td height="30" class="title2">负责人 ID:</td>
        <td height="30" class="STYLE18"><input name="directorID" type="text" class="inputcontent" /></td>
      </tr>
      <tr>
        <td height="30" colspan="2" class="STYLE18">       
          <input type="submit" name="Submit" value="提   交" class="button"/> 
                          
          <input type="reset" name="Submit2" value="重   置" class="button"/></td>
      </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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