/// <summary> /// 商家折扣列表 /// </summary> /// <param name="vm"></param> /// <param name="pn"></param> /// <returns></returns> public ActionResult List(ActivityDiscountVM vm, int pn = 1) { int totalCount, pageIndex = pn, pageSize = PagingConfig.PAGE_SIZE; var list = _businessInfo.GetManagerList(vm.QueryName, vm.QueryType, pageIndex, pageSize, out totalCount); foreach (var item in list) { if (item.ActivityMinusList != null) { item.ActivityMinusList.OrderByDescending(c => c.AchiveAmount); } } var paging = new Paging <BusinessInfo>() { Items = list, Size = PagingConfig.PAGE_SIZE, Total = totalCount, Index = pn, }; vm.Paging = paging; return(View(vm)); }
/// <summary> /// 列表 /// </summary> /// <param name="vm"></param> /// <param name="pn"></param> /// <returns></returns> public ActionResult List(BusinessInfoVM vm, int pn = 1) { int totalCount, pageIndex = pn, pageSize = PagingConfig.PAGE_SIZE; var list = _businessInfoService.GetManagerList(vm.QueryName, vm.QueryType, pageIndex, pageSize, out totalCount); var paging = new Paging <BusinessInfo>() { Items = list, Size = PagingConfig.PAGE_SIZE, Total = totalCount, Index = pn, }; vm.Paging = paging; //获取所有系统用户名称 vm.SysAccountList = _sysAccountService.GetAll(); ////更新所有距离地铁站数据信息 //var alllist = _businessInfoService.GetManagerList("", 1, 1000, out totalCount); //foreach (var item in alllist) //{ // SetLocationInfo(item); //} return(View(vm)); }
/// <summary> /// 列表 /// </summary> /// <param name="pn">分页下标</param> /// <returns></returns> public ActionResult List(BusinessEvaluationVM vm, int pn = 1) { int totalCount, pageIndex = pn, pageSize = PagingConfig.PAGE_SIZE; var list = _businessInfoService.GetManagerList(vm.QueryName, (int)BusinessTypeEnum.乐, pageIndex, pageSize, out totalCount); var paging = new Paging <BusinessInfo>() { Items = list, Size = PagingConfig.PAGE_SIZE, Total = totalCount, Index = pn, }; vm.Paging = paging; return(View(vm)); }