コード例 #1
0
        public ActionResult Ledger()
        {
            LedgerCriteriaModel model = new LedgerCriteriaModel();

            model.CodeCombinations = getCodeCombinationList(Convert.ToInt32(SessionHelper.SOBId));
            model.FromDate         = Const.StartDate;
            model.ToDate           = Const.EndDate;
            return(View(model));
        }
コード例 #2
0
        public ActionResult Ledger()
        {
            LedgerCriteriaModel model = new LedgerCriteriaModel();

            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));
            return(View(model));
        }