public ActionResult TrialBalance() { TrialBalanceCriteriaModel model = new TrialBalanceCriteriaModel(); model.SetOfBooks = sobService.GetByCompanyId(AuthenticationHelper.User.CompanyId) .Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); model.CodeCombinations = getCodeCombinationList(Convert.ToInt32(model.SetOfBooks.First().Value)); model.Periods = getPeriodList(model.SetOfBooks.First().Value); return(View(model)); }
public ActionResult TrialBalance() { TrialBalanceCriteriaModel model = new TrialBalanceCriteriaModel(); model.CodeCombinations = getCodeCombinationList(Convert.ToInt32(SessionHelper.SOBId)); //model.Periods = getPeriodList(model.SetOfBooks.First().Value); model.Periods = CalendarHelper.GetCalendars(Convert.ToInt32(SessionHelper.SOBId)) .Select(x => new SelectListItem { Text = x.PeriodName, Value = x.Id.ToString() }).ToList(); return(View(model)); }