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

📄 materialbuytable_delete.jsp

📁 JSP移动商品管理平台源代码.........
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"  import="cmis.common.*" import="imis_mate.DAO.*" import="imis_mate.bean.*" import="cmis.common.*" import="imis_mate.DAO.*" import="imis_mate.bean.*,common.*,imis_mate.common.*" errorPage="error.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>物品采购信息删除</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script language="JavaScript" src="js/checkdata.js"></script>
    <script language="JavaScript" src="js/MaterialBuyTable.js"></script>
	<script type="text/javascript" > 
		
		function DeleteSubmit(){ 
			ask = confirm("你确定删除该记录吗?");
			if(ask){
				form1.action = "../imis_mate/MaterialBuyTableServlet?pattern=delete";
				parent.iframe_elec_tree.location.reload();  //刷新左半边的树 框架名称在menu页面内
				form1.onsubmit="";
			}
		} 
	</script > 
	<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">

	<link rel="stylesheet" type="text/css" href="styles.css">


  <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  
  <body background="/Imis/imis_mate/images/bg_main.png">
 	<table width="100%"  border="0" background="/Imis/imis_mate/images/bg_main2.png">
	  <tr class="tubiao" >
	    <td>物品采购信息删除</td>
	  </tr>
	</table>
	
	
	 <%
    MaterialBuyBean mbb = new MaterialBuyBean();
 	mbb = (MaterialBuyBean)request.getAttribute("MaterialBuyBean");
%>
		
	<c:if test="${requestScope.success != null}">
		<font class="ziti"> 
        ${requestScope.success}</font>
		
		</c:if>
		
		
		<c:if test="${requestScope.MaterialBuyBean!=null}">
		
		<br/>
 	<c:if test="<%=mbb.getBuyNo()!=null%>">
			
<form method="post" action="" name="form1">
   <table width="647" border="0" class="ziti"> 
    <tr> 
      <td width="20%" align="right">单据编号</td>
      <td colspan="3"> 
        <input name="buyNo" type="text" class="text1" id="buyNo" value="<%=mbb.getBuyNo()%>" size="20" maxlength="30" readonly="readonly"/>
        <c:if test="${requestScope.UserIdExisted != null}"> <img src="/Imis_elec/images/error.gif"/><font color="red"> 
        ${requestScope.UserIdExisted}</font> </c:if> </td>
    </tr>
    <tr> 
      <td align="right" width="20%">付款方式</td>
      <td colspan="3"> 
         <select name="payType" id="payType"  class="text1" disabled="disabled">
          <%if(mbb.getPayType().equals("1")){ %>
          <option value="1" selected>现金</option>
          <option value="2">转帐</option>
          <option value="3" >支票</option>
          <option value="4">其他</option>
         <%}if(mbb.getPayType().equals("2")){ %>
          <option value="1" >现金</option>
          <option value="2" selected>转帐</option>
          <option value="3">支票</option>
          <option value="4">其他</option>
          <%}if(mbb.getPayType().equals("3")){ %>
          <option value="1">现金</option>
          <option value="2">转帐</option>
          <option value="3" selected>支票</option>
          <option value="4">其他</option>
          <%}if(mbb.getPayType().equals("4")){ %>
          <option value="1">现金</option>
          <option value="2">转帐</option>
          <option value="3" >支票</option>
          <option value="4" selected>其他</option><%}%>
        </select>
      </td> </tr>
    <tr> 
      <td align="right" width="20%">应付账款</td>
      <td colspan="3"> 
        <input name="rePay" type="text"  class="text1" value="<%=mbb.getRePay() %>" size="10" maxlength="10" readonly="readonly"/>
      </td> </tr>
    <tr> 
      <td align="right" width="20%">实付账款</td>
      <td colspan="3"> 
        <input name="acPay" type="text"   class="text1" value="<%=mbb.getAcPay() %>" size="10" maxlength="10" readonly="readonly"/>
      </td> </tr>
     <tr> 
      <td align="right" width="20%">采购日期</td>
      <td colspan="3"> 
       	 <input name="inDate" id="inDate" size="10" maxlength="10" type="text" value="<%=mbb.getInDate()%>" readonly="readonly"/>
      </td> </tr>
    <tr> 
      <td align="right" width="20%">采购部门</td>
      <td width="26%"> 
      
      <select name="buyDep" id="buyDep" class="text1" disabled="disabled">
        <% 
		int deptId = 0;
		String deptName = null;
		DepartmentsBean describe = new DepartmentsBean();
		ArrayList list = describe.getDepts();
		Iterator itr = list.iterator();
        while (itr.hasNext()) {
     	Hashtable ht = (Hashtable) itr.next();  
		deptId      =  Integer.parseInt(ht.get("deptId").toString());
       	deptName   =  ht.get("deptName").toString(); 
       		
		if(mbb.getBuyDep()==deptId){%>
		<option value=<%=deptId%> selected><%=deptName%></option>
		<%}
		else
		{%>
		<option value=<%=deptId%>><%=deptName%></option>
		<%		
		}
		}
		%> 
       </select>
      </td>
	  <td align="right" width="14%">采购人</td>
      <td width="40%"> 
        <input name="buyBy" type="text" class="text1" value="<%=mbb.getBuyBy() %>" size="20" maxlength="30" readonly="readonly" />
      </td>
    </tr>
	<tr> 
      <td align="right" width="20%">申请部门</td>
      <td width="26%"> 
       <select name="applyDep" id="applyDep" class="text1" disabled="disabled">
        <% 
		
	      deptId = 0;
		 deptName = null;
		DepartmentsBean describe1 = new DepartmentsBean();
		ArrayList list1 = describe1.getDepts();
		Iterator itr1 = list1.iterator();
        while (itr1.hasNext()) {
     	Hashtable ht = (Hashtable) itr1.next();  
		deptId      =  Integer.parseInt(ht.get("deptId").toString());
       	deptName   =  ht.get("deptName").toString(); 
       
		if(mbb.getApplyDep()==deptId){%>

		<option value=<%=deptId%> selected><%=deptName%></option>
		
		<%}
		else
		{%>
		<option value=<%=deptId%>><%=deptName%></option>
		<%		
		}
		}
		%>
        </select>
       
      </td>
	   <td align="right" width="14%">申请人</td>
      <td width="40%"> 
        <input name="applyBy" type="text" class="text1" value="<%=mbb.getApplyBy() %>" size="20" maxlength="30" readonly="readonly" />
      </td>
    </tr>
	<tr> 
      <td align="right" width="20%">使用部门</td>
      <td width="26%"> 
       
      <select name="useDep" id="useDep" class="text1" disabled="disabled">
        <% 
		
		deptId = 0;
		deptName = null;
		DepartmentsBean describe2 = new DepartmentsBean();
		ArrayList list2 = describe2.getDepts();
		Iterator itr2 = list2.iterator();
        while (itr2.hasNext()) {
     	Hashtable ht = (Hashtable) itr2.next();  
		deptId      =  Integer.parseInt(ht.get("deptId").toString());
       	deptName   =  ht.get("deptName").toString(); 
       		
		if(mbb.getUseDep()==deptId){%>
		<option value=<%=deptId%> selected><%=deptName%></option>
		<%}
		else
		{%>
		<option value=<%=deptId%>><%=deptName%></option>
		<%		
		}
		}
		%>
         
        </select>
      </td>
	  <td align="right" width="14%">使用人</td>
      <td width="40%"> 
        <input name="useBy" type="text" class="text1" value ="<%=mbb.getUseBy() %>" size="20" maxlength="30"   readonly="readonly" />
      </td>
    </tr>
	
    <tr> 
      <td align="right" width="20%">供应商</td>
      <td> 
     <select name="supplyNo" id="supplyNo" class="text1" disabled="disabled">
      <% 
		SupplyInfoDAO dao = new SupplyInfoDAO(); 
		ArrayList list5 = dao.getSupplyInfo();
		Iterator it = list5.iterator();
		
		while(it.hasNext()){
			SupplyInfoBean sb = (SupplyInfoBean)it.next();
			if(mbb.getSupplyNo()==sb.getSupplyNo()){
		 %>
		<option value=<%=sb.getSupplyNo()%> selected><%=sb.getSupplyName()%></option>
		<%
			}else{
		%>
		<option value=<%=sb.getSupplyNo()%>><%=sb.getSupplyName()%></option>
		<%
			}
		}
		%>
        </select>
       
      </td> 
	 
      <td align="right" width="14%">采购批准人</td>
      <td> 
        <input name="perBy" type="text"  class="text1" value="<%=mbb.getPerBy() %>" size="20" maxlength="30" readonly="readonly" />
      </td> 
    <tr> 
      <td align="right" width="20%">采购原因</td>
      <td> 
        <textarea name="buyFor" rows="5" cols="20"  class="textarea1" readonly="readonly" ><%=mbb.getBuyFor()%></textarea>
      </td> 
	   <td align="right" width="14%">单据摘要</td>
      <td> 
        <textarea name="remark" rows="5" cols="20"  class="textarea1" readonly="readonly" ><%=mbb.getReMark()%></textarea>
      </td> </tr>
	  <tr>
						<td>&nbsp;</td>
						</tr>
    <tr align="center"> 
      <td colspan="4"> 
<%--      <input type="submit" name="Submit" value="删  除" onclick="DeleteSubmit()" class="anniu"/> --%>
             <br></td>
     </tr>
  </table>
</form>
		</c:if>
		</c:if>
  </body>
</html>

⌨️ 快捷键说明

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