inserta cuenta
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class Cuenta
|
||||
{
|
||||
public int id;
|
||||
public decimal total;
|
||||
public string fecha;
|
||||
public string estado;
|
||||
public string descripcion;
|
||||
|
||||
public Cuenta(decimal total = 0, string fecha = "", string estado = "", string descripcion = "", int id = -1) {
|
||||
this.id = id;
|
||||
this.total = total;
|
||||
this.fecha = fecha;
|
||||
this.estado = estado;
|
||||
this.descripcion = descripcion;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class DetalleCuentaModel
|
||||
{
|
||||
public int idCuenta;
|
||||
public Producto producto;
|
||||
public int cantidad;
|
||||
|
||||
|
||||
public DetalleCuentaModel(Producto producto, int cantidad, int idCuenta =-1)
|
||||
{
|
||||
this.idCuenta = idCuenta;
|
||||
this.producto = producto;
|
||||
this.cantidad = cantidad;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user