getReportParagraphActions() public method

public getReportParagraphActions ( ) : IList
return IList
コード例 #1
0
ファイル: ReportController.cs プロジェクト: unepwcmc/sigtrade
        //
        // GET: /Report/
        public ActionResult Index()
        {
            ITaxonRepository taxons = new TaxonRepository();
            IGenericRepository generics = new GenericRepository();
            ViewData["countries"] = new SelectList(taxons.getReportCountries(), "ID", "Description");
            ViewData["paragraphs"] = new SelectList(taxons.getReportParagraphActions(), "ID", "Description");
            ViewData["phases"] = new SelectList(generics.getAllPhase(), "ID", "PhaseDesc");
            ViewData["concerns"] = new SelectList(generics.getAllLevelofConcerns(), "ID", "Description");
            ViewData["species"] = new SelectList(taxons.getASpeciesSearch(), "RecID", "TaxonName");

            IList<UsersParagraphLink> users = generics.getAllUsersBySource();
            int usercount = users.Count;
            for (int j = 0; j < usercount; j++) {
                users[j].UserID = Membership.GetUser(new Guid(users[j].UserID)).UserName;

            }

            ViewData["actors"] =
                new SelectList(users, "UserID", "UserID");

            return View();
        }