Beispiel #1
0
        // GET: PortalAdministrator/Report
        public ActionResult Index()
        {
            IList <ProgramType> ProgramType = null;

            ProgramType             = _reportDao.GetProgramTypeList();
            ViewBag.ProgramTypeList = (ProgramType == null) ? new List <SelectListItem>() : ProgramType.Select(SG => new SelectListItem
            {
                Text  = SG.Name,
                Value = Security.Encrypt <string>(SG.Id.ToString())
            }).ToList();

            IList <Report> Reports = null;

            Reports             = _reportDao.GetReportList();
            ViewBag.ReportsList = (Reports == null) ? new List <SelectListItem>() : Reports.Select(SG => new SelectListItem
            {
                Text  = SG.Name,
                Value = Security.Encrypt <string>(SG.Id.ToString())
            }).ToList();


            IList <Claim> InvoicePeriods = null;

            //InvoicePeriods = _reportDao.GetInvoicePeriodList();
            ViewBag.InvoicePeriodList = (InvoicePeriods == null) ? new List <SelectListItem>() : InvoicePeriods.Select(SG => new SelectListItem
            {
                Text  = SG.InvoicePeriod,
                Value = SG.InvoicePeriod
            }).ToList();

            return(View());
        }