public JsonResult GetListRequisition() { var lst = new BindDropDownList(); eTracLoginModel ObjLoginModel = null; if (Session != null) { if (Session["eTrac"] != null) { ObjLoginModel = (eTracLoginModel)(Session["eTrac"]); } } try { var _manager = new VehicleSeatingChartManager(); var lstDept = _IDepartment.ListAllDepartment("", 0, 0); var lstSuperiour = _manager.ListSuperiour(); lst.listDepartment = lstDept.ToList(); lst.listSuperiour = lstSuperiour; } catch (Exception ex) { return(Json(lst, JsonRequestBehavior.AllowGet)); } return(Json(lst, JsonRequestBehavior.AllowGet)); }
public JsonResult GetList() { var lst = new BindDropDownList(); eTracLoginModel ObjLoginModel = null; if (Session != null) { if (Session["eTrac"] != null) { ObjLoginModel = (eTracLoginModel)(Session["eTrac"]); } } try { var lstDept = _IDepartment.ListAllDepartment("", 0, 0); var lstSuperiour = _IAdminDashboard.ListSuperiour(); lst.listDepartment = lstDept.ToList(); lst.listSuperiour = lstSuperiour; } catch (Exception ex) { ViewBag.Message = ex.Message; ViewBag.AlertMessageClass = ObjAlertMessageClass.Danger; } return(Json(lst, JsonRequestBehavior.AllowGet)); }
public JsonResult GetNames(string term, int tag) { var results = new BindDropDownList().Unidades("Selecione...", "", term, tag); return new JsonResult() { Data = results, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }
public override ActionResult List(int? index, int? pageSize = 50, string descricao = null) { if (ViewBag.ValidateRequest) { ViewBag.CondominioID = DWMSessaoLocal.GetSessaoLocal().empresaId; if (descricao == null || String.IsNullOrEmpty(descricao)) { #region Recuperar o primeiro espaço var espacos = new BindDropDownList().EspacosComuns("", "", (int)ViewBag.CondominioID); descricao = espacos.FirstOrDefault().Value; #endregion } return ListParam(index, pageSize, descricao); } else return View(); }