PRIMAVERA | Developers

    Show / Hide Table of Contents

    Class clsEmpresas

    Colecção das empresas registadas no sistema.

    Inheritance
    System.Object
    StdBE
    StdBaseBE
    clsEmpresas
    Implements
    System.Collections.Generic.IEnumerable<clsFichaEmpresa>
    System.Collections.IEnumerable
    Inherited Members
    StdBE.SerializeJson()
    StdBE.SerializeJson(List<String>)
    StdBE.ParseJsonText(String, List<String>)
    StdBE.SerializeJsonToXml(String, List<String>)
    StdBE.SerializeXml(XmlAttributeOverrides, XmlSerializerNamespaces)
    StdBE.Clone()
    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: AdmEngine100
    Assembly: AdmEngine100.dll
    Syntax
    public class clsEmpresas : StdBaseBE, IEnumerable<clsFichaEmpresa>, IEnumerable

    Constructors

    clsEmpresas()

    Create new instance of clsEmpresas.

    Declaration
    public clsEmpresas()

    clsEmpresas(IEnumerable<clsFichaEmpresa>)

    Creates and populates a new instance of clsEmpresas.

    Declaration
    public clsEmpresas(IEnumerable<clsFichaEmpresa> items)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<clsFichaEmpresa> items

    Properties

    Count

    Número de elementos da colecção.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[Object]

    Devolve uma empresa existente na colecção.

    Declaration
    public clsFichaEmpresa this[object vntIndexKey] { get; }
    Parameters
    Type Name Description
    System.Object vntIndexKey

    Identificador da empresa ou o índice da empresa na colecção.

    Property Value
    Type Description
    clsFichaEmpresa

    Methods

    Actualiza(clsFichaEmpresa)

    Actualização dos dados de uma empresa.

    Declaration
    public void Actualiza(clsFichaEmpresa FicEmp)
    Parameters
    Type Name Description
    clsFichaEmpresa FicEmp

    Objecto (clsFichaEmpresa) correspondente à empresa.

    Add(String, String)

    Adiciona um elemento à colecção de empresas.

    Declaration
    public clsFichaEmpresa Add(string Emp, string Nome)
    Parameters
    Type Name Description
    System.String Emp

    Identificador da empresa.

    System.String Nome

    Nome da empresa.

    Returns
    Type Description
    clsFichaEmpresa

    Edita(String)

    Declaration
    public clsFichaEmpresa Edita(string Emp)
    Parameters
    Type Name Description
    System.String Emp
    Returns
    Type Description
    clsFichaEmpresa

    EditaDadosMinimos(String)

    Declaration
    public clsFichaEmpresa EditaDadosMinimos(string Emp)
    Parameters
    Type Name Description
    System.String Emp
    Returns
    Type Description
    clsFichaEmpresa

    ExisteEmpresa(String)

    Verifica se uma determinada empresa existe no sistema.

    Declaration
    public bool ExisteEmpresa(string Emp)
    Parameters
    Type Name Description
    System.String Emp

    Identificador da empresa.

    Returns
    Type Description
    System.Boolean

    GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An System.Collections.IEnumerator object that can be used to iterate through the collection.

    Insere()

    Insere uma nova empresa na colecção.

    Declaration
    public clsFichaEmpresa Insere()
    Returns
    Type Description
    clsFichaEmpresa

    Lst_Empresas()

    Lista de todas as empresas existentes no sistema.

    Declaration
    public StdBELista Lst_Empresas()
    Returns
    Type Description
    StdBELista

    O objecto devolvido corresponde a uma classe idêntica a um RecordSet que contém todos os dados de cada uma das empresas. Os elementos de cada registo são identificados pelo nome físico da coluna na base de dados.

    Remove(String)

    Remove uma empresa do sistema.

    Declaration
    public void Remove(string Emp)
    Parameters
    Type Name Description
    System.String Emp

    Identificador da empresa.

    Remarks

    A base de dados correspondente não será removida.

    Explicit Interface Implementations

    IEnumerable<clsFichaEmpresa>.GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    IEnumerator<clsFichaEmpresa> IEnumerable<clsFichaEmpresa>.GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<clsFichaEmpresa>

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable