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

📄 propertylist.asp

📁 又一套oa 系统,供大家使用学习,更多的源代码正在上传中,好的程序应该大家共同使用
💻 ASP
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsPropertyView")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_Property":Orderby=" where 1=1":action=request("action"):keywords=request("keywords")
if action="search" then
  if WS_S.MemberPriv("WS_PublicAffairsPropertySearch")<>1 then HX_GoBack "对不起,您的权限不够!",""
  if keywords<>"" then
  select case request("selectname")
      case "PropertyName"
	     Orderby=Orderby&" and WS_PropertyName like '%"&keywords&"%'"
	  case "PropertyNUM"
	     Orderby=Orderby&" and WS_PropertyNUM like '%"&keywords&"%'"
	  case "PropertyTableDate"
	     if isdate(keywords) then
	       Orderby=Orderby&" and WS_PropertyTableDate=#"&keywords&"#"
		 end if
	  case "PropertyBuyDate"
	     if isdate(keywords) then
	       Orderby=Orderby&" and WS_PropertyBuyDate=#"&keywords&"#"
		 end if
	  case "PropertyKind"
	     Orderby=Orderby&" and WS_PropertyKind like '%"&keywords&"%'"
  end select
  end if
end if
Orderby=Orderby&" order by WS_PPID desc"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>资产清单</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='20' leftmargin='0' bottommargin='0'><table width='98%'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff background='../hximages/titlelinebg.gif'><table width='550'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>资产清单</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=f1f1f1><tr bgcolor='#A1BBE0' class='td4'><td width='4%'><div align='center'>序号</div></td><td width='8%'><div align='center'>资产编号</div></td><td width='8%'><div align='center'>资产名称</div></td><td width='9%'><div align='center'>规格型号</div></td><td width='7%'><div align='center'>原始价值</div></td><td width='10%'><div align='center'>购入时间</div></td><td width='7%'><div align='center'>折旧年限</div></td><td width='10%'><div align='center'>制表日期</div></td><td width='9%'><div align='center'>经办人</div></td><td width='7%'><div align='center'>管理人</div></td><td width='6%'><div align='center'>财务人</div></td><td width='15%'><div align='center'>备注</div></td></tr>"
if rs.recordcount<=0 then
      response.Write "<tr><td colspan=12 bgcolor=ffffff height=25 align=center>暂无记录!</td></tr>"
	else
    rs.PageSize =15 '每页记录条数
	iCount=rs.RecordCount '记录总数
	iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	ii=0
	do while not rs.EOF
	response.Write "<tr bgcolor='#FFFFFF' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ffffff'><td width='4%'><div align='center'>"&rs("WS_PPID")&"</div></td><td width='8%'><div align='center'>"&rs("WS_PropertyNUM")&"</div></td><td width='8%'><div align='center'>"&rs("WS_PropertyName")&"</div></td><td width='9%'><div align='center'>"&rs("WS_PropertyKind")&"</div></td><td width='7%'><div align='center'>¥"&rs("WS_PropertyPrice")&"万元</div></td><td width='10%'><div align='center'>"&WS_S.Format_Time(rs("WS_PropertyBuyDate"),5)&"</div></td><td width='7%'><div align='center'>"&rs("WS_PropertyOldYear")&"年</div></td><td width='10%'><div align='center'>"&WS_S.Format_Time(rs("WS_PropertyTableDate"),5)&"</div></td><td width='9%'><div align='center'>"
	Call WS_S.HX_OutUserInfo(rs("WS_PropertyJBManID")):response.Write OutName&"</div></td><td width='7%'><div align='center'>"
	Call WS_S.HX_OutUserInfo(rs("WS_PropertyGLManID")):response.Write OutName&"</div></td><td width='6%'><div align='center'>"
	Call WS_S.HX_OutUserInfo(rs("WS_PropertyCWManID")):response.Write OutName&"</div></td><td align='center'><div align='left'>"&rs("WS_PropertyRemark")&"</div></td></tr>"
	  ii=ii+1
	  if ii>=rs.PageSize then Exit Do
	  rs.movenext
      loop
      call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",12)
	 end if
	  call WS_S.HX_RSClose(rs) 
response.Write "<tr bgcolor='#A1BBE0'><td colspan='12' bgcolor='#FFFFFF' align='right'><input name='print' type='button' value=' 打 印 ' onClick='window.print();'>&nbsp;</td></tr></table></td></tr></table>"
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -