Exemplo n.º 1
0
        public ActionResult Index()
        {
            PeriodBL        oPeriodBL = new PeriodBL();
            PeriodViewModel oPeriod   = oPeriodBL.ObtenerVigente();


            SelectorBL oSelectorBL           = new SelectorBL();
            List <SelectOptionItem> oPeriods = oSelectorBL.PeriodsSelector();
            List <SelectListItem>   periods  = Helper.ConstruirDropDownList <SelectOptionItem>(oPeriods, "Value", "Text", "", false, "", "");

            ViewBag.periods = periods;

            GeneralFilterViewModel oGeneralFilterViewModel = new GeneralFilterViewModel();

            oGeneralFilterViewModel.period_id = oPeriod.period_id;
            return(View(oGeneralFilterViewModel));
        }
Exemplo n.º 2
0
        // GET: User
        public ActionResult Index()
        {
            SelectorBL oSelectorBL = new SelectorBL();
            List <SelectOptionItem> oCommissions = oSelectorBL.CommissionsSelector();
            List <SelectListItem>   commissions  = Helper.ConstruirDropDownList <SelectOptionItem>(oCommissions, "Value", "Text", "", true, "0", "TODOS");

            ViewBag.commissions = commissions;

            List <SelectOptionItem> oInterestAreas = oSelectorBL.InterestAreasSelector();
            List <SelectListItem>   interest_areas = Helper.ConstruirDropDownList <SelectOptionItem>(oInterestAreas, "Value", "Text", "", true, "0", "TODOS");

            ViewBag.commissions    = commissions;
            ViewBag.interest_areas = interest_areas;

            List <SelectOptionItem> oEstados = oSelectorBL.StatusSelector();
            List <SelectListItem>   estados  = Helper.ConstruirDropDownList <SelectOptionItem>(oEstados, "Value", "Text", "", true, "0", "TODOS");

            ViewBag.commissions = commissions;
            ViewBag.estados     = estados;


            List <SelectOptionItem> oOrigins = oSelectorBL.OriginSelector();
            List <SelectListItem>   origins  = Helper.ConstruirDropDownList <SelectOptionItem>(oOrigins, "Value", "Text", "", true, "0", "TODOS");

            ViewBag.commissions = commissions;
            ViewBag.origins     = origins;


            List <SelectOptionItem> oPeriods = oSelectorBL.PeriodsSelector();
            List <SelectListItem>   periods  = Helper.ConstruirDropDownList <SelectOptionItem>(oPeriods, "Value", "Text", "", false, "", "");

            ViewBag.commissions = commissions;
            ViewBag.periods     = periods;
            PeriodBL        oPeriodBL = new PeriodBL();
            PeriodViewModel oPeriod   = oPeriodBL.ObtenerVigente();



            ReportFilterViewModel oReportFilterViewModel = new ReportFilterViewModel();

            oReportFilterViewModel.period_id = oPeriod.period_id;
            return(View(oReportFilterViewModel));
        }