Class HIBCLICCombinedCodetext

Class HIBCLICCombinedCodetext

이름 공간 : Aspose.BarCode.ComplexBarcode 모임: Aspose.BarCode.dll (25.4.0)

HIBC LIC 코드에 삽입된 텍스트를 암호화하고 해독하는 수업은 기본 및 초기 데이터를 저장합니다.

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

이 샘플은 HIBCLICCombinedCodetext를 사용하여 HIBC LIC을 암호화하고 해독하는 방법을 보여줍니다.

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

하이브리드 코디텍스트()

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

A Aspose.BarCode.ComplexBarcode.HIBCLICCombined이 예제와 비교할 수 있는 코드텍스트 값.

Returns

bool

진짜 obj이 이 경우와 동일한 가치를 가지고 있다면; 그렇지 않으면, The translation of “false” to Korean is “거짓”..

GetConstructedCodetext()

코드텍스트 만들기

public override string GetConstructedCodetext()

Returns

string

구성된 코드텍스트

GetHashCode()

이 경우 해시 코드를 반환합니다.

public override int GetHashCode()

Returns

int

32비트 전체 해시 코드가 서명되었습니다.

InitFromString(스트리트)

건설된 코드텍스트에서 예를 시작합니다.

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

설계된 코드텍스트

 한국어