Exemplo n.º 1
0
        public List <Examen> GetExamenesByIdEnfermedadAgrupado(int idEnfermedad)
        {
            var objCommand = GetSqlCommand("pNLS_GetExamenSolicitudUsuario");

            InputParameterAdd.Int(objCommand, "idEnfermedad", idEnfermedad);
            return(ExamenConvertTo.ExamenAgrupado(Execute(objCommand)));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Descripción: Obtiene examanes pertenecientes a un Area
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idAreaProcesamiento"></param>
        /// <returns></returns>
        public List <Examen> GetExamenesByArea(int idAreaProcesamiento)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByAreaId");

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

            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Descripción: Obtiene informacion de los examenes filtrados por idExamen
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idExamen"></param>
        /// <returns></returns>
        public Examen GetExamenById(Guid idExamen)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenById");

            InputParameterAdd.Guid(objCommand, "idExamen", idExamen);

            return(ExamenConvertTo.Examen(Execute(objCommand)));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Descripción: Obtiene informacion de los examenes filtrados por 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 <Examen> GetExamenesByNombre(string nombre)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByNombre");

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

            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 5
0
        public List <Examen> GetExamenesPorEnfermedad(int idEnfermedad)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenesPorEnfermedad");

            InputParameterAdd.Int(objCommand, "idEnfermedad", idEnfermedad);
            //return new List<Examen>();
            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 6
0
        /// <summary>
        /// Descripción: Obtiene informacion de los examenes filtrados por idExamen
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idExamen"></param>
        /// <returns></returns>
        public List <ExamenMetodo> GetMetodoByExamen(Guid idExamen)
        {
            var objCommand = GetSqlCommand("pNLS_MetodosByExamen");

            InputParameterAdd.Guid(objCommand, "idExamen", idExamen);

            return(ExamenConvertTo.ExamenMetodo(Execute(objCommand)));
        }
Exemplo n.º 7
0
        public List <Examen> GetExamenUsuario(string data, int idUsuario)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenbyNombreandUsuario");

            InputParameterAdd.Varchar(objCommand, "nombre", data);
            InputParameterAdd.Int(objCommand, "idUsuario", idUsuario);
            //return new List<Examen>();
            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 8
0
        public List <Examen> GetExamenesByIdEnfermedadOrden(int idEnfermedad, String data)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByIdEnfermedadOrden");

            InputParameterAdd.Int(objCommand, "idEnfermedad", idEnfermedad);
            InputParameterAdd.Varchar(objCommand, "nombre", data);

            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 9
0
        /// <summary>
        /// Descripción: Obtiene información de los examenes filtrados por Nombre y genero
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="genero"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        public List <Examen> GetExamenesByGenero(int genero, String data)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByNombreAndGenero");

            InputParameterAdd.Varchar(objCommand, "nombre", data);
            InputParameterAdd.Int(objCommand, "genero", genero);
            //return new List<Examen>();
            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 10
0
        public List <Examen> GetExamenesByIdLaboratorioRecepcion(int idLaboratorio, int genero, String data)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByNombreAndLaboratorioRecepcion");

            InputParameterAdd.Varchar(objCommand, "nombre", data);
            InputParameterAdd.Int(objCommand, "idLaboratorio", idLaboratorio);
            InputParameterAdd.Int(objCommand, "genero", genero);
            //return new List<Examen>();
            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 11
0
        /// <summary>
        /// Descripción: Obtiene informacion de los examenes filtrados por Laboratorio, Nombre y genero.
        /// Author: SOTERO BUSTAMANTE.
        /// Fecha Creacion: 19/11/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// </summary>
        /// <param name="idLaboratorio"></param>
        /// <param name="genero"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        public List <Examen> GetExamenesByTipoMuestra(string idOrden, string data, int idEnfermedad)
        {
            var objCommand = GetSqlCommand("pNLS_ExamenByNombreAndLaboratorioAndTmuestra");

            InputParameterAdd.Varchar(objCommand, "nombre", data);
            InputParameterAdd.Guid(objCommand, "idOrden", Guid.Parse(idOrden));
            InputParameterAdd.Int(objCommand, "idEnfermedad", idEnfermedad);
            //return new List<Examen>();
            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }
Exemplo n.º 12
0
        public List <Examen> GetExamenByUsuarioId(int idUsuario)
        {
            List <Examen> listaExamen = new List <Examen>();

            var objCommand = GetSqlCommand("pNLS_ExamenByUsuarioId");

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

            DataTable dataExamen = Execute(objCommand);

            if (dataExamen.Rows.Count == 0)
            {
                return(null);
            }

            return(ExamenConvertTo.Examenes(Execute(objCommand)));
        }