Versões comparadas

Chave

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

01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF)

Function:

ATFA010A

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

You can use entry point AF010CHP to validate the registration number of an asset while completing it. It allows the application of customized rules to validate the contents of the registration number field before saving it.

03. OTHER INFORMATION

Bloco de código
languagecpp
themeRDark
titleHandling of EP in the system
IF ExistBlock("AF010CHP")    
      lRet := ExecBlock("AF010CHP",.F.,.F.,{cChapa,lRepChapa})
      lRet := IIF(ValType(lRet) == "L",lRet,.F.)    
ENDIF
Bloco de código
languagecpp
themeRDark
titleEP Example
User Function AF010CHP()

      Local cChapa := Paramixb[1]
      Local lRepChapa := Paramixb[2]
      Local lRet := .T.

      Alert("Entry point AF010CHP executed")

      dbSelectArea("SN1")
      dbSetOrder(2)

      If dbSeek(xFilial("SN1")+cChapa) .Or. Empty(cChapa)
            Alert("Registration Number already exists or blank")
            lRet := .F.
      EndIf

Return lRet
Aviso
titleImportant
  • It is noteworthy that the customer is responsible for EP utilization and its impacts on the system.
  • The examples used in this documentation are for demonstration purposes only. Each customer must check what behavior they want to perform according to the scope of the entry point.

04. RELATED SUBJECTS

  • Not Applicable.