Interface IBasBSFornecedores
Namespace: IBasBS100
Assembly: IBasBS100.dll
Syntax
[ComVisible(true)]
[Guid("A2ACBC52-6CE2-4F6C-8F19-15B77BC38F72")]
public interface IBasBSFornecedores
Methods
Actualiza(BasBEFornecedor)
Actualiza o fornecedor.
Declaration
void Actualiza(BasBEFornecedor clsFornecedor)
Parameters
Type | Name | Description |
---|---|---|
BasBEFornecedor | clsFornecedor | Objecto que identifica o fornecedor 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 Fornecedor.
Declaration
void ActualizaTotalDebito(double dblValor, string strEntidade, double dblCambioInt, double dblCambioMBase, double dblCambioMAlt, bool ConverteFactura, bool Encomenda, 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 Fornecedor a actualizar. |
System.Double | dblCambioInt | Cambio de introdução. |
System.Double | dblCambioMBase | Câmbio relativo a moeda base. |
System.Double | dblCambioMAlt | |
System.Boolean | ConverteFactura | Se o documento é proveniente de uma conversão. |
System.Boolean | Encomenda | Se o documento é proveniente de uma encomenda. |
System.String | strEntidadeAnterior | Identifica código do fornecedor 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 strFornecedor, string strAtributo, dynamic varValor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
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 determinado conjunto de atributos do fornecedor.
Declaration
void ActualizaValorAtributos(string strFornecedor, StdBECampos Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor a actualizar. |
StdBECampos | Atributos | Identifica os atributos a actualizar e respectivos valores. |
ActualizaValorDebito(String, Double, BasBETiposGcp.TEnumLimiteCredito)
Actualiza o acumulado do Limite de Crédito do fornecedor.
Declaration
void ActualizaValorDebito(string strFornecedor, double dblValorMBase, BasBETiposGcp.TEnumLimiteCredito TipoLimite)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor a actualizar. |
System.Double | dblValorMBase | Identifica o valor a actualizar. |
BasBETiposGcp.TEnumLimiteCredito | TipoLimite | Identifica o tipo de limite a actualizar. Pode apresentar os seguintes valores:
|
AlteraCodigoFornecedor(String, String)
Permite a alteração do código de um fornecedor para outro código de fornecedor novo.
Declaration
string AlteraCodigoFornecedor(string strCodigoAnt, string strNovoCodigo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCodigoAnt | Código do fornecedor que se pretende alterar. |
System.String | strNovoCodigo | Código do novo fornecedor. |
Returns
Type | Description |
---|---|
System.String |
Consulta(String)
Consulta a informação do fornecedor.
Declaration
BasBEFornecedor Consulta(string strFornecedor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Fornecedor a consultar. |
Returns
Type | Description |
---|---|
BasBEFornecedor |
DaCamposUtil()
Devolve os campos do utilizador.
Declaration
StdBECampos DaCamposUtil()
Returns
Type | Description |
---|---|
StdBECampos |
DaDefCamposUtil()
Devolve as definições dos campos do utilizador.
Declaration
StdBEDefCamposUtil DaDefCamposUtil()
Returns
Type | Description |
---|---|
StdBEDefCamposUtil |
DaEntidadeEndMail(String)
Pesquisa qual o fornecedor com determinado endereço de 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 fornecedor. Deve ser utilizada o método DaValorAtributo.
Declaration
string DaNome(string strFornecedor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
Returns
Type | Description |
---|---|
System.String |
DaNumContribuinte(String, String)
Verifica qual o Fornecedor com o número de contrinuinte fornecido.
Declaration
string DaNumContribuinte(string strFornecedor, string strNumContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do Fornecedor a excluir da pesquisa. |
System.String | strNumContribuinte |
Returns
Type | Description |
---|---|
System.String |
DaProximoNumeroCBL()
Devolve o próximo número de CBL associado aos fornecedores
Declaration
string DaProximoNumeroCBL()
Returns
Type | Description |
---|---|
System.String |
DaValorAtributo(String, String)
Devolve o valor de um determinado atributo do fornecedor.
Declaration
dynamic DaValorAtributo(string strFornecedor, string strAtributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor. |
System.String | strAtributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributoLock(String, String)
Devolve o valor de um determinado atributo do fornecedor.
Declaration
dynamic DaValorAtributoLock(string strFornecedor, string strAtributo)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor. |
System.String | strAtributo | Identifica o atributo para o qual se pretende devolver o valor. |
Returns
Type | Description |
---|---|
System.Object |
DaValorAtributos(String, String[])
Devolve o valor de um determinado conjunto de atributos do fornecedor.
Declaration
StdBECampos DaValorAtributos(string strFornecedor, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
DaValorAtributosLock(String, String[])
Devolve o valor de um determinado conjunto de atributos do fornecedor.
Declaration
StdBECampos DaValorAtributosLock(string strFornecedor, params string[] Atributos)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Identifica o fornecedor. |
System.String[] | Atributos | Identifica os atributos para os quais se pretende devolver o valor. |
Returns
Type | Description |
---|---|
StdBECampos |
Edita(String)
Edita a informação do fornecedor.
Declaration
BasBEFornecedor Edita(string strFornecedor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Fornecedor a editar. |
Returns
Type | Description |
---|---|
BasBEFornecedor |
Existe(String)
Verifica se o fornecedor existe na base de dados.
Declaration
bool Existe(string strFornecedor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
Returns
Type | Description |
---|---|
System.Boolean |
ExisteContribuinte(String)
Verifica se já existe um número de contribuinte repetido.
Declaration
string ExisteContribuinte(string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strContribuinte | Número do Contribuinte. |
Returns
Type | Description |
---|---|
System.String |
ExisteNumContribuinte(String, String)
Indica se o número de contribuinte existe.
Declaration
bool ExisteNumContribuinte(string strFornecedor, string strNumContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
System.String | strNumContribuinte |
Returns
Type | Description |
---|---|
System.Boolean |
InicializaTotaisDebito()
Coloca os totalizadores de débitos a zero
Declaration
void InicializaTotaisDebito()
InicializaTotaisDebito(ref Int32)
Coloca os totalizadores de débitos a zero
Declaration
void InicializaTotaisDebito(ref int TipoLimite)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | TipoLimite | Identifica o tipo de limite a reinicializar. Pode apresentar os seguintes valores:
|
LstFornecedores(String)
Devolve a lista de fornecedores.
Declaration
StdBELista LstFornecedores(string strFornecedor = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor |
Returns
Type | Description |
---|---|
StdBELista |
NumeroContabilidadeRepetido(String, String)
Indica se o Número de CBL já existe noutro Fornecedor.
Declaration
bool NumeroContabilidadeRepetido(string strFornecedor, string strNumContab)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
System.String | strNumContab | Número de CBL a pesquisar. |
Returns
Type | Description |
---|---|
System.Boolean |
NumeroContribuintesRepetidos(String)
Verifica quantos Fornecedores têm este número de contribuinte (repetido).
Declaration
int NumeroContribuintesRepetidos(string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strContribuinte | Número do Contribuinte. |
Returns
Type | Description |
---|---|
System.Int32 |
Remove(String)
Remove toda a informação relacionada com o fornecedor.
Declaration
void Remove(string strFornecedor)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
ValidaActualizacao(BasBEFornecedor, ref String)
Efectua as validações necessárias à actualização do fornecedor.
Declaration
bool ValidaActualizacao(BasBEFornecedor clsFornecedor, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
BasBEFornecedor | clsFornecedor | Objecto que identifica o fornecedor. |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |
ValidaRemocao(String, ref String)
Efectua todas as validações necessárias à remoção do fornecedor.
Declaration
bool ValidaRemocao(string strFornecedor, ref string StrErro)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do fornecedor. |
System.String | StrErro |
Returns
Type | Description |
---|---|
System.Boolean |
VerificaContribuinte(String, String)
Verifica se existem outros Fornecedores com este número de contribuinte.
Declaration
bool VerificaContribuinte(string strFornecedor, string strContribuinte)
Parameters
Type | Name | Description |
---|---|---|
System.String | strFornecedor | Código do Fornecedor a excluir da pesquisa. |
System.String | strContribuinte | Número do Contribuinte. |
Returns
Type | Description |
---|---|
System.Boolean |
VerificaNumContab(String)
Indica se o Número de CBL já existe.
Declaration
bool VerificaNumContab(string strNumContab)
Parameters
Type | Name | Description |
---|---|---|
System.String | strNumContab | Número de CBL a pesquisar. |
Returns
Type | Description |
---|---|
System.Boolean |