64 lines
2.1 KiB
C#
64 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Modelo
|
|
{
|
|
public class ModeloVenda
|
|
{
|
|
public ModeloVenda()
|
|
{
|
|
this.Ven_cod = 0;
|
|
this.Ven_data = DateTime.Now;
|
|
this.ven_nfiscal = 0;
|
|
this.Ven_total = 0;
|
|
this.Ven_nparcelas = 0;
|
|
this.Ven_status = "ativa";
|
|
this.Cli_cod = 0;
|
|
this.Tpa_cod = 0;
|
|
this.Ven_avista = 0;
|
|
|
|
}//metodo construtor sem parametros
|
|
|
|
public ModeloVenda(int vencod,DateTime data,int nfiscal,double total,int venparcelas,string venstatus,int clicod,int tpacod,int venavista)
|
|
{
|
|
this.Ven_cod = vencod;
|
|
this.Ven_data = data;
|
|
this.ven_nfiscal = nfiscal;
|
|
this.Ven_total = total;
|
|
this.Ven_nparcelas = venparcelas;
|
|
this.Ven_status = venstatus;
|
|
this.Cli_cod = clicod;
|
|
this.Tpa_cod = tpacod;
|
|
this.Ven_avista = venavista;
|
|
}//construtor com parametros
|
|
|
|
|
|
//propriedades privadas da classe
|
|
private int ven_cod;
|
|
private DateTime ven_data;
|
|
private int ven_nfiscal;
|
|
private Double ven_total;
|
|
private int ven_nparcelas;
|
|
private string ven_status;
|
|
private int cli_cod;
|
|
private int tpa_cod;
|
|
private int ven_avista;
|
|
|
|
public int Ven_cod { get => ven_cod; set => ven_cod = value; }
|
|
public DateTime Ven_data { get => ven_data; set => ven_data = value; }
|
|
public int Ven_nfiscal { get => ven_nfiscal; set => ven_nfiscal = value; }
|
|
public Double Ven_total { get => ven_total; set => ven_total = value; }
|
|
public int Ven_nparcelas { get => ven_nparcelas; set => ven_nparcelas = value; }
|
|
public string Ven_status { get => ven_status; set => ven_status = value; }
|
|
public int Cli_cod { get => cli_cod; set => cli_cod = value; }
|
|
public int Tpa_cod { get => tpa_cod; set => tpa_cod = value; }
|
|
public int Ven_avista { get => ven_avista; set => ven_avista = value; }
|
|
|
|
//propriedade publicas da classe
|
|
|
|
}
|
|
}
|