2010: 华为展望下一个十年通信行业趋势
2011-03-15 13:06
465 查看
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<%
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'数据库连接
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
setconn=Server.CreateObject("ADODB.Connection")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
conn.open"driver={SQLServer};server=chaiwei;DATABASE=chaiwei;UID=sa;PWD="
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'打开所有父层数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
setrs=Server.CreateObject("ADODB.Recordset")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs.Open"select*frompowerswherebelongidisnullorderbypowerid",conn,1,3
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'层次数表态变量赋初值
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
format_i=1
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'列表主程序段
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
dowhilenotrs.eof
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'打印父层数据信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"<ahref='powerlist.asp?SelfID="&rs("powerid")&"&BelongID="&rs("belongid")&"'>"&rs("powername")&"</a>"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"<br>"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'子程序调用,子层数据处理
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CallListSubPower(rs("powerid"))
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs.movenext
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
loop
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'关闭父层数据集
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs.close
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
setrs=nothing
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'子层数据处理子程序
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
SubListSubPower(id)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'打开隶属于上层powerid的所有子层数据信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
setrs_sub=Server.CreateObject("ADODB.Recordset")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs_sub.Open"select*frompowerswherebelongid="&id&"orderbypowerid",conn,1,3
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'列子层数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
dowhilenotrs_sub.eof
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'层次数表态变量递进累加
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
format_i=format_i+1
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'循环缩进格式控制,因为顶层与二层不需要缩进,所以从第三层开始引用此程序段
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
fori=format_ito3step-1
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"|"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write""
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
next
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'打印子层数据信息
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"|----"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"<ahref='powerlist.asp?SelfID="&rs_sub("powerid")&"&BelongID="&rs_sub("belongid")&"'>"&rs_sub("powername")&"</a>"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
response.write"<br>"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'递归调用子程序本身,对子层数据进行逐渐处理
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
ListSubPower(rs_sub("powerid"))
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs_sub.movenext
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
loop
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'层次数表态变量递退累减
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
format_i=format_i-1
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
'关闭子层数据集
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
rs_sub.close
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
setrs_sub=nothing
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
EndSub
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
%>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
相关文章推荐
- 华为展望下一个十年通信行业趋势
- 华为发布2014年行业趋势展望:用趋势赢未来 数字化重构新商业
- 华为今日正式发布2012年行业趋势展望
- 华为展望电信行业未来十大发展趋势
- 华为年报中描述的行业趋势(2012,2011,2010)
- 【财富空间】推荐!赛迪智库:2018年中国工业和信息化60个行业发展趋势展望
- 华为发布2013年行业趋势:数字社会正在形成(转)
- 探讨通信行业未来趋势
- 智能交通行业车车通信和车路通信成为ITS下一个技术亮点
- 2010 全球500强出炉 (通信行业)
- 通信信息行业变化趋势
- 2010IT行业就业前景及发展趋势
- 华为100%增长下一个十年企业网(转载)
- 2015年信息通信行业十大趋势
- 展望2010开发技术趋势
- 展望2010开发技术趋势
- 2012年通信业十大发展趋势展望:移动互联网、智能终端、通信网络、云计算、物联网,电子商务,光网络,3G
- 华为eNSP浮动路由实现不同vlan之间的通信
- 盘点|回顾2016华为与交通行业的“最美旅程”
- IT行业的几大发展趋势