...
| Portuguese | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Entry Point Ponto-de-Entrada: CTB120OK - Validação Rateios externosExternal appointments validation
Descrição Description: O ponto de entrada CTB120OK permite validação dos dados preenchidos.Executado no momento em que é utilizado a opção ok na tela de gravação/manutenção de rateios externos The entry point CTB120OK allows for validation of the entered data. It is executed when the 'OK' option is used on the external appointments recording/maintenance screen. Source Program Programa FonteCTBA120.PRW SintaxeSyntax CTB120OK - Validação Rateios externosExternal appointments validation ( [ nopc ] ) --> lRet ParâmetrosParameters:
Retorno Return lRet ( logicological) Retorno da validação do ponto de entradaObservações Utiliza-se da variavel nopc para diferenciar entre as operações : nopc 3 = Inclusão nopc 4 = Alteração nopc 5 = Exclusão Return value of the entry point validation Notes The variable 'nopc' is used to differentiate between the operations: nopc 3 = Add nopc 4 = Change nopc 5 = Deletion" Examples User Function CTB120OK()Local lRet := .T. ExemplosUser Function CTB120OK()Local lRet := .T.dbSelectArea("TMP") dbGotop()While !Eof() if paramixb[1] == 33 if TMP->CTJ_DEBITO == TMP->CTJ_ CREDIT msgalert("As contas de rateio nao podem ser as mesmas na inclusão") lRet := .F. End if Elseif paramixb[1] == 4 ifCREDIT msgalert("The apportionments accounts cannot be the same during Add") == TMP->CTJ_ CREDIT msgalert("As contas de rateio nao podem ser as mesmas na alteração") lRet := .F. End if Elseif paramixb[1] == 5 ifCREDIT msgalert("The allocation accounts cannot be the same during change.") lRet := .F. End if Elseif paramixb[1] == 5 if TMP->CTJ_DEBITO == TMP->CTJ_ CREDIT msgalert("Não é permitido exclusões com a mesma conta") lRet := .F. End if Endif dbSkip() EndDo ReturnCREDIT msgalert("Deletions with the same account are not allowed.") lRet := .F. End if Endif dbSkip() EndDo Return lRet |