public NaoConformidadesController(ISetorService setorService , IUsuarioService usuarioService , IEnumHelper enumHelper , INaoConformidadeService naoConformidadeService , IReclamativaService reclamativaService , ICausaRaizService causaRaizService , IPlanoDeAcaoService planoDeAcaoService , IEficaciaService eficaciaService) { this._setorService = setorService; this._usuarioService = usuarioService; this._enumHelper = enumHelper; this._naoConformidadeService = naoConformidadeService; this._reclamativaService = reclamativaService; this._causaRaizService = causaRaizService; this._planoDeAcaoService = planoDeAcaoService; this._eficaciaService = eficaciaService; ViewBag.Setores = _setorService.ObterSetores().ConvertAll(s => new ValorTextoDto() { Text = s.Id.ToString(), Value = s.Nome }).OrderBy(r => r.Text); ViewBag.Usuarios = _usuarioService.ObterUsuarios().ToList().ConvertAll(s => new ValorTextoDto() { Text = s.Id.ToString(), Value = s.Nome }).OrderBy(r => r.Text); ViewBag.StatusRnc = Enum.GetValues(typeof(DKO.EQualy.Domain.Enum.NaoConformidade.Status)).Cast <DKO.EQualy.Domain.Enum.NaoConformidade.Status>().Select(v => new SelectListItem { Text = _enumHelper.ObterDescricaoDoEnum(v), Value = ((int)v).ToString() }).ToList(); }
public NaoConformidadesController(ISetorService setorService , IUsuarioService usuarioService , IEnumHelper enumHelper , INaoConformidadeService naoConformidadeService , IReclamativaService reclamativaService , ICausaRaizService causaRaizService , IPlanoDeAcaoService planoDeAcaoService ,IEficaciaService eficaciaService) { this._setorService = setorService; this._usuarioService = usuarioService; this._enumHelper = enumHelper; this._naoConformidadeService = naoConformidadeService; this._reclamativaService = reclamativaService; this._causaRaizService = causaRaizService; this._planoDeAcaoService = planoDeAcaoService; this._eficaciaService = eficaciaService; ViewBag.Setores = _setorService.ObterSetores().ConvertAll(s => new ValorTextoDto() { Text = s.Id.ToString(), Value = s.Nome }).OrderBy(r => r.Text); ViewBag.Usuarios = _usuarioService.ObterUsuarios().ToList().ConvertAll(s => new ValorTextoDto() { Text = s.Id.ToString(), Value = s.Nome }).OrderBy(r => r.Text); ViewBag.StatusRnc = Enum.GetValues(typeof(DKO.EQualy.Domain.Enum.NaoConformidade.Status)).Cast<DKO.EQualy.Domain.Enum.NaoConformidade.Status>().Select(v => new SelectListItem { Text = _enumHelper.ObterDescricaoDoEnum(v), Value = ((int)v).ToString() }).ToList(); }