C# Class Controller.ControllerPessoa

ファイルを表示 Open project: CristianoRC/SoftwareOrdemDeServico

Public Methods

Method Description
Carregar ( int id ) : Pessoa

Carregando informações do cliente.

Carregar ( string Nome ) : Pessoa

Carregando informações do cliente.

CarregarLista ( ) : DataTable

Retorna um DataTable com todas as informações de todos clientes

CarregarListaDeNomes ( ) : DataTable

Carregando lista com nome de todos clientes

Criar ( Pessoa cliente ) : string

Criando um nome Cliente

Deletar ( string Nome ) : string

Excluindo cliente

Editar ( Pessoa cliente ) : string

Editando informações sobre um cliente ainda já criado.

ObterEmail ( string NomeDoCliente ) : string

Verifica o e-mail do cliente atravez do seu nome

VerificarExistencia ( string Nome ) : bool

/Verificando a existencia do cliente

VerificarID ( string Nome ) : int

Retornando o ID do cliente atravez do nome

VerificarNome ( int id ) : string

Retornando o nome atravez do ID

Private Methods

Method Description
PreencherCliente ( DataTable tabela ) : Pessoa

Preenchendo a classe Pessoa com as informações do DataTable

Method Details

Carregar() public static method

Carregando informações do cliente.
public static Carregar ( int id ) : Pessoa
id int
return Pessoa

Carregar() public static method

Carregando informações do cliente.
public static Carregar ( string Nome ) : Pessoa
Nome string
return Pessoa

CarregarLista() public static method

Retorna um DataTable com todas as informações de todos clientes
public static CarregarLista ( ) : DataTable
return System.Data.DataTable

CarregarListaDeNomes() public static method

Carregando lista com nome de todos clientes
public static CarregarListaDeNomes ( ) : DataTable
return System.Data.DataTable

Criar() public static method

Criando um nome Cliente
public static Criar ( Pessoa cliente ) : string
cliente Pessoa
return string

Deletar() public static method

Excluindo cliente
public static Deletar ( string Nome ) : string
Nome string
return string

Editar() public static method

Editando informações sobre um cliente ainda já criado.
public static Editar ( Pessoa cliente ) : string
cliente Pessoa
return string

ObterEmail() public static method

Verifica o e-mail do cliente atravez do seu nome
public static ObterEmail ( string NomeDoCliente ) : string
NomeDoCliente string Nome do cliente.
return string

VerificarExistencia() public static method

/Verificando a existencia do cliente
public static VerificarExistencia ( string Nome ) : bool
Nome string Nome.
return bool

VerificarID() public static method

Retornando o ID do cliente atravez do nome
public static VerificarID ( string Nome ) : int
Nome string
return int

VerificarNome() public static method

Retornando o nome atravez do ID
public static VerificarNome ( int id ) : string
id int
return string