public static bool Logon(string Nombres, string Clave) { Conexion ConexionDB = new Conexion(); bool Msj = false; DataTable dt; dt = ConexionDB.BuscarDb("select * from Usuarios Where Nombres ='" + Nombres + "' and Clave ='" + Clave + "'"); if (dt.Rows.Count > 0) Msj = true; return Msj; }
public static DataTable Listar(string campos, string where) { Conexion conexion = new Conexion(); return conexion.BuscarDb("Select " + campos + " from Grupos " + where); }
public static DataTable Lista(String Campos, String FiltroWhere) { Conexion c = new Conexion(); return c.BuscarDb("Select " + Campos + " from " + FiltroWhere); }
public static DataTable ListaPedidos(String Campos, String FiltroWhere) { Conexion ConexionDB = new Conexion(); return ConexionDB.BuscarDb("Select " + Campos + " From Pedidos pedido Inner Join Clientes cliente " + "on pedido.IdCliente = cliente.IdCliente Where " + FiltroWhere); }
public static DataTable Lista(String Campos, String FiltroWhere) { Conexion ConexionDB = new Conexion(); return ConexionDB.BuscarDb("Select " + Campos + " From Pedidos Where " + FiltroWhere); }
public static DataTable ListaF(string fecha1, string fecha2) { Conexion ConexionDB = new Conexion(); return ConexionDB.BuscarDb("select * from Ingresos where Fecha <='" + fecha1 + "' and Fecha >='" + fecha2 + "' "); }
public static DataTable ListaPedidos(String Campos, String FiltroWhere) { Conexion ConexionDB = new Conexion(); return ConexionDB.BuscarDb("Select " + Campos + " From PedidosDetalles a Inner Join Productos b on a.IdProducto = b.IdProducto Inner Join Productores c on b.IdProductor = c.IdProductor Where " + FiltroWhere); }
public static DataTable Lista(String Campos, String FiltroWhere) { Conexion ConexionDB = new Conexion(); return ConexionDB.BuscarDb("Select " + Campos + " From Productos a Inner Join Medidas m on a.IdMedida = m.IdMedidas Inner Join Productores p on a.IdProductor = p.IdProductor Where " + FiltroWhere); }
public DataTable Listar(String campo, String filtrowhere) { //*,1=1 Conexion conexion = new Conexion(); return conexion.BuscarDb("select "+campo+" from Generos where "+filtrowhere ); }
public DataTable Listar(String campos, String filtrowhere) { Conexion conexion = new Conexion(); return conexion.BuscarDb("select "+campos+" from Categorias where "+filtrowhere); }