Exemple #1
0
        public ActionResult ActivityMapDetails(Guid?id)
        {
            ServiceTemplate         service = new ServiceTemplate();
            var                     list    = service.GetListActivity(id);
            ActivityModelsListModel model   = new ActivityModelsListModel(list);

            model.DataDictionary = service.GetActivityTypeList("活动类型");
            return(View(model));
        }
Exemple #2
0
        public ActionResult SeeMore(int pagings = 0)
        {
            ActivityModels  model   = new ActivityModels();
            ServiceTemplate service = new ServiceTemplate();

            model.Condition.PageSize   = 3;
            model.Condition.ActityType = service.GetActivityTypeList("活动类型").Where(n => n.Name == "公益活动").FirstOrDefault().Id;
            Paging paging = new Paging(model.Condition);

            paging.PageIndex = pagings;
            var activity = service.SearchActivity(model.Condition, ref paging);
            ActivityModelsListModel models = new ActivityModelsListModel(activity);

            models.Paging         = paging;
            models.Total          = paging.Total.ToString();
            models.Index          = paging.PageIndex.ToString();
            models.Size           = paging.PageSize.ToString();
            models.DataDictionary = service.GetActivityTypeList("活动类型");
            return(View(models));
        }
Exemple #3
0
        public PartialViewResult NewActivity()
        {
            ServiceTemplate service = new ServiceTemplate();
            ActivityModels  model   = new ActivityModels();

            model.DataDictionary = service.GetActivityTypeList("活动类型");
            var id = model.DataDictionary.FirstOrDefault().Id;

            ViewBag.ActivityBytype = service.GetListActivityBytype(id);
            return(PartialView(model));
        }