Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.


01. DADOS GERAIS

Produto:

Solucoes_totvs_parceirosexptotvs
SolucaoParcsExpsTOTVSTOTVS Manutenção de Ativos

Linha de Produto:

Linhas_totvs
LinhaLinha Protheus

Segmento:

Segmentos_totvs
SegmentoManufatura

Módulo:

Modulos_totvs_manufatura
ModulosTOTVSManufaturaTOTVS Manufatura (Linha Protheus) - Manutenção de ativos (SIGAMNT)

Função:MNTA291
País:Brasil
Ticket:20319191
Requisito/Story/Issue (informe o requisito relacionado) :DNG-23596


02. DESCRIÇÃO

Descrição:

Ponto de entrada que permite ativar/desativar a exibição de alguns botões da rotina.

Programa Fonte:

MNTA291.PRW

Parâmetros

TipoDescrição
array

Lista contendo os botões possíveis para inativação.

PosiçãoTipoDescrição
1string

Chave para identificar o botão:

ChaveBotão
ORDEM

Ordens de Serviço

FECHA
Fechamento de S.S.
CANCE

Cancelamento da S.S.

HORAS
Reporte de Horas
FILTRO
Filtro
IMPRIMIR
Imprimir
HISTO
Histórico
CARGA
Carga da Equipe
TRANSF
Transferir Atendimento
LEGENDA
Legenda
2objectObjeto de controle do botão, o qual deve ser inativado ou ativado conforme a regra.


03. DEMAIS INFORMAÇÕES

Bloco de código
languagesql
themeEclipse
titleExemplo do P.E. MNTA2910
linenumberstrue
#include 'totvs.ch' 
  
User Function MNTA2910()
  
    Local aButtons := ParamIXB[1]
    Local nInd1    := 0
     
    For nInd1 := 1 To Len( aButtons )
 
        If aButtons[nInd1,1] == 'ORDEM' // Ordem de Serviço

            aButtons[nInd1,2]:Enable()

        EndIf

        If aButtons[nInd1,1] == 'CANCE' // Cancelamento

            aButtons[nInd1,2]:Disable()

        EndIf

        If aButtons[nInd1,1] == 'FECHA' // Fechamento

            aButtons[nInd1,2]:Enable()

        EndIf

        If aButtons[nInd1,1] == 'HORAS' // Reporte de Horas

            aButtons[nInd1,2]:Disable()

        EndIf

        If aButtons[nInd1,1] == 'FILTRO' // Filtro
 
            aButtons[nInd1,2]:Enable()
 
        EndIf

        If aButtons[nInd1,1] == 'IMPRIMIR' // Imprimir
 
            aButtons[nInd1,2]:Disable()
 
        EndIf

        If aButtons[nInd1,1] == 'HISTO' // Historico
 
            aButtons[nInd1,2]:Enable()
 
        EndIf

        If aButtons[nInd1,1] == 'CARGA' // Carga da Equipe
 
            aButtons[nInd1,2]:Disable()
 
        EndIf

        If aButtons[nInd1,1] == 'TRANSF' // Transferir Atendimento
 
            aButtons[nInd1,2]:Disable()
 
        EndIf
        
        If aButtons[nInd1,1] == 'LEGENDA' // Legenda
 
            aButtons[nInd1,2]:Enable()
 
        EndIf

    Next nInd1
  
Return


04. ASSUNTOS RELACIONADOS

  • Não se aplica.



Templatedocumentos