Class StdBSTDU
Classe utilizada para obter serviços e regras de negócio sobre Tabelas do Utilizador.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
[ComVisible(true)]
[Guid("FDBCD538-BAC4-4DC2-83F2-9522F6344D09")]
[ClassInterface(ClassInterfaceType.None)]
public class StdBSTDU : IStdBSTDU
Properties
FormTabela
Formulário das Tabelas do Utilizador.
Declaration
public frmStdBaseForm FormTabela { get; set; }
Property Value
| Type | Description |
|---|---|
| frmStdBaseForm |
Tabela
Tabela.
Declaration
public string Tabela { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
AdicionaColuna(String)
Função que adiciona uma coluna à lista
Declaration
public void AdicionaColuna(string Coluna)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Coluna | Nome da coluna a adicionar |
BeforeColEdit(Int32, Object)
Handler do evento BeforeColEdit
Declaration
public void BeforeColEdit(int ColIndex, dynamic Cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | ColIndex | |
| System.Object | Cancel |
BeforeColUpdate(Int32, Int32, String, Object)
Handler do evento BeforeColUpdate
Declaration
public void BeforeColUpdate(int Row, int ColIndex, string OldValue, dynamic Cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Row | |
| System.Int32 | ColIndex | |
| System.String | OldValue | |
| System.Object | Cancel |
BeforeDelete(Object)
Handler do evento BeforeDelete
Declaration
public void BeforeDelete(dynamic Cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Cancel |
BeforeGroupChange(Object, Int32, Int32, Object)
Handler do evento BeforeGroupChange
Declaration
public void BeforeGroupChange(dynamic Group, int ChangeOperation, int GroupPosition, dynamic Cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Group | |
| System.Int32 | ChangeOperation | |
| System.Int32 | GroupPosition | |
| System.Object | Cancel |
ColResize(Int32, Int32, Object)
Handler do evento ColResize
Declaration
public void ColResize(int ColIndex, int NewColWidth, dynamic Cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | ColIndex | |
| System.Int32 | NewColWidth | |
| System.Object | Cancel |
CriaFiltroRapido()
Função que cria um filtro
Declaration
public void CriaFiltroRapido()
EditaTabela(String, StdBECampos)
Edita uma Tabela de Utilizador
Declaration
public void EditaTabela(string Tabela, StdBECampos Filtro = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Tabela | Tabela a editar |
| StdBECampos | Filtro | Filtro a aplicar à Query SQL |
EscondeCaixaPesquisa(Object)
Função que esconde a caixa de pesquisa
Declaration
public void EscondeCaixaPesquisa(dynamic t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | t |
EscondeColuna(String)
Função que esconde uma coluna
Declaration
public bool EscondeColuna(string Coluna)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Coluna | Nome da coluna a esconder |
Returns
| Type | Description |
|---|---|
| System.Boolean |
EventoMenuItemSeleccionado(String)
Handler do evento EventoMenuItemSeleccionado (selecção de um item no menu)
Declaration
public void EventoMenuItemSeleccionado(string Comando)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Comando |
ExistemTabelasUtilizador(String)
Indica se existem tabelas de utilizadores
Declaration
public bool ExistemTabelasUtilizador(string AbvtApl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | AbvtApl |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Finalize()
Declaration
protected void Finalize()
GravaTabela()
Declaration
public void GravaTabela()
ImprimeVista()
Função que inicializa a impressão da vista
Declaration
public void ImprimeVista()
Inicializa(frmTDU)
Inicializa o formulário das Tabelas Do Utilizador
Declaration
public void Inicializa(frmTDU parentForm)
Parameters
| Type | Name | Description |
|---|---|---|
| frmTDU | parentForm |
KeyDown(Int32, Int32, Boolean)
Handler do evento KeyDown
Declaration
public void KeyDown(int KeyCode, int Shift, bool JanelaModal = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | KeyCode | |
| System.Int32 | Shift | |
| System.Boolean | JanelaModal |
ListaTabelaDisponiveis(String)
Declaration
public List<string> ListaTabelaDisponiveis(string AbvtApl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | AbvtApl |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
MostraCaixaPesquisa(TextBox, Int32)
Função que mostra a caixa de pesquisa sobre a coluna seleccionada
Declaration
public void MostraCaixaPesquisa(TextBox Caixa, int KeyAscii)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.TextBox | Caixa | Caixa a apresentar |
| System.Int32 | KeyAscii | Texto a apresentar |
MouseUp(MouseButtons, Boolean, Single, Single)
Handler do evento MouseUp
Declaration
public void MouseUp(MouseButtons Button, bool Shift, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseButtons | Button | |
| System.Boolean | Shift | |
| System.Single | x | |
| System.Single | y |
MudaPosicaoColuna(String, Int32)
Função que altera a ordem de uma coluna à lista
Declaration
public void MudaPosicaoColuna(string Coluna, int Posicao)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Coluna | Nome da coluna |
| System.Int32 | Posicao | Nova posição (ordem) da coluna |
OLESetData(Object, Int32)
Handler do evento OLESetData
Declaration
public void OLESetData(dynamic Data, int DataFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Data | |
| System.Int32 | DataFormat |
OLEStartDrag(Object, ref Int32)
Handler do evento OLEStartDrag
Declaration
public void OLEStartDrag(dynamic Data, ref int AllowedEffects)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Data | |
| System.Int32 | AllowedEffects |
PreveImpressaoVista()
Função que inicializa a impressão da vista
Declaration
public void PreveImpressaoVista()
PreviewOnCloseClick()
Handler do evento PreviewOnCloseClick
Declaration
public void PreviewOnCloseClick()
RowColChange(Int32, Int32)
Handler do evento RowColChange
Declaration
public void RowColChange(int LastRow, int LastCol)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | LastRow | |
| System.Int32 | LastCol |
RowDrag(Int32, Int32)
Handler do evento RowDrag
Declaration
public void RowDrag(int Button, int Shift)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Button | |
| System.Int32 | Shift |
RowFormat(Object)
Handler do evento RowFormat
Declaration
public void RowFormat(dynamic RowBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | RowBuffer |
SetNewRowDefaultValues(Int32)
Declaration
public void SetNewRowDefaultValues(int rowHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowHandle |