Esempio n. 1
0
        //Get: /Order  订单管理
        public ActionResult Order()
        {
            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 superManModel = iDistributionProvider.GetClienterModelByGroupID(ViewBag.txtGroupId);

            if (superManModel != null)
            {
                ViewBag.superManModel = superManModel;
            }
            var criteria = new OrderSearchCriteria()
            {
                orderStatus = -1,
                //GroupId = UserContext.Current.GroupId,
                AuthorityCityNameListStr = iAreaProvider.GetAuthorityCityNameListStr(UserType)
            };

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

            return(View(pagedList));
        }
        // GET: BusinessManager
        public ActionResult SuperManManager()
        {
            //account account = HttpContext.Session["user"] as account;
            //if (account == null)
            //{
            //    Response.Redirect("/account/login");
            //    return null;
            //}
            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));
            ViewBag.deliveryCompanyList = new CompanyProvider().GetCompanyList();//获取物流公司
            var criteria = new Ets.Model.ParameterModel.Clienter.ClienterSearchCriteria()
            {
                Status  = -1,
                GroupId = SuperMan.App_Start.UserContext.Current.GroupId,
                AuthorityCityNameListStr = iAreaProvider.GetAuthorityCityNameListStr(UserType)
            };

            if (UserType > 0 && string.IsNullOrWhiteSpace(criteria.AuthorityCityNameListStr))
            {
                return(View());
            }
            //ViewBag.openCityList.Result.AreaModels;
            var pagedList = iDistributionProvider.GetClienteres(criteria);

            return(View(pagedList));
        }
Esempio n. 3
0
        /// <summary>
        /// 加载默认商户提款单列表
        /// danny-20150511
        /// </summary>
        /// <returns></returns>
        public ActionResult BusinessWithdraw()
        {
            ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(0);
            var criteria = new BusinessWithdrawSearchCriteria()
            {
                WithdrawStatus = 0
            };
            var pagedList = iBusinessFinanceProvider.GetBusinessWithdrawList(criteria);

            return(View(pagedList));
        }
Esempio n. 4
0
        // GET: AuthorityManager
        /// <summary>
        /// 后台用户管理列表页面
        /// </summary>
        /// <returns></returns>
        public ActionResult AuthorityManager()
        {
            // account account = HttpContext.Session["user"] as account;
            //if (account == null)
            //{
            //    Response.Redirect("/account/login");
            //    return null;
            //}

            ViewBag.txtGroupId   = SuperMan.App_Start.UserContext.Current.GroupId;//集团id
            ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(0);
            var criteria = new Ets.Model.ParameterModel.Authority.AuthoritySearchCriteria()
            {
                GroupId = SuperMan.App_Start.UserContext.Current.GroupId
            };
            var authorityModel = iAuthorityMenuProvider.GetAuthorityManage(criteria);

            return(View(authorityModel));
        }
Esempio n. 5
0
        /// <summary>
        /// 页面第一次加载时调用的获取商家充值信息方法
        /// </summary>
        /// <UpdateBy>zhaohailong</UpdateBy>
        /// <UpdateTime>20150623</UpdateTime>
        /// <returns></returns>
        public ActionResult BussinessBalanceStatistical()
        {
            var criteria = new BussinessBalanceQuery();

            TryUpdateModel(criteria);
            criteria.PageIndex   = 1;
            ViewBag.openCityList = areaProvider.GetOpenCityOfSingleCity(0);
            GetStaticData(criteria);

            PageInfo <BusinessBalanceInfo> resultData = statisticsProvider.QueryBusinessBalance(criteria);

            return(View(resultData));
        }
        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));
        }
 /// <summary>
 /// 消息编辑(添加和修改)
 /// danny-20150615
 /// </summary>
 /// <param name="orderNo"></param>
 /// <returns></returns>
 public ActionResult MessageEdit()
 {
     ViewBag.openCityList = iAreaProvider.GetOpenCityOfSingleCity(0);
     ViewBag.dealType     = 1;//新增
     return(View());
 }