惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
F
Fortinet All Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
Secure Thoughts
SecWiki News
SecWiki News
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Recorded Future
Recorded Future
Hacker News - Newest:
Hacker News - Newest: "LLM"
Webroot Blog
Webroot Blog
Cloudbric
Cloudbric
博客园 - 司徒正美
The Cloudflare Blog
W
WeLiveSecurity
T
Tailwind CSS Blog
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
Jina AI
Jina AI
MyScale Blog
MyScale Blog
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Project Zero
Project Zero
C
CXSECURITY Database RSS Feed - CXSecurity.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
Last Week in AI
Last Week in AI
G
GRAHAM CLULEY
C
Check Point Blog
P
Proofpoint News Feed
L
LINUX DO - 最新话题
博客园 - Franky
P
Proofpoint News Feed
T
Tor Project blog
S
Security @ Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
O
OpenAI News
小众软件
小众软件
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 乔本生涯a

用来用去还是觉得SDCMS好用 Visual 2005 调试问题 收藏 图形分析报表,在VS2005 及SQL2005 Sqlserver2000 restore database 操作异常中止 “/”应用程序中的服务器错误。 System.IO.DirectoryNotFoundException VB.Net + asp.net的一个web系统,使用SQL2000数据库 现在运行时偶尔会出现一个奇怪现象,一个用户登录时,登录后的界面竟然是另一个用户 水晶报表效果图 一个汉字转成拼音的代码 - 乔本生涯a - 博客园 自动定时备份数据 log4net 1.2.9 的配置及使用 关于动网 ASP + Access 论坛问题及相应解决办法 .Net工程中几个文件的含意 组件 访问被拒绝 --“/”应用程序中的服务器错误。IIS重启不行,系统注销也不行 使用NHibernate进行开发 - 乔本生涯a - 博客园 Log4j进行日志操作 该页无法显示 您试图从目录中执行 CGI、ISAPI 或其他可执行程序,但该目录不允许执行程序。 解决方法 DataGrid表头跨行合并的实现 FreeTextBox .NET平台下WEB应用程序的部署(安装数据库和自动配置)(转)
水晶报表中人民币大写的转换函数
乔本生涯a · 2006-01-16 · via 博客园 - 乔本生涯a

水晶报表中人民币大写的转换函数
Function RMB (ls as currency) as string
    dim dx_sz as string
    dim dx_dw as string
    dim str_int as string
    dim str_dec as string
    dim dx_str as string
    dim fu as string
    dim a as string
    dim b as string
    dim c as string
    dim d as string
    dim b2 as string
    dim num_int as number
    dim num_dec as currency
    dim len_int as number
    dim i as number
    dim a_int as number
    dim pp as number

    dx_sz="零壹贰叁肆伍陆柒捌玖"
    dx_dw="万仟佰拾亿仟佰拾万仟佰拾元"
   
    if ls<0 then
        ls=abs(ls)
        fu="负"
    else
        fu=""
    end if

    dx_str=CStr (ls)
    dx_str=Replace (dx_str,"¥","")
    dx_str=replace(dx_str,",","")
    if (ls>0) and (ls<1) then dx_str="0"+dx_str
   
    pp=InStr (dx_str,".")  
    if pp>0 then
        str_int=mid(dx_str,1,instr(dx_str,".")-1)
    else
        str_int=dx_str
    end if

    num_int=ToNumber (str_int)

    if (ls>0) and (ls<1) then
        num_dec =  ls*100
    else
        num_dec=(ls-num_int)*100
    end if

    str_dec=totext(num_dec)
    str_dec=replace(str_dec,"¥","")

    len_int=len(str_int)
    dx_str=""
    for i=1 to len_int
        a=mid(str_int,i,1)
        a_int=tonumber(a)
        b=mid(dx_sz,(a_int+1),1)
        c=mid(dx_dw,(13-len_int+i),1)
        if dx_str<>"" then
            d=mid(dx_str,len(dx_str)-1,1)
        else
            d=""
        end if
        if(b="零") and ((d="零") or (b=b2) or (c="元") or (c="万") or (c="亿")) then b=""
        if(a="0") and (c<>"元") and (c<>"万") and (c<>"亿") then c=""
        if((c="元") or (c="万") or (c="亿")) and (d="零") and (a="0") then
            dx_str=mid(dx_str,1,len(dx_str)-2)
            d=mid(dx_str,len(dx_str)-1,2)
            if((c="元") and (d="万"))or((c="万") and (d="亿")) then c=""
        end if
        dx_str=dx_str+b+c
        b2=b
    next i

    '处理金额小于1的情况
    if len(dx_str)<=2 then dx_str=""
    if(num_dec<10)and(ls>0) then
        a_int=tonumber(str_dec)
        b=mid(dx_sz,(a_int+1),1)
        if num_dec=0 then dx_str=dx_str+"整"
        if num_dec>0 then dx_str=dx_str+"零"+b+"分"
    end if
    if num_dec>=10 then
        a_int=tonumber(mid(str_dec,1,1))
        a=mid(dx_sz,(a_int+1),1)
        a_int=tonumber(mid(str_dec,2,1))
        b=mid(dx_sz,(a_int+1),1)
        if a<>"零" then a=a+"角"
        if b<>"零" then b=b+"分" else b=""
        dx_str=dx_str+a+b
    end if
    if ls=0 then dx_str="零元整"
    dx_str=fu+dx_str

    dx_str=replace(dx_str,"零亿","亿")
    dx_str=replace(dx_str,"零万","万")
    dx_str=replace(dx_str,"零千","千")
    dx_str=replace(dx_str,"零元","元")


    RMB =dx_str
End Function