public ActionResult ViewProjecTypes() { var projectType = proType.ListProjectTypes(); ViewBag.projectTypeDll = new SelectList(projectType, "Project_type_id", "Project_type_id"); return(View()); }
public ActionResult CreateDataCenterProject() { var listProjectType = proType.ListProjectTypes(); ViewBag.listProjectTypeDll = new SelectList(listProjectType, "Project_type_id", "Project_type_name"); var listPhaseTypes = phaseType.ListPhaseTypes(); ViewBag.listPhaseTypesDll = new SelectList(listPhaseTypes, "Phase_id", "Phase_name"); var listSpeedConnectionsTypes = speedType.ListSpeedConnectionTypes(); ViewBag.listSpeedConnectionsTypesDll = new SelectList(listSpeedConnectionsTypes, "Speed_connection_id", "Speed_connection_name"); var listDcScopes = dcScope.ListDataCenterScopes(); ViewBag.listDcScopesDll = new SelectList(listDcScopes, "Dc_scope_id", "Dc_scope_name"); return(View()); }
/// <summary> /// Add all the dropdown views in CreateLabProject view when the view loads /// </summary> /// <returns></returns> /// public ActionResult CreateOfficeProject() { var listProjectType = proType.ListProjectTypes(); ViewBag.listProjectTypeDll = new SelectList(listProjectType, "Project_type_id", "Project_type_name"); var listPhaseTypes = phaseType.ListPhaseTypes(); ViewBag.listPhaseTypesDll = new SelectList(listPhaseTypes, "Phase_id", "Phase_name"); var listSpeedConnectionsTypes = speedType.ListSpeedConnectionTypes(); ViewBag.listSpeedConnectionsTypesDll = new SelectList(listSpeedConnectionsTypes, "Speed_connection_id", "Speed_connection_name"); var listOfficeScopes = offScop.ListOfficeScopes(); ViewBag.listOfficeScopesDll = new SelectList(listOfficeScopes, "Office_scope_id", "Office_scope_name"); return(View()); }
/// <summary> /// Add all the dropdown views in CreateLabProject view when the view loads /// </summary> /// <returns></returns> /// public ActionResult CreateFactoryProject() { var listProjectType = proType.ListProjectTypes(); ViewBag.listProjectTypeDll = new SelectList(listProjectType, "Project_type_id", "Project_type_name"); var listPhaseTypes = phaseType.ListPhaseTypes(); ViewBag.listPhaseTypesDll = new SelectList(listPhaseTypes, "Phase_id", "Phase_name"); var listSpeedConnectionsTypes = speedType.ListSpeedConnectionTypes(); ViewBag.listSpeedConnectionsTypesDll = new SelectList(listSpeedConnectionsTypes, "Speed_connection_id", "Speed_connection_name"); var listFacScope = fabScop.ListFabScopes(); ViewBag.listFabScopesDll = new SelectList(listFacScope, "Fab_scope_id", "Fab_scope_name"); return(View()); }
public ActionResult ChangeProjectCategory() { try { var projectTypes = Request.Form["dllProjectTypes"]; ViewBag.dllProjectTypes = new SelectList(ptype.ListProjectTypes(), "Project_type_id", "Project_type_name"); if (projectTypes == string.Empty) { var listProjectsypes = pro.ListProjects(); var projectToList = Mapper.Map <List <Models.ProjectTypes> >(listProjectsypes); return(View("CreateProject", projectToList)); } var idType = Convert.ToInt32(projectTypes); var secondProjecTypeList = pro.ListProjectsPerType(idType); var projectTypeToList = Mapper.Map <List <Models.ProjectTypes> >(secondProjecTypeList); return(View("CreateProject", projectTypeToList)); } catch (Exception ex) { throw ex; } }