Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
Nazwa przestrzeń: Aspose.BarCode.BarCodeRecognition Zgromadzenie: Aspose.BarCode.dll (25.4.0)
Publiczny interfejs do decydowania pola informacji o klientach, który jest używany w symbologii AustraliaPost. Wdrożenie powinno być dostarczone przez użytkownika.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(strumień)
Decodowanie pola informacyjnego klienta z Symbolika AustraliaPost.Może być używany do różnych interpretacji danych z kodowania NTable i CTable.Dane są dostarczane jako szereg wartości pasków: 0, 1, 2 lub 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
Pole informacyjne Klienta kodowane jako rzędu wartości barów surowych: 0, 1, 2 lub 3
Returns
decydująca sieć polu informacyjnego klienta
Examples
Ten próbek pokazuje, jak odkryć dane za pomocą interfejsu AustraliaPostCustomerInformationDecoder
string[] N_Table = { "00", "01", "02", "10", "11", "12", "20", "21", "22", "30" };
public string Decode(string customerInformationField)
{
StringBuilder bd = new StringBuilder();
for (int i = 0; customerInformationField.Length > i; i += 2)
{
if (customerInformationField.Length >= i + 2)
{
string tmp = customerInformationField.Substring(i, 2);
for (int j = 0; N_Table.Length > j; j++)
{
if (N_Table[j].Equals(tmp))
{
bd.Append(j);
break;
}
}
}
}
return bd.ToString();
}