Exemplo n.º 1
0
        /// <summary>
        /// Descripción: Metodo que obtiene una plantilla filtrado por el nombre.
        /// 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 <Model.Plantilla> GetPlantillas(string nombre)
        {
            var objCommand = GetSqlCommand("pNLS_PlantillaByNombre");

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

            return(PlantillaConvertTo.Plantillas(Execute(objCommand)));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Descripción: Metodo que obtiene una plantilla filtrado 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 Model.Plantilla GetPlantillaById(int idPlantilla)
        {
            var objCommand = GetSqlCommand("pNLS_PlantillaById");

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

            return(PlantillaConvertTo.Plantilla(Execute(objCommand)));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Descripción: Metodo que Obtiene plantillas de acuerdo a un establecimiento.
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idEstablecimiento"></param>
        /// <returns></returns>
        public List <Model.Plantilla> GetPlantillaByEstablecimiento(int idEstablecimiento)
        {
            var objCommand = GetSqlCommand("pNLS_PlantillaByIdEstablecimiento");

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

            return(PlantillaConvertTo.Plantillas(Execute(objCommand)));
        }