Example #1
0
        protected void hfParticipante_ValueChanged(object sender, EventArgs e)
        {
            try
            {
                string numJ = Session["ApellidoM"].ToString();
                _log.CustomWriteOnLog("calificar Participante", "jurado es: " + numJ);
                objdtopuntaje.IP_Puntaje = int.Parse(hfBoton.Value);
                _log.CustomWriteOnLog("calificar Participante", "puntaje es: " + hfBoton.Value);
                objdtopuntaje.FK_IUMT_UsuModTan = hfParticipante.Value + txtTanda.Text;
                _log.CustomWriteOnLog("calificar Participante", "participante es: " + hfParticipante.Value + txtTanda.Text);
                objdtopuntaje.IP_NumeroJurado = int.Parse(numJ);
                _log.CustomWriteOnLog("calificar Participante", "jurado es: " + numJ);
                if (objctrpuntaje.existePuntaje(objdtopuntaje))
                {
                    objctrpuntaje.ActualizarPuntaje(objdtopuntaje);
                    _log.CustomWriteOnLog("calificar Participante", "se Actualizó puntaje");
                }
                else
                {
                    DtoUsuarioModalidadTanda objUTM = new DtoUsuarioModalidadTanda();
                    objUTM.PK_IUMT_CodUsuModTan = hfParticipante.Value + txtTanda.Text;
                    CtrTanda objctr = new CtrTanda();
                    objctrpuntaje.RegistrarPuntaje(objdtopuntaje);
                    objctr.actualizarEstadoUMT(objUTM);
                    _log.CustomWriteOnLog("calificar Participante", "se registró puntaje");
                }

                hfBoton.Value        = "";
                hfParticipante.Value = "";
            }
            catch (Exception ex)
            {
                _log.CustomWriteOnLog("calificar Participante", "Error : " + ex.Message + "Stac" + ex.StackTrace);
            }
        }