public ActionResult Index(string searchString, int page = 1, int pageSize = 10, int vendorId = -1, int companyId = -1, int inventoryQtyFrom = -1, int inventoryQtyTo = -1, int productGroupId = -1, int withImages = -1, bool?isKit = null, SkuType?skuType = null, bool?isSKULinked = null, bool?isAmazonEnabled = null, bool?hasASIN = null) { var products = _productService.GetPagedProducts(page, pageSize, searchString, companyId, vendorId, inventoryQtyFrom, inventoryQtyTo, productGroupId, withImages, isKit, skuType, isSKULinked, isAmazonEnabled, hasASIN); ViewBag.SearchString = searchString; ViewBag.VendorId = vendorId; ViewBag.CompanyId = companyId; ViewBag.InventoryQtyFrom = inventoryQtyFrom; ViewBag.InventoryQtyTo = inventoryQtyTo; ViewBag.ProductGroupId = productGroupId; ViewBag.WithImages = withImages; ViewBag.IsKit = isKit; ViewBag.SkuType = skuType; ViewBag.IsSKULinked = isSKULinked; ViewBag.IsAmazonEnabled = isAmazonEnabled; ViewBag.HasASIN = hasASIN; ViewBag.SavedSearchFiltersList = _savedSearchFilterService.GetAllSavedSearchFilterDto(EnumSavedSearchFilters.Product, User.Identity.Name).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.SavedSearchFilterName }).ToList();; if (Request.IsAjaxRequest()) { return(PartialView("_PagedProducts", products)); } return(View(products)); }
public ActionResult Index(string searchString, int page = 1, int pageSize = 10, int vendorId = -1, int companyId = -1, int withEisSKULink = -1, int inventoryQtyFrom = -1, int inventoryQtyTo = -1, int withImages = -1) { var products = _vendorProductService.GetPagedVendorProducts(page, pageSize, searchString, vendorId, companyId, withEisSKULink, inventoryQtyFrom, inventoryQtyTo, withImages); ViewBag.SearchString = searchString; ViewBag.VendorId = vendorId; ViewBag.CompanyId = companyId; ViewBag.WithEisSKULink = withEisSKULink; ViewBag.InventoryQtyFrom = inventoryQtyFrom; ViewBag.InventoryQtyTo = inventoryQtyTo; ViewBag.WithImages = withImages; ViewBag.SavedSearchFiltersList = _savedSearchFilterService.GetAllSavedSearchFilterDto(EnumSavedSearchFilters.VendorProduct, User.Identity.Name).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.SavedSearchFilterName }).ToList(); if (Request.IsAjaxRequest()) { return(PartialView("_PagedVendorProducts", products)); } return(View(products)); }
public ActionResult Index(string searchString, int page = 1, int pageSize = 10, int CustomerNumber = 0, string CompanyName = "", string CustomerName = "", string EmailAddress = "", int CompanyId = -1, int AccountTypeId = -1) { var customers = _customerService.GetPagedCustomers(page, pageSize, searchString, CustomerNumber, CompanyName, CustomerName, EmailAddress, CompanyId, AccountTypeId); ViewBag.SearchString = searchString; if (CustomerNumber > 0) { ViewBag.CustomerNumber = CustomerNumber; } else { ViewBag.CustomerNumber = ""; } ViewBag.CompanyName = CompanyName; ViewBag.CustomerName = CustomerName; ViewBag.EmailAddress = EmailAddress; ViewBag.CompanyId = CompanyId; ViewBag.AccountTypeId = AccountTypeId; ViewBag.SavedSearchFiltersList = _savedSearchFilterService.GetAllSavedSearchFilterDto(EnumSavedSearchFilters.Customer, User.Identity.Name).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.SavedSearchFilterName }).ToList(); if (Request.IsAjaxRequest()) { return(PartialView("_PagedCustomers", customers)); } return(View(customers)); }
public ActionResult Index( string searchString, string shippingAddress, string shippingCity, string shippingCountry, int page = 1, int pageSize = 10, DateTime?orderDateFrom = null, DateTime?orderDateTo = null, DateTime?shipmentDateFrom = null, DateTime?shipmentDateTo = null, OrderStatus orderStatus = OrderStatus.None, //int vendorId = -1, int isExported = -1, string marketPlace = "", int paymentStatus = -1, int orderGroupId = -1 ) { var orders = _orderService.GetPagedOrders( page, pageSize, searchString, shippingAddress, shippingCity, shippingCountry, orderDateFrom, orderDateTo, shipmentDateFrom, shipmentDateTo, orderStatus, isExported, marketPlace, paymentStatus, orderGroupId); ViewBag.ShipmentDateFrom = shipmentDateFrom; ViewBag.ShipmentDateTo = shipmentDateTo; ViewBag.OrderDateFrom = orderDateFrom; ViewBag.OrderDateTo = orderDateTo; ViewBag.OrderStatus = (int)orderStatus; //ViewBag.VendorId = vendorId; ViewBag.IsExported = isExported; ViewBag.MarketPlace = marketPlace; ViewBag.PaymentStatus = paymentStatus; ViewBag.ShippingAddress = shippingAddress; ViewBag.ShippingCity = shippingCity; ViewBag.ShippingCountry = shippingCountry; ViewBag.SavedSearchFiltersList = _savedSearchFilterService.GetAllSavedSearchFilterDto(EnumSavedSearchFilters.Order, User.Identity.Name).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.SavedSearchFilterName }).ToList(); if (Request.IsAjaxRequest()) { return(PartialView("_PagedOrders", orders)); } return(View(orders)); }