public List <Object> ValidarLogin(String nombre, String clave) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); Sesion nLogin = new Sesion(); nLogin.Usuario = nombre; nLogin.Clave = clave; nLogin = x.ValidarLogin(nombre, clave); List <Object> obje = new List <Object>(); if (nLogin.Retorno.Codigo == 0) { obje.Add(nLogin.Nombre); obje.Add(nLogin.Apellido); obje.Add(nLogin.Perfil); obje.Add(nLogin.Retorno.Token); obje.Add(nLogin.Retorno.Codigo.ToString()); } else { obje = null; } return(obje); }
public List <Producto> StockProductos(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <Producto> contenProduc = new List <Producto>(); var prodList = x.StockProductos(token).ToList(); return((List <Producto>)prodList); }
public List <ComodinJava> Segun_rubro_empresa(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.Segun_rubro_empresa(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Productos_mas_solicitados(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.Productos_mas_solicitados(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <String[]> ventasVsCompra(String token, int anno) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <String[]> lista = new List <String[]>(); try { List <String[]> objetos = x.ventasVsCompras(token, anno).ToList(); return((List <String[]>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <String[]> ListUsuarios(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <String[]> lista = new List <String[]>(); try { List <String[]> objetos = x.ListaUsuario(token).ToList(); return((List <String[]>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Porcentage_cierre_efectivo(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { List <ComodinJava> objetos = x.PorcentageCierreEfectivo(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Promedio_perdida_mensual(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.PromedioPerdidaMensual(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Solicitudes_NO_terminadas(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.SolicitudesNoTerminadas(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Fecha_mayor_auge(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.Fecha_mayor_auge(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }
public List <ComodinJava> Metodo_pago_mas_usado(String token) { ServiceReference.WSSHostelClient x = new ServiceReference.WSSHostelClient(); List <ComodinJava> lista = new List <ComodinJava>(); try { var objetos = x.Metodo_pago_mas_usado(token).ToList(); return((List <ComodinJava>)objetos); } catch (Exception) { lista = null; } return(lista); }