/// <summary> /// Danh sách đơn hàng /// </summary> /// <returns></returns> public ActionResult Index(int page = 1, string searchValue = "", string shipperId = "", string customerId = "", string country = "") { List <Order> data = new List <Order>(); try { data = OrderBLL.Order_List(page, AppSettings.DefaultPageSize, searchValue, shipperId, customerId, country); } catch (Exception e) { return(RedirectToAction("Index")); } var model = new Models.OrderPaginationResult() { Page = page, PageSize = AppSettings.DefaultPageSize, RowCount = OrderBLL.Order_Count(searchValue, shipperId, customerId, country), Data = data, SearchValue = searchValue, CustomerID = customerId, Country = country, ShipperID = shipperId, }; return(View(model)); }
/// <summary> /// Quản lý Order /// </summary> /// <returns></returns> public ActionResult Index(int page = 1, string searchValue = "") { var model = new Models.OrderPaginationResult() { Page = page, PageSize = AppSettings.DefaultPageSize, RowCount = CatalogBLL.Order_Count(searchValue), SearchValue = searchValue, Data = CatalogBLL.Order_List(page, AppSettings.DefaultPageSize, searchValue) }; return(View(model)); }
// 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)); }
/// <summary> /// /// </summary> /// <returns></returns> /// public ActionResult Index(int page = 1, string searchValue = "", int idUpdated = 0) { int pageSize = 20; int rowCount = 0; List <Order> ListOfOrder = OrderBLL.ListOfOrder(page, pageSize, searchValue, out rowCount); var model = new Models.OrderPaginationResult() { Page = page, PageSize = pageSize, SeachValue = searchValue, RowCount = rowCount, Data = ListOfOrder, IdUpdated = idUpdated }; return(View(model)); }
// GET: Order public ActionResult Index(int page = 1, string searchValue = "", string customerId = "", int employeeId = 0, int shipperId = 0) { int _pageSize = 50; var model = new Models.OrderPaginationResult() { Page = page, PageSize = _pageSize, RowCount = CatalogBLL.Order_Count(searchValue, customerId, employeeId, shipperId), Data = CatalogBLL.Order_List(page, _pageSize, searchValue, customerId, employeeId, shipperId), searchValue = searchValue, customerId = customerId, employeeId = employeeId, shipperId = shipperId, }; return(View(model)); }
public ActionResult ListCancel(int page = 1, string searchValue = "", string status = "cancel") { int pageSize = 10; int rowCount = 0; List <Order> ListOfOrders = CatalogBLL.ListOfOrders(page, pageSize, searchValue, status, out rowCount); var model = new Models.OrderPaginationResult() { Page = page, PageSize = pageSize, RowCount = rowCount, SearchValue = searchValue, Data = ListOfOrders }; return(View(model)); }
/// <summary> /// /// </summary> /// <returns></returns> public ActionResult Index(int page = 1, string customerID = "", int employeeID = 0, int shipperID = 0) { int pageSize = 3; int rowCount = 0; List<Order> listOfOrders = OrderBLL.ListOfOrders(page, pageSize, customerID, employeeID, shipperID, out rowCount); var model = new Models.OrderPaginationResult() { Data = listOfOrders, Page = page, PageSize = pageSize, RowCount = rowCount, CustomerID = customerID, EmployeeID = employeeID, SearchValue = "", ShipperID = shipperID }; return View(model); }
/// <summary> /// /// </summary> /// <returns></returns> public ActionResult Index(string customer = "", int employee = 0, int shipper = 0, string searchValue = "", int page = 1) { int pageSize = 5; int rowCount = 0; List <Order> listOfOrder = CatalogBLL.ListOfOrders(page, pageSize, searchValue, customer, employee, shipper, out rowCount); var model = new Models.OrderPaginationResult() { Page = page, PageSize = pageSize, RowCount = rowCount, SearchValue = searchValue, Customer = customer, Employee = employee, Shipper = shipper, Data = listOfOrder }; return(View(model)); }
// 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)); }
/// <summary> /// hiển thị trang chủ của hóa đơn /// </summary> /// <returns></returns> // GET: List public ActionResult Index(int page = 1, string searchValue = "") { int pageSize = 3; int rowCount = 0; List <Order> listOfOrder = CataLogBLL.ListOfOrder(page, pageSize, searchValue, out rowCount); var model = new Models.OrderPaginationResult() { Page = page, PageSize = pageSize, RowCount = rowCount, Data = listOfOrder, SearchValue = searchValue }; // int pagesize = 3; // int rowcount = 0; // list<supplier> model = catalogbll.listofsupplier(page, pagesize, searchvalue, out rowcount); // viewbag.rowcount = rowcount; return(View(model)); }