Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }