Decode
AustraliaPostCustomerInformationDecoder.Decode method
فك شفرة حقل معلومات العميل من رمز AustraliaPost. يمكن استخدامها لتفسير البيانات المختلفة من ترميز NTable و CTable. يتم توفير البيانات كصف من قيم الشريط: 0 أو 1 أو 2 أو 3.
public string Decode(string customerInformationField)
معامل | يكتب | وصف |
---|---|---|
customerInformationField | String | حقل معلومات العميل المشفر كصف لقيم الشريط الأولي: 0 أو 1 أو 2 أو 3 |
قيمة الإرجاع
سلسلة “حقل معلومات العميل” التي تم فك ترميزها
أمثلة
يوضح هذا النموذج كيفية فك تشفير البيانات باستخدام واجهة AustraliaPostCustomerInformationDecoder
[C#]
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();
}
أنظر أيضا
- interface AustraliaPostCustomerInformationDecoder
- مساحة الاسم Aspose.BarCode.BarCodeRecognition
- المجسم Aspose.BarCode