Exemplo n.º 1
0
        /// <summary>
        /// Danh sách đơn hàng
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(int page = 1, string searchValue = "", string country = "")
        {
            var model = new Models.OrderPagingationResult()
            {
                Page        = page,
                PageSize    = AppSettings.DefaultPageSize,
                RowCount    = SaleManagementBLL.Order_Count(searchValue, country),
                Data        = SaleManagementBLL.Order_List(page, AppSettings.DefaultPageSize, searchValue, country),
                SearchValue = searchValue,
            };

            return(View(model));
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var model = new DashboardResult
            {
                sumSupplier = CatalogBLL.Supplier_Count(""),
                sumCustomer = CatalogBLL.Customer_Count(""),
                sumShipper  = CatalogBLL.Shipper_Count(""),
                sumCategory = CatalogBLL.Category_Count(""),
                sumProduct  = CatalogBLL.Product_Count("", "", ""),
                sumOrder    = SaleManagementBLL.Order_Count("", ""),
                sumEmployee = HumanResourceBLL.Employee_Count("", "")
            };

            return(View(model));
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(int page = 1)
        {
            var model = new ReportPaginationResult
            {
                Page               = page,
                PageSize           = AppSettings.DefaultPageSize,
                sumOfOrders        = SaleManagementBLL.Order_Count("", ""),
                DataSum            = ReportBLL.Report_TimeOrdered(),
                DataShipOk         = ReportBLL.Report_ListShipOk(),
                sumOfProducts      = CatalogBLL.Product_Count("", "", ""),
                SumOfPriceProducts = ReportBLL.Report_SumPriceProduct()
            };

            return(View(model));
        }
Exemplo n.º 4
0
        // GET: Order
        public ActionResult Index(int page = 1, string searchValue = "", string customer = "")
        {
            var model = new Models.OrderPaginationResult()
            {
                Page        = page,
                PageSize    = AppSetting.DefaultPageSize,
                RowCount    = SaleManagementBLL.Order_Count(searchValue, customer),
                Data        = SaleManagementBLL.Order_List(page, AppSetting.DefaultPageSize, searchValue, customer),
                SearchValue = searchValue,
                customer    = customer
            };

            ViewData["shipper"]  = CatalogBLL.Shipper_ListAll();
            ViewData["customer"] = CatalogBLL.Customer_ListAll();
            ViewData["employee"] = HumanResourceBLL.Employee_ListAll();
            return(View(model));
        }
Exemplo n.º 5
0
        // GET: Order
        public ActionResult Index(int page = 1, string searchValue = "", string customerID = "", int employeeID = 0, int shipperID = 0)
        {
            var model = new Models.OrderPaginationResult()
            {
                SearchValue = searchValue,
                searchValue = searchValue,
                CustomerID  = customerID,
                EmployeeID  = employeeID,
                ShipperID   = shipperID,
                Page        = page,
                PageSize    = AppSettings.DefaultPagesize,
                RowCount    = SaleManagementBLL.Order_Count(searchValue, employeeID, customerID, shipperID),
                Data        = SaleManagementBLL.Order_List(page, AppSettings.DefaultPagesize, searchValue, employeeID, customerID, shipperID)
            };

            //var listofSuppliers = CatalogBLL.Suppliers_List(page, 10, searchValue);
            //int rowcount = CatalogBLL.Supplier_count(searchValue);
            //ViewBag.Count = rowcount;
            return(View(model));
        }