private void ArrangeDropDownToEdit(ProjectModel project) { ViewBag.FrameWorks = HtmlHelpers.GetDropDownList(_db.DbParam.List("project_frameworks"), "value", "value", project.framework); ViewBag.Users = HtmlHelpers.GetDropDownList(_db.DbUser.List(), "userId", "name"); ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <ProjectStatus>((int)project.status); }
private void ArrangeDropDownToCreate() { ViewBag.FrameWorks = HtmlHelpers.GetDropDownList(_db.DbParam.List("project_frameworks"), "value", "value"); ViewBag.Users = HtmlHelpers.GetDropDownList(_db.DbUser.List(), "userId", "name"); ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <ProjectStatus>((int)ProjectStatus.Aberto); }
private void ArrangeDropDownToEdit(TaskModel task, UserModel user) { ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <TaskStatus>((int)task.status); ViewBag.Users = HtmlHelpers.GetDropDownList(_db.DbUser.List(), "userId", "name", user.name); }
private void ArrangeDropDownToCreate() { ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <TaskStatus>((int)TaskStatus.Aberto); ViewBag.Users = HtmlHelpers.GetDropDownList(_db.DbUser.List(), "userId", "name"); ViewBag.Projects = HtmlHelpers.GetDropDownList(_db.DbProject.List(), "projectId", "name"); }
private void ArrangeDropDownToEdit(UserModel user) { ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <UserStatus>((int)user.status); ViewBag.NivelAcesso = HtmlHelpers.GetDropDownFromEnum <UserAcesso>((int)user.acesso); }
private void ArrangeDropDownToCreate() { ViewBag.Status = HtmlHelpers.GetDropDownFromEnum <UserStatus>((int)UserStatus.Ativo); ViewBag.NivelAcesso = HtmlHelpers.GetDropDownFromEnum <UserAcesso>((int)UserAcesso.Usuario); }