Пример #1
0
        /// <summary>
        /// Descripción: Obtiene establecimientos filtrado por el Nombre del Establecimiento.
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="nombre"></param>
        /// <returns></returns>
        public List <Establecimiento> GetEstablecimientosByNombre(string nombre)
        {
            var objCommand = GetSqlCommand("pNLS_EstablecimientoByNombre");

            InputParameterAdd.Varchar(objCommand, "nombre", nombre);

            return(EstablecimientoConvertTo.Establecimientos(Execute(objCommand)));
        }
        /// <summary>
        /// Descripción: Obtiene los establecimientos por el codigo de la plantilla.
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idPlantilla"></param>
        /// <returns></returns>
        public List <Establecimiento> GetEstablecimientosByPlantillaId(int idPlantilla)
        {
            var objCommand = GetSqlCommand("pNLS_EstablecimientosByPlantillaId");

            InputParameterAdd.Int(objCommand, "idPlantilla", idPlantilla);

            return(EstablecimientoConvertTo.Establecimientos(Execute(objCommand)));
        }