Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session == null || Session.Count == 0)
            {
                Response.Redirect("../../Login.aspx");
            }
            ScriptManager.RegisterStartupScript(
                UpdatePanelDatosPersonales,
                this.GetType(),
                "MyAction",
                "callAlert();",
                true);
            if (IsPostBack)
            {
                return;
            }
            CargarIdioma();
            txtDocumento.Attributes.Add("onkeypress", "return OnlyNumber(event)");

            obtenerDatosParticipantePorIDParticipanteParams enti = new obtenerDatosParticipantePorIDParticipanteParams()
            {
                id_Participante = int.Parse(Session["id_Participante"].ToString())
            };
            pa_ObtenerDatosParticipantePorIDParticipante_Result datosUsuario = participanteService.obtenerDatosParticipantePorIDParticipante(enti);

            lblCorreo.Text       = datosUsuario.CorreoPersona;
            lblNombre.Text       = datosUsuario.NombrePersona + "<br/>" + datosUsuario.ApellidosPersona;
            lblOrganizacion.Text = datosUsuario.OrganizacionPersona;
            txtNombre.Text       = datosUsuario.NombrePersona + " " + datosUsuario.ApellidosPersona;

            txtCorreo.Text           = datosUsuario.CorreoPersona;
            imgParticipante.ImageUrl = clGetRepositorio.Read(datosUsuario.FotoPersona);


            CargarDatosPersonales();
            CargarDatosContacto();
            CargarCondicionesEspeciales();
            CargarAcompanantes();
            CargarAgendaActividad();
            CargarInformacionAdicional();
            CargarHotelesRecomendados();
        }
Exemplo n.º 2
0
        public static pa_ObtenerDatosParticipantePorIDParticipante_Result obtenerDatosParticipantePorIDParticipante(obtenerDatosParticipantePorIDParticipanteParams Params)
        {
            string        jsonparams = JsonConvert.SerializeObject(Params);
            IRestResponse response   = clRestResponse.ReadApi("obtenerDatosParticipantePorIDParticipante", jsonparams);

            return(JsonConvert.DeserializeObject <pa_ObtenerDatosParticipantePorIDParticipante_Result>(response.Content));
        }