コード例 #1
0
        public bool existePuntaje(DtoPuntaje objdtopuntaje)
        {
            string     Select    = "SELECT * from T_Puntaje where FK_IUMT_UsuModTan ='" + objdtopuntaje.FK_IUMT_UsuModTan + "' and IP_NumeroJurado=" + objdtopuntaje.IP_NumeroJurado;
            SqlCommand unComando = new SqlCommand(Select, conexion);

            conexion.Open();
            SqlDataReader reader       = unComando.ExecuteReader();
            bool          hayRegistros = reader.Read();

            if (hayRegistros)
            {
                objdtopuntaje.PK_IP_Cod = Convert.ToInt32(reader[0].ToString());
            }

            conexion.Close();
            return(hayRegistros);
        }
コード例 #2
0
 public void actualizar_Puntaje(DtoPuntaje objdtopuntaje)
 {
     try
     {
         SqlCommand command = new SqlCommand("SP_Actualizar_Puntaje", conexion);
         command.CommandType = CommandType.StoredProcedure;
         command.Parameters.AddWithValue("@idUMT", objdtopuntaje.FK_IUMT_UsuModTan);
         command.Parameters.AddWithValue("@njurado", objdtopuntaje.IP_NumeroJurado);
         command.Parameters.AddWithValue("@puntaje", objdtopuntaje.IP_Puntaje);
         conexion.Open();
         command.ExecuteNonQuery();
         conexion.Close();
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #3
0
ファイル: CtrPuntaje.cs プロジェクト: alfloresm/SGIAMT_2001
 public bool existePuntaje(DtoPuntaje dtoPuntaje)
 {
     return(objDaoPuntaje.existePuntaje(dtoPuntaje));
 }
コード例 #4
0
ファイル: CtrPuntaje.cs プロジェクト: alfloresm/SGIAMT_2001
 public void ActualizarPuntaje(DtoPuntaje objpuntaje)
 {
     objDaoPuntaje.actualizar_Puntaje(objpuntaje);
 }
コード例 #5
0
ファイル: CtrPuntaje.cs プロジェクト: alfloresm/SGIAMT_2001
 public void RegistrarPuntaje(DtoPuntaje objpuntaje)
 {
     objDaoPuntaje.registrar_Puntaje(objpuntaje);
 }