📄 baobiao_in_view_print.asp
字号:
<%@language=vbscript%>
<%
response.buffer=true
Response.Expires = 0
Response.CacheControl = "Private"
%>
<!-- #include file=../data/username.inc-->
<!-- #include file=../data/connect.asp-->
<!--#include file=../data/myPrg.asp-->
<%
newcompanyid = request("companyid")
if newcompanyid = "" then
call closedatabase
Response.Write "<script language=javascript>"
Response.Write "alert("""+newcompanyid +"请先选择公司再做此步操作!"");"
Response.write "history.go(-1);"
Response.Write "</script>"
Response.End
elseif not isnumeric(newcompanyid) then
call closedatabase
Response.Write "<script language=javascript>"
Response.Write "alert(""companyid必须为整数!"");history.go(-1);"
Response.Write "</script>"
Response.End
else
newcompanyid = cint(newcompanyid)
end if
%>
<%'On Error Resume Next%>
<%const title="入库通知书"%>
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel=stylesheet type=text/css href=../data/forum.css>
</head>
<body topmargin="0">
<%
sql = "select company_name from company where company_id = "&newcompanyid&""
set rs_company = conn.execute(sql)
if not rs_company.eof then
company_name = rs_company("company_name")
end if
rs_company.close
set rs_company = nothing
%>
<label name=table id=table>
<div align=center><font size=4><%=company_name%>入库通知书</font></div><br>
<div align="center">
<p align="left">致RDC/EDC: 日期:<%Response.Write date()%> </p>
<table width=100% align=center border='1' cellspacing='0' bordercolordark='#000000' bordercolorlight='#DADBFC' bordercolor='#000000'>
<tr>
<td width="24" rowspan="2"><div align="center">No.</td>
<td width="97" rowspan="2"><div align="center">
<p>Stock Inward<br>
Advice No.</p>
</td>
<td height="30" colspan="4"><div align="center">货品信息</div></td>
<td colspan="3"><div align="center">其它信息</div></td>
<td colspan="4"><div align="center">签收信息</div></td>
<td width="63" rowspan="2"><div align="center">备注</div></td>
</tr>
<tr>
<td width="80" height="50"><div align="center">型号</div></td>
<td width="55" height="50"><div align="center">颜色</div></td>
<td width="35" height="50"><div align="center">数量</div></td>
<td width="59" height="50"><div align="center">商品号</div></td>
<td width="78" height="50"><div align="center">空运或汽运</div></td>
<td width="101" height="50"><div align="center">预计到达时间</div></td>
<td width="49" height="50"><div align="center">联系人/电话</div></td>
<td width="38" height="50"><div align="center">实收<br>
数量</div></td>
<td width="87" height="50"><div align="center">签收日期</div></td>
<td width="35" height="50"><div align="center">签收<br>
时间</div></td>
<td width="52" height="50"><div align="center">签收人</div></td>
</tr>
<%
no = clng(Request.Form("no"))
if no > 0 then
u =0
flag1 = ""
for i = 1 to no
flag = trim(Request.Form(""&i&""))
if flag<> "" then
u = u + 1
flag1 =flag1 & trim(Request.Form(""&i&"")) & ","
end if
next
if trim(flag1) <> "" then
flag1 = left(flag1,len(flag1)-1)
sql = "select * from inward "
sql = sql + " join dc on inward.inwa_dc_id = dc.dc_id "
sql = sql + " join inward_detail on inward.inwa_id = inward_detail.idetail_inwa_id "
sql = sql + " join product on inward_detail.idetail_prod_id = product.prod_id "
sql = sql + " where inward.inwa_companyid = "&newcompanyid&" and inward_detail.idetail_id in ("&flag1&") "
sql = sql + " order by inward.inwa_id asc "
set rs_tongzhi = server.CreateObject("adodb.recordset")
rs_tongzhi.Open sql,conn,1,1
if not rs_tongzhi.eof then
i = 1
rs_tongzhi.MoveFirst
do while not rs_tongzhi.eof
%>
<tr>
<td width="24"><%=i%></td>
<td width="97"><%Response.write rs_tongzhi("inwa_sia")%></td>
<td><%response.write rs_tongzhi("prod_type")%></td>
<td><%prod_colorwe = trim(rs_tongzhi("prod_color"))
if prod_colorwe = "" then
response.write " "
else
response.write prod_colorwe
end if
idetail_rec_no = rs_tongzhi("idetail_rec_no")
%></td>
<td width="25"><div align="center"><%response.write rs_tongzhi("idetail_no")%></div></td>
<td width="49"><div align="center"><%response.write rs_tongzhi("prod_no")%></div></td>
<td><div align="center"><%response.write rs_tongzhi("inwa_type")%></div></td>
<td><%response.write rs_tongzhi("inwa_yuji_time")%></td>
<td><%response.write rs_tongzhi("inwa_contact")%></td>
<td width="38"><div align="center">
<%if idetail_rec_no <> 0 then
response.write idetail_rec_no
else
Response.Write " "
end if
%>
</div></td>
<td width="97">
<%if idetail_rec_no <> 0 then
response.write formatdatetime(rs_tongzhi("idetail_rec_date"),2)
else
Response.Write " "
end if%></td>
<td width="35">
<%
if idetail_rec_no <> 0 then
response.write formatdatetime(rs_tongzhi("idetail_rec_date"),4)
else
Response.Write " "
end if%>
</td>
<td width="52"><div align="center">
<%
if idetail_rec_no <> 0 then
response.write rs_tongzhi("idetail_rec_man")
else
Response.Write " "
end if
%>
</div></td>
<%if i = 1 then%>
<td rowspan=<%=u%> width="63"> </td>
<%end if%>
</tr>
<%
i = i + 1
rs_tongzhi.movenext
loop
end if
rs_tongzhi.Close
set rs_tongzhi = nothing
call closedatabase
end if
%>
<tr>
<td width="24"><div align="center">总计</div></td>
<td width="97"> </td>
<td> </td>
<td> </td>
<td width="25"> </td>
<td width="49"> </td>
<td> </td>
<td> </td>
<td> </td>
<td width="38"> </td>
<td width="97"> </td>
<td width="35"> </td>
<td width="52"> </td>
<td width="63"> </td>
</tr>
</table>
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -