99 lines
2.4 KiB
C#
99 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Modelo
|
|
{
|
|
public class ModeloCompra
|
|
{
|
|
public ModeloCompra()
|
|
{
|
|
this.ComCod = 0;
|
|
this.ComData = DateTime.Now;
|
|
this.ComNFiscal = 0;
|
|
this.ComTotal = 0;
|
|
this.ComNParcelas = 0;
|
|
this.ComStatus = "Válida";
|
|
this.ForCod = 0;
|
|
this.TpaCod = 0;
|
|
}//metodo construtor sem os parametros
|
|
|
|
public ModeloCompra(int comCod, DateTime data, int nFiscal, double total,
|
|
int nParcelas, String status, int forCod, int tpaCod)
|
|
{
|
|
this.ComCod = comCod;
|
|
this.ComData = data;
|
|
this.ComNFiscal = nFiscal;
|
|
this.ComTotal = total;
|
|
this.ComNParcelas = nParcelas;
|
|
this.ComStatus = status;
|
|
this.ForCod = forCod;
|
|
this.TpaCod = tpaCod;
|
|
}
|
|
private int _com_cod;
|
|
public int ComCod
|
|
{
|
|
get
|
|
{
|
|
return this._com_cod;
|
|
}
|
|
set
|
|
{
|
|
this._com_cod = value;
|
|
}
|
|
}
|
|
|
|
private DateTime _com_data;
|
|
public DateTime ComData
|
|
{
|
|
get { return this._com_data; }
|
|
set { this._com_data = value; }
|
|
}
|
|
|
|
private int _com_nfiscal;
|
|
public int ComNFiscal
|
|
{
|
|
get { return this._com_nfiscal; }
|
|
set { this._com_nfiscal = value; }
|
|
}
|
|
|
|
private Double _com_total;
|
|
public Double ComTotal
|
|
{
|
|
get { return this._com_total; }
|
|
set { this._com_total = value; }
|
|
}
|
|
|
|
private int _com_nparcelas;
|
|
public int ComNParcelas
|
|
{
|
|
get { return this._com_nparcelas; }
|
|
set { this._com_nparcelas = value; }
|
|
}
|
|
|
|
private String _com_status;
|
|
public String ComStatus
|
|
{
|
|
get { return this._com_status; }
|
|
set { this._com_status = value; }
|
|
|
|
}
|
|
|
|
private int _for_cod;
|
|
public int ForCod
|
|
{
|
|
get { return this._for_cod; }
|
|
set { this._for_cod = value; }
|
|
}
|
|
|
|
private int _tpa_cod;
|
|
public int TpaCod
|
|
{
|
|
get { return this._tpa_cod; }
|
|
set { this._tpa_cod = value; }
|
|
}
|
|
}
|
|
}
|