Class HIBCLICCombinedCodetext

Class HIBCLICCombinedCodetext

ชื่อพื้นที่: Aspose.BarCode.ComplexBarcode การประกอบ: Aspose.BarCode.dll (25.4.0)

ประเภทการเข้ารหัสและ decoding the text embedded in the HIBC LIC code which stores primary and secodary data

public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext

Inheritance

object HIBCLICComplexCodetext HIBCLICCombinedCodetext

Implements

IComplexCodetext

อนุญาโตตุลาการ

HIBCLICComplexCodetext.GetConstructedCodetext() , HIBCLICComplexCodetext.InitFromString(string) , HIBCLICComplexCodetext.GetBarcodeType() , HIBCLICComplexCodetext.BarcodeType , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

ตัวอย่างนี้แสดงให้เห็นวิธีการเข้ารหัสและ decode HIBC LIC โดยใช้ HIBCLICCombinedCodetext

HIBCLICCombinedCodetext combinedCodetext = new HIBCLICCombinedCodetext();
combinedCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
combinedCodetext.PrimaryData = new PrimaryData();
combinedCodetext.PrimaryData.ProductOrCatalogNumber = "12345";
combinedCodetext.PrimaryData.LabelerIdentificationCode = "A999";
combinedCodetext.PrimaryData.UnitOfMeasureID = 1;
combinedCodetext.SecondaryAndAdditionalData = new SecondaryAndAdditionalData();
combinedCodetext.SecondaryAndAdditionalData.ExpiryDate = DateTime.Now;
combinedCodetext.SecondaryAndAdditionalData.ExpiryDateFormat = HIBCLICDateFormat.MMDDYY;
combinedCodetext.SecondaryAndAdditionalData.Quantity = 30;
combinedCodetext.SecondaryAndAdditionalData.LotNumber = "LOT123";
combinedCodetext.SecondaryAndAdditionalData.SerialNumber = "SERIAL123";
combinedCodetext.SecondaryAndAdditionalData.DateOfManufacture = DateTime.Now;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext))
{
    Bitmap image = generator.GenerateBarCodeImage();
    using (BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC))
    {
        reader.ReadBarCodes();
        string codetext = reader.FoundBarCodes[0].CodeText;
        HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
        Console.WriteLine("Product or catalog number: " + result.PrimaryData.ProductOrCatalogNumber);
        Console.WriteLine("Labeler identification code: " + result.PrimaryData.LabelerIdentificationCode);
        Console.WriteLine("Unit of measure ID: " + result.PrimaryData.UnitOfMeasureID);
        Console.WriteLine("Expiry date: " + result.SecondaryAndAdditionalData.ExpiryDate);
        Console.WriteLine("Quantity: " + result.SecondaryAndAdditionalData.Quantity);
        Console.WriteLine("Lot number: " + result.SecondaryAndAdditionalData.LotNumber);
        Console.WriteLine("Serial number: " + result.SecondaryAndAdditionalData.SerialNumber);
        Console.WriteLine("Date of manufacture: " + result.SecondaryAndAdditionalData.DateOfManufacture);
    }
}

Constructors

HIBCLICCombinedCodetext()

public HIBCLICCombinedCodetext()

Properties

PrimaryData

การระบุข้อมูลพื้นฐาน

public PrimaryData PrimaryData { get; set; }

คุณสมบัติมูลค่า

PrimaryData

SecondaryAndAdditionalData

การระบุข้อมูลด้านล่างและข้อมูลเพิ่มเติม

public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }

คุณสมบัติมูลค่า

SecondaryAndAdditionalData

Methods

Equals(วัตถุ)

กลับค่าแสดงให้เห็นว่าตัวอย่างนี้เท่ากับค่า Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext ที่ระบุไว้

public override bool Equals(object obj)

Parameters

obj object

คะแนน Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext เพื่อเปรียบเทียบกับตัวอย่างนี้

Returns

bool

จริง ถ้า obj มีมูลค่าเดียวกันกับตัวอย่างนี้ อย่างไรก็ตาม The translation of “false” to Thai is “เท็จ”..

GetConstructedCodetext()

สร้าง codetext

public override string GetConstructedCodetext()

Returns

string

โครงสร้างโค้ด

GetHashCode()

กลับรหัส hash สําหรับตัวอย่างนี้

public override int GetHashCode()

Returns

int

32 บิตลงชื่อรหัส hash ทั้งหมด

InitFromString(รั้ว)

เริ่มต้นตัวอย่างจากโค้ดข้อความที่สร้างขึ้น

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

โครงสร้างโค้ด

 แบบไทย