PRIMAVERA | Developers

    Show / Hide Table of Contents

    Class StdBSPainelNotificacoes

    Standard notification panel.

    Inheritance
    System.Object
    StdBSPainelNotificacoes
    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
    public class StdBSPainelNotificacoes

    Constructors

    StdBSPainelNotificacoes()

    Declaration
    public StdBSPainelNotificacoes()

    Methods

    AbrePainelNotificacoes()

    Abre o painel de notificações e dicas.

    Declaration
    public void AbrePainelNotificacoes()

    CreateNotification(String, String, StdBETipos.TipoNotificacao, String, Boolean, Boolean)

    Creates the notification.

    Declaration
    public StdBENotificacao CreateNotification(string strTitulo, string strMensagem, StdBETipos.TipoNotificacao enuTipoNotificacao, string guid, bool blnVolatil, bool criarApenas = false)
    Parameters
    Type Name Description
    System.String strTitulo

    The string titulo.

    System.String strMensagem

    The string mensagem.

    StdBETipos.TipoNotificacao enuTipoNotificacao

    The enu tipo notificacao.

    System.String guid

    The unique identifier.

    System.Boolean blnVolatil

    if set to true [BLN volatil].

    System.Boolean criarApenas

    if set to true [criar apenas].

    Returns
    Type Description
    StdBENotificacao

    CreateNotificationAlert(String, String)

    Creates the notification alert.

    Declaration
    public StdBENotificacao CreateNotificationAlert(string Title, string Message)
    Parameters
    Type Name Description
    System.String Title

    The title.

    System.String Message

    The message.

    Returns
    Type Description
    StdBENotificacao

    CreateNotificationInfo(String, String)

    Creates the notification information.

    Declaration
    public StdBENotificacao CreateNotificationInfo(string Title, string Message)
    Parameters
    Type Name Description
    System.String Title

    The title.

    System.String Message

    The message.

    Returns
    Type Description
    StdBENotificacao

    CreateNotificationMessage(String, String)

    Creates the notification message.

    Declaration
    public StdBENotificacao CreateNotificationMessage(string Title, string Message)
    Parameters
    Type Name Description
    System.String Title

    The title.

    System.String Message

    The message.

    Returns
    Type Description
    StdBENotificacao

    CreateNotificationSuccess(String, String)

    Creates the notification success.

    Declaration
    public StdBENotificacao CreateNotificationSuccess(string Title, string Message)
    Parameters
    Type Name Description
    System.String Title

    The title.

    System.String Message

    The message.

    Returns
    Type Description
    StdBENotificacao

    FechaNotificacao(String)

    Fecha uma notificação. Por omissão fecha a notificação actual.

    Declaration
    public bool FechaNotificacao(string strId = "")
    Parameters
    Type Name Description
    System.String strId

    Identificador da notificação.

    Returns
    Type Description
    System.Boolean

    FechaNotificacoes()

    Fecha todas as notificações.

    Declaration
    public void FechaNotificacoes()

    Finalize()

    Finalizador de classe.

    Declaration
    protected void Finalize()

    MostraAlerta(String, String, Boolean)

    Mostra uma notificação de alerta ou erro.

    Declaration
    public string MostraAlerta(string strTitulo, string strAlerta, bool blnVolatil = false)
    Parameters
    Type Name Description
    System.String strTitulo

    Título da notificação.

    System.String strAlerta

    Notificação a apresentar.

    System.Boolean blnVolatil

    Indica que a notificação desaparece automaticamente após algum tempo.

    Returns
    Type Description
    System.String

    MostraInformacao(String, String, Boolean)

    Mostra uma notificação de informação.

    Declaration
    public string MostraInformacao(string strTitulo, string strInformacao, bool blnVolatil = false)
    Parameters
    Type Name Description
    System.String strTitulo

    Título da notificação.

    System.String strInformacao

    Notificação a apresentar.

    System.Boolean blnVolatil

    Indica que a notificação desaparece automaticamente após algum tempo.

    Returns
    Type Description
    System.String

    MostraMensagem(String, String, Boolean)

    Mostra uma notificação normal.

    Declaration
    public string MostraMensagem(string strTitulo, string strMensagem, bool blnVolatil = false)
    Parameters
    Type Name Description
    System.String strTitulo

    Título da notificação.

    System.String strMensagem

    Notificação a apresentar.

    System.Boolean blnVolatil

    Indica que a notificação desaparece automaticamente após algum tempo.

    Returns
    Type Description
    System.String

    MostraSucesso(String, String, Boolean)

    Mostra uma notificação de sucesso.

    Declaration
    public string MostraSucesso(string strTitulo, string strMensagem, bool blnVolatil = false)
    Parameters
    Type Name Description
    System.String strTitulo

    Título da notificação.

    System.String strMensagem

    Notificação a apresentar.

    System.Boolean blnVolatil

    Indica que a notificação desaparece automaticamente após algum tempo.

    Returns
    Type Description
    System.String

    Events

    AFecharNotificacao

    Remove notification event.

    Declaration
    public event StdBSPainelNotificacoes.ClosingNotificationHandler AFecharNotificacao
    Event Type
    Type Description
    StdBSPainelNotificacoes.ClosingNotificationHandler

    MarkupNotification

    Ocorre para qualquer evento do markup da mensagem cujo event handler seja 'Markup_Notification'.

    Declaration
    public event StdBSPainelNotificacoes.MarkupNotificationHandler MarkupNotification
    Event Type
    Type Description
    StdBSPainelNotificacoes.MarkupNotificationHandler
    Remarks

    Exemplo de uma mensagem de notificação que tira partido deste evento: _ Deseja fechar a aplicação? [Sim] [Não]"