/// <summary> /// Descripción: Registro de examenes /// Author: Terceros. /// Fecha Creacion: 01/01/2017 /// Fecha Modificación: 02/02/2017. /// Modificación: Se agregaron comentarios. /// </summary> /// <param name="examen"></param> public void InsertExamen(Examen examen) { var objCommand = GetSqlCommand("pNLI_Examen"); InputParameterAdd.Varchar(objCommand, "nombre", examen.nombre); InputParameterAdd.Varchar(objCommand, "descripcion", examen.descripcion); InputParameterAdd.Int(objCommand, "cpt", examen.Cpt); InputParameterAdd.Varchar(objCommand, "loinc", examen.Loinc); InputParameterAdd.Int(objCommand, "idGenero", examen.IdGenero); InputParameterAdd.Int(objCommand, "idUsuarioRegistro", examen.IdUsuarioRegistro); ExecuteNonQuery(objCommand); }
/// <summary> /// Descripción: Actualziacion de examenes /// Author: Terceros. /// Fecha Creacion: 01/01/2017 /// Fecha Modificación: 02/02/2017. /// Modificación: Se agregaron comentarios. /// </summary> /// <param name="examen"></param> public void UpdateExamen(Examen examen) { var objCommand = GetSqlCommand("pNLU_Examen"); InputParameterAdd.Guid(objCommand, "idExamen", examen.idExamen); InputParameterAdd.Varchar(objCommand, "nombre", examen.nombre); InputParameterAdd.Varchar(objCommand, "descripcion", examen.descripcion); InputParameterAdd.Int(objCommand, "cpt", examen.Cpt); InputParameterAdd.Varchar(objCommand, "loinc", examen.Loinc); InputParameterAdd.Int(objCommand, "idGenero", examen.IdGenero); InputParameterAdd.Int(objCommand, "idUsuarioEdicion", examen.IdUsuarioEdicion); InputParameterAdd.Int(objCommand, "estado", examen.Estado); ExecuteNonQuery(objCommand); }