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

📄 print_sell.asp

📁 进销存系统 进销存系统 进销存系统
💻 ASP
字号:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<html>
<head>
<title><%=dianming%> - 打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
<script language=javascript>
function preview() { 
bdhtml=window.document.body.innerHTML; 
sprnstr="<!--startprint-->"; 
eprnstr="<!--endprint-->"; 
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
window.document.body.innerHTML=prnhtml; 
window.print(); 
window.document.body.innerHTML=bdhtml; 
         }
</script>
</HEAD>

<BODY>
<%
if fla2="0" then
%>
<br><center><font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
  response.end
end if
%>

<%
nowku=request("ku")
nowhuohao=request("huohao")
nowshulian=request("shulian")
nowprice=request("price")
nowhuiyuan=request("huiyuan")
if nowhuiyuan="" then
  nowhuiyuan=0
end if
nowid_login=request("id_login")
set rs_buy=conn.execute("select * from sell order by id desc")
nownumber=rs_buy("id")+1000000
set rs_login=conn.execute("select * from login where id="&nowid_login)
set rs_ku=conn.execute("select ku from ku where id="&nowku)
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
set rs_bigclass=conn.execute("select bigclass from bigclass where id="&rs_produit("id_bigclass"))
set rs_smallclass=conn.execute("select smallclass from smallclass where id="&rs_produit("id_smallclass"))
set rs_huiyuan=conn.execute("select * from huiyuan where id="&rs_buy("id_huiyuan"))
set rs_login=conn.execute("select * from login where id="&rs_buy("id_login"))
%>

<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
  <tr> 
    <td height="21" align="center"><img src="../images/print.jpg" align="absmiddle" style="cursor:hand;" onClick="preview();window.close()"></td>
  </tr>
</table>
<!--startprint-->
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
  <tr> 
    <td height="21" align="center"><h1>商品销售出库单</h1></td>
  </tr>
  <tr> 
    <td height="21" align="right">
	  客户名称:<input type="text" value="<%if rs_huiyuan.eof=false then%><%=rs_huiyuan("username")%><%else%>非会员<%end if%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">&nbsp;&nbsp;
	  销售日期:<input type="text" value="<%=rs_buy("selldate")%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">&nbsp;&nbsp;
	  发票号码:<input type="text" value="<%=nownumber%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">&nbsp;&nbsp;
	</td>
  </tr>
</table>
<table width="98%" border="1" cellspacing="1" cellpadding="2" align="center">
  <tr class="a1" style="color:#ffffff;font-size:12px;">
    <th height="30">货号</th>
	<th>产品名称</th>
	<th>数量</th>
	<th>单位</th>
	<th>单价</th>
	<th>金额</th>
  </tr>
  <tr bgcolor="#ececec" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#ececec'">
    <td align="center" height="25"><%if rs_produit.eof then%><%=rs_buy("huohao")%><%else%><%=rs_produit("huohao")%><%end if%></td>
	<td align="center"><%if rs_produit.eof then%><%=rs_buy("title")%><%else%><%=rs_produit("title")%><%end if%></td>
	<td align="center"><%=rs_buy("shulian")%></td>
	<td align="center">
	  <%=rs_produit("danwei")%>
	</td>
    <td align="center"><%=rs_buy("price")%></td>
	<td align="center"><%=rs_buy("price")*rs_buy("shulian")%></td>
  </tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
  <tr> 
    <td height="21" width="42%">
	  &nbsp;&nbsp;销售单位:
	  <input type="text" value="<%=dianming%>" size="30" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
	</td>
    <td width="58%" align="right">
	  经办人:
	    <input type="text" value="<%if rs_login.eof then%><%=rs_buy("login")%><%else%><%=rs_login("username")%><%end if%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">&nbsp;&nbsp;
	  收款人:<input type="text" value="<%if rs_login.eof then%><%=rs_buy("login")%><%else%><%=rs_login("username")%><%end if%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">&nbsp;&nbsp;
	</td>
  </tr> 
</table>
<!--endprint-->
</body>
</html>

⌨️ 快捷键说明

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