BarcodeLib/Symbologies/JAN13.cs
(完整代码) 941Busing System;
using System.Collections.Generic;
using System.Text;
namespace BarcodeLib
{
class JAN13 : BarcodeCommon, IBarcode
{
public JAN13(string input)
{
Raw_Data = input;
}
/// <summary>
/// Encode the raw data using the JAN-13 algorithm.
/// </summary>
private string Encode_JAN13()
{
if (!Raw_Data.StartsWith("49")) throw new Exception("EJAN13-1: Invalid Country Code for JAN13 (49 required)");
if (!BarcodeLib.Barcode.CheckNumericOnly(Raw_Data))
throw new Exception("EJAN13-2: Numeric Data Only");
EAN13 ean13 = new EAN13(Raw_Data);
return ean13.Encoded_Value;
}//Encode_JAN13
#region IBarcode Members
public string Encoded_Value
{
get { return Encode_JAN13(); }
}
#endregion
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。