Interface AustraliaPostCustomerInformationDecoder
Abast: Aspose.BarCode.BarCodeRecognition Compilació: Aspose.BarCode.dll (26.1.0)
Interfície general per desempaquetar el camp amb la informació del client utilitzat en la codificació AustraliaPost. L’usuari ha de proporcionar la implementació.
public interface AustraliaPostCustomerInformationDecoderExamples
Decode(string)
Desxifrat del camp d’informació del client a partir dels codis d’AustraliaPost. Es pot utilitzar per interpretar diverses dades de la codificació NTable i CTable. Les dades es proporcionen com una seqüència de valors de cinta: 0, 1, 2 o 3.
string Decode(string customerInformationField)Examples
customerInformationField serie
El camp d’informació del client està xifrat com una cadena de valors en brut: 0, 1, 2 o 3
Examples
Sèrie desglossada de camps d’informació del client
Examples
Aquest exemple mostra com decodificar les dades utilitzant la interfície 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();
}