   select count(*) from Ordens where pPId={ChaveAtual_0} and iVer=iVAt and tLibCom is null ; Esse Pedido no pode ser alterado porque j foi Enviado.
   select count(*) from Ordens where pPId={ChaveAtual_0} and iVer=iVAt and tLibCom is null 
   select count(*) from Ordens where pPId=1118213 and iVer=iVAt and tLibCom is null 
iTmp=0, lPodeAlterar=1
lPodeAlterar=