SmartERP条形码定义dll位置:com.etsoo.Document.BarcodeType
/// <summary>
/// 条形码类型
/// </summary>
public enum BarcodeType
{
/// <summary>
/// 0 = Code 39
/// </summary>
CODE39 = 0,
/// <summary>
/// 1 = EAN13, European Article Numbering System, EAN13码标准码共13位数,系由「国家代码」3位数,「厂商代码」4位数,「产品代码」5位数,以及「检查码」1位数组成
/// </summary>
EAN13 = 1,
/// <summary>
/// 2 = EAN8, EAN-8码共8位数,包括国别码2位,产品代码5位,及检查码1位
/// </summary>
EAN8 = 2,
/// <summary>
/// 3 = UPCA, Universal Product Code,可以表示12位的数字,最后一位为验证码
/// </summary>
UPCA = 3,
/// <summary>
/// 4 = UPCE, 是UPCA的缩短版,8位数字
/// </summary>
UPCE = 4,
/// <summary>
/// 5 = SUPP2, UPC Supplemental 2
///
/// </summary>
SUPP2 = 5,
/// <summary>
/// 6 = SUPP5, UPC Supplemental 5
/// </summary>
SUPP5 = 6,
/// <summary>
/// 7 = PostNet, Postal Numeric Encoding Technique
/// http://www.onbarcode.com/postnet/
/// </summary>
POSTNET = 7,
/// <summary>
/// 8 = The Postal Alpha Numeric Encoding Technique
/// http://www.onbarcode.com/planet/
/// </summary>
PLANET = 8,
/// <summary>
/// 9 = Code128
/// </summary>
CODE128 = 9,
/// <summary>
/// 10= Code128/B
/// </summary>
CODE128B = 10,
/// <summary>
/// 11 = Code128/C
/// </summary>
CODE128C = 11,
/// <summary>
/// 12 = Codabar
/// http://www.onbarcode.com/codabar/
/// </summary>
CODABAR = 12,
/// <summary>
/// 13 = Code128/A
/// </summary>
CODE128A = 13,
/// <summary>
/// 14 = Code39 Extended,支持小写字符
/// </summary>
CODE39EXTENDED = 14,
/// <summary>
/// 15 = Code11
/// http://www.onbarcode.com/code_11/
/// </summary>
CODE11 = 15,
/// <summary>
/// 16 = Code93, 改进Code39
/// http://www.onbarcode.com/code_93/
/// </summary>
CODE93 = 16,
/// <summary>
/// 17 = MSI,主要用于超市货架管理
/// http://www.onbarcode.com/msi/
/// </summary>
MSI = 17,
/// <summary>
/// 18 = ISBN, The International Standard Book Number
/// http://www.onbarcode.com/isbn/
/// </summary>
ISBN = 18,
/// <summary>
/// 19 = ITF-14, implementation of an Interleaved 2 of 5 bar code to encode a Global Trade Item Number
/// http://www.onbarcode.com/itf_14/
/// </summary>
ITF14 = 19,
/// <summary>
/// 20 = Code 2 of 5
/// http://www.onbarcode.com/code_2_of_5/
/// </summary>
STANDARD2OF5 = 20,
/// <summary>
/// 21 = Interleaved 2 of 5
/// http://www.onbarcode.com/interleaved_2_of_5/
/// </summary>
INTERLEAVED2OF5 = 21,
/// <summary>
/// 100 = PDF417
/// </summary>
PDF417 = 100,
/// <summary>
/// 101 = DATAMATRIX
/// </summary>
DATAMATRIX = 101,
/// <summary>
/// 102 = QRCode
/// </summary>
QRCODE = 102
}
PDF业务文档在线生成和在线业务文档打印功能使用了原生的条形码生成技术,其他场合,通过URL生成条形码图片(实际使用时请替换域名地址),定义如下:http://localhost/erp/h/barcode/*type*/*code*/*label*/*size*,参数说明如下:
示例:http://localhost/erp/h/barcode/9/20170001/1/300_60,表示生成 20170001 编号的 Code128 条形码,显示标签,尺寸为宽度300,高度60
http://localhost/erp/h/barcode/102/code/?code=http%3a%2f%2fwww.etsoo.com,表示生成网址 http://www.etsoo.com 的QRCode,因为网址不能通过路径传递,在条形码内容传递一个URL参数名,然后传递参数内容即可