📄 print_sell.asp
字号:
<!--#include file="Inc/Config.asp"-->
<!--#include file="inc/Dx_admin_check.asp"-->
<html>
<head>
<title><%=WebName%> - 打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Css/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>
<%
dim priceAll:priceAll=0
dx_OutList_id=request.QueryString("OutList_id")
sql="select * from dx_OutList,dx_consumer where dx_OutList.dx_OutList_consumer=dx_consumer.dx_consumer_id and dx_OutList.dx_OutList_id="&dx_OutList_id
rs.open sql,conn,1,1
dx_OutList_user=rs("dx_OutList_user")
dx_OutList_time=rs("dx_OutList_time")
dx_OutList_consumer=rs("dx_consumer_name")
rs.close
sql="select * from [dx_site] where dx_site_do=1"
rs.open sql,conn,1,1
dx_site_name=rs("dx_site_name")
rs.close
%>
<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="<%=dx_OutList_consumer%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
出库日期:<input type="text" value="<%=dx_OutList_time%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
发票号码:<input type="text" value="" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
</td>
</tr>
</table>
<table width="98%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolor="#000000">
<tr>
<th height="30">货号</th>
<th>产品名称</th>
<th>数量</th>
<th>单价</th>
<th>金额</th>
</tr>
<%
sql="select * from [dx_OutDepot] where dx_OutDepot_list="&dx_OutList_id
rs.open sql,conn,1,1
if not rs.eof then
while not rs.eof
%>
<tr>
<td align="center" height="25"><%=rs("dx_OutDepot_product")%></td>
<td align="center"><%=getProductName(rs("dx_OutDepot_product"))%></td>
<td align="center"><%=rs("dx_OutDepot_count")%></td>
<td align="center"><%=rs("dx_OutDepot_price")%></td>
<td align="center"><%=rs("dx_OutDepot_all")%></td>
</tr>
<%
priceAll=priceAll+rs("dx_OutDepot_all")
rs.movenext
wend
rs.close
end if
%>
<tr>
<td colspan="4" align="right">总计 : </td>
<td align="center"><%=priceAll%></td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21" width="50%">
销售单位:
<input type="text" value="<%=dx_site_name%>" size="40" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
</td>
<td align="right" width="50%">
经办人:<input type="text" value="<%=dx_OutList_user%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
收款人:<input type="text" value="<%=dx_OutList_user%>" size="20" style="border-bottom:solid 1 #000000;border-top:solid 0 #000000;border-left:solid 0 #000000;border-right:solid 0 #000000;">
</td>
</tr>
</table>
<!--endprint-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -