コード例 #1
0
        public ActionResult TransactionStock(int page, int size, int project, string type, string fd, string td)
        {
            var totalRecord = _systemService.CountListTransactionStockByProject(page, size, project, type, fd, td);
            var totalTemp   = Convert.ToDecimal(totalRecord) / Convert.ToDecimal(size);
            var totalPages  = Convert.ToInt32(Math.Ceiling(totalTemp));
            var model       = new ProjectViewModel
            {
                StockQuantityManagementResults = _systemService.ListTransactionStockByProject(page, size, project, type, fd, td),
                TotalRecords = Convert.ToInt32(totalRecord),
                TotalPages   = totalPages,
                CurrentPage  = page,
                PageSize     = size
            };

            return(PartialView("_TransactionStockPartial", model));
        }