using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Bowin.Common.BarCode
{
///
/// 条码类型基类
///
public abstract class BarCodeBase
{
protected string rawData; //原始数据
///
/// 获取编码原始数据
///
public string RawData
{
get
{
return rawData;
}
}
///
/// 获取条码值
///
public string EncodeValue
{
get
{
try
{
return EncodeCode();
}
catch (Exception)
{
throw;
}
}
}
///
/// 进行条码编码
///
/// 返回条码值
public abstract string EncodeCode();
///
/// 初始化条码对照字典
///
protected virtual void InitCode()
{
}
}
}