Beispiel #1
0
 private void InitBodys(int ExpenseAccountId = 0)
 {
     ViewBag.ExpenseAccountId = ExpenseAccountId;
     if (ExpenseAccountId == 0)
     {
         ViewBag.Files   = new List <EM_ExpenseAccount_File>();
         ViewBag.Details = new List <ExpenseAccountDetailListDTO>();
     }
     else
     {
         ViewBag.Files = expenseAccountFileRepo.GetListByExpenseAccountId(ExpenseAccountId);
         var entitys = expenseAccountDetailRepo.GetListByExpenseAccountId(ExpenseAccountId, ViewHelp.GetDetailCompanyIds());
         var Details = Mapper.Map <List <EM_ExpenseAccount_Detail>, List <ExpenseAccountDetailListDTO> >(entitys);
         ViewBag.Details = Details;
     }
 }