Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public static DataTable Listar(string campos, string where)
 {
     Conexion conexion = new Conexion();
     return conexion.BuscarDb("Select " + campos + " from Grupos  " + where);
 }
Ejemplo n.º 3
0
 public static DataTable Lista(String Campos, String FiltroWhere)
 {
     Conexion c = new Conexion();
        return c.BuscarDb("Select " + Campos + " from " + FiltroWhere);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 public static DataTable Lista(String Campos, String FiltroWhere)
 {
     Conexion ConexionDB = new Conexion();
     return ConexionDB.BuscarDb("Select " + Campos + " From Pedidos Where " + FiltroWhere);
 }
Ejemplo n.º 6
0
 public static DataTable ListaF(string fecha1, string fecha2)
 {
     Conexion ConexionDB = new Conexion();
        return ConexionDB.BuscarDb("select * from Ingresos where Fecha   <='" + fecha1 + "' and Fecha >='" + fecha2 + "' ");
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 public DataTable Listar(String campo, String filtrowhere)
 {
     //*,1=1
     Conexion conexion = new Conexion();
     return conexion.BuscarDb("select "+campo+" from Generos where "+filtrowhere );
 }
Ejemplo n.º 10
0
 public DataTable Listar(String campos, String filtrowhere)
 {
     Conexion conexion = new Conexion();
     return conexion.BuscarDb("select "+campos+" from Categorias where "+filtrowhere);
 }