コード例 #1
0
        public ActionResult MyAssets(string id = null)
        {
            if (id == null)
            {
                id = Guid.NewGuid().ToString();
                return(RedirectToAction("New", new { id = id }));
            }

            EstadoUsuario.CurrentListPublicId = id;

            EDVGroupMyAssets edv = new EDVGroupMyAssets();

            SetHeadCounters();

            ViewBag.PublicID = id;
            AgenteGroupLists agente = new AgenteGroupLists();

            edv.allowEdit = agente.IsGroupListOwner(id, this.User.Identity == null ? null : this.User.Identity.Name);

            EVListSummary summ = agente.SelectGroupListSummaryPorPublicID(id);

            edv.Summary = summ;

            edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.MyAssets);

            return(View(edv));
        }
コード例 #2
0
        public ActionResult Summary(string id)
        {
            SetHeadCounters();
            this.ViewBag.PublicID = id;

            AgenteGroupLists agente = new AgenteGroupLists();
            EVListSummary    ev     = agente.SelectGroupListSummaryPorPublicID(id);
            EDVGroupSummary  edv    = new EDVGroupSummary();

            edv.Summary           = ev;
            edv.Summary.ShowDelta = false;

            IEnumerable <EVStaticList> lists = agente.SelectStaticListsHeadersByGroupId(id);

            edv.Lists             = lists;
            edv.allowEdit         = agente.IsGroupListOwner(id, this.User.Identity == null ? null : this.User.Identity.Name);
            ViewBag.AllowDelete   = false;
            ViewBag.ShowGroupInfo = true;

            edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.Summary);


            return(View(edv));
        }
コード例 #3
0
        public ActionResult ImportLinks(string id)
        {
            SetHeadCounters();
            this.ViewBag.PublicID = id;

            AgenteGroupLists agente = new AgenteGroupLists();

            if (!agente.IsGroupListOwner(id, User.Identity.Name))
            {
                return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest, Messages.err_notAuthorizedForPage));
            }

            IEnumerable <EVStaticList> lists = agente.SelectStaticListsHeadersByGroupId(EstadoUsuario.CurrentListPublicId);
            EDVImportLinks             edv   = new EDVImportLinks {
                Lists = lists
            };

            ViewBag.ShowGroupInfo = true;

            edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.AddLists);


            return(View(edv));
        }