📄 cailiao_in_store.asp
字号:
<b><font color="#ffffff">添加入库信息</font></b>
</td>
</tr>
</table>
<%end if %>
<table width="800" border="0" cellpadding="0" cellspacing="0" bordercolor="#0055E6">
<tr class="but">
<td width="10%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">入库日期</td>
<td width="10%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">类 别</td>
<td width="20%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">品 名 | 规 格 | 单位</td>
<td width="10%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">存储库房</td>
<td width="10%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">单价</td>
<td width="10%" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">数量</td>
</tr>
<form name="powersearch" method="post" action="cailiao_in_store.asp" onSubmit="return Juge(this)" >
<tr> <input type="Hidden" name="action" value='<% If isedit then%>modify<% Else %>add<% End If %>'>
<% If isedit then%><input type="Hidden" name="id" value="<%=rs("id")%>"> <% End If %>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'">
<input name="uptime" onFocus="show_cele_date(uptime,'','',uptime)" type="text" size="10" value='<% if isedit then
response.write rs("uptime")
else
response.write date()
end if %>'></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'">
<select name='d_position1' onchange='Do_po_Change(this);' valign=top style='width:90'>
<% if isedit then%>
<option selected="selected"><%=rs("fenlei")%></option>
<%else%>
<option selected value='0000'>请选择类别</option>
<%end if%>
<%
set rs1=server.createobject("adodb.recordset")
rs1.open "select * from fenlei",conn,1,1
if not rs1.eof then
do while not rs1.eof
%>
<option value="<%=rs1("fenleiname")%>"><%=rs1("fenleiname")%></option>
<%
rs1.movenext
loop
end if
rs1.close
set rs1=nothing
%></select></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'">
<select name='pinming' size=1 style='width:190'>
<% if isedit then%>
<option selected="selected" value="<%=rs("pinming")%>|<%=rs("guige")%>|<%=rs("unit")%>|<%=rs("use_num")%>"><%=rs("pinming")%> | <%=rs("guige")%> | <%=rs("unit")%></option>
<%else%>
<option>--请选择--</option>
<%end if%>
</select>
</td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><select name="Supplier" size="1" style='width:150'>
<% if isedit then%><option ><%=rs("Supplier")%></option><%end if%>
<%
set rs3=server.createobject("adodb.recordset")
rs3.open "select * from cailiaocangku",conn,1,1
if not rs3.eof then
do while not rs3.eof
%>
<option <% if isedit then
if trim(rs3("cangkuname"))=trim(rs("Supplier")) then
%> selected="selected"<%end if%><%end if%>><%=rs3("cangkuname")%></option>
<%
rs3.movenext
loop
end if
rs3.close
set rs3=nothing
%>
</select>
</td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input name="use_price" type="text" size="10" value='<% if isedit then
response.write rs("use_price")
end if %>'></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input name="use_num" type="text" size="10" value='<% if isedit then
response.write rs("use_num")
end if %>'></td>
</tr>
<tr class="but">
<td height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">金额</td>
<td height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">采购员</td>
<td height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">供货单位</td>
<td colspan="5" height="18" align="center" class="but" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but'">备 注</td>
</tr>
<tr>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input name="use_Amount" readonly type="text" class="textfield" size="10" value='<% if isedit then
response.write rs("use_Amount")
end if %>'></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input name="caigouyuan" type="text" size="10" value='<% if isedit then
response.write rs("caigouyuan")
end if %>'></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input name="gonghuodanwei" type="text" size="30" value='<% if isedit then
response.write rs("gonghuodanwei")
end if %>'></td>
<td height="18" colspan="4" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'">
<textarea name="content" cols="40" rows="2"><% if isedit then
response.write rs("content")
end if %></textarea></td></tr>
<tr>
<td colspan="6" align="center"><input type="submit" value="<% if isedit then
response.write "编辑"
else
response.write "添加"
end if %>"> </td>
</tr></form>
</table>
<%end if%>
</td>
</tr>
</table>
<br><br>
<TABLE width=800 align=center border="0" cellspacing="0" cellpadding="0" bordercolor="#0055E6">
<tr>
<td >
<table width="800" border="1" cellpadding="0" cellspacing="0" bordercolor="#0055E6" align="center">
<tr>
<td width="800" align="center" valign="top">
<table width="800" border="0" cellpadding="0" cellspacing="0" >
<tr >
<td height=26 background="images/background.gif">
<b><font color="#ffffff">入 库 材 料 列 表</font></b>
</td>
</tr>
</table>
<form action="cailiao_in_store.asp" method="post" name="selform" >
<table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
<tr>
<td width="100%" align="center" valign="top">
<table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
<tr class="but">
<td width="10%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">入库日期</td>
<td width="10%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">类 别</td>
<td width="12%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">品 名</td>
<td width="7%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">规 格</td>
<td width="5%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">单 位</td>
<td width="10%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">存储库房</td>
<td width="6%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">单价</td>
<td width="6%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">数量</td>
<td width="8%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">金额</td>
<td width="10%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">采购员</td>
<td width="5%" height="18" align="center" class="but01" onMouseDown="this.classname='tddown'" onMouseUp="this.classname='but'" onMouseOut="this.classname='but01'">操 作</td>
</tr>
<%
PageShowSize = 10 '每页显示多少个页
MyPageSize = 20 '每页显示多少条
If Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
MyPage=1
Else
MyPage=Int(Abs(Request("page")))
End if
set rs=server.CreateObject("ADODB.RecordSet")
search=request("search")
if search<>"" then
fenlei1=request("fenlei")
keyword=request("keyword")
rs.Source="select* from cailiao_In_Store where fenlei like '%"&fenlei1&"%' and pinming like '%"&keyword&"%' order by -id"
else
rs.Source="select* from cailiao_In_Store order by -id"
end if
rs.Open rs.Source,conn,1,1
if not rs.EOF then
rs.PageSize = MyPageSize
MaxPages = rs.PageCount
rs.absolutepage = MyPage
total = rs.RecordCount
for i=1 to rs.PageSize
if not rs.EOF then
%>
<tr onmouseover="this.bgColor='#73A475';" onmouseout="this.bgColor=''"">
<td height="18" align="center"><a href="cailiao_In_Store.Asp?id=<%=rs("ID")%>&action=edit"><%=rs("uptime")%></a></td>
<td height="18" align="center"><%=rs("fenlei")%><%if rs("fenlei")="" then%> <%end if%></td>
<td height="18" align="center"> <a href="cailiao_In_Store.Asp?id=<%=rs("ID")%>&action=edit"><%=rs("pinming")%></a></td>
<td height="18" align="center"> <%=rs("guige")%></td>
<td height="18" align="center"><%=rs("Unit")%><%if rs("Unit")="" then%> <%end if%></td>
<td height="18" align="center"><%=rs("Supplier")%><%if rs("Supplier")="" then%> <%end if%></td>
<td height="18" align="center"><%=FormatCurrency(rs("use_price"),2,-1,,0)%><%if rs("use_price")="" then%> <%end if%></td>
<td height="18" align="center"><%=Formatnumber(rs("use_num"),2,-1,0,0)%><%if rs("use_num")="" then%> <%end if%></td>
<td height="18" align="center"><%=FormatCurrency(rs("use_Amount"),2,-1,,0)%><%if rs("use_Amount")="" then%> <%end if%></td>
<td height="18" align="center"><%=rs("caigouyuan")%><%if rs("caigouyuan")="" then%> <%end if%></td>
<td height="18" align="center"><input name="selBigClass" type="checkbox" id="selBigClass" value="<%=rs("ID")%>"></td>
</tr>
<%
rs.MoveNext
end if
next
end if
%>
<tr><td align="right" colspan="10" height="22">
共 <%=total%> 条,当前第 <%=Mypage%>/<%=Maxpages%>
页,每页 <%=MyPageSize%> 条
<%
if search<>"" then
url="cailiao_In_Store.asp?fenlei="&fenlei1&"&keyword="&keyword&"&search=search&"
else
url="cailiao_In_Store.asp?"
end if
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs.PageSize)+1
if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if
if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next
if Mypage+1 <=Pagetpage then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if
if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
rs.Close
set rs=nothing
%> <%if oskey="supper" then%>
<input type="checkbox" name="checkbox" value="checkbox" onClick="javascript:SelectAll()"> 选择/反选
<input onClick="{if(confirm('此操作将删除该信息!\n\n确定要执行此项操作吗?')){this.document.selform.submit();return true;}return false;}" type=submit value=删除 name=action2>
<input type="Hidden" name="action" value='del'><%end if%></td></tr>
</table>
</td>
</tr>
<tr>
<td height="50" colspan="3" align="center">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<br><br>
<TABLE width=800 align=center border="1" cellspacing="0" cellpadding="0" bordercolor="#0055E6">
<tr>
<td>
<table width="800" border="0" cellpadding="0" cellspacing="0" >
<tr >
<td height=26 background="images/background.gif">
<b><font color="#ffffff">入库搜索</font></b>
</td>
</tr>
</table>
<table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
<form name="search" method="post" action="cailiao_in_store.asp">
<tr><input name="search" type="hidden" value="search">
<td height="40" valign="middle" align="center" width="20%">
<select name="fenlei" size="1">
<option value="">所有分类</option>
<%
set rs2=server.createobject("adodb.recordset")
rs2.open "select * from fenlei",conn,1,1
if not rs2.eof then
do while not rs2.eof
fenleiname=rs2("fenleiname")
%>
<option value="<%=rs2("fenleiname")%>"><%=rs2("fenleiname")%></option>
<%
rs2.movenext
loop
end if
rs2.close
set rs2=nothing
%></select></td>
<td align="center" width="65%">品名关键字: <input name="keyword" type="text" size="25"> 关键字为空则搜索所有</td>
<td align="center" width="15%" ><input type="submit" value="查 找"> </td>
</tr></form>
</TD>
</TR>
</table>
</TD>
</TR>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
</table>
</TBODY>
</TABLE>
<%end sub%>
<P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR vAlign=center>
<TD align=middle width="100%"><!--#include file="footer.htm"--></TD>
</TR></TBODY></TABLE></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -