C# Class Controller.Repositorio.ComandaRepositorio

Exibir arquivo Open project: mikemajesty/Caixapadariav2 Class Usage Examples

Public Methods

Method Description
Alterar ( Comanda comanda ) : int
ComandaRepositorio ( ) : Mike.Utilities.Desktop
Deletar ( Comanda comanda ) : int
GetComandaPorCodigo ( string codigo ) : Comanda
GetComandaPorID ( int ComandaID ) : Comanda
GetQuantidade ( ) : int
Inserir ( List comandList, Comanda comanda ) : bool
Listar ( System.Windows.Forms.DataGridView dgv ) : void
PesquisarPorID ( System.Windows.Forms.DataGridView dgv, int ComandaID ) : void
Salvar ( Comanda comanda ) : int

Private Methods

Method Description
InstanciaVendaComComandaAtivaRepositorio ( ) : void

Method Details

Alterar() public method

public Alterar ( Comanda comanda ) : int
comanda Model.Entidades.Comanda
return int

ComandaRepositorio() public method

public ComandaRepositorio ( ) : Mike.Utilities.Desktop
return Mike.Utilities.Desktop

Deletar() public method

public Deletar ( Comanda comanda ) : int
comanda Model.Entidades.Comanda
return int

GetComandaPorCodigo() public method

public GetComandaPorCodigo ( string codigo ) : Comanda
codigo string
return Model.Entidades.Comanda

GetComandaPorID() public method

public GetComandaPorID ( int ComandaID ) : Comanda
ComandaID int
return Model.Entidades.Comanda

GetQuantidade() public method

public GetQuantidade ( ) : int
return int

Inserir() public method

public Inserir ( List comandList, Comanda comanda ) : bool
comandList List
comanda Model.Entidades.Comanda
return bool

Listar() public method

public Listar ( System.Windows.Forms.DataGridView dgv ) : void
dgv System.Windows.Forms.DataGridView
return void

PesquisarPorID() public method

public PesquisarPorID ( System.Windows.Forms.DataGridView dgv, int ComandaID ) : void
dgv System.Windows.Forms.DataGridView
ComandaID int
return void

Salvar() public method

public Salvar ( Comanda comanda ) : int
comanda Model.Entidades.Comanda
return int