Class HIBCLICCombinedCodetext
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.1.0)
מחלקה לקידוד ופיענוח הטקסט המוטמע בקוד HIBC LIC אשר מאחסן נתונים ראשוניים ומשניים.
public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext
ירושה
object ← HIBCLICComplexCodetext ← HIBCLICCombinedCodetext
מיישם
חברים המורשים
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()
דוגמאות
דוגמה זו מראה כיצד לקודד ולפענח 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("מספר מוצר או קטלוג: " + result.PrimaryData.ProductOrCatalogNumber);
Console.WriteLine("קוד זיהוי ממתג: " + result.PrimaryData.LabelerIdentificationCode);
Console.WriteLine("מספר יחידת מידה: " + result.PrimaryData.UnitOfMeasureID);
Console.WriteLine("תאריך תפוגה: " + result.SecondaryAndAdditionalData.ExpiryDate);
Console.WriteLine("כמות: " + result.SecondaryAndAdditionalData.Quantity);
Console.WriteLine("מספר אצווה: " + result.SecondaryAndAdditionalData.LotNumber);
Console.WriteLine("מספר סידורי: " + result.SecondaryAndAdditionalData.SerialNumber);
Console.WriteLine("תאריך ייצור: " + result.SecondaryAndAdditionalData.DateOfManufacture);
}
}
קונסטרוקטורים
HIBCLICCombinedCodetext()
public HIBCLICCombinedCodetext()
מאפיינים
PrimaryData
מזהה נתונים ראשוניים.
public PrimaryData PrimaryData { get; set; }
ערך המאפיין
SecondaryAndAdditionalData
מזהה נתונים משניים ונתונים נוספים משלימים.
public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }
ערך המאפיין
שיטות
Equals(object)
מחזירה ערך המצביע האם מופע זה שווה לערך Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext שנבחר.
public override bool Equals(object obj)
פרמטרים
obj
object
ערך Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext להשוואה עם מופע זה.
מחזירה
true אם obj יש את אותו ערך כמו מופע זה; אחרת, false.
GetConstructedCodetext()
בונה טקסט קוד
public override string GetConstructedCodetext()
מחזירה
טקסט קוד שנבנה
GetHashCode()
מחזירה את קוד ההאש עבור מופע זה.
public override int GetHashCode()
מחזירה
קוד האש של מספר שלם בן 32 סיביות.
InitFromString(string)
מאתחלת מופע מטקסט קוד שנבנה.
public override void InitFromString(string constructedCodetext)
פרמטרים
constructedCodetext
string
טקסט קוד שנבנה.