1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | # include 'protheus.ch'
user function PLSAUT02()
local aRet := ParamIXB[01]
local dData := ParamIXB[02]
local cHora := ParamIXB[03]
local cCdTbPd := ParamIXB[04]
local cCodPro := ParamIXB[05]
local nQtd := ParamIXB[06]
local cCid := ParamIXB[07]
local cLOCALExec := ParamIXB[08]
local cOpeSol := ParamIXB[09]
local cCodPRFSol := ParamIXB[10]
local cCodInt := ParamIXB[11]
local cCodRda := ParamIXB[12]
local cCodLoc := ParamIXB[13]
local cLocal := ParamIXB[14]
local cCodEsp := ParamIXB[15]
local cOpeUsr := ParamIXB[16]
local cMatrUsr := ParamIXB[17]
local cPadInt := ParamIXB[18]
local aDadUsr := ParamIXB[19]
local aDadRda := ParamIXB[20]
local cTpLocExec := ParamIXB[21]
local cAteRNA := ParamIXB[22]
local lSuaRegra := .T.
local aCriticas := {}
local cNivel := ""
local cCodCriEsp := "799"
local cDesCriEsp := "TESTE"
If PLSPOSGLO(PLSINTPAD(),cCodCriEsp,cDesCriEsp,cLOCALExec)
cNivel := "ZAA"
if !lSuaRegra
aAdd(aCriticas,{cCodCriEsp,cDesCriEsp, '' ,BCT->BCT_NIVEL,BCT->BCT_TIPO,cCdTbPd,cCodPro})
aRet := {.F.,aCriticas,cNivel, '' ,.F.}
else
aRet := {.T., '' ,cNivel, '' }
endif
endif
return (aRet)
|