Ejemplo n.º 1
0
 public void AddReceivableSpecifiedTradeAccountingAccount(string AccountID, AccountingAccountTypeCodes AccountTypeCode)
 {
     this.ReceivableSpecifiedTradeAccountingAccounts.Add(new ReceivableSpecifiedTradeAccountingAccount()
     {
         TradeAccountID       = AccountID,
         TradeAccountTypeCode = AccountTypeCode
     });
 }
 public static AccountingAccountTypeCodes FromString(this AccountingAccountTypeCodes _, string s)
 {
     try
     {
         return((AccountingAccountTypeCodes)Enum.Parse(typeof(AccountingAccountTypeCodes), s));
     }
     catch
     {
         return(AccountingAccountTypeCodes.Unknown);
     }
 } // !FromString()
        } // !FromString()

        public static string EnumToString(this AccountingAccountTypeCodes c)
        {
            return(c.ToString("g"));
        } // !ToString()