Beispiel #1
0
        public ActionResult Right()
        {
            RightModel model = new RightModel();

            CommonService commonService = new CommonService();
            model.Right = commonService.GetRight();

            return PartialView(model);
        }
Beispiel #2
0
        public ActionResult Index()
        {
            HomeModel model = new HomeModel();

            try
            {
                int tempCount = 0;
                model.Demands = demandService.GetDemands(10, 1, out tempCount);
                //model.Trades = tradeService.GetTradeList(5, 1, -1, out tempCount);

                //活动
                activityService = new ActivityService();
                model.ActivityList = activityService.QueryActivities(new QueryActivityCriteria
                {
                    PageSize = 10,
                    StartRowIndex = 1,
                    QueryType = -1
                });

                model.Right = new Right();
                CommonService commonService = new CommonService();
                model.Right = commonService.GetRight();

            }
            catch (Exception e)
            {
                LogService.Log("移动版首页", e.ToString());
            }

            if (model.Right == null)
            {
                model.Right = new Right();
            }

            return View(model);
        }
Beispiel #3
0
        public ActionResult Show(int id)
        {
            var space = resourceManager.GetResourceById(id);

            if (space == null)
            {
                return RedirectToAction("Index", "Home");
            }
            else
            {
                try
                {
                    CommonService commonService = new CommonService();
                    ViewData["RightModel"] = commonService.GetRight();
                }
                catch (Exception ex)
                {
                    LogService.Log("resource Show GetRight", ex.ToString());
                }
                ViewData["UserInfo"] = this.UserInfo;
                return View(space);
            }
        }
Beispiel #4
0
        public ActionResult Show(int id)
        {
            var space = resourceManager.GetResourceById(id);
            if (space == null)
            {
                return RedirectToAction("Index", "Home");
            }
            else
            {
                if (!IsIdentified)
                {
                    space.Telephone = "认证会员可见";
                    space.Mobile = "认证会员可见";
                    space.QQ = "认证会员可见";
                    space.WeChat = string.Empty;
                    space.Email = "认证会员可见";
                    space.Contract = "认证会员可见";
                    space.DetailAddress = "认证会员可见";
                }

                try
                {
                    CommonService commonService = new CommonService();
                    ViewData["RightModel"] = commonService.GetRight();
                }
                catch (Exception ex)
                {
                    LogService.Log("resource Show GetRight", ex.ToString());
                }
                ViewData["UserInfo"] = this.UserInfo;
                return View(space);
            }
        }
Beispiel #5
0
        public ActionResult Show(int id)
        {
            var space = resourceManager.GetResourceById(id);
            if (space == null)
            {
                return RedirectToAction("Index", "User");
            }
            else
            {
                if (!IsIdentified)
                {
                    string url = string.Format(UserIdentifyUrl, Request.Url.AbsoluteUri);
                    space.Telephone = url;
                    space.Mobile = url;
                    space.QQ = url;
                    space.WeChat = string.Empty;
                    space.Email = url;
                    space.Contract = url;
                    space.DetailAddress = url;
                    space.Href = url;
                }

                try
                {
                    CommonService commonService = new CommonService();
                    ViewData["RightModel"] = commonService.GetRight();
                }
                catch (Exception ex)
                {
                    LogService.Log("resource Show GetRight", ex.ToString());
                }

                ViewData["CurrentWeChatUser"] = CurrentWeChatUser;
                return View(space);
            }
        }