好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > ASP控制每頁打印行數

ASP控制每頁打印行數

熱門標簽:福建外呼增值業務線路 伊春外呼業務系統 中國辦理電信400電話 電銷機器人教育 河北智能外呼系統軟件 電銷機器人源碼網盤下載 綿陽防封電銷卡價格 調度系統外呼 宜賓語音外呼系統軟件
 

%
pagenum=55'指定打印行數
%>
HTML>
HEAD>
meta http-equiv="Content-Type" content="text/html; charset=gb2312">
TITLE>銷售利潤明細報表打印/TITLE>
style type="text/css">
td {font-size:9pt; color:#000000}
A{text-decoration:none}
A:hover{color:#FF0000;text-decoration:derline}
.break{page-break-before:always}
/style>
/HEAD>
script language="javascript">
window.print()
/script>
BODY style="border:none" topmargin="0" leftmargin="6" onload="javascrpt:pagesetup_default();">
script language="VbScript">
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
function pagesetup_default()
    on error resume next
    Set RegWsh = CreateObject("WScript.Shell")
    hkey_key="\header"   
    RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"b頁p/P"
    hkey_key="\footer"
    RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
end function
/script>

%
kdname1=trim(request("kdname1"))
kdname2=trim(request("kdname2"))
keyword1=trim(request("keyword1"))
keyword2=trim(request("keyword2"))

 if keyword1>"" then
 today=keyword1
 else
 if kdname1="" then
 today=year(date())"-"month(date())
 else
 today=kdname1"至"kdname2
 end if
 end if
%>
  table border="0" cellspacing="0" cellpadding="0" align="center" width="740"  height="30">
    tr>
      td align="center">銷售利潤匯總報表/td>
    /tr>
  /table>


 strSQL="select autoid,sellautoid,productxili,productname,productsize,productnum,productdan,productjia,chaoshi,tiaoma,youhui,fukuan,moncount1,gongshang,lirun1,username,indate,fudate from sell where officename='"trim(request.cookies("Myoffice"))"' and monthjie='0' and (year(indate)=year(getdate()) and month(indate)=month(getdate())) and zhuofei is null order by autoid desc"            
 set rs1=server.createobject("adodb.recordset")             
 rs1.open strSQL,conn,1,1
%>              
  table border="1" cellspacing="0" cellpadding="0" align="center" style="border-collapse: collapse"  bordercolor="#000000" width="740">            
    tr>            
      td align="center" height="20" bgcolor="#BDCBEE" width="70" >銷售單號/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="168" >商品名稱(規格)/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="121" >客戶/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="30" >數量/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="24" >單位/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="50" >銷售價/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="23" >折%/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="52" >進貨價/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="55" >小計/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="45" >利潤/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="25" >付款/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="61" >銷售日期/td>            
    /tr>
  /table>
%            
  moncount2=0            
  moncount5=0            
  Do while not rs1.eof 
%>
table border="1" cellpadding="0" cellspacing="0" width="740" align="center" style="border-collapse:collapse; font-size:10pt;color:#000000" bordercolor="#000000">
%
for i=1 to pagenum
if not rs1.eof then
  if trim(rs1("fukuan"))="欠款" then            
  moncount6=Csng(rs1("lirun1"))            
  moncount5=moncount5+moncount6            
  else            
  moncount3=Csng(rs1("lirun1"))            
  moncount2=moncount2+moncount3            
  end if 
%>     
    tr>            
      td height="18" width="70">nbsp;%=rs1("sellautoid")%>/td>            
      td height="18" width="168">%=Decode(rs1("productname"))%>nbsp;%=rs1("productsize")%>/td>            
      td height="18" width="121">%=left(rs1("gongshang"),9)%>/td>           
      td height="18" width="30" align="center">%=rs1("productnum")%>/td>           
      td height="18" width="24" align="center">%=rs1("productdan")%>/td>           
      td height="18" width="50" align="right">%=formatNumber(rs1("chaoshi"),varnum,-1)%>/td>           
      td height="18" width="23" align="center">%=rs1("youhui")%>/td>           
      td height="18" width="52" align="right">%=formatNumber(rs1("productjia"),varnum,-1)%>/td>           
      td height="18" width="55" align="right">%=formatNumber(rs1("moncount1"),varnum,-1)%>/td>           
      td height="18" width="45" align="right">%=formatNumber(rs1("lirun1"),varnum,-1)%>/td>           
      td align="center" height="18" width="25">%if trim(rs1("fukuan"))="欠款" then%>font color=blue>%=rs1("fukuan")%>/font>%else%>%=rs1("fukuan")%>%end if%>/td>           
      td height="18" width="61">%=rs1("indate")%>/td>           
    /tr>
%
rs1.movenext
end if
next
%>
/table>
%
if not rs1.eof and i=pagenum+1 then '添加分頁標記
%>
  div class="break">nbsp;/div>
  table border="0" cellpadding="0" cellspacing="0" width="740" height="12" align="center">tr>td height="12">/td>/tr>/table>
  table border="1" cellspacing="0" cellpadding="0" align="center" width="740" style="border-collapse: collapse"  bordercolor="#000000">
    tr>            
      td align="center" height="20" bgcolor="#BDCBEE" width="70" >銷售單號/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="168" >商品名稱(規格)/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="121" >客戶/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="30" >數量/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="24" >單位/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="50" >銷售價/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="23" >折%/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="52" >進貨價/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="55" >小計/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="45" >利潤/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="25" >付款/td>            
      td align="center" height="20" bgcolor="#BDCBEE" width="61" >銷售日期/td>            
    /tr>
%
end if
loop
rs1.close    
set rs1=nothing    
%> 
/table> 
  table border="1" cellpadding="0" cellspacing="0" width="740" height="20" align="center" style="border-collapse: collapse"  bordercolor="#000000">
    tr>           
       td>font color="#FF0000">b>現金利潤:/b>/font>b>%=formatNumber(moncount2,varnum,-1)%>/b>nbsp;nbsp;nbsp;%if moncount5>"" then%>b>font color="#FF0000">欠款利潤/font>:%=formatNumber(moncount5,varnum,-1)%>/b>%end if%>nbsp;nbsp;nbsp;%if moncount5>"" then%>b>font color="#FF0000">毛利合計:/font>%=formatNumber(moncount5+moncount2,varnum,-1)%>/b>%end if%>/td>           
     /tr>  
   /table>           
%
end if
conn.close
set conn=nothing
%> 

/BODY>
/HTML>


您可能感興趣的文章:
  • Windows 2003 IIS 6.0 搭建可建虛擬機的asp+.net+php+jsp+mysql+mssql
  • asp循環行數輸出函數
  • asp php 清空access mysql mssql數據庫的代碼
  • ASP+MSSQL2000 數據庫被批量注入后的解決方法
  • asp連接mssql2005的代碼
  • asp刪除mssql數據庫中沒有記錄的圖片代碼
  • asp實現的查詢某關鍵詞在MSSQL數據庫位置的代碼
  • asp實現獲取MSSQL數據庫表指定條件行數的函數

標簽:延邊 優質小號 蘇州 新鄉 那曲 銅川 電商邀評 河池

巨人網絡通訊聲明:本文標題《ASP控制每頁打印行數》,本文關鍵詞  ASP,控制,每頁,打印,行數,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《ASP控制每頁打印行數》相關的同類信息!
  • 本頁收集關于ASP控制每頁打印行數的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 一级毛片a免播放器| 91精品国产综合成人| gogo西西人体大尺度大胆| 短篇乱淫小说小可的奶水| japanese乱子mate| 女人做爰高潮免费播放网站| 偷偷操不一样的久久| 极品老师?开粉嫩小泬小| z0osi00k重口另类| 男生狂戳美女屁股视频| 小泽玛利亚视频在线| 吃瓜AV在线观看一区二区三区| 欧美人体白嫩极品hotpics| 尹志平狂吻小龙女双乳| zsvdycom午夜在线观看| 男人桶女人视频不要下载| wwwsss日本| 91贵阳夫妇喷水57分在线观看| 欧美高潮呻吟久久AV无码下载 | 男女后进式猛烈XX00动态图视| 少妇喷潮69????| 美女电影网站| 老司机带带我懂得视频二版| 《性的暴行2》未删减版| 午夜蜜桃Av精品影院无码| 国产精品调教奴变态| 男男被啪得大叫gif动态图| 成年人黄色片网站| 丝袜人妻林婉芸的沦陷| 天堂AV一区二区三区无码| 蜜桃精品一区二区三区在线观看 | 又粗又长又大真舒服好爽| 国产精品亚洲一区在线观看| 无码GOGO大胆啪啪艺术直播| 人人爽人人爽| 51草莓社区在线视频| 用力?别停?受不了老师| 全免费A级毛片免费看1| 日本边摸边吃奶边做视频| 天堂网www在线中文天堂| 动漫gay网站|