protected void btnGuardar_Click(object sender, EventArgs e)
        {
            RequiredFieldsResumen.ValidationGroup = "get";
            Page.Validate("get");
            if (Page.IsValid)
            {
                BEcccmex.BEEvento objBE = new BEcccmex.BEEvento();
                objBE.evento      = this.txtEvento.Text;
                objBE.fechaEvento = this.txtFecha.SelectedDate.Value;
                objBE.idEquipo    = convertir.toNInt64(this.cmbEquipo.SelectedValue);
                objBE.tipoEvento  = this.cboTipoEvento.SelectedValue;
                objBE.vigencia    = this.txtVigencia.Text;
                objBE.prealarma   = Convert.ToInt16(this.txtPreAlarma.Text);
                objBE.postAlarma  = Convert.ToInt16(this.txtPostAlarma.Text);
                objBE.observacion = this.txtComentario.Text;
                BLcccmex.BLEvento objbl = new BLcccmex.BLEvento();

                int resultado = 0;

                if (Session["tempOpEvento"].ToString() == "Agregar")
                {
                    resultado = objbl.AddEvento(objBE);

                    if (resultado > 0)
                    {
                        VentanaRad.RadAlert("Nuevo evento registrado ! </br> Num. Evento : " + resultado, 400, 120, "Confirmación - Registro de Evento", "CloseAndRebind");
                        Session["tempIdEvento"] = null;
                        return;
                    }
                    else
                    {
                        VentanaRad.RadAlert("No se agrego ningun evento. Favor de contactar con su Administrador de sistemas", 450, 300, "Eventos - Informaciòn", null);
                        return;
                    }
                }

                if (Session["tempOpEvento"].ToString() == "Actualizar")
                {
                    objBE.idEvento = convertir.toNInt64(Session["tempIdEvento"]);
                    resultado      = objbl.UpdateEvento(convertir.toInt32(Session["tempIdEvento"]), convertir.toInt32(cmbEquipo.SelectedValue), txtEvento.Text, cboTipoEvento.Text, convertir.toInt32(txtPreAlarma.Text), (DateTime)txtFecha.SelectedDate, txtVigencia.Text,
                                                        convertir.toInt32(txtPostAlarma.Text), txtComentario.Text);

                    if (resultado > 0)
                    {
                        VentanaRad.RadAlert("Se actualizo correctamente el evento. ! </br> Num. Evento : " + Session["tempIdEvento"].ToString(), 400, 120, "Confirmación - Registro de Evento", "CloseAndRebind");
                        Session["tempIdEvento"] = null;
                        return;
                    }
                    else
                    {
                        VentanaRad.RadAlert("No se actualizo ningun evento. Favor de contactar con su Administrador de sistemas", 450, 300, "Eventos - Informaciòn", null);
                        return;
                    }
                }
            }
            else
            {
                MostrarCamposInvalidados();
                VentanaRad.RadAlert("Existen campos obligatorios, favor de verificar ", 400, 100, "Eventos - Validación", null);
            }
        }