コード例 #1
0
        //Edit Account
        public ActionResult EditChartofAccount(int AccountID)
        {
            var viewModel = new EditChartofAccountVM();
            var mger = new AccountManager();

            viewModel.EditAccount = mger.GetAllAccount().Attachment.FirstOrDefault(m => m.AccountID == AccountID);
            viewModel.AccountTypeSelection = new SelectList(Enum.GetValues(typeof(AccountType)).Cast<AccountType>().ToList());

            return View(viewModel);
        }
コード例 #2
0
 // GET: JournalEntry
 public ActionResult NewEntry()
 {
     var gLmger = new GLManager();
     var cOAmger = new AccountManager();
     var viewModel = new NewEntryVM();
     var ChartofAccount = cOAmger.GetAllAccount();
     var AccountNames = ChartofAccount.Attachment.Select(a => a.AccountName).ToList();
     viewModel.AccountNameSelect = new SelectList(AccountNames);
     return View(viewModel);
 }
コード例 #3
0
 // GET: ChartOfAccount
 public ActionResult ChartOfAccountList()
 {
     var mger = new AccountManager();
     var accountList = mger.GetAllAccount();
     return View(accountList.Attachment);
 }