Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
نام ها : Aspose.BarCode.BarCodeRecognition جمع آوری: WL18_.dll (25.4.0)
رابط عمومی برای دکوراسیون میدان اطلاعات مشتری که در نماد استرالیا پست استفاده می شود.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(String)
دکود میدان اطلاعات مشتری از استرالیاپست نماد.می تواند برای تفسیر داده های مختلف از NTable و CTable رمزگذاری استفاده شود.داده ها به عنوان یک ردیف از ارزش های نوار ارائه می شود: 0، 1، 2 یا 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
میدان اطلاعات مشتری رمزگذاری شده به عنوان یک ردیف از ارزش های نوار خام: 0، 1، 2 یا 3
Returns
دکوراسیون فیلد اطلاعات مشتری
Examples
این نمونه نشان می دهد که چگونه برای رمزگذاری داده ها با رابط کاربری 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();
}