Product Line |
: | Microsiga Protheus | ||||
SegmentoSegment: | ServiçosServices | ||||
Module: | FinanceiroFinancials | ||||
RotinaRoutine: |
| ||||
Initial Registrations: | Cadastro de filiaisBranch Registration, SM0 Ponto de Entrada | ||||
Entry Point: | CTSETFIL | ||||
Chamados RelacionadosRelated ticket | TTXIYS | ||||
País(es)Countries: | Todos | Banco(s) de DadosAll | |||
Database: | TodosAll | ||||
Tabelas UtilizadasTables used: | SM0 | ||||
Operating Systems: | TodosAll | ||||
VersõesVersion/Release: | 11.80 |
Description |
: |
| ||||||||||||||
Localização: | Este ponto de entrada é utilizado em diversas rotinas dos módulos da Controladoria. | ||||||||||||||
Eventos: | A função AdmGetFil é utilizada por diversas rotinas da controladoria, sendo exibida uma janela para seleção de filiais | ||||||||||||||
Programa Fonte: | ADMXFUN | ||||||||||||||
Função: | ADMGETFIL | ||||||||||||||
Location: | This entry point is used in several routines within the Controllership modules. | ||||||||||||||
Events: | The AdmGetFil function is used by various controllership routines, displaying a window for branch selection | ||||||||||||||
Source Program: | ADMXFUN | ||||||||||||||
Function: | ADMGETFIL | ||||||||||||||
Return: |
| Retorno: |
|
ExemploExample:
#Include 'Protheus.ch'
User Function CtSetFil()
Local aArea := SM0->( GetArea() )
Local aAuxArea := GetArea()
Local aRetSM0 := {}
DbSelectArea( "SM0" )
SM0->( DbGoTop() )
DbSeek(cEmpAnt)
While SM0->( !Eof() ) .AND. SM0->M0_CODIGO = cEmpAnt
aAdd( aRetSM0, {SM0->M0_CODFIL,SM0->M0_FILIAL,LEFT(SM0->M0_CGC,2)+"."+SUBSTR(SM0->M0_CGC,3,3)+"."+SUBSTR(SM0->M0_CGC,6,3)+"/"+SUBSTR(SM0->M0_CGC,9,4)+"-"+SUBSTR(SM0->M0_CGC,13,2)} )
SM0->(DbSkip())
EndDo
RestArea( aArea )
RestArea( aAuxArea )
Return aRetSM0