public ActionResult PostClienterBindManage(int pageindex = 1)
        {
            var criteria = new BusinessSearchCriteria();

            TryUpdateModel(criteria);
            criteria.PageSize = 20;
            ViewBag.businessClienterRelationList = iBusinessProvider.GetBusinessClienterRelationList(criteria);
            return(PartialView("_ClienterBindList"));
        }
        /// <summary>
        /// 查看商户绑定骑士列表(初始化)
        /// danny-20150608
        /// </summary>
        /// <param name="businessId">商户Id</param>
        /// <returns></returns>
        public ActionResult ClienterBindManage(string businessId)
        {
            var businessDetailModel = iBusinessProvider.GetBusinessDetailById(businessId);

            businessDetailModel.BindClienterQty =
                iBusinessProvider.GetBusinessBindClienterQty(ParseHelper.ToInt(businessId));
            var criteria = new BusinessSearchCriteria()
            {
                BusinessId = ParseHelper.ToInt(businessId),
                PageSize   = 20
            };

            ViewBag.businessClienterRelationList = iBusinessProvider.GetBusinessClienterRelationList(criteria);
            return(View(businessDetailModel));
        }
        public ActionResult PostBusinessManager(int pageindex = 1)
        {
            var criteria = new BusinessSearchCriteria();

            TryUpdateModel(criteria);
            int UserType = UserContext.Current.AccountType == 1 ? 0 : UserContext.Current.Id;//如果管理后台的类型是所有权限就传0,否则传管理后台id

            criteria.AuthorityCityNameListStr =
                iAreaProvider.GetAuthorityCityNameListStr(ParseHelper.ToInt(UserType));
            ViewBag.txtGroupId   = UserContext.Current.GroupId;//集团id
            ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(UserType);
            if (UserType > 0 && string.IsNullOrWhiteSpace(criteria.AuthorityCityNameListStr))
            {
                return(PartialView("_BusinessManageList"));
            }
            var pagedList = iBusinessProvider.GetBusinesses(criteria);

            return(PartialView("_BusinessManageList", pagedList));
        }
        public ActionResult BusinessManager()
        {
            ViewBag.txtGroupId = SuperMan.App_Start.UserContext.Current.GroupId;              //集团id

            int UserType = UserContext.Current.AccountType == 1 ? 0 : UserContext.Current.Id; //如果管理后台的类型是所有权限就传0,否则传管理后台id

            ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(ParseHelper.ToInt(UserType));
            var criteria = new BusinessSearchCriteria()
            {
                Status                   = -1,
                GroupId                  = UserContext.Current.GroupId,
                MealsSettleMode          = -1,
                AuthorityCityNameListStr = iAreaProvider.GetAuthorityCityNameListStr(UserType)
            };

            if (UserType > 0 && string.IsNullOrWhiteSpace(criteria.AuthorityCityNameListStr))
            {
                return(View());
            }
            var pagedList = iBusinessProvider.GetBusinesses(criteria);

            return(View(pagedList));
        }
 public JsonResult GetBussinessByCityInfo(BusinessSearchCriteria model)
 {
     return(Json(iBusinessProvider.GetBussinessByCityInfo(model).ToList(), JsonRequestBehavior.DenyGet));
 }