inicio
1) ssql = select pPId,pUFis,pUO,pCOp from OOp where pUsu=379 and lExc=0 and iVer=iVAt
2) ssql = select pRAtiv from CUP where pPId=379 and iVer=iVAt
3) ssql = select a.pTDoc,a.pDoc,a.jLer,a.jInc,a.jDel,a.jAlt,b.sMnem,b.jTipo,a.sCod,a.sDes from RAc a, TDoc b where a.iVer=a.iVAt and a.lExc=0 and b.pPId=a.pTDoc and b.iVer=b.iVAt and ((((a.pUFis = 0) or (a.pUFis = 0)) 
               and ((a.pUO   = 0) or (a.pUO   = 2)) 
               and ((a.pCOp  = 0) or (a.pCOp  = 3)) 
               and ((a.pUsu  = 0) or (a.pUsu  = 379)) 
               and ((a.pOOp  = 0) or (a.pOOp  = 86)) 
               and  ((a.pUFis+a.pUO+a.pCOp+a.pUsu+a.pOOp>0) or (a.jAlvo=6)))) order by a.pTDoc,a.pDoc,a.jAlvo desc,a.pPId
5) ssql = select distinct a.pPOP,b.sPop from POP_XXX a, POPs b where a.jXXX=1 and a.pXXX in (3) and a.pPOP=b.pPId and b.iVer=b.iVAt and a.lExc=0 and b.lExc=0 and a.iVer=a.iVAt
1 - paIndice[7][24]=
1b
2 - j=0
5
6 - jj=0
b) paIndice[7][24]=0
7
8
6) ssql = select distinct a.pXXX,b.sDescricao from POP_XXX a, Eq b where a.jXXX=2 and a.pPOP in (24) and a.pXXX=b.pPId and b.iVer=b.iVAt and b.lExc=0
7) ssql = select distinct a.pXXX,b.sPop       from POP_XXX a, POPs b where a.jXXX=3 and a.pPOP in (24) and a.pXXX=b.pPId and b.iVer=b.iVAt and b.lExc=0
8) ssql = select distinct a.pXXX,b.sDoc from POP_XXX a, TDoc b where a.jXXX=4 and a.pPOP in (24) and a.pXXX=b.pPId and b.iVer=b.iVAt and b.lExc=0
9) ssql = select pPId from TDoc where sMnem='TopAta' and iVer=iVAt
10) ssql = select distinct a.pPId,a.sTopAta,a.pAta from TopAta a, Ata_CUP b where a.pAta=b.pTDoc and a.iVer=a.iVAt and a.lExc=0 and b.lExc=0 and b.iVer=b.iVAt and b.pCUP=379
10) a
10) b
11) ssql = select a.pPId,a.tIni,a.pTDoc from Ata a, Ata_CUP b where a.pPId=b.pAta and a.iVer=a.iVAt and a.lExc=0 and b.lExc=0 and b.iVer=b.iVAt and b.pCUP=379
12) ssql = select pPId from TDoc where sMnem='Temas' and iVer=iVAt
13) ssql = select a.pPId,a.sDoc from TDoc a where ( a.pPId=0 ) and a.iVer=a.iVAt and a.lExc=0
14) select a.pPId,a.sDoc from TDoc a where ( a.pPId=0 ) and a.iVer=a.iVAt and a.lExc=0 count=0
15) ssql = select pPId from TDoc where sMnem='TopAta' and iVer=iVAt
16) ssql = select a.pPId,a.sTopAta,b.pTDoc from TopAta a, AtasTemas_CUP b where a.pAta=b.pTDoc and a.iVer=a.iVAt and b.iVer=b.iVAt and a.lExc=0 and b.lExc=0 and b.pCUP=379
17) ssql = select pPId from TDoc where sMnem='Temas' and iVer=iVAt
18) ssql = select a.pPId,a.sDoc from TDoc a, AtasTemas_CUP b where a.iVer=a.iVAt and b.iVer=b.iVAt and a.lExc=0 and b.lExc=0 and a.pPId=b.pTDoc and b.pCUP=379
19) ssql = select pPId from TDoc where sMnem='TDocU' and iVer=iVAt
20) ssql = delete from URAc where pUsu=379
22) ssql = insert into URAc (pUsu , pTDoc, pDoc, sCod, sDes, jLer, jInc, jDel, jAlt, sHist) values (379,7,24,'','Manuteno - Banco de Dados Firebird',2,0,0,0,'/27')