public ActionResult GetList_Prioritys()
        {
            var ls = FacadeSchedule.GetAll().Select(p => new SelectListItem()
            {
                Text = p.ScheduleStart + " - " + p.ScheduleEnd, Value = p.PK_ScheduleID.ToString()
            }).ToList <SelectListItem>();

            return(Json(ls, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            ViewBag.lstModules = FacadeModuleService.GetAll().Select(p => new SelectListItem()
            {
                Text = p.ID + " - " + p.Base, Value = p.ModuleID.ToString()
            }).ToList <SelectListItem>();
            ViewBag.lstPrioritys = FacadeSchedule.GetAll().Select(p => new SelectListItem()
            {
                Text = p.ScheduleStart + " - " + p.ScheduleEnd, Value = p.PK_ScheduleID.ToString()
            }).ToList <SelectListItem>();
            ViewBag.lstGuaranty = FacadeGuaranty.GetAll().Select(p => new SelectListItem()
            {
                Text = p.GuarantyID + " - " + p.Guaranty1, Value = p.PK_GuarantyID.ToString()
            }).ToList <SelectListItem>();
            ViewBag.lstStatusOrder = FacadeStatusCauseOrder.GetAll().Select(p => new SelectListItem()
            {
                Text = p.StatusOrder1, Value = p.PK_StatusOrderID.ToString()
            }).ToList <SelectListItem>();

            return(View());
        }