Beispiel #1
0
        internal static List <Segmento> CreateListaSegmentos(Licitacao licitacao)
        {
            List <Segmento> segmentos = new List <Segmento>();

            if (licitacao.Modalidade.Modalidades == "Leilão")
            {
                segmentos = SegmentoController.GetSegmentosLeilao();
            }
            else if (licitacao.Objeto.ToUpper().Contains("VETERINÁR") || licitacao.Objeto.ToUpper().Contains("VETERINAR"))
            {
                segmentos = SegmentoController.GetSegmentosVeterinaria();
            }
            else if (licitacao.Objeto.ToUpper().Contains("CONCESSÃO") ||
                     licitacao.Objeto.ToUpper().Contains("CONCESSAO") ||
                     licitacao.Objeto.ToUpper().Contains("OUTORGA") ||
                     licitacao.Objeto.ToUpper().Contains("PERMISSÃO DE USO") ||
                     licitacao.Objeto.ToUpper().Contains("PERMISSAO DE USO") ||
                     licitacao.Objeto.ToUpper().Contains("EXPLORAÇÃO") ||
                     licitacao.Objeto.ToUpper().Contains("EXPLORACAO"))
            {
                segmentos = SegmentoController.GetSegmentosConcessao();
            }
            else
            {
                segmentos = SegmentoController.GetSegmentosHumanos();
            }

            return(segmentos);
        }