public ResponseWs <List <Movimientos> > Movimientos(string sesion, string cta, string tipo, DateTime di, DateTime df) { HelperSession.SA_GetSession(sesion); ResponseWs <List <Movimientos> > responseW = new ResponseWs <List <Movimientos> >() { CodError = 0, Resultado = "OK", Data = new List <Movimientos>() }; Movimientos movimiento = new Movimientos(); return(responseW); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { string item = base.Request.QueryString["SessionId"]; if (string.IsNullOrEmpty(item)) { item = this.Session["SessionId"] as string; } if (!string.IsNullOrEmpty(item)) { SessionAfiliado sessionAfiliado = HelperSession.SA_GetSession(item); if (sessionAfiliado.SES_CodStatus.Equals("D")) { sessionAfiliado.SES_CodStatus = "I"; HelperSession.SA_UpdateSession(sessionAfiliado); } } } }
public ResponseWs <bool> ActualizarSesion(string sesion) { ResponseWs <bool> responseW = new ResponseWs <bool>(); try { if (HelperSession.SA_GetSession(sesion).SES_CodStatus.Equals("A")) { responseW.Resultado = "OK"; } else { responseW.Resultado = "FAIL"; } } catch (Exception exception) { responseW.Resultado = "FAIL"; } return(responseW); }
protected void Page_Load(object sender, EventArgs e) { this.liFecha.Text = DateTime.Now.ToString("dd/MM/yyyy hh:mm"); string item = this.Session["SessionID"] as string; if (!string.IsNullOrEmpty(item)) { SessionAfiliado now = HelperSession.SA_GetSession(item); if (now != null) { now.TiempoFin = DateTime.Now; now.SES_CodStatus = "I"; HelperSession.SA_UpdateSession(now); } } else { base.Response.Redirect("~/Login.aspx"); } this.Session.Abandon(); }
public ResponseWs <List <DetallesViaje> > DetallesNotificacion(string sesion) { ResponseWs <List <DetallesViaje> > responseW = new ResponseWs <List <DetallesViaje> >(); SessionAfiliado sessionAfiliado = HelperSession.SA_GetSession(sesion); if (sessionAfiliado != null) { responseW.CodError = 0; responseW.Resultado = "OK"; responseW.Data = new List <DetallesViaje>(); foreach (DataRow row in HelperNotificacionIBP.DestinoByNotificacion(sessionAfiliado.AF_Id).Tables[0].Rows) { responseW.Data.Add(DetallesViaje.getDetalles(row)); } } else { responseW.CodError = 1; responseW.Resultado = "FAIL"; } return(responseW); }
public ResponseWs <List <FavoritosAfiliado> > MenuFavoritos(string sesion) { ResponseWs <List <FavoritosAfiliado> > responseW = new ResponseWs <List <FavoritosAfiliado> >(); SessionAfiliado sessionAfiliado = HelperSession.SA_GetSession(sesion); if (sessionAfiliado != null) { responseW.CodError = 0; responseW.Resultado = "OK"; responseW.Data = new List <FavoritosAfiliado>(); foreach (DataRow row in HelperFavorito.AfiliadoFavoritosGetByAfiliado(sessionAfiliado.AF_Id).Tables[0].Rows) { responseW.Data.Add(FavoritosAfiliado.getNewFavoritosAfiliado(row)); } } else { responseW.CodError = 1; responseW.Resultado = "FAIL"; } return(responseW); }