Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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");
 }