Пример #1
0
        public ActionResult Manager(int?page)
        {
            int pageSize  = int.Parse(ConfigurationManager.AppSettings["PageSize"]);
            int pageIndex = page != null?int.Parse(page.ToString()) : 1;

            var result = _wareHouseServices.GetListWarehouse(pageIndex, pageSize, null, -1);

            ViewBag.Index = pageSize * (pageIndex - 1) + 1;
            return(View(result));
        }
Пример #2
0
 public ActionResult ReportOrder()
 {
     //DateTime fromdate = DateTime.Now.AddDays(-30);
     //DateTime todate = DateTime.Now;
     //List<ReportOrderModel> lsResult = new List<ReportOrderModel>();
     //lsResult = _orderServices.getReportOrder(-1, -1, fromdate, todate, 10, 1);
     ViewBag.Warehouse = _wareHouseServices.GetListWarehouse(1, 9999, null, -1).Select(x => new SelectItemBase()
     {
         Id   = x.id.ToString(),
         Name = x.Warehouse
     }).ToList();
     return(View());
 }