LOGO OA教程 ERP教程 模切知识交流 PMS教程 CRM教程 开发文档 其他文档  
 
网站管理员

Asp生成条形码

admin
2010年7月3日 14:16 本文热度 5801
[p][br][br][br][br][br]asp生成条形码[br][br][/p] [p][br]<%[br]'条形码生成程序[br]'海娃@2004-4-4[br]'http://51windows.net[br]function haiwaocde(zfstr)[br]zf = zfstr[br]zf = replace(zf,"0","_|_|__||_||_|")[br]zf = replace(zf,"1","_||_|__|_|_||")[br]zf = replace(zf,"2","_|_||__|_|_||")[br]zf = replace(zf,"3","_||_||__|_|_|")[br]zf = replace(zf,"4","_|_|__||_|_||")[br]zf = replace(zf,"5","_||_|__||_|_|")[br]zf = replace(zf,"7","_|_|__|_||_||")[br]zf = replace(zf,"6","_|_||__||_|_|")[br]zf = replace(zf,"8","_||_|__|_||_|")[br]zf = replace(zf,"9","_|_||__|_||_|")[br]zf = replace(zf,"a","_||_|_|__|_||")[br]zf = replace(zf,"b","_|_||_|__|_||")[br]zf = replace(zf,"c","_||_||_|__|_|")[br]zf = replace(zf,"d","_|_|_||__|_||")[br]zf = replace(zf,"e","_||_|_||__|_|")[br]zf = replace(zf,"f","_|_||_||__|_|")[br]zf = replace(zf,"g","_|_|_|__||_||")[br]zf = replace(zf,"h","_||_|_|__||_|")[br]zf = replace(zf,"i","_|_||_|__||_|")[br]zf = replace(zf,"j","_|_|_||__||_|")[br]zf = replace(zf,"k","_||_|_|_|__||")[br]zf = replace(zf,"l","_|_||_|_|__||")[br]zf = replace(zf,"m","_||_||_|_|__|")[br]zf = replace(zf,"n","_|_|_||_|__||")[br]zf = replace(zf,"o","_||_|_||_|__|")[br]zf = replace(zf,"p","_|_||_||_|__|")[br]zf = replace(zf,"r","_||_|_|_||__|")[br]zf = replace(zf,"q","_|_|_|_||__||")[br]zf = replace(zf,"s","_|_||_|_||__|")[br]zf = replace(zf,"t","_|_|_||_||__|")[br]zf = replace(zf,"u","_||__|_|_|_||")[br]zf = replace(zf,"v","_|__||_|_|_||")[br]zf = replace(zf,"w","_||__||_|_|_|")[br]zf = replace(zf,"x","_|__|_||_|_||")[br]zf = replace(zf,"y","_||__|_||_|_|")[br]zf = replace(zf,"z","_|__||_||_|_|")[br]zf = replace(zf,"-","_|__|_|_||_||")[br]zf = replace(zf,"*","_|__|_||_||_|")[br]zf = replace(zf,"/","_|__|__|_|__|")[br]zf = replace(zf,"%","_|_|__|__|__|")[br]zf = replace(zf,"+","_|__|_|__|__|")[br]zf = replace(zf,".","_||__|_|_||_|")[br][br]haiwaocde = zf[br]end function[br]code_h = 52[br]code_w = 2[br]function dragcode(ccode)[br]c = ccode[br]c = replace(c,"_","")[br]c = replace(c,"|","")[br]dragcode = c[br]end function[br]function dragtext(ccode)[br]c = ccode[br]dragtext = ""[br]for i=1 to len(c)[br]dragtext = dragtext&""&mid(c,i,1)&""[br]next[br]dragtext = dragtext[br]end function[/p] [p]function checkexp(patrn,str)[br]set regex=new regexp[br]regex.pattern=patrn[br]regex.ignorecase=true[br]regex.global=true[br]checkexp = regex.test(str) [br]end function[/p] [p][br]code = request("c")[/p] [p]if code = "" then[br]code = "*51windows.net*"[br]else[br]if checkexp("^[abcdefghijklmnopqrstuvwxyz1234567890\+\-\*\/\%\$\.]*$",code) then[br]code = "*"&code&"*"[br]else[br]code = "*51windows.net*"[br]errstr = "
含有非法字符
"[br]end if[br]end if[br]ocode = code[br]code = lcase(code)[br]%>[br]
合法字符:abcdefghijklmnopqrstuvwxyz 1234567890 + - * / % $ .

" size="25" maxlength="15">
[br]
[br]
[br][br] [br] [br] [br] [br] [br] [br]
<%=dragcode(haiwaocde(code))%>
<%=(ocode)%>
[br]
[br]
[br]<%=errstr%>[br][br][/p]

该文章在 2010/7/3 14:16:56 编辑过
关键字查询
相关文章
正在查询...
点晴ERP是一款针对中小制造业的专业生产管理软件系统,系统成熟度和易用性得到了国内大量中小企业的青睐。
点晴PMS码头管理系统主要针对港口码头集装箱与散货日常运作、调度、堆场、车队、财务费用、相关报表等业务管理,结合码头的业务特点,围绕调度、堆场作业而开发的。集技术的先进性、管理的有效性于一体,是物流码头及其他港口类企业的高效ERP管理信息系统。
点晴WMS仓储管理系统提供了货物产品管理,销售管理,采购管理,仓储管理,仓库管理,保质期管理,货位管理,库位管理,生产管理,WMS管理系统,标签打印,条形码,二维码管理,批号管理软件。
点晴免费OA是一款软件和通用服务都免费,不限功能、不限时间、不限用户的免费OA协同办公管理系统。
Copyright 2010-2024 ClickSun All Rights Reserved