Пример #1
0
        public BE.NivelRegla ObtnerNivelReglaPorId(int idNivelRegla)
        {
            BLL.Categoria   bllCategoria   = new BLL.Categoria();
            BLL.TipoArbitro bllTipoArbitro = new BLL.TipoArbitro();
            BE.NivelRegla   beNivelRegla   = _dalManagerNivelRegla.ObtenerNivelReglaPorId(idNivelRegla);

            beNivelRegla.Categoria   = bllCategoria.ObtnerCategoriaPorId(beNivelRegla.Categoria.Id);
            beNivelRegla.TipoArbitro = bllTipoArbitro.ObtnerTipoArbitroPorId(beNivelRegla.TipoArbitro.Id);

            return(beNivelRegla);
        }
Пример #2
0
        /// <summary>
        /// Obtiene todos los NivelReglas.
        /// </summary>
        /// <returns></returns>
        public List <BE.NivelRegla> ObtenerNivelReglas()
        {
            BLL.Categoria        bllCategoria   = new BLL.Categoria();
            BLL.TipoArbitro      bllTipoArbitro = new BLL.TipoArbitro();
            List <BE.NivelRegla> lstNivelReglas = _dalManagerNivelRegla.Leer();

            foreach (BE.NivelRegla beNivelRegla in lstNivelReglas)
            {
                beNivelRegla.Categoria   = bllCategoria.ObtnerCategoriaPorId(beNivelRegla.Categoria.Id);
                beNivelRegla.TipoArbitro = bllTipoArbitro.ObtnerTipoArbitroPorId(beNivelRegla.TipoArbitro.Id);
            }

            return(lstNivelReglas);
        }
        /// <summary>
        /// Does the asignation.
        /// </summary>
        /// <param name="partidos">The Partidoes.</param>
        /// <param name="arbitros">The Arbitros.</param>
        /// <param name="deporte"></param>
        /// <returns></returns>
        public List <BE.Partido> RealizarDesignacion(List <BE.Partido> partidos, List <BE.Arbitro> arbitros, BE.Deporte deporte)
        {
            BLL.Arbitro logicalArbitro = new BLL.Arbitro();

            //Listas Auxiliares//
            List <BE.Arbitro> arbitroListAux = new List <BE.Arbitro>(arbitros);

            BLL.TipoArbitro       logicalTipoArbitro = new BLL.TipoArbitro();
            List <BE.TipoArbitro> tipoArbitros       = logicalTipoArbitro.ObtenerTipoArbitros();

            Logger.Log.Info("-------COMIENZO DE LA ASIGNACION-------");
            //Logger.Log.Info("-------FECHA NUMERO " + Partidoes.PartidodayNumber + "------------------");
            Logger.Log.Info("---------------------------------------");
            foreach (BE.TipoArbitro tipoArbitro in tipoArbitros)
            {
                AsignarArbitros(partidos, arbitroListAux, logicalArbitro, tipoArbitro);
            }
            return(partidos);
        }