function CommitTrans($ok=true)
	{
		   if (!$ok) return $this->RollbackTrans();
		   $ret = ora_commit($this->_connectionID);
		   ora_commiton($this->_connectionID);
		   return $ret;
	}
Example #2
0
if ($radicar_documento) {
    $arpdf = "rad_salida/{$fano}/{$dependencia}/{$fmes}/2{$archivo_sal}.pdf";
    $pdf->Output($arpdf);
    echo "<B><CENTER><a href={$arpdf}?fecha_h={$fechah}> Ver Archivo Pdf </a><br>";
    if ($sec) {
        $plg_codi = str_pad($numero_pla, 4, "0", STR_PAD_left);
        $plg_comentarios = "";
        $plt_codi = $plt_codi;
        $rad_salida = "2" . $rad_salida;
        $isql = "update PL_GENERADO_PLG set PLT_CODI=2,RADI_NUME_SAL={$rad_salida},\n\t\t           PLG_ARCHIVO_FINAL='{$arpdf}',PLG_CREA_FECH=SYSDATE\t\t   \n\t\t           where PLG_CODI={$plantillaper1} and RADI_NUME_RADI={$numrad}";
        ora_commiton($handle);
        $cursor = ora_open($handle);
        ora_parse($cursor, $isql) or die("No se ha podido Grabar el Radicado");
        ora_exec($cursor) or die("No se ha podido Grabar el Radicado");
        $actualizados = ora_numrows($cursor);
        ora_commit($handle);
        ?>
<p>
  <center>
    <?php 
        if ($actualizados > 0) {
            ?>
	
    Ha sido Radicado el Documento con el N&uacute;mero <b>
    2<?php 
            echo $rad_definitivo;
            ?>
	<?php 
        } else {
            ?>
	No se ha podido radicar el Documento con el N&uacute;mero <b>
Example #3
0
 function CommitTrans()
 {
     $ret = ora_commit($this->_connectionID);
     ora_commiton($this->_connectionID);
     return $ret;
 }
Example #4
0
 function commit()
 {
     if (!$this->isConnect) {
         return false;
     }
     return ora_commit($this->connection);
 }