Esempio n. 1
0
 /// <summary>
 /// Converts a string to a DocumentFunctionCode enumeration
 /// </summary>
 public static String DocumentFunctionCodeToString(DESADV_XSDLib.Enumerations.DocumentFunctionCode enumValue)
 {
     switch(enumValue)
     {
     case DESADV_XSDLib.Enumerations.DocumentFunctionCode.O:
         return "O";
     case DESADV_XSDLib.Enumerations.DocumentFunctionCode.CHG:
         return "CHG";
     default:
         throw new LiquidTechnologies.Runtime.Net45.LtInvalidValueException("Unknown enumeration value for DESADV_XSDLib.Enumerations.DocumentFunctionCode [" + enumValue.ToString() + "]");
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Converts a string to a TaxCategoryCode enumeration
 /// </summary>
 public static String TaxCategoryCodeToString(DESADV_XSDLib.Enumerations.TaxCategoryCode enumValue)
 {
     switch(enumValue)
     {
     case DESADV_XSDLib.Enumerations.TaxCategoryCode.S:
         return "S";
     case DESADV_XSDLib.Enumerations.TaxCategoryCode.Z:
         return "Z";
     case DESADV_XSDLib.Enumerations.TaxCategoryCode.E:
         return "E";
     default:
         throw new LiquidTechnologies.Runtime.Net45.LtInvalidValueException("Unknown enumeration value for DESADV_XSDLib.Enumerations.TaxCategoryCode [" + enumValue.ToString() + "]");
     }
 }