PRIMAVERA | Developers

    Show / Hide Table of Contents

    Class StdBSTabelasTemporarias

    Serviços de manipulação de tabelas temporárias.

    Inheritance
    System.Object
    StdBSTabelasTemporarias
    Implements
    IStdBSTabelasTemporarias
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: StdPlatBS100
    Assembly: StdPlatBS100.dll
    Syntax
    [ComVisible(true)]
    [Guid("FB3A08E3-7A2F-4690-8FE9-0BD49B1B6138")]
    [ClassInterface(ClassInterfaceType.None)]
    public class StdBSTabelasTemporarias : IStdBSTabelasTemporarias

    Methods

    CriaTabela(String, String, String)

    Criação de uma tabela temporária.

    Declaration
    public string CriaTabela(string NomeBase, string SQLDefTabela, string strUID = "")
    Parameters
    Type Name Description
    System.String NomeBase

    Nome da tabela (não incluir os caracteres ## ou o número do posto).

    System.String SQLDefTabela

    Instrução CREATE TABLE (o nome da tabela deve ser substituído por @1@).

    System.String strUID
    Returns
    Type Description
    System.String

    CriaTabelaComSufixo(String, String, ref String)

    Cria Tabela temporária com Sufixo.

    Declaration
    public string CriaTabelaComSufixo(string strNomeBaseTabela, string strSufixo, ref string strSQLDefTabela)
    Parameters
    Type Name Description
    System.String strNomeBaseTabela

    Identificador do nome base da tabela.

    System.String strSufixo

    Identificador do sufixo.

    System.String strSQLDefTabela

    Instrução CREATE TABLE.

    Returns
    Type Description
    System.String

    CriaTabelaCopia(String, String, Boolean, Boolean)

    Cria uma cópia de tabela temporária.

    Declaration
    public bool CriaTabelaCopia(string strNomeOrigem, string strNomeDestino, bool blnIncluiSPID = true, bool blnSubstitui = false)
    Parameters
    Type Name Description
    System.String strNomeOrigem

    Identificador do nome da tabela de origem.

    System.String strNomeDestino

    Identificador do nome da tabbela de destino.

    System.Boolean blnIncluiSPID

    Inclui SPID.

    System.Boolean blnSubstitui

    Substitui.

    Returns
    Type Description
    System.Boolean

    CriaTabelaIdentificador(String, String)

    Criação de um identificador para uma tabela temporária.

    Declaration
    public string CriaTabelaIdentificador(string NomeBase, string strUID = "")
    Parameters
    Type Name Description
    System.String NomeBase

    Nome da tabela (não incluir os caracteres ## ou o número do posto).

    System.String strUID

    Identificador único adicionado como sufixo ao nome da tabela.

    Returns
    Type Description
    System.String

    DaUID()

    Devolve um identificador único para criação de tabela temporária.

    Declaration
    public string DaUID()
    Returns
    Type Description
    System.String

    DestroiTabela(String)

    Remoção de uma tabela da base de dados.

    Declaration
    public void DestroiTabela(string NomeTabela)
    Parameters
    Type Name Description
    System.String NomeTabela

    Nome da tabela a remover (deve incluir o nome completo com ## e o número do posto).

    Finalize()

    Class destructor.

    Declaration
    protected void Finalize()

    LimpaTabela(String)

    Limpa a tabela temporária

    Declaration
    public void LimpaTabela(string strNomeTabela)
    Parameters
    Type Name Description
    System.String strNomeTabela

    Nome da tabela a limpar (deve incluir o nome completo com ##).

    Implements

    IStdBSTabelasTemporarias