📄 checklistbytype.asp
字号:
<!--#include file="../Conndb.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>库存盘点管理</title>
<link href="../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
oth = oth+",width=550,height=350";
var newView=window.open(url,"newView",oth);
newView.focus();
return false;
}
</script>
</head>
<%
Dim rs,sch,flag,stype
Set rs = Server.CreateObject("ADODB.RecordSet")
Set rsType = Server.CreateObject("ADODB.RecordSet")
%>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST" action="CheckListByType.asp">
<p align="center"><font color="#000080"><b><font style="font-size: 12pt">库 存 盘 点 管 理</font></b></font></p>
<p align="left">
选择商品类型 <select size="1" name="type">
<%sql = "Select * From ProType Where UpperId=0 ORDER BY TypeId"
rs.Open sql,conn,1,3
Do While Not rs.EOF
%>
<option value="<%=rs("TypeId")%>"><%=rs("TypeName")%></option>
<% '显示商品二级类型
sql = "Select * From ProType Where UpperId=" & rs("TypeId") & " Order By TypeId"
rsType.Open sql,Conn,1,3
Do While Not rsType.EOF
%>
<option value="<%=rsType("TypeId")%>">--<%=rsType("TypeName")%></option>
<% rsType.MoveNext()
Loop
rsType.Close()
rs.MoveNext()
Loop
rs.Close()%>
</select>
<input type="submit" value="查 询" name=sch></p>
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
<tr>
<td width="14%" align="center" bgcolor="#C1E0FF"><strong>盘点日期</strong></td>
<td width="18%" align="center" bgcolor="#C1E0FF"><strong>商品名称</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>原库存数量</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>盘点数量</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>差值</strong></td>
<td width="18%" align="center" bgcolor="#C1E0FF"><strong>备注</strong></td>
<td width="14%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
</tr>
<%
stype = Request("type")
If stype<>"" Then
sch = sch & " And (p.TypeId=" & stype & " Or t.UpperId=" & stype & ")"
End If
'读取数据到记录集rs中
sql = "SELECT c.*,p.ProName,t.TypeId FROM StoreCheck c,Product p,ProType t " _
+ " Where c.ProId=p.ProId And p.TypeId=t.TypeId " & sch & " ORDER BY p.TypeId,p.ProId"
'Response.Write sql
rs.Open sql,conn,1,1
'在表格中显示问题记录
If rs.Eof Then
Response.Write "<tr><td colspan=7 align=center>目前还没有记录。</td></tr></table>"
Else
Do While Not rs.EOF
%>
<tr>
<td align="center"><%=rs("ChkDate")%></td>
<td align="center"><%=rs("ProName")%> </td>
<td align="center"><%=rs("OrgNum")%> </td>
<td align="center"><%=rs("ChkNum")%> </td>
<td align="center"><%=rs("ChkNum")-rs("OrgNum")%> </td>
<td><%=rs("Memo")%> </td>
<td align="center">
<%If rs("Status")="创建" Then%>
<a href="CheckEdit.asp?action=edit&cid=<%=rs("ChkId")%>" onClick="return newView(this.href)">修改</a>
<a href="CheckDelt.asp?cid=<%=rs("ChkId")%>" onClick="return newView(this.href)">删除</a>
<a href="CheckAudit.asp?cid=<%=rs("ChkId")%>" onClick="if(confirm('确定要审核记录吗?')){return newView(this.href);}return false;">审核</a>
<%End If%> </td>
</tr>
<%
rs.MoveNext()
Loop
%>
</table>
<%End If%>
<p align="center">
<input type="button" value="新建盘点记录" onclick="newView('CheckEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -