Class StdBSFuncoesGlobais
Serviços de funções globais.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
[ComVisible(true)]
[Guid("C3A1DECF-941C-4E06-A408-8E09F2726791")]
[ClassInterface(ClassInterfaceType.None)]
public class StdBSFuncoesGlobais : IStdBSFuncoesGlobais
Methods
AbreSysInfo()
Abre a janela de System Info.
Declaration
public void AbreSysInfo()
ActivaControlo(Control)
Activa o controlo especificado (SetFocus). Suporta controlos das Forms e UserForms(VBA).
Declaration
public void ActivaControlo(Control Controlo)
Parameters
Type | Name | Description |
---|---|---|
System. |
Controlo | Controlo a activar. |
ActivaControloEx(Control)
Activa o controlo especificado (SetFocus) através da des/activação do controlo (método específico para a Spread).
Declaration
public void ActivaControloEx(Control Controlo)
Parameters
Type | Name | Description |
---|---|---|
System. |
Controlo | Controlo a activar. |
AddIcon2ImageList16x16(ImageList, IntPtr, IntPtr, String)
Adiciona um ícone a uma image lista (no formato 16x16).
Declaration
public void AddIcon2ImageList16x16(ImageList objImageList, IntPtr lngHIcon16, IntPtr lngIcon16, string strKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
objImageList | ImageList. |
System. |
lngHIcon16 | Handler para o ícone. |
System. |
lngIcon16 | Índice do ícone. |
System. |
strKey | Chave do ícone na ImageList. |
AnoActual(Int32)
Gets the Current year
Declaration
public int AnoActual(int intMesInicio)
Parameters
Type | Name | Description |
---|---|---|
System. |
intMesInicio | The int mes inicio. |
Returns
Type | Description |
---|---|
System. |
AnoBissexto(Int32)
Indica se um determinado ano é bissexto.
Declaration
public bool AnoBissexto(int Ano)
Parameters
Type | Name | Description |
---|---|---|
System. |
Ano | Ano a verificar. |
Returns
Type | Description |
---|---|
System. |
BloqueiaUIForm(Int32)
Bloqueia o refresh do UI de um formulário.
Declaration
public void BloqueiaUIForm(int lngHWnd)
Parameters
Type | Name | Description |
---|---|---|
System. |
lngHWnd |
ClonaObjecto(Object, Boolean, Object)
Devolve um objecto clonado
Declaration
public object ClonaObjecto(object objSource, bool blnReadOnly = false, object objReadOnly = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
objSource | Objecto de origem. |
System. |
blnReadOnly | So de leitura. |
System. |
objReadOnly | Objecto so de Leitura. |
Returns
Type | Description |
---|---|
System. |
ComboBoxProcuraElemento(ComboBox, String)
Verifica se existe um elemento numa ComboBox.
Declaration
public bool ComboBoxProcuraElemento(ComboBox objCombo, string strElemento)
Parameters
Type | Name | Description |
---|---|---|
System. |
objCombo | Objecto com as definições de uma ComboBox. |
System. |
strElemento | Identificador do elemento. |
Returns
Type | Description |
---|---|
System. |
ConverterHyperLinkParaTextoSimples(String, String)
Converte um texto com HyperLinks para texto simples com substituição pelo texto do link.
Declaration
public string ConverterHyperLinkParaTextoSimples(string input, string toRemove = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Texto com HyperLinks |
System. |
toRemove | Texto para remover |
Returns
Type | Description |
---|---|
System. |
ConverterTextoHyperLinkTextParaLinkLabelLinks(LinkLabel, String)
Adiciona os links de um texto com HyperLinks a uma LinkLabel.
Declaration
public void ConverterTextoHyperLinkTextParaLinkLabelLinks(LinkLabel linkContext, string input)
Parameters
Type | Name | Description |
---|---|---|
System. |
linkContext | Controlo ao qual são adicionados os links. |
System. |
input | Texto com HyperLinks |
CopiarTextoParaClipboard(String)
Copia o texto indicado para o ClipBoard.
Declaration
public void CopiarTextoParaClipboard(string strTexto)
Parameters
Type | Name | Description |
---|---|---|
System. |
strTexto | Identificador do texto. |
CorrigeCalendario(StdDTPicker)
Declaration
public object CorrigeCalendario(StdDTPicker Calendario)
Parameters
Type | Name | Description |
---|---|---|
Std |
Calendario |
Returns
Type | Description |
---|---|
System. |
CriaGuid(Boolean)
Devolve um novo GUID.
Declaration
public string CriaGuid(bool bSeparadores = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
bSeparadores | Incluir ou não separadores. |
Returns
Type | Description |
---|---|
System. |
CriaObjectoCOM(String)
Cria um objecto COM.
Declaration
public object CriaObjectoCOM(string strClsid)
Parameters
Type | Name | Description |
---|---|---|
System. |
strClsid | identificador do Id da classe. |
Returns
Type | Description |
---|---|
System. |
DaAbreviaturaCultura(Int32)
Devolve a abreviatura de uma cultura dado o respectivo LCID.
Declaration
public string DaAbreviaturaCultura(int intCultura)
Parameters
Type | Name | Description |
---|---|---|
System. |
intCultura | LCID da cultura. |
Returns
Type | Description |
---|---|
System. |
DaAnoContabilistico(String, Int32, Int32)
Devolve o ano contabilístico associado a um determinado ano cívil para uma determinada empresa.
Declaration
public int DaAnoContabilistico(string CodEmp, int Mes, int Ano)
Parameters
Type | Name | Description |
---|---|---|
System. |
CodEmp | Identificador da empresa. |
System. |
Mes | Mês a verificar. |
System. |
Ano | Ano a verificar. |
Returns
Type | Description |
---|---|
System. |
DaCasasDecimais(String, String, Byte)
Devolve o número de casas decimais que devem ser utilizadas para um determinado campo da base de dados
Declaration
public byte DaCasasDecimais(string Tabela, string Campo, byte CasasDefeito = 2)
Parameters
Type | Name | Description |
---|---|---|
System. |
Tabela | Nome da tabela. |
System. |
Campo | Nome do campo. |
System. |
CasasDefeito | Número de casas decimais por defeito. |
Returns
Type | Description |
---|---|
System. |
DaExercicioEconomico(DateTime)
Devolve o exercicio Económico
Declaration
public int DaExercicioEconomico(DateTime datData)
Parameters
Type | Name | Description |
---|---|---|
System. |
datData | Identificador da Data. |
Returns
Type | Description |
---|---|
System. |
DaFormatoCampo(StdBECampo.EnumMetaTipo, String, String, Byte)
Devolve o formato que deve ser utilizado para um determinado campo da base de dados.
Declaration
public string DaFormatoCampo(StdBECampo.EnumMetaTipo TipoCampo, string Tabela, string Campo, byte CasasDefeito = 2)
Parameters
Type | Name | Description |
---|---|---|
Std |
TipoCampo | Tipo de dados do campo. |
System. |
Tabela | Nome da tabela. |
System. |
Campo | Nome do campo. |
System. |
CasasDefeito | Número de casas decimais por defeito. |
Returns
Type | Description |
---|---|
System. |
DaImagemRedonda(Image)
Da imagem redonda a partir de uma imagem.
Declaration
public Image DaImagemRedonda(Image srcImage)
Parameters
Type | Name | Description |
---|---|---|
System. |
srcImage | Imagem origem |
Returns
Type | Description |
---|---|
System. |
DaImagemRedonda(Image, Int32)
Dá imagem redondo a partir de imagem.
Declaration
public Image DaImagemRedonda(Image srcImage, int thumbWidthSize)
Parameters
Type | Name | Description |
---|---|---|
System. |
srcImage | Imagem origem |
System. |
thumbWidthSize | Tamanho da largura |
Returns
Type | Description |
---|---|
System. |
DaLarguraTexto(String, Font)
Devolve a largura do texto.
Declaration
public int DaLarguraTexto(string AString, Font AScaleMode)
Parameters
Type | Name | Description |
---|---|---|
System. |
AString | texto a considerar no cálculo. |
System. |
AScaleMode | Scaling mode a considerar. |
Returns
Type | Description |
---|---|
System. |
DaNomeExtensoPais(String)
Devolve o nome extenso do país mediante o código ISO de duas letras
Declaration
public string DaNomeExtensoPais(string strCodigoPais)
Parameters
Type | Name | Description |
---|---|---|
System. |
strCodigoPais | Código do país (ISO 2 letras) |
Returns
Type | Description |
---|---|
System. |
DaSubStringTamanho(String, Int32, Font)
Devolve a maior porção do texto, cuja largura não excede o limite especificado.
Declaration
public string DaSubStringTamanho(string strOrigem, int intTamanho, Font AScaleMode)
Parameters
Type | Name | Description |
---|---|---|
System. |
strOrigem | Texto a considerar no cálculo. |
System. |
intTamanho | Tamanho máximo. |
System. |
AScaleMode | Scaling mode a considerar. |
Returns
Type | Description |
---|---|
System. |
DataLimiteFinalAno(Int32, Int32, Int32)
Declaration
public DateTime DataLimiteFinalAno(int intAno, int intMesInicio, int intMesFim)
Parameters
Type | Name | Description |
---|---|---|
System. |
intAno | |
System. |
intMesInicio | |
System. |
intMesFim |
Returns
Type | Description |
---|---|
System. |
DataLimiteInicioAno(Int32, Int32)
Declaration
public DateTime DataLimiteInicioAno(int intAno, int intMesInicio)
Parameters
Type | Name | Description |
---|---|---|
System. |
intAno | |
System. |
intMesInicio |
Returns
Type | Description |
---|---|
System. |
DesbloqueiaUIForm()
Desbloqueia o refresh do UI de um formulário.
Declaration
public void DesbloqueiaUIForm()
DirectoriaExiste(String)
Verifica se uma determinado directoria existe em disco.
Declaration
public bool DirectoriaExiste(string strDirectoria)
Parameters
Type | Name | Description |
---|---|---|
System. |
strDirectoria | Directoria a verificar. |
Returns
Type | Description |
---|---|
System. |
ExecutaAjuda(String)
Executas the ajuda.
Declaration
public void ExecutaAjuda(string strSearch)
Parameters
Type | Name | Description |
---|---|---|
System. |
strSearch | The string search. |
ExecutaAjudaOnline(Int32, String)
Executas the ajuda online.
Declaration
public void ExecutaAjudaOnline(int lTopico, string strSearch)
Parameters
Type | Name | Description |
---|---|---|
System. |
lTopico | The l topico. |
System. |
strSearch | The string search. |
ExecutaAplicacao(String, String)
Executa a aplicação associada a uma determinada extensão.
Declaration
public bool ExecutaAplicacao(string Extensao, string Parametro)
Parameters
Type | Name | Description |
---|---|---|
System. |
Extensao | Extensão. |
System. |
Parametro | Parâmetros. |
Returns
Type | Description |
---|---|
System. |
ExecutaComando(String, String, Boolean)
Executa a linha de comando e espera pelo código devolvido.
Declaration
public int ExecutaComando(string strComando, string strParametos, bool sync)
Parameters
Type | Name | Description |
---|---|---|
System. |
strComando | Extensão. |
System. |
strParametos | Parâmetros. |
System. |
sync |
Returns
Type | Description |
---|---|
System. |
ExecutaComandoAsinc(ref String)
Executa a linha de comando e continua a execução, sem esperar pelo código devolvido.
Declaration
public void ExecutaComandoAsinc(ref string strComando)
Parameters
Type | Name | Description |
---|---|---|
System. |
strComando | Extensão. |
ExecutaComandoSinc(ref String)
Executa a linha de comando e espera pelo código devolvido.
Declaration
public int ExecutaComandoSinc(ref string strComando)
Parameters
Type | Name | Description |
---|---|---|
System. |
strComando | Extensão. |
Returns
Type | Description |
---|---|
System. |
ExecutaIndiceAjuda(String)
Executas the indice ajuda.
Declaration
public void ExecutaIndiceAjuda(string strSearch)
Parameters
Type | Name | Description |
---|---|---|
System. |
strSearch | The string search. |
ExecutaTopicoAjuda(Int32, String)
Executas the topico ajuda.
Declaration
public void ExecutaTopicoAjuda(int lTopico, string strSearch)
Parameters
Type | Name | Description |
---|---|---|
System. |
lTopico | The l topico. |
System. |
strSearch | The string search. |
ExisteNaColeccao(PrimaveraOrderedDictionary, String)
Valida se um determinado valor (texto) existe na colecção
Declaration
public bool ExisteNaColeccao(PrimaveraOrderedDictionary Col, string Value)
Parameters
Type | Name | Description |
---|---|---|
Primavera. |
Col | A colecção a verificar. |
System. |
Value | O valor a procurar na colecção. |
Returns
Type | Description |
---|---|
System. |
FechaForm(Form)
Deve ser chamado pelos formulários no seu método Unload.
Declaration
public void FechaForm(Form objFrm)
Parameters
Type | Name | Description |
---|---|---|
System. |
objFrm | Formulário a fechar. |
FicheiroExiste(String)
Verifica se um determinado ficheiro existe em disco.
Declaration
public bool FicheiroExiste(string strFicheiro)
Parameters
Type | Name | Description |
---|---|---|
System. |
strFicheiro | Localização do ficheiro. |
Returns
Type | Description |
---|---|
System. |
FormataFontForm(Object)
Formata a font de todos os controlos de um formulário para Tahoma.
Declaration
[Obsolete]
public void FormataFontForm(object objFrm)
Parameters
Type | Name | Description |
---|---|---|
System. |
objFrm | Formulário a formatar. |
FormataForm(Object)
Deprecated
Declaration
[Obsolete]
public void FormataForm(object objFrm)
Parameters
Type | Name | Description |
---|---|---|
System. |
objFrm |
FormataGuidCrystal(String)
Devolve um guid tratado de forma a ser passado para o Crystal reports
Declaration
public string FormataGuidCrystal(string guidString)
Parameters
Type | Name | Description |
---|---|---|
System. |
guidString |
Returns
Type | Description |
---|---|
System. |
GetFileIcon(ref String, ref IntPtr, ref IntPtr, ref IntPtr, ref IntPtr)
Devolve o ícone associado a um determinado ficheiro.
Declaration
public bool GetFileIcon(ref string strFicheiro, ref IntPtr lngHIcon32, ref IntPtr lngHIcon16, ref IntPtr lngIcon32, ref IntPtr lngIcon16)
Parameters
Type | Name | Description |
---|---|---|
System. |
strFicheiro | Localização do ficheiro. |
System. |
lngHIcon32 | Handler do ícone (32x32) |
System. |
lngHIcon16 | Handler do ícone (16x16). |
System. |
lngIcon32 | índice do ícone (32x32). |
System. |
lngIcon16 | Índice do ícone (16x16). |
Returns
Type | Description |
---|---|
System. |
GetRootName(String)
Devolve o nome de um ficheiro (sem referência à directoria).
Declaration
public string GetRootName(string s)
Parameters
Type | Name | Description |
---|---|---|
System. |
s | Percurso completo do ficheiro |
Returns
Type | Description |
---|---|
System. |
GuidEmpty(Boolean)
Devolve um GUID vazio.
Declaration
public string GuidEmpty(bool blnFormated = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
blnFormated | Devolve um GUID vazio formatado. |
Returns
Type | Description |
---|---|
System. |
IgnoraTeclas(String, Int32)
Ignora teclas.
Declaration
public int IgnoraTeclas(string strTeclas, int intKeyAscii)
Parameters
Type | Name | Description |
---|---|---|
System. |
strTeclas | Identificador das Teclas. |
System. |
intKeyAscii | Identificador do Código ASCII. |
Returns
Type | Description |
---|---|
System. |
IsGuid(String)
Indica se o valor passado por parâmetro corresponde a um GUID válido.
Declaration
public bool IsGuid(string Valor)
Parameters
Type | Name | Description |
---|---|---|
System. |
Valor | Valor a validar. |
Returns
Type | Description |
---|---|
System. |
IsGuidEmpty(String)
Indica se o valor passado por parâmetro corresponde a um GUID vazio.
Declaration
public bool IsGuidEmpty(string Valor)
Parameters
Type | Name | Description |
---|---|---|
System. |
Valor | Valor a validar. |
Returns
Type | Description |
---|---|
System. |
IsNothingOrEmpty(Object)
Verifica se um objecto do tipo Collection, Recordset ou StdBELista é nulo ou vazio (sem registos).
Declaration
public bool IsNothingOrEmpty(object objCollection)
Parameters
Type | Name | Description |
---|---|---|
System. |
objCollection | Objecto do tipo Collection, RecordSet, StdBELista. |
Returns
Type | Description |
---|---|
System. |
ListViewColumnClickDefaultBehavior(ListView, Object)
Comportamento por defeito de uma ListView aquando o click.
Declaration
public void ListViewColumnClickDefaultBehavior(ListView objLista, object objColumnHeader)
Parameters
Type | Name | Description |
---|---|---|
System. |
objLista | Objecto com as definições de uma ListView. |
System. |
objColumnHeader | Objecto com as definições de um ColumnHeader. |
ListViewColumnClickDefaultBehavior(ListView, Object, ColumnClickEventArgs)
Comportamento por defeito de uma ListView aquando o click.
Declaration
public void ListViewColumnClickDefaultBehavior(ListView objLista, object objColumnHeader, ColumnClickEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
objLista | Objecto com as definições de uma ListView. |
System. |
objColumnHeader | Objecto com as definições de um ColumnHeader. |
System. |
e | Eventos do click na coluna. |
ListViewInserteSeleccao(ListView)
Inverte a selecção actual de elementos de uma ListView (que apresente check boxes).
Declaration
public void ListViewInserteSeleccao(ListView objLista)
Parameters
Type | Name | Description |
---|---|---|
System. |
objLista | Lista que contém os elementos (ListView) |
ListViewItemExiste(ListView, String)
Verifica se existe determinado item.
Declaration
public bool ListViewItemExiste(ListView objListView, string strKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
objListView | Objecto contendo as definições de uma ListView. |
System. |
strKey | Identificador da key do item. |
Returns
Type | Description |
---|---|
System. |
ListViewNumItemsSeleccionados(ListView)
Devolve o número de itens selecionados.
Declaration
public int ListViewNumItemsSeleccionados(ListView objListView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objListView | Objecto contendo as definições de uma ListView. |
Returns
Type | Description |
---|---|
System. |
ListViewProcuraElemento(ListView, String, StdBSTipos.EnumProcuraListViewOnde, Boolean, Boolean)
Verifica se existe um elemento numa ListView.
Declaration
public bool ListViewProcuraElemento(ListView objLista, string strValor, StdBSTipos.EnumProcuraListViewOnde enuProcurarOnde = StdBSTipos.EnumProcuraListViewOnde.plvoTexto, bool blnDoInicio = true, bool blnProcuraParcial = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
objLista | Objecto com as definições de uma ListView. |
System. |
strValor | Identificador do elemento. |
Std |
enuProcurarOnde | Identificador do Procura ListView Onde. |
System. |
blnDoInicio | Indica se do Inicio. |
System. |
blnProcuraParcial | Indica se Procura Parcial. |
Returns
Type | Description |
---|---|
System. |
ListViewSeleccionaPrimeiro(ListView, Boolean)
Seleciona o primeiro item de uma ListView.
Declaration
public void ListViewSeleccionaPrimeiro(ListView objListView, bool blnCheckBox = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
objListView | Objecto contendo as definições de uma ListView. |
System. |
blnCheckBox | Indica se seleciona a CheckBox |
ListViewSeleccionaTodos(ListView)
Selecciona todos os elementos de uma ListView (que apresente check boxes).
Declaration
public void ListViewSeleccionaTodos(ListView objLista)
Parameters
Type | Name | Description |
---|---|---|
System. |
objLista | Lista que contém os elementos (ListView) |
ListViewUmSeleccionado(ListView)
Verifica se existe um item selecionado.
Declaration
public bool ListViewUmSeleccionado(ListView objListView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objListView | Objecto contendo as definições de uma ListView. |
Returns
Type | Description |
---|---|
System. |
MakePath(String, Boolean)
Devolve o caminho de uma pasta devidamente formatado (com \ no fim).
Declaration
public string MakePath(string strPath, bool blnMkDir = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
strPath | Localização da pasta. |
System. |
blnMkDir | Criar a pasta fisicamente se não existir? |
Returns
Type | Description |
---|---|
System. |
MapeiaMesCivilMesContabilistico(Int32)
Mapeia mês civil.
Declaration
public int MapeiaMesCivilMesContabilistico(int intMesCivil)
Parameters
Type | Name | Description |
---|---|---|
System. |
intMesCivil | Identificador do mês civil. |
Returns
Type | Description |
---|---|
System. |
MapeiaMesCivilMesContabilistico(Int32, Int32)
Mapeia mês civil.
Declaration
public int MapeiaMesCivilMesContabilistico(int intMesCivil, int intIFMesInicio)
Parameters
Type | Name | Description |
---|---|---|
System. |
intMesCivil | Identificador do mês civil. |
System. |
intIFMesInicio | Identificador do mês inicial. |
Returns
Type | Description |
---|---|
System. |
MapeiaMesContabilisticoMesCivil(Int32)
Mapeia mês contabilistico.
Declaration
public int MapeiaMesContabilisticoMesCivil(int intMesContabilidade)
Parameters
Type | Name | Description |
---|---|---|
System. |
intMesContabilidade | Identificador do mês contabilistico. |
Returns
Type | Description |
---|---|
System. |
Max(Single, Single)
Devolve o máximo de dois valores.
Declaration
public float Max(float First, float Second)
Parameters
Type | Name | Description |
---|---|---|
System. |
First | Primeiro valor. |
System. |
Second | Segundo valor. |
Returns
Type | Description |
---|---|
System. |
Min(Single, Single)
Devolve o mínimo de dois valores.
Declaration
public float Min(float First, float Second)
Parameters
Type | Name | Description |
---|---|---|
System. |
First | Primeiro valor. |
System. |
Second | Segundo valor. |
Returns
Type | Description |
---|---|
System. |
NomeBDEmpresa(String)
Devolve o nome da base de dados associada a uma empresa PRIMAVERA.
Declaration
public string NomeBDEmpresa(string CodigoEmpresa)
Parameters
Type | Name | Description |
---|---|---|
System. |
CodigoEmpresa | Identificador da empresa. |
Returns
Type | Description |
---|---|
System. |
NumeroParaExtenso(Double, String, String)
Devolve a descrição por extenso de um número.
Declaration
public string NumeroParaExtenso(double dblValue, string strIntegerDescription, string strDecimalDescription)
Parameters
Type | Name | Description |
---|---|---|
System. |
dblValue | Identificador do Valor. |
System. |
strIntegerDescription | Identificador da descrição do inteiro. |
System. |
strDecimalDescription | Identificador da descrição do decimal. |
Returns
Type | Description |
---|---|
System. |
Parse(ref String, Boolean)
Processo expressão.
Declaration
public string Parse(ref string Expressao, bool RaiseErro = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
Expressao | Expressão. |
System. |
RaiseErro | Devolve erro? |
Returns
Type | Description |
---|---|
System. |
ProcessaTeclasSistema(ref Keys, Int32)
Processa teclas do sistema.
Declaration
public void ProcessaTeclasSistema(ref Keys intKeyCode, int intShift)
Parameters
Type | Name | Description |
---|---|---|
System. |
intKeyCode | Identificador do Código da Tecla. |
System. |
intShift | Identificador do Shift. |
ProcessaTeclasSistemaEx(ref Keys, Int32, String)
Processa teclas do sistema Ex.
Declaration
public void ProcessaTeclasSistemaEx(ref Keys intKeyCode, int intShift, string strApl = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
intKeyCode | Identificador do Código da Tecla. |
System. |
intShift | Identificador do Shift. |
System. |
strApl | Identificador do Módulo. |
ProcessaTeclasSistemaForm(Form, ref Keys, Int32)
Processa teclas do sistema no formulário.
Declaration
public void ProcessaTeclasSistemaForm(Form objForm, ref Keys intKeyCode, int intShift)
Parameters
Type | Name | Description |
---|---|---|
System. |
objForm | Objecto com as definições do formulário. |
System. |
intKeyCode | Identificador do Código da Tecla. |
System. |
intShift | Identificador do Shift. |
QualidadeDaPassword(String)
Devolve um indicador da qualidade da cultura [0-4].
Declaration
public int QualidadeDaPassword(string Password)
Parameters
Type | Name | Description |
---|---|---|
System. |
Password |
Returns
Type | Description |
---|---|
System. |
ResizeImage(Image, Int32, Int32)
Resizes the image.
Declaration
public Image ResizeImage(Image image, int width = -1, int height = -1)
Parameters
Type | Name | Description |
---|---|---|
System. |
image | The image. |
System. |
width | The width. |
System. |
height | The height. |
Returns
Type | Description |
---|---|
System. |
SetCursorDefault()
Coloca o cursor no seu estado por defeito.
Declaration
public void SetCursorDefault()
SetCursorWait()
Coloca cursor em modo de "Em execução".
Declaration
public void SetCursorWait()
SiteComunidadePRIMAVERA()
Abre o site da Comunidade PRIMAVERA.
Declaration
public void SiteComunidadePRIMAVERA()
SiteDadosUtilizador()
Abre o site de actualização dos dados do utilizador.
Declaration
public void SiteDadosUtilizador()
SiteMyPRIMAVERA()
Sites my primavera.
Declaration
public void SiteMyPRIMAVERA()
SitePRIMAVERA()
Abre o site da PRIMAVERA.
Declaration
public void SitePRIMAVERA()
SiteSuporteTecnico(String)
Abre o site de Suporte Técnico.
Declaration
public void SiteSuporteTecnico(string strMensagemErro = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
strMensagemErro |
SplitPath(String, ref String, ref String, ref String)
Divide um percurso de um ficheiro nas suas várias partes.
Declaration
public void SplitPath(string FullPath, ref string Path, ref string Root, ref string Ext)
Parameters
Type | Name | Description |
---|---|---|
System. |
FullPath | Percurso completo do ficheiro |
System. |
Path | Percurso |
System. |
Root | Nome do ficheiro (sem a directoria). |
System. |
Ext | Extensão do ficheiro. |
TextoClear(RichTextBox)
Texto Clear.
Declaration
public void TextoClear(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoClear(TextBox)
Texto Clear.
Declaration
public void TextoClear(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoCopy(RichTextBox)
Texto Copy.
Declaration
public void TextoCopy(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoCopy(TextBox)
Texto Copy.
Declaration
public void TextoCopy(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoCut(RichTextBox)
Declaration
public void TextoCut(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox |
TextoCut(TextBox)
Texto Cut.
Declaration
public void TextoCut(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoPaste(RichTextBox)
Texto Paste.
Declaration
public void TextoPaste(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoPaste(TextBox)
Texto Paste.
Declaration
public void TextoPaste(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoSelectAll(RichTextBox)
Texto Select All.
Declaration
public void TextoSelectAll(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoSelectAll(TextBox)
Texto Select All.
Declaration
public void TextoSelectAll(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoUndo(RichTextBox)
Texto Undo.
Declaration
public void TextoUndo(RichTextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TextoUndo(TextBox)
Texto Undo.
Declaration
public void TextoUndo(TextBox objTextBox)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTextBox | Objecto com o texto. |
TrataMaiuscula(Int32)
Transforma uma tecla na correspondente maiúscula.
Declaration
public int TrataMaiuscula(int KeyAscii)
Parameters
Type | Name | Description |
---|---|---|
System. |
KeyAscii | Identificador da tecla. |
Returns
Type | Description |
---|---|
System. |
TreeViewCollapse(TreeView, Boolean)
Colapsa os nodos de uma TreeView.
Declaration
public void TreeViewCollapse(TreeView objTreeView, bool blnTodos = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView | Objecto contendo as definições de uma TreeView. |
System. |
blnTodos | Indica se colapsa todos os nodos. |
TreeViewContaChecked(TreeView)
Declaration
public int TreeViewContaChecked(TreeView objTreeView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView |
Returns
Type | Description |
---|---|
System. |
TreeViewContaUnchecked(TreeView)
Devolve o total de nodos não selecionados.
Declaration
public int TreeViewContaUnchecked(TreeView objTreeView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView | Objecto contendo as definições de uma TreeView. |
Returns
Type | Description |
---|---|
System. |
TreeViewCountNodes(TreeNodeCollection, Boolean)
Devolve o total de nodos selecionados.
Declaration
public int TreeViewCountNodes(TreeNodeCollection nodes, bool justCheckedOnes)
Parameters
Type | Name | Description |
---|---|---|
System. |
nodes | |
System. |
justCheckedOnes |
Returns
Type | Description |
---|---|
System. |
TreeViewDaPrimeiroVisivel(TreeView)
Devolve o primeiro nodo visivel.
Declaration
public TreeNode TreeViewDaPrimeiroVisivel(TreeView objTreeView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView | Objecto contendo as definições de uma TreeView. |
Returns
Type | Description |
---|---|
System. |
TreeViewExpand(TreeView, Boolean)
Expande os nodos de uma TreeView.
Declaration
public void TreeViewExpand(TreeView objTreeView, bool blnTodos = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView | Objecto contendo as definições de uma TreeView. |
System. |
blnTodos | Indica se expande todos os nodos. |
TreeViewInverteSeleccao(TreeNodeCollection, Boolean)
Declaration
public void TreeViewInverteSeleccao(TreeNodeCollection nodes, bool recursive = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
nodes | |
System. |
recursive |
TreeViewInverteSeleccao(TreeView, Boolean)
Inverte a selecção de nodos de uma TreeView.
Declaration
public void TreeViewInverteSeleccao(TreeView objTree, bool recursive = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTree | Objecto com as definições de uma TreeView. |
System. |
recursive |
TreeViewSeleccionaTodos(TreeNodeCollection, Boolean)
Tree view seleciona todos.
Declaration
public void TreeViewSeleccionaTodos(TreeNodeCollection nodes, bool recursive = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
nodes | |
System. |
recursive |
TreeViewSeleccionaTodos(TreeView, Boolean)
Seleciona todos os nodos de uma TreeView.
Declaration
public void TreeViewSeleccionaTodos(TreeView objTree, bool recursive = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTree | Objecto com as definições de uma TreeView. |
System. |
recursive | Recursive. |
TreeViewUmSeleccionado(TreeNodeCollection)
Declaration
public bool TreeViewUmSeleccionado(TreeNodeCollection nodes)
Parameters
Type | Name | Description |
---|---|---|
System. |
nodes |
Returns
Type | Description |
---|---|
System. |
TreeViewUmSeleccionado(TreeView)
Verifica se existe um nodo selecionado.
Declaration
public bool TreeViewUmSeleccionado(TreeView objTreeView)
Parameters
Type | Name | Description |
---|---|---|
System. |
objTreeView | Objecto contendo as definições de uma TreeView. |
Returns
Type | Description |
---|---|
System. |
ValidaEmail(String)
Valida email.
Declaration
public bool ValidaEmail(string strEmail)
Parameters
Type | Name | Description |
---|---|---|
System. |
strEmail |
Returns
Type | Description |
---|---|
System. |
ValidaNIB(String, StdBETipos.EnumLocalizacaoSede)
Valida um NIB.
Declaration
public bool ValidaNIB(string strNIB, StdBETipos.EnumLocalizacaoSede enuLocalizacao = StdBETipos.EnumLocalizacaoSede.lsPortugalCont)
Parameters
Type | Name | Description |
---|---|---|
System. |
strNIB | NIB a validar. |
Std |
enuLocalizacao | Localização da sede. |
Returns
Type | Description |
---|---|
System. |
ValidaNISS(String, StdBETipos.EnumLocalizacaoSede)
Valida um NISS (Número de Identificação da Segurança Social).
Declaration
public bool ValidaNISS(string strNISS, StdBETipos.EnumLocalizacaoSede enuLocalizacao = StdBETipos.EnumLocalizacaoSede.lsPortugalCont)
Parameters
Type | Name | Description |
---|---|---|
System. |
strNISS | NISS a validar. |
Std |
enuLocalizacao | Localização da sede. |
Returns
Type | Description |
---|---|
System. |
ValidaNumContribuinte(String, StdBETipos.EnumLocalizacaoSede)
Valida um número de contribuinte (NIF).
Declaration
public bool ValidaNumContribuinte(string strNumContribuinte, StdBETipos.EnumLocalizacaoSede enuLocalizacao = StdBETipos.EnumLocalizacaoSede.lsPortugalCont)
Parameters
Type | Name | Description |
---|---|---|
System. |
strNumContribuinte | NIF a verificar. |
Std |
enuLocalizacao | Localização da sede. |
Returns
Type | Description |
---|---|
System. |