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

📄 bangdan_store.asp

📁 非常实用的生产管理系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
			<td width="20%" height="18" align="center"  class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">车 号</td>


</tr>
          <tr class="but">


<td align="center"><input name="maozhong" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("maozhong")
																  end if %>'></td>


<td align="center"><input name="kouzhong" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("kouzhong")
																  end if %>'></td>

			<td align="center"><input name="pizhong" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("pizhong")
																  end if %>'></td>
			<td align="center"><input readonly name="jingzhong" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("jingzhong")
																  end if %>'></td>




			<td><select name="chehao"  size="1" style='width:50'>
			<% if isedit then%><option ><%=rs("chehao")%></option><%end if%>
			<%
			
			set rs3=server.createobject("adodb.recordset")
		   rs3.open "select * from chehao",conn,1,1
		   if not rs3.eof then
		   do while not rs3.eof
			%>
			<option <% if isedit then
			if trim(rs3("chehaoname"))=trim(rs("chehao")) then
			%> selected="selected"<%end if%><%end if%>><%=rs3("chehaoname")%></option>
			<%
			rs3.movenext
			loop
			end if
			rs3.close
			set rs3=nothing
			%>
			</select>

			
			<select name="zimu" size="1">
			<option <% if isedit then
			if rs("zimu")="A" then
			%> selected="selected"<%end if%><%end if%>>A</option>
			<option <% if isedit then
			if rs("zimu")="B" then
			%> selected="selected"<%end if%><%end if%>>B</option>
			<option <% if isedit then
			if rs("zimu")="C" then
			%> selected="selected"<%end if%><%end if%>>C</option>
			<option <% if isedit then
			if rs("zimu")="D" then
			%> selected="selected"<%end if%><%end if%>>D</option>
			<option <% if isedit then
			if rs("zimut")="E" then
			%> selected="selected"<%end if%><%end if%>>E</option>
			<option <% if isedit then
			if rs("zimu")="F" then
			%> selected="selected"<%end if%><%end if%>>F</option>
			<option <% if isedit then
			if rs("zimu")="G" then
			%> selected="selected"<%end if%><%end if%>>G</option>
			<option <% if isedit then
			if rs("zimu")="H" then
			%> selected="selected"<%end if%><%end if%>>H</option>
			<option <% if isedit then
			if rs("zimu")="I" then
			%> selected="selected"<%end if%><%end if%>>I</option>
			<option <% if isedit then
			if rs("zimu")="J" then
			%> selected="selected"<%end if%><%end if%>>J</option>
			<option <% if isedit then
			if rs("zimu")="K" then
			%> selected="selected"<%end if%><%end if%>>K</option>
			<option <% if isedit then
			if rs("zimu")="L" then
			%> selected="selected"<%end if%><%end if%>>L</option>
			<option <% if isedit then
			if rs("zimu")="M" then
			%> selected="selected"<%end if%><%end if%>>M</option>
			<option <% if isedit then
			if rs("zimu")="N" then
			%> selected="selected"<%end if%><%end if%>>N</option>
			<option <% if isedit then
			if rs("zimu")="O" then
			%> selected="selected"<%end if%><%end if%>>O</option>
			<option <% if isedit then
			if rs("zimu")="P" then
			%> selected="selected"<%end if%><%end if%>>P</option>
			<option <% if isedit then
			if rs("zimu")="Q" then
			%> selected="selected"<%end if%><%end if%>>Q</option>


			<option <% if isedit then
			if rs("zimu")="R" then
			%> selected="selected"<%end if%><%end if%>>R</option>
			<option <% if isedit then
			if rs("zimu")="S" then
			%> selected="selected"<%end if%><%end if%>>S</option>
			<option <% if isedit then
			if rs("zimu")="T" then
			%> selected="selected"<%end if%><%end if%>>T</option>
			<option <% if isedit then
			if rs("zimu")="U" then
			%> selected="selected"<%end if%><%end if%>>U</option>
			<option <% if isedit then
			if rs("zimu")="V" then
			%> selected="selected"<%end if%><%end if%>>V</option>
			<option <% if isedit then
			if rs("zimu")="W" then
			%> selected="selected"<%end if%><%end if%>>W</option>
			<option <% if isedit then
			if rs("zimu")="X" then
			%> selected="selected"<%end if%><%end if%>>X</option>

			<option <% if isedit then
			if rs("zimu")="Y" then
			%> selected="selected"<%end if%><%end if%>>Y</option>
			<option <% if isedit then
			if rs("zimu")="Z" then
			%> selected="selected"<%end if%><%end if%>>Z</option>
			</select>
			


—<input name="hao" type="text"  size="10" value='<% if isedit then
		                                                         response.write rs("hao")
																  end if %>'>

			
			</td>






</tr>






          <tr class="but"> 
	   <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 colspan="3" width="60%" 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">
			<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 align="center"><input name="user" type="text"  size="10" value='<% if isedit then
		                                                         response.write rs("user")
																  end if %>'></td>
			<td colspan="7" align="center"><input name="content" type="text"  size="50" value='<% if isedit then
		                                                         response.write rs("content")
																  end if %>'></td>
          </tr>
<tr>

			<td colspan="9"  align="center"><input type="submit" value="<% if isedit then
		                                                         response.write "编辑"
																 else
																 response.write "添加"
																  end if %>"> </td>

          </tr></form>
		  
           </table>
        </fieldset><%end if%>









<br><br><br>





<fieldset style="width:98%">
<legend>磅 单 信 息 列 表</legend>
			<form action="bangdan_store.asp" method="post" name="selform" >
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8" align="center">
    <tr> 
      
      <td width="100%" align="center" valign="top">
	
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
          <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="5%" 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="5%" 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="8%" 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="8%" 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="8%" 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="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 
class1=request("class")
keyword=request("keyword")
rs.Source="select* from bangdan_Store where class like '%"&class1&"%' and pinming like '%"&keyword&"%' order by -id"
else
rs.Source="select* from bangdan_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
%>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><a href="bangdan_store.Asp?id=<%=rs("ID")%>&action=edit">0000<%=rs("id")%></a></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("uptime")%><%if rs("uptime")="" then%>&nbsp;<%end if%></td>

<td height="18"  align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("user")%><%if rs("user")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("pinming")%><%if rs("pinming")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("unit")%><%if rs("unit")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("fahuo")%><%if rs("fahuo")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("shouhuo")%><%if rs("shouhuo")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("maozhong")%><%if rs("maozhong")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("kouzhong")%><%if rs("kouzhong")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("pizhong")%><%if rs("pizhong")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=rs("jingzhong")%><%if rs("jingzhong")="" then%>&nbsp;<%end if%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><a href="bangdan_store_info.Asp?id=<%=rs("ID")%>&action=edit" title="点击打印过磅单">0000<%=rs("id")%></td>

<td height="18" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><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="bangdan_Store.asp?class="&class1&"&keyword="&keyword&"&search=search&"
			else
            url="bangdan_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
%>&nbsp;&nbsp;&nbsp;&nbsp;<%if oskey="supper" or oskey="caiwu" 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>

  </table></fieldset>
</form>
<br><br><br>
<fieldset style="width:98%"><legend>磅单搜索</legend>
        <table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
         
		  <form name="search" method="post" action="bangdan_store.asp">
		  <tr><input name="search" type="hidden" value="search">
            <td height="18" align="center" width="20%">
			<select name="class" size="1">
			<option value="">所有分类</option>
			<%
	       set rs2=server.createobject("adodb.recordset")
		   rs2.open "select * from class",conn,1,1
		   if not rs2.eof then
		   do while not rs2.eof
		   classname=rs2("classname")
		   %>
		   <option value="<%=rs2("classname")%>"><%=rs2("classname")%></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>
		  
           </table></fieldset>
      
			</TD>
              </TR>
          </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 + -