inserta cuenta

This commit is contained in:
carlos
2024-01-22 00:57:40 -06:00
17 changed files with 328 additions and 73 deletions
+26
View File
@@ -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;
}
}
}
+23
View File
@@ -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;
}
}
}