Example #1
0
$ruta_raiz = "..";
if (!isset($_SESSION['dependencia'])) {
    include "{$ruta_raiz}/rec_session.php";
}
error_reporting(7);
include_once "{$ruta_raiz}/include/db/ConnectionHandler.php";
$db = new ConnectionHandler("{$ruta_raiz}");
include_once "{$ruta_raiz}/include/tx/Historico.php";
include_once "{$ruta_raiz}/include/tx/Expediente.php";
$expediente = new Expediente($db);
$radicadosrecibidos == '' ? $radicadosrecibidos = $_GET['radicados'] : ($radicadosrecibidos = $radicadosrecibidos);
$arryradicado = split(",", $radicadosrecibidos);
$encabezado = "{$PHP_SELF}?" . session_name() . "=" . session_id() . "&opcionExp={$opcionExp}&numeroExpediente={$numeroExpediente}&radicadosrecibidos={$radicadosrecibidos}&dependencia={$dependencia}&krd={$krd}&nurad={$nurad}&coddepe={$coddepe}&codusua={$codusua}&depende={$depende}&ent={$ent}&tdoc={$tdoc}&codiTRDModi={$codiTRDModi}&codiTRDEli={$codiTRDEli}&codserie={$codserie}&tsub={$tsub}&ind_ProcAnex={$ind_ProcAnex}";
$band = 0;
if ($funExpediente == "INSERT_EXP") {
    $expediente->getExpediente($_POST['numeroExpediente']);
    if ($expediente->estado == 0) {
        $msg = '<center><b><font color="red">Resultado inclusi&oacute;n de radicados.</font></b></center>';
        $arraymsg = array();
        foreach ($arryradicado as $key => $value) {
            $arrExpedientes = $expediente->expedientesRadicado($value);
            if (in_array($_POST['numeroExpediente'], $arrExpedientes)) {
                $arraymsg[$key] = '<b><font color="red">El radicado ya est&aacute; incluido en el expediente</font></b>';
                $band = 1;
            } else {
                $resultadoExp = $expediente->insertar_expediente($_POST['numeroExpediente'], $value, $dependencia, $codusuario, $usua_doc);
                if ($resultadoExp == 1) {
                    $arraymsg[$key] = '<b><font  color="green">Se incluyo correctamente el radicado</font></b>';
                    $observa = "Archivar radicado en Expediente";
                    include_once "{$ruta_raiz}/include/tx/Historico.php";
                    $radicados[] = $value;
Example #2
0
             $rs = $db->conn->Execute($sqlVerfi);
             if ($rs && $rs->EOF) {
                 $sqlDel = "delete from sgd_carpeta_expediente where sgd_carpeta_id={$selCarpetas} and sgd_exp_numero='{$expNum}'";
                 $db->conn->Execute($sqlDel) ? $error = 6 : ($error = 7);
                 if ($error == 6) {
                     $radicados[] = "NULL";
                     $objHist->insertarHistoricoExp($expNum, $radicados, $_SESSION['dependencia'], $_SESSION['codusuario'], "Se elimina Carpeta No. " . $_POST['txtNCarpeta'], 63, '0');
                 }
             } else {
                 $error = 8;
             }
             break;
     }
     $selCarpetas = 0;
 }
 $expediente->getExpediente($expNum);
 $sql1 = "select '['" . $db->conn->concat_operator . "sgd_carpeta_numero" . $db->conn->concat_operator . "'] '" . $db->conn->concat_operator . "'-' " . $db->conn->concat_operator . "sgd_carpeta_descripcion as ver, ";
 $sql1 .= "sgd_carpeta_id as ID from  sgd_carpeta_expediente where sgd_exp_numero='{$expNum}' order by 1";
 ($rsSel = $db->conn->Execute($sql1)) ? $error = $error : ($error = 3);
 $slcCarp = $rsSel->GetMenu('selCarpetas', $selCarpetas, '0:&lt;&lt seleccione &gt;&gt;', false, false, " id='selCarpetas' class='select' onChange='actualiza();'", false);
 $sqlTbl = "select ce.*\n\t\t\t\t from sgd_carpeta_expediente ce\n\t\t\t\t join sgd_sexp_secexpedientes exp on exp.sgd_exp_numero=ce.sgd_exp_numero\n\t\t\t\t where ce.sgd_exp_numero='{$expNum}' order by sgd_carpeta_csc";
 ($rsTbl = $db->conn->Execute($sqlTbl)) ? $error = $error : ($error = 8);
 if ($rsTbl && !$rsTbl->EOF) {
     $colspan = 7;
     if ($rsTbl->fields['SGD_SEXP_TIPOEXP'] == 2) {
         $colspan = 8;
     }
     $tblCpr = "<br><br><table width='100%'  class='border_tab'><tr><td colspan='{$colspan}' class='titulos2'><center>Carpetas creadas</center></td></tr>";
     $tblCpr .= "<tr><td class='titulos2' align='center'>No. Consecutivo</td>";
     $tblCpr .= "<td class='titulos2' align='center'>Nombre</td><td class='titulos2' align='center'>No. Carpeta</td><td class='titulos2' align='center'>No. Folios</td>";
     while (!$rsTbl->EOF) {
Example #3
0
                     $sql = "select * from sgd_carpeta_expediente where sgd_carpeta_id=" . $_POST['selCarpetas'];
                     $rs = $db->conn->Execute($sql);
                     $codiRegE[0] = $rads;
                     $radiModi = $Historico->insertarHistoricoExp($numExpediente, $codiRegE, $_SESSION['dependencia'], $_SESSION['codusuario'], "Se incluye Radicado en la carpeta No [" . $rs->fields['SGD_CARPETA_NUMERO'] . "] " . $rs->fields['SGD_CARPETA_DESCRIPCION'], 66, 0);
                 }
             }
         }
     }
 }
 $sql1 = "select '['" . $db->conn->concat_operator . "sgd_carpeta_numero" . $db->conn->concat_operator . "'] '" . $db->conn->concat_operator . "'-' " . $db->conn->concat_operator . $db->conn->substr . "(sgd_carpeta_descripcion,0,60) as ver, ";
 $sql1 .= "sgd_carpeta_id as ID from  sgd_carpeta_expediente where sgd_exp_numero='{$numExpediente}' order by 1";
 ($rsSel = $db->conn->Execute($sql1)) ? $error = $error : ($error = 3);
 $slcCarp = $rsSel->GetMenu('selCarpetas', $selCarpetas, '0: Sin Carpeta', false, false, " id='selCarpetas' class='select' ", false);
 $mrdCodigo = $expediente->consultaTipoExpediente("{$numExpediente}");
 $trdExpediente = $expediente->codiSRD . '-' . $expediente->descSerie . " / " . $expediente->codiSBRD . '-' . $expediente->descSubSerie;
 $expediente->getExpediente($numExpediente);
 if ($expediente->nivelExp == 0) {
     $nvExp = "P&uacute;blico";
 } else {
     if ($expediente->nivelExp > 0) {
         $tblSinPermiso = "<html>\n                                    <head><title>Seguridad Expediente</title><link href='{$ruta_raizImg}/estilos/orfeo.css' rel='stylesheet' type='text/css'></head>\n                                    <body>\n                                    <table border=0 width=100% align='center' class='borde_tab' cellspacing='0'>\n                                    <tr align='center' class='titulos2'>\n                                         <td height='15' class='titulos2'>!! SEGURIDAD !!</td>\n                                    </tr>\n                                    <tr >\n                                         <td width='38%' class=listado5 ><center><p><font class='no_leidos'>NO TIENE PERMISOS PARA ACCEDER AL EXPEDIENTE No. {$numExpediente},<br>Este Expediente est&aacute; marcado como confidencial.</font></p></center></td>\n                                    </tr>\n                                    <tr >\n                                            <td height='15' class='titulos2'><center>Favor comunicarse con: " . $expediente->responsableNom . " Dependencia: " . $expediente->depeNomb . "</center></td>\n                                    </tr>\n                                    </table>\n                                    </body>\n                                    </html>";
         if ($expediente->nivelExp == 1 && $_SESSION["usua_admin_archivo"] < 1 || ($expediente->nivelExp == 1 and $expediente->fase < 2)) {
             if ($expediente->responsable != $_SESSION['usua_doc'] && $expediente->responsable != $_SESSION['usua_doc']) {
                 die($tblSinPermiso);
             }
             $nvExp = "Privado";
         }
         if ($expediente->nivelExp == 2 && $_SESSION["usua_admin_archivo"] < 1 || ($expediente->nivelExp == 2 and $expediente->fase < 2)) {
             if ($expediente->depCodi != $_SESSION['dependencia'] && $expediente->responsable != $_SESSION['usua_doc']) {
                 die($tblSinPermiso);
             }
Example #4
0
 //$db->conn->debug=true;
 include "{$ruta_raiz}/include/tx/Expediente.php";
 $obj_exp = new Expediente($db);
 if ($numExpediente && substr(base64_decode($numExpediente), -1) === '%') {
     $numExpediente = substr(base64_decode($numExpediente), 0, strlen(base64_decode($numExpediente)) - 1);
     if (isset($_POST['Grabar'])) {
         if ($chkCierre) {
             $fechaCerrar = $fechaCierre;
             $cerrado = 1;
             $fase = 0;
         } else {
             $cerrado = 0;
             $fase = 0;
         }
         $band = false;
         $obj_exp->getExpediente($numExpediente);
         if ($nivelExp != $obj_exp->nivelExp || ($nivelExp == 3 and $selUsuPriv)) {
             $band = true;
         }
         /***************************** MODIFICAR METADATOS ******************/
         $db->conn->StartTrans();
         $tabla = "SGD_MMR_MATRIMETAEXPE";
         $r['SGD_EXP_NUMERO'] = $numExpediente;
         foreach ($_POST as $k => $v) {
             if (substr($k, 0, 8) == "txt_mtd_") {
                 $idMtd = substr($k, 8);
                 $r['SGD_MTD_CODIGO'] = $idMtd;
                 $r['SGD_MMR_DATO'] = $_POST['txt_mtd_' . $idMtd];
                 $db->conn->Replace(&$tabla, $r, array('SGD_EXP_NUMERO', 'SGD_MTD_CODIGO'), true);
             }
         }
Example #5
0
    $numeroExpediente = substr(base64_decode($numeroExpediente), 0, strlen(base64_decode($numeroExpediente)) - 1);
    if (!$krd) {
        $krd = $krdOld;
    }
    if (!$ruta_raiz) {
        $ruta_raiz = "..";
    }
    include "{$ruta_raiz}/rec_session.php";
    include_once "{$ruta_raiz}/include/db/ConnectionHandler.php";
    include_once "{$ruta_raiz}/include/tx/Historico.php";
    include_once "{$ruta_raiz}/include/tx/Expediente.php";
    //$db->conn->debug=true;
    $db = new ConnectionHandler("{$ruta_raiz}");
    $objHistorico = new Historico($db);
    $expediente = new Expediente($db);
    $expediente->getExpediente($numeroExpediente);
    $encabezadol = "{$PHP_SELF}?" . session_name() . "=" . session_id() . "&numeroExpediente=" . base64_encode($numeroExpediente . '%') . "&dependencia={$dependencia}&krd={$krd}&numRad={$numRad}&coddepe={$coddepe}&codusua={$codusua}&depende={$depende}&codserie={$codserie}";
    !$numRad ? $numRad = "null" : 0;
} else {
    $tblSinPermiso = "<html>\n                                    <head><title>Seguridad Expediente</title><link href='../estilos/orfeo.css' rel='stylesheet' type='text/css'></head>\n                                    <body>\n                                    <table border=0 width=100% align='center' class='borde_tab' cellspacing='0'>\n                                    <tr align='center' class='titulos2'>\n                                         <td height='15' class='titulos2'>!! SEGURIDAD !!</td>\n                                    </tr>\n                                    <tr >\n                                         <td width='38%' class=listado5 ><center><p><font class='no_leidos'>ACCESO INCORRECTO.</font></p></center></td>\n                                    </tr>\n                                    </table>\n                                    </body>\n                                    </html>";
    die($tblSinPermiso);
}
?>
<html height=50,width=150>
<head>
<title>Cambiar Responsable</title>
<link rel="stylesheet" href="../estilos/orfeo.css">
<CENTER>
<body bgcolor="#FFFFFF">
<div id="spiffycalendar" class="text"></div>
 <link rel="stylesheet" type="text/css" href="../js/spiffyCal/spiffyCal_v2_1.css">