예제 #1
0
        /// <summary>
        /// Descripción: Metodo para Actualizar informacion de los laboratorios
        /// Author: Terceros.
        /// Fecha Creacion: 01/01/2017
        /// Fecha Modificación: 02/02/2017.
        /// Modificación: Se agregaron comentarios.
        /// Actualizado por: Marcos Mejia
        /// Fecha: 19/01/2017
        /// Modificación: Se agrega dato del logo Regional.
        /// </summary>
        /// <param name="laboratorio"></param>
        public void UpdateLaboratorio(Laboratorio laboratorio)
        {
            var objCommand = GetSqlCommand("pNLU_Laboratorio");

            InputParameterAdd.Int(objCommand, "idLaboratorio", laboratorio.IdLaboratorio);
            InputParameterAdd.Varchar(objCommand, "nombre", laboratorio.Nombre);
            InputParameterAdd.Varchar(objCommand, "direccion", laboratorio.Direccion);
            InputParameterAdd.Varchar(objCommand, "correoelectronico", laboratorio.correoElectronico);
            InputParameterAdd.Varchar(objCommand, "clasificacion", laboratorio.clasificacion);
            InputParameterAdd.Int(objCommand, "idcategoria", laboratorio.IdCategoria);
            InputParameterAdd.Int(objCommand, "tipo", laboratorio.tipo);
            InputParameterAdd.Varchar(objCommand, "latitud", laboratorio.Latitud);
            InputParameterAdd.Varchar(objCommand, "longitud", laboratorio.Longitud);
            InputParameterAdd.VarBinary(objCommand, "logoReg", laboratorio.LogoRegional);
            InputParameterAdd.VarBinary(objCommand, "logo", laboratorio.Logo);
            InputParameterAdd.VarBinary(objCommand, "sello", laboratorio.Sello);
            InputParameterAdd.Varchar(objCommand, "website", laboratorio.Website);
            InputParameterAdd.Int(objCommand, "estado", laboratorio.Estado);
            InputParameterAdd.Int(objCommand, "idUsuarioEdicion", laboratorio.IdUsuarioEdicion);

            ExecuteNonQuery(objCommand);
        }