crea venta pero no imprime
This commit is contained in:
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
internal class Categoria
|
||||
public class Categoria
|
||||
{
|
||||
public int idCategoria;
|
||||
public string nombre;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class DetalleVentaModel
|
||||
{
|
||||
public int id;
|
||||
public int cantidad;
|
||||
public Producto producto;
|
||||
|
||||
public DetalleVentaModel(int cantidad, Producto producto, int id = -1)
|
||||
{
|
||||
this.cantidad = cantidad;
|
||||
this.producto = producto;
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class Merma
|
||||
{
|
||||
public long idMerma;
|
||||
public string fecha;
|
||||
public string responsable;
|
||||
public string razon;
|
||||
|
||||
public Merma(long idMerma, string fecha, string responsable, string razon)
|
||||
{
|
||||
this.idMerma = idMerma;
|
||||
this.fecha = fecha;
|
||||
this.responsable = responsable;
|
||||
this.razon = razon;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
internal class Producto
|
||||
public class Producto
|
||||
{
|
||||
public int idProducto;
|
||||
public string nombre;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class VentaModel
|
||||
{
|
||||
public int id;
|
||||
public string fecha;
|
||||
public decimal total;
|
||||
|
||||
public VentaModel(decimal total = 0, int id = -1, string fecha = "") {
|
||||
this.id = id;
|
||||
this.fecha = fecha;
|
||||
this.total = total;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user