Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
ja nimityö: Aspose.BarCode.BarCodeRecognition Kokoelma: Aspose.BarCode.dll (25.5.0)
Julkinen käyttöliittymä asiakastietojen kenttä dekoding, jota käytetään AustraliaPost symbology. toteutus on annettava käyttäjä.
public interface AustraliaPostCustomerInformationDecoderMethods
Decode(String)
Decode Asiakastietokenttä AustraliaPost symbology.Sitä voidaan käyttää erilaisiin tietojen tulkintoihin NTable- ja CTable-koodinnasta.Tiedot on luovutettu sarjakuvana: 0, 1, 2 tai 3.
string Decode(string customerInformationField)Parameters
customerInformationField string
Asiakastietokenttä koodattu raaka-arvojen sarjaksi: 0, 1, 2 tai 3
Returns
Käsitelty asiakastietokenttä
Examples
Tämä näyte näyttää, miten tallentaa tietoja AustraliaPostCustomerInformationDecoder -liittymällä
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();
}