狠狠色丁香婷婷综合尤物/久久精品综合一区二区三区/中国有色金属学报/国产日韩欧美在线观看 - 国产一区二区三区四区五区tv

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

一個(gè)不需要第三方組件,可實(shí)現(xiàn)華簡(jiǎn)單圖形的類

admin
2010年7月24日 17:7 本文熱度 4996

通常我們做統(tǒng)計(jì)圖的時(shí)候需要借助組件來(lái)完成例如mschart,aspchart等
但是這個(gè)類不需要任何組件,而且使用方便
clsgraph.asp
<%
class inteligraph


public copyright, developer, name, version, web
public maximum, barwidth, barcolor, orientation
private items(), cnt

private sub class_initialize()
copyright = "?2001 ticluse teknologi, all rights reserved."
developer = "james lind雗"
name = "inteligraph"
version = "1.0"
web = "cnt = 0
end sub

public function add( value )
redim preserve items( cnt )
items( cnt ) = value
data = cnt
cnt = cnt + 1
add = data
end function

public function build()
if cnt < 1 then exit function
if len( orientation ) = 0 or lcase( orientation ) = "horizontal" then
for idx = lbound( items ) to ubound( items )
data = data & "<table height=" & barwidth & " border=1 width=" & maximum & " cellspacing=2>" & vbnewline
data = data & vbtab & "<tr><td width=" & items(idx) & " bgcolor=" & barcolor & " align=center><font size=-4> </font></td>"
if items(idx) < maximum then
data = data & "<td width=" & maximum - items(idx) & "></td>"
end if
data = data & "</tr>" & vbnewline & "</table>" & vbnewline
next
elseif lcase( orientation ) = "vertical" then
data = "<table><tr>" & vbnewline
for idx = lbound( items ) to ubound( items )
data = data & "<td><table width=" & barwidth & " border=1 height=" & maximum & " cellspacing=2>" & vbnewline
if items(idx) < maximum then
data = data & "<tr><td height=" & maximum - items(idx) & "></td></tr>"
end if
data = data & vbtab & "<tr><td height=" & items(idx) & " bgcolor=" & barcolor & " align=center><font size=-4> </font></td>"
data = data & "</tr>" & vbnewline & "</table>" & vbnewline & "</td>" & vbnewline
next
data = data & "</tr></table>" & vbnewline
end if
build = data
end function

end class
%>
使用方法
這個(gè)類一共有四個(gè)屬性
barwidth(圖片條的尺寸)
barcolor*(圖片條顏色)
maximum(圖片條最大長(zhǎng)度)
orientation(方向)
有兩個(gè)函數(shù)
add( value )添加圖片條到圖片中
build()建立圖片
事例:
<!-- #include file=clsgraph.asp -->
<%
public const vert = "vertical"
public const horz = "horizontal"

dim graph

set graph = new inteligraph
graph.barwidth = 10
graph.barcolor = "blue"
graph.maximum = 100
graph.orientation = horz

for idx = 0 to 100 step 25
graph.add( idx )
next

response.write( graph.build() )
%>


該文章在 2010/7/24 17:07:11 編輯過(guò)
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved