Beispiel #1
0
        public static List <CENUsuario> CerrarSesionInactividad(int codUser)
        {
            List <CENUsuario> datos      = null;
            CLNUsuario        clnUsuario = new CLNUsuario();

            try
            {
                datos = clnUsuario.CerrarSesion(codUser);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(datos);
        }
Beispiel #2
0
        public static List <CENSucursalVIEW> listarSucursal(int flag)
        {
            List <CENSucursalVIEW> sucursales;
            CLNUsuario             clnUsuario = new CLNUsuario();

            try
            {
                sucursales = clnUsuario.cargarSucursal(flag);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(sucursales);
        }
Beispiel #3
0
        public static List <CENUsuario> consultarDatos(string user, string pass, int intentos, int sucursal)
        {
            CLNUsuario        objUser = new CLNUsuario();
            List <CENUsuario> datos;

            try
            {
                datos = objUser.credencialesUsuario(user, pass, intentos, sucursal);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(datos);
        }
Beispiel #4
0
        public static List <CENUsuario> CerrarSesion()
        {
            int codUser                  = Convert.ToInt32(System.Web.HttpContext.Current.Session["codUser"].ToString());
            List <CENUsuario> datos      = null;
            CLNUsuario        clnUsuario = new CLNUsuario();

            try
            {
                datos = clnUsuario.CerrarSesion(codUser);
                System.Web.HttpContext.Current.Session["codUser"] = null;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(datos);
        }
        public static List <CENUsuario> ListarVendedores(int flag)
        {
            CLNUsuario        uvendedor = null;
            List <CENUsuario> ListVE    = null;

            try
            {
                uvendedor = new CLNUsuario();
                ListVE    = uvendedor.ListarVendedores(flag);
            }
            catch (Exception ex)
            {
                throw ex;
            }


            return(ListVE);
        }
        public static List <CENUsuario> ListarCajeros_Sucursal()
        {
            CLNUsuario        ucajero = null;
            List <CENUsuario> ListCAJ = null;
            int ntraSucursal          = Convert.ToInt32(System.Web.HttpContext.Current.Session["sucursal"].ToString());

            try
            {
                ucajero = new CLNUsuario();
                ListCAJ = ucajero.ListarCajeros_Sucursal(ntraSucursal);
            }
            catch (Exception ex)
            {
                throw ex;
            }


            return(ListCAJ);
        }