Esempio 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));
        }
Esempio n. 2
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));
        }
Esempio n. 3
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));
        }