function delete()
 {
     if (isset($_REQUEST)) {
         $ser_id = $_REQUEST['ser_id'];
         $this->series = new tab_series();
         $this->series->setRequest2Object($_REQUEST);
         $this->series->setSer_id($ser_id);
         $this->series->setSer_estado(2);
         $this->series->update();
         $st = new serietramite();
         $st->delete($ser_id);
         $use = new usu_serie();
         $use->deleteXSerie($ser_id);
         $ret = new retdocumental();
         $ret->deleteXSerie($ser_id);
         echo "OK";
     }
 }
 function delete()
 {
     $this->tramite = new tab_tramite();
     $this->tramite->setRequest2Object($_REQUEST);
     $tra_id = $_REQUEST['tra_id'];
     $this->tramite->setTra_id($tra_id);
     $this->tramite->setTra_estado(2);
     $this->tramite->update();
     $st = new serietramite();
     $st->deleteXTramite($tra_id);
     $trc = new tramitecuerpos();
     $trc->deleteXTramite($tra_id);
     echo "OK";
 }