Interface IBasBSClientes
Namespace: IBasBS100
Assembly: IBasBS100.dll
Syntax
[ComVisible(true)]
[Guid("38076D4F-65D0-4161-9FCF-273FEB9A654B")]
public interface IBasBSClientes
Methods
Actualiza(BasBECliente)
Actualiza a informação do cliente.
Declaration
void Actualiza(BasBECliente BECliente)
Parameters
Type | Name | Description |
---|---|---|
BasBECliente | BECliente | Objecto que identifica o cliente a actualizar. |
ActualizaTotalDebito(Double, String, Double, Double, Double, Boolean, Boolean, String, Double, Double, Double, Double)
Controlo de limite de crédito: actualiza os acumulados do Cliente.
Declaration
void ActualizaTotalDebito(double dblValor, string strEntidade, double dblCambioInt, double dblCambioMBase, double dblCambioMAlt, bool blnConverteFactura, bool blnEncomenda, string strEntidadeAnterior = "", double dblValorAnterior = 0, double dblCambioAntInt = 0, double dblCambioAntMBase = 0, double dblCambioAntMAlt = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Double | dblValor | Valor Total do Documento. |
System.String | strEntidade | Código do Cliente a actualizar. |
System.Double | dblCambioInt | Cambio de introdução. |
System.Double | dblCambioMBase | Câmbio relativo a moeda base. |
System.Double | dblCambioMAlt | Câmbio relativo a moeda alternativa. |
System.Boolean | blnConverteFactura | Se o documento é proveniente de uma conversão. |
System.Boolean | blnEncomenda | Se o documento é proveniente de uma encomenda. |
System.String | strEntidadeAnterior | Código do Cliente anterior do documento. |
System.Double | dblValorAnterior | Identifica o valor anterior do documento. |
System.Double | dblCambioAntInt | Identifica o cambio anterior de introdução do documento. |
System.Double | dblCambioAntMBase | Identifica o cambio anterior relativo a moeda base. |
System.Double | dblCambioAntMAlt | Identifica o cambio anterior relativo a moeda alternativa. |
ActualizaValorAtributo(String, String, Object)
Actualiza o valor de um determinado atributo.
Declaration
void ActualizaValorAtributo(string strCliente, string strAtributo, dynamic varValor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strAtributo | Descrição do campo a actualizar. |
System.Object | varValor | Valor do campo para actualizar o atributo. |
ActualizaValorAtributos(String, StdBECampos)
Actualiza o valor de um conjunto de atributos.
Declaration
void ActualizaValorAtributos(string strCliente, StdBECampos Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
StdBECampos | Atributos | Campos a actualizar e respectivos valores. |
ActualizaValorDebito(String, Double, BasBETiposGcp.TEnumLimiteCredito)
Declaration
void ActualizaValorDebito(string strCliente, double dblValorMBase, BasBETiposGcp.TEnumLimiteCredito TipoLimite)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | |
System.Double | dblValorMBase | |
BasBETiposGcp.TEnumLimiteCredito | TipoLimite |
AlteraCodigoCliente(String, String)
Permite alterar o código de um cliente para outro código novo.
Declaration
string AlteraCodigoCliente(string strCodigoAnt, string strNovoCodigo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCodigoAnt | Código do cliente que se pretende substituir. |
System.String | strNovoCodigo | Novo código de cliente que se pretende atribuir. |
Returns
Type | Description |
---|---|
System.String |
Consulta(String)
Consulta a informação do cliente.
Declaration
BasBECliente Consulta(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente a consultar. |
Returns
Type | Description |
---|---|
BasBECliente |
DaCamposUtil()
Devolve os campos do utilizador.
Declaration
StdBECampos DaCamposUtil()
Returns
Type | Description |
---|---|
StdBECampos |
DaDefCamposUtil()
Devolve as definições dos campos do utilizador dos clientes.
Declaration
StdBEDefCamposUtil DaDefCamposUtil()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaDefCamposUtilContactos()
Devolve as definições dos campos do utilizador dos contactos.
Declaration
StdBEDefCamposUtil DaDefCamposUtilContactos()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaDefCamposUtilMoradasAlt()
Devolve as definições dos campos do utilizador das Moradas Alternativas.
Declaration
StdBEDefCamposUtil DaDefCamposUtilMoradasAlt()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaEntidadeEndMail(String)
Dá a entidade a partir do endereço e-mail.
Declaration
string DaEntidadeEndMail(string strEnderecoMail)
Parameters
Type | Name | Description |
---|---|---|
System.String | strEnderecoMail | Endereço e-mail a pesquisar. |
Returns
Type | Description |
---|---|
System.String |
DaNome(String)
Devolve o nome do cliente.
Declaration
string DaNome(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
Returns
Type | Description |
---|---|
System.String |
DaNumContribuinte(String, String)
Pesquisa por outro Cliente com este número de contribuinte.
Declaration
string DaNumContribuinte(string strCliente, string strNumContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do Cliente. |
System.String | strNumContribuinte | Número de Contribuinte a pesquisar. |
Returns
Type | Description |
---|---|
System.String |
DaPontosFuncionario(String, String)
Dá os pontos de um determinado Funcionário nos Gabinetes.
Declaration
double DaPontosFuncionario(string strFuncionario, string strClienteExc = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strFuncionario | Código do Funcionário. |
System.String | strClienteExc | Código do Cliente do Exercício. |
Returns
Type | Description |
---|---|
System.Double |
DaPrecoCliente(String)
Declaration
string DaPrecoCliente(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente |
Returns
Type | Description |
---|---|
System.String |
DaProximoNumeroCBL()
Devolve o próximo número de CBL associado aos clientes nos Gabinetes.
Declaration
string DaProximoNumeroCBL()
Returns
Type | Description |
---|---|
System.String |
DaValorAtributo(String, String)
Devolve o valor do atributo passado como parâmetro.
Declaration
dynamic DaValorAtributo(string strCliente, string strAtributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strAtributo | Descrição do campo a devolver pela função. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributoLock(String, String)
Devolve o valor do atributo passado como parâmetro.
Declaration
dynamic DaValorAtributoLock(string strCliente, string strAtributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strAtributo | Descrição do campo a devolver pela função. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributos(String, String[])
Devolve o valor de um conjunto de atributos.
Declaration
StdBECampos DaValorAtributos(string strCliente, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String[] | Atributos | Descrições dos campos a devolver pela função. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorAtributosLock(String, String[])
Devolve o valor de um conjunto de atributos.
Declaration
StdBECampos DaValorAtributosLock(string strCliente, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String[] | Atributos | Descrições dos campos a devolver pela função. |
Returns
Type | Description |
---|---|
StdBECampos |
Edita(String)
Edita a informação do cliente.
Declaration
BasBECliente Edita(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente a editar. |
Returns
Type | Description |
---|---|
BasBECliente |
Exerc2Cliente(String)
Obter o cliente associado a um exercício nos Gabinetes.
Declaration
string Exerc2Cliente(string strExercicio)
Parameters
Type | Name | Description |
---|---|---|
System.String | strExercicio | Código do exercício. |
Returns
Type | Description |
---|---|
System.String |
Existe(String)
Verifica se o cliente existe na base de dados.
Declaration
bool Existe(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
Returns
Type | Description |
---|---|
System.Boolean |
ExisteContribuinte(String)
Verifica se já existe o número de contribuinte fornecido.
Declaration
string ExisteContribuinte(string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strContribuinte | Número de Contribuinte a testar. |
Returns
Type | Description |
---|---|
System.String |
ExisteNumContribuinte(String, String)
Indica se o número de contribuinte existe, para outro cliente.
Declaration
bool ExisteNumContribuinte(string strCliente, string strNumContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strNumContribuinte | Número de contribuinte. |
Returns
Type | Description |
---|---|
System.Boolean |
IncializaTotaisDebito(Int32)
Reinicializa os totais do cliente.
Declaration
void IncializaTotaisDebito(int TipoLimite = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | TipoLimite | Tipo de limite a actualizar:
|
ListaClientes(StdBEFiltroListagem)
Executa a listagem de clientes, de forma estruturada, para um filtro definido
Declaration
List<BasBECliente> ListaClientes(StdBEFiltroListagem filtro)
Parameters
Type | Name | Description |
---|---|---|
StdBEFiltroListagem | filtro |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<BasBECliente> |
LstClientes(String)
Devolve a informação de um cliente ou uma listagem de clientes com a respectiva informação.
Declaration
StdBELista LstClientes(string strCliente = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
Returns
Type | Description |
---|---|
StdBELista |
LstClientesCriterios(String, String, String, String)
Pesquisa multi-critério de Clientes nos Gabinetes.
Declaration
StdBELista LstClientesCriterios(string strClienteIni = "", string strClienteFim = "", string strDelegIni = "", string strDelegFim = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strClienteIni | Código do Cliente inicial. |
System.String | strClienteFim | Código do Cliente final. |
System.String | strDelegIni | Código do Deleg. inicial. |
System.String | strDelegFim | Código do Deleg. final. |
Returns
Type | Description |
---|---|
StdBELista |
NumeroContabilidadeRepetido(String, String)
Verifica se já existe o número de contabilidade (campo ContaCtb) noutro cliente.
Declaration
bool NumeroContabilidadeRepetido(string strCliente, string strNumContab)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strNumContab | Código da Conta na CBL. |
Returns
Type | Description |
---|---|
System.Boolean |
NumeroContribuintesRepetidos(String)
Verifica quantos clientes têm este número de contribuinte.
Declaration
int NumeroContribuintesRepetidos(string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strContribuinte | Número de contribuinte a pesquisar. |
Returns
Type | Description |
---|---|
System.Int32 |
Remove(String)
Remove toda a informação relacionada com o cliente.
Declaration
void Remove(string strCliente)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
ValidaActualizacao(BasBECliente, ref String)
Efectua as validações necessárias à actualização do cliente.
Declaration
bool ValidaActualizacao(BasBECliente BECliente, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
BasBECliente | BECliente | Objecto que identifica o cliente. |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaRemocao(String, ref String)
Efectua todas as validações necessárias para a remoção do cliente.
Declaration
bool ValidaRemocao(string strCliente, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do Cliente a validar. |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |
VerificaContribuinte(String, String)
Verifica se já existe o número de contribuinte, noutro cliente.
Declaration
bool VerificaContribuinte(string strCliente, string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCliente | Código do cliente. |
System.String | strContribuinte | Número de contribuinte a pesquisar. |
Returns
Type | Description |
---|---|
System.Boolean |
VerificaNumContab(String)
Verifica se já existe o número de contabilidade (campo ContaCtb).
Declaration
bool VerificaNumContab(string strNumContab)
Parameters
Type | Name | Description |
---|---|---|
System.String | strNumContab | Código da Conta na CBL. |
Returns
Type | Description |
---|---|
System.Boolean |