Esempio n. 1
0
        public ActionResult Detail(string id = "")
        {
            ViewBag.Title = "Detail Order";
            Order order = SaleManagementBLL.Order_Get(Convert.ToInt32(id));

            ViewData["orderdetail"] = SaleManagementBLL.OrderDetail_Get(Convert.ToInt32(id));
            ViewData["product"]     = CatalogBLL.Product_ListAll();
            ViewData["shipper"]     = CatalogBLL.Shipper_ListAll();
            ViewData["customer"]    = CatalogBLL.Customer_ListAll();
            ViewData["employee"]    = HumanResourceBLL.Employee_ListAll();
            return(View(order));
        }
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));
        }