Ejemplo n.º 1
0
 public static List <ShowChartOfAccountsResult> ShowChartOfAccounts()
 {
     using (AccountsDataContext obj = new AccountsDataContext())
     {
         return(obj.ShowChartOfAccounts().ToList());
     }
 }
Ejemplo n.º 2
0
 public static String[] ShowAccountsInfo()
 {
     String[] Set;
     using (AccountsDataContext obj = new AccountsDataContext())
     {
         List <ShowChartOfAccountsResult> Get = obj.ShowChartOfAccounts().ToList();
         Set = new String[Get.Count];
         for (int i = 0; i < Get.Count; i++)
         {
             Set[i] = Get[i].ID + "|" + Get[i].ACCOUNT_ID + "|" + Get[i].NAME;
         }
     }
     return(Set);
 }