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

📄 relpoprint.asp

📁 1 除掉了 时间 限制 2 除掉了 人数 限制 改为 500人 原为5人 3 发现一点小缺陷 增加人员的时候没有判断 登陆名是否重复! 自己写吧~~~:) 4 又 是一点缺陷
💻 ASP
字号:
<!--#include file="../config.ini" -->
<!--#include file="../commfunction.inc" -->
<html>
<head>
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>相关采购</title>
</head>
<body leftmargin="10" rightmargin="0" topmargin="10">
<%'#############################################################################################################%>
<script language=javascript>
function formPrint_submit(){
	if (form1.type.value=='delivery'||form1.type.value=='newporeceive'){
		//if (form1.poreceive.value==''){
	     //   alert('请选择收货单!');
	    //    form1.poreceive.focus();
	    //    return;
		//}
	}
	else{
		if (form1.POname.value==''){
	        alert('请选择采购单!');
	        form1.POname.focus();
	        return;
		}
	}
	
	if (form1.type.value=='po'){
		window.open("poprint.asp?poid="+form1.PO.value,"","toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,width=500,height=350,top=100,left=100")
		}
	if (form1.type.value=='delivery'){
		window.open("deliveryprint.asp?poreceiveid="+form1.poreceive.value,"","toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,width=700,height=480,top=50,left=50")	
		window.close();
		}
	if (form1.type.value=='inquire'){
		window.open("inquireprint.asp?poid="+form1.PO.value,"","toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,width=500,height=350,top=50,left=50")	
		}
	if (form1.type.value=='newporeceive'){
		window.location="newporeceive.asp?poid="+form1.PO.value;	
		}
}
</script>
<form name="form1" method="post" action="">
 <input type=hidden name=type value="<%=request("type")%>">
  <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="25"><strong><font class=title> 
        <%if request("type")="po" then%>
        打印采购单 
        <%elseif request("type")="delivery" then%>
        打印收货单 
        <%elseif request("type")="inquire" then%>
        打印采购询价单 
        <%elseif request("type")="newporeceive" then%>
        新建采购收货单 
        <%end if%>
        </font></strong> </td>
    </tr>
    <tr > 
      <td height="16" colspan="3" background="../images/title.gif">&nbsp;</td>
    </tr>
    <tr>
      <td height=4></td>
    </tr>
  </table>
  <br>
  <table width="100%" border="0" cellpadding="0" cellspacing="1">
    <tr> 
      <td width=6% height=20 align=left nowrap bgcolor="DEDFDE">采购单</td>
      <td height=20 bgcolor="EFEFEF" width=150>
      <%if request("type")="delivery" then%> 
        <input name="poreceive" type="hidden" size="8" value=""> 
        <input name="poreceivename" type="text" size="12" value="" readonly> 
        <input type="button" name="bnporeceive" onClick="JavaScript:opensubwin2('form1','poreceive')"    value=... class=black></div> 
      <%else%>
        <input name="PO" type="hidden" size="8" value=""> 
        <input name="POname" type="text" size="12" value="" readonly> 
        <input type="button" name="bnPO" onClick="JavaScript:opensubwin2('form1','PO')"    value=... class=black>
        <%end if%>
      </td>
      <td height=20 align=center valign="middle" nowrap bgcolor="DEDFDE" width=20> <div align="left"><a href="javascript:formPrint_submit();"> 
          <%if request("type")="newporeceive" then%>
          <img src="../images/button_next.gif" border=0 align="absmiddle"> 
          <%else%>
          <img src="../images/print.gif" border=0 align="absmiddle"> 
          <%end if%>
          </a> </div></td>
      <td height=20 align=left nowrap bgcolor="EFEFEF">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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