当前位置: 网学 > 编程文档 > ASP > 正文

newasp中main类

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
;"
Case "4"
sBriefTopic = "<font color=''" & Main_Setting(4) & "''>[推荐]</font>"
Case "5"
sBriefTopic = "<font color=''" & Main_Setting(5) & "''>[注意]</font>"
Case "6"
sBriefTopic = "<font color=''" & Main_Setting(6) & "''>[转载]</font>"
Case Else
sBriefTopic = ""
End Select
ReadPicTopic = sBriefTopic
End Function
''=============================================================
''函数名:ReadPayMoney
''作 用:读取要支付的金钱
''参 数:money ----实际金钱
''返回值:加上手续费后的金钱
''=============================================================
Public Function ReadPayMoney(ByVal money, ByVal Reduce)
On Error Resume Next
If money = 0 Then
ReadPayMoney = 0
Exit Function
End If
Dim arrChinaeBank, valPercent, Percents

arrChinaeBank = Split(ChinaeBank, "|||")
Percents = CCur(arrChinaeBank(2) / 100)

If Percents = 0 Then
ReadPayMoney = CCur(money)
Else
If CBool(Reduce) = True Then
valPercent = Round(CCur(money) / (1 + 1 * Percents), 2)
ReadPayMoney = CCur(valPercent)
Else
valPercent = Round(CCur(money) * Percents, 2)
ReadPayMoney = CCur(money + valPercent)
End If
End If
End Function
''=============================================================
''函数名:RebateMoney
''作 用:读取打折的后金钱
''参 数:money ----实际金钱
'' Discount ----折扣
''=============================================================
Public Function RebateMoney(ByVal money, ByVal Discount)
On Error Resume Next
Dim Rebate

money = CheckNumeric(money)
Discount = CheckNumeric(Discount)
If Discount > 0 And Discount < 10 Then
Rebate = Round(money * (Discount / 10), 2)
RebateMoney = CCur(Rebate)
Else
RebateMoney = CCur(money)
End If
End Function
''================================================
''函数名:Supplemental
''作 用:补足参数
''参 数:para ----原参数
'' n ----增补的位数
''================================================
Public Function Supplemental(para, n)
Supplemental = ""
If Not IsNumeric(para) Then Exit Function
If Len(para) < n Then
Supplemental = String(n - Len(para), "0") & para
Else
Supplemental = para
End If
End Function
''-----------------------------------------------------------------
Public Function GetChannelDir(ByVal chanid)
On Error Resume Next
If Not IsNumeric(chanid) Then chanid = 1
Name = "Channel" & chanid
If ObjIsEmpty() Then ReloadChannel (chanid)
CacheChannel = Value
GetChannelDir =
  • 上一篇资讯: newasp中下载类
  • 下一篇资讯: 文章列表类别
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号