Class HIBCLICCombinedCodetext
İsim alanı : Aspose.BarCode.ComplexBarcode Toplama: Aspose.BarCode.dll (25.4.0)
HIBC LIC koduna yerleştirilen metnin kodlanması ve dekodalanması için sınıf, temel ve ikincil verileri depolamaktadır.
public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext
Inheritance
object ← HIBCLICComplexCodetext ← HIBCLICCombinedCodetext
Implements
mirasçı üyeleri
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
Bu örnek, HIBCLICCombinedCodetext kullanarak HIBC LIC’i nasıl kodlayacağınızı ve dekore edeceğinizi gösterir.
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
HİBCLICKombinasyonKodetext()
public HIBCLICCombinedCodetext()
Properties
PrimaryData
Temel verileri tanımlayın.
public PrimaryData PrimaryData { get; set; }
Mülkiyet Değer
SecondaryAndAdditionalData
İkinci ve ek verileri belirler.
public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }
Mülkiyet Değer
Methods
Equals(nesne)
Bu örnek bir Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext değerine eşit olup olmadığını gösteren bir değer geri getirir.
public override bool Equals(object obj)
Parameters
obj
object
Bu örnekle karşılaştırmak için bir Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext değeri.
Returns
doğru eğer obj bu örnekle aynı değere sahipse; aksi takdirde, The translation of “false” to Turkish is “yanlış”..
GetConstructedCodetext()
codetext oluşturma
public override string GetConstructedCodetext()
Returns
Yapılandırılmış kodeks
GetHashCode()
Bu örnek için hash kodunu iade edin.
public override int GetHashCode()
Returns
32 bit bir hash kodu imzaladı.
InitFromString(Sırt)
İnşaat kod metninden bir örnek başlatır.
public override void InitFromString(string constructedCodetext)
Parameters
constructedCodetext
string
Yapılmış bir kod yazısı.