if nOpc == 3
cFaseOrc := OI001GETFASE(__cUserId,2)
else
cFaseOrc := OI001GETFASE(VS1->VS1_NUMORC)
endif
// #########################################################
// # Adiciona botões na EnchoiceBar (aNewBot) #
// #########################################################
If ( ExistBlock("OX001ABT") )
aNewBot := ExecBlock("OX001ABT",.f.,.f.,{aNewBot})
EndIf
If ( ExistBlock("OX001OPC") )
aAdd(aNewBot ,{"E5", {|| U_OX001OPC(nOpc) }, STR0174 } )
EndIf
if !FM_PILHA("OFIXA011")
aNewBot := {}
endif
//######################################################################################
//# Se for detectado que trata-se de integracao faz os vetores receberem os parametros #
//######################################################################################
If lOX001Auto
aAutoPecas := xAutoPecas
aAutoServ := xAutoServ
aAutoCab := xAutoCab
aAutoInco := xAutoInco
EndIf