protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) throw new AutenticacionExcepcionBO(); if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') throw new AccessDeniedExceptionBO(); boEmpleado = new EmpleadoBO(); boActividad = new ActividadBO(); nuevoEmpleado = boEmpleado.BuscarEmpleado(Int32.Parse(Request.QueryString["id"])); filterEmpleado(nuevoEmpleado); if (!IsPostBack) //false = primera vez que se carga, true= segunda vez, se cambiaron los datos { actividadesArr = boActividad.GetList(); loadActividadList(); cargarDatoscargarDatosEmpleadoEnVista(); } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } boActividad = new ActividadBO(); boSocio = new SocioBO(); if (!Page.IsPostBack) { //listaActividades = boActividad.GetList(); //llenarViewActividades(); } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } boActividad = new ActividadBO(); boSocio = new SocioBO(); if (!IsPostBack) //false = primera vez que se carga, true= segunda vez, se cambiaron los datos { cargarDatosSocioEnVista(); //listaActividades = boActividad.GetList(); //loadEditActividad(); //loadActividadList(); } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { if (SessionHelper.PersonaAutenticada == null) { throw new AutenticacionExcepcionBO(); } if (SessionHelper.PersonaAutenticada.tipoPersona != 'A') { throw new AccessDeniedExceptionBO(); } actividadBo = new ActividadBO(); if (!IsPostBack) { listSalas = salaBO.GetListSalas(); loadSalasList(); loadDayWeek(); if (Request.QueryString["action"] == "delete") { loadEditActividad("delete"); } if (Request.QueryString["action"] == "edit") { loadEditActividad("edit"); } if (Request.UrlReferrer != null) { } } } catch (AccessDeniedExceptionBO ex) { Response.Redirect("/site-web/home/HomeSiteWeb.aspx"); } catch (AutenticacionExcepcionBO ex) { Response.Redirect("/site-web/login/loginform.aspx"); } }