Class StdBSRestricoes
Classe utilizada para obter serviços e regras de negócio sobre Restrições.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
[ComVisible(true)]
[Guid("379F4C70-9808-4F13-8EAB-E6A8B74EC45A")]
[ClassInterface(ClassInterfaceType.None)]
public class StdBSRestricoes : IStdBSRestricoes
Methods
AjustaTamanhoRestricao(FpSpread, Int32, Int32)
Ajusta o tamanho do controlo de restrições.
Declaration
public void AjustaTamanhoRestricao(FpSpread objControlo, int widthTitulo, int widthCombo)
Parameters
Type | Name | Description |
---|---|---|
UpgradeHelpers.Spread.FpSpread | objControlo | Objecto com as definições das Restrições. |
System.Int32 | widthTitulo | |
System.Int32 | widthCombo |
DaValorComboRestricoes(Object)
Da o valor da combo do controlo da restrições.
Declaration
public string DaValorComboRestricoes(dynamic objControlo)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objControlo | Objecto com as definições das Restrições. |
Returns
Type | Description |
---|---|
System.String |
DeterminaValoresElemento(StdBERestricoesCtrl, Int32)
Devolve valores do elemento
Declaration
public StdBEValoresStr DeterminaValoresElemento(StdBERestricoesCtrl objCtrl, int lngElemIndex)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | lngElemIndex | Identificador do Indice do Elemento. |
Returns
Type | Description |
---|---|
StdBEValoresStr |
DeterminaWhere(StdBERestricoesCtrl, Boolean)
Devolve a clausula WHERE.
Declaration
public string DeterminaWhere(StdBERestricoesCtrl objCtrl, bool blnFormatacaoMapa = false)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Boolean | blnFormatacaoMapa | Indica Formatação do Mapa. |
Returns
Type | Description |
---|---|
System.String |
DeterminaWhereElemento(StdBERestricoesCtrl, Int32, Boolean)
Devolve o elemento WHERE.
Declaration
public string DeterminaWhereElemento(StdBERestricoesCtrl objCtrl, int lngElemIndex, bool blnFormatacaoMapas = false)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | lngElemIndex | Identificador do Indice do Elemento. |
System.Boolean | blnFormatacaoMapas | Indica Formatação dos Mapas. |
Returns
Type | Description |
---|---|
System.String |
DeterminaWhereElementoEx(StdBERestricoesCtrl, Int32, Boolean, Boolean, Boolean)
Devolve o elemento WHERE Ex.
Declaration
public string DeterminaWhereElementoEx(StdBERestricoesCtrl objCtrl, int lngElemIndex, bool blnFormatacaoMapa = false, bool blnFormatacaoSP = false, bool blnTabelaTemporaria = false)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | lngElemIndex | Identificador do Index do Elemento. |
System.Boolean | blnFormatacaoMapa | |
System.Boolean | blnFormatacaoSP | Indica Formatação SP. |
System.Boolean | blnTabelaTemporaria | Indica Tabela Temporária. |
Returns
Type | Description |
---|---|
System.String |
DeterminaWhereEx(StdBERestricoesCtrl, Boolean, Boolean, Boolean)
Devolve a clausula WHERE Ex.
Declaration
public string DeterminaWhereEx(StdBERestricoesCtrl objCtrl, bool blnFormatacaoMapa = false, bool blnFormatacaoSP = false, bool blnTabelaTemporaria = false)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Boolean | blnFormatacaoMapa | Indica Formatação do Mapa. |
System.Boolean | blnFormatacaoSP | Indica Formatação SP. |
System.Boolean | blnTabelaTemporaria | Indica Tabela Temporária. |
Returns
Type | Description |
---|---|
System.String |
DeterminaWhereFiltros(StdBERestricoesCtrl, Boolean, Boolean, String, String)
Devolve todos filtros associados ao objecto restrições.
Declaration
public string DeterminaWhereFiltros(StdBERestricoesCtrl objCtrl, bool blnDeterminaWhere = false, bool blnClausulaWhereF4 = false, string strTabelaWhereAlias = "", string strCampoWhereAlias = "")
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | |
System.Boolean | blnDeterminaWhere | Booleano que define a concatenação do resultado da função DeterminaWhere com o resultado global |
System.Boolean | blnClausulaWhereF4 | Booleano que define a concatenação da ClausulaWhereF4 com o resultado global |
System.String | strTabelaWhereAlias | Alias para o campo TabelaWhere |
System.String | strCampoWhereAlias | Alias para o campo CampoWhere |
Returns
Type | Description |
---|---|
System.String |
DeterminaWhereFiltrosElemento(StdBERestricoesCtrl, Int32, Boolean, Boolean, String, String)
Devolve todos filtros associados a um elemento do objecto restrições.
Declaration
public string DeterminaWhereFiltrosElemento(StdBERestricoesCtrl objCtrl, int lngElemIndex, bool blnDeterminaWhere = false, bool blnClausulaWhereF4 = false, string strTabelaWhereAlias = "", string strCampoWhereAlias = "")
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | lngElemIndex | Indice do elemento |
System.Boolean | blnDeterminaWhere | Booleano que define a concatenação do resultado da função DeterminaWhere com o resultado global |
System.Boolean | blnClausulaWhereF4 | Booleano que define a concatenação da ClausulaWhereF4 com o resultado global |
System.String | strTabelaWhereAlias | Alias para o campo TabelaWhere |
System.String | strCampoWhereAlias | Alias para o campo CampoWhere |
Returns
Type | Description |
---|---|
System.String |
Finalize()
Declaration
protected void Finalize()
FormataRestricoes(Object, FpSpread, StdBERestricoesDef, Boolean)
Formata restrições.
Declaration
public StdBERestricoesCtrl FormataRestricoes(dynamic objForm, FpSpread objSpread, StdBERestricoesDef objDefinicao, bool resizeAutomatico = true)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objForm | Objecto com as definições do Formulário. |
UpgradeHelpers.Spread.FpSpread | objSpread | Objecto com as definições da Grelha. |
StdBERestricoesDef | objDefinicao | Objecto com as definições das Restrições por Defeito. |
System.Boolean | resizeAutomatico |
Returns
Type | Description |
---|---|
StdBERestricoesCtrl |
GrelhaButtonClicked(StdBERestricoesCtrl, Int32, Int32, Int32)
Botão da grelha clicado.
Declaration
public void GrelhaButtonClicked(StdBERestricoesCtrl objCtrl, int lngCol, int lngRow, int intButtonDown)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | lngCol | Identificador da Coluna. |
System.Int32 | lngRow | Identificador da Linha. |
System.Int32 | intButtonDown | Identificador do Botão. |
GrelhaKeyUp(StdBERestricoesCtrl, Int32, Int32)
KeyUp na Grelha.
Declaration
public void GrelhaKeyUp(StdBERestricoesCtrl objCtrl, int intKeyCode, int intShift)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.Int32 | intKeyCode | Identificador KeyCode. |
System.Int32 | intShift | Identificador Shift. |
PosicionaComboRestricoesID(Object, String)
Posiciona uma combobox no controlo das restrições.
Declaration
public int PosicionaComboRestricoesID(dynamic objControlo, string strId)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objControlo | Objecto com as definições das Restrições. |
System.String | strId | Identificador. |
Returns
Type | Description |
---|---|
System.Int32 |
posicionaComboRestricoesIDG(Object, String)
Posiciona uma combobox no controlo das restrições.
Declaration
public int posicionaComboRestricoesIDG(dynamic objControlo, string strIDG)
Parameters
Type | Name | Description |
---|---|---|
System.Object | objControlo | Objecto com as definições das Restrições. |
System.String | strIDG | Identificador. |
Returns
Type | Description |
---|---|
System.Int32 |
ProcessaResultadoF4(StdBERestricoesCtrl, String, String, String)
Processa o resultado F4.
Declaration
public void ProcessaResultadoF4(StdBERestricoesCtrl objCtrl, string strCategoria, string strCampo, string strValor)
Parameters
Type | Name | Description |
---|---|---|
StdBERestricoesCtrl | objCtrl | Objecto com as definições das Restrições. |
System.String | strCategoria | Identificador da Categoria. |
System.String | strCampo | Identificador do Campo. |
System.String | strValor | Identificador do Valor. |