<table class="grid" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="border-bottom: medium none;">
    <tbody>
        <tr>
            <th width="10%" align="center" style="border-top-left-radius: 5px;"" >N&deg;Doc</th>
            <th width="40%" align="center" nowrap>Nombre/Raz&oacute;n</th>
            <th width="28%" align="center" nowrap> Distrito </th>
            <th width="11%" align="center" nowrap style="border-top-right-radius: 5px;"> &nbsp; </th>
        </tr>
    </tbody>
    <tbody>
    <?php foreach ( $a_VTA_Documento as $i_Key => $o_VTA_DocumentoBN ){ ?>
        <?php if( TR_RutaDetalleFN::existeDocumentoreferencia( $o_VTA_DocumentoBN->getDocumentoTipoSerieNumero() ) ){ ?>
            <?php continue ?>
        <?php } ?>
        <?php $IdTr = "TR_".$i_Key ?>
    <tr>
        <td align="center" class="row">
            <div id="<?=$IdTr."_DIV"?>" class="ui-widget-content" code="<?=$o_VTA_DocumentoBN->getIdConcat()?>" style="cursor:pointer;">
                <?=$o_VTA_DocumentoBN->getDocumentoTipoSerieNumero()?>
            </div>
        </td>
        <td align="left" class="row"><?=$o_VTA_DocumentoBN->getClienteNombre()?></td>
        <td align="center" class="row"><?=$o_VTA_DocumentoBN->getClienteReferencia()?></td>
        <td align="center" class="row"> <input type="button" class="button" value="Detalle" style="margin: 1px; padding-bottom: 0; padding-top: 0;" onclick="mostrarConsolidadoDocumento( '<?=$o_VTA_DocumentoBN->getDocumentoTipoSerieNumero()?>', '1' );"> </td>
    </tr>
    <?php } ?>
    </tbody>
    <tbody>
        <tr>
            <th align="center" style="border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;" colspan="4"> &nbsp; </th>
        </tr>
    </tbody>
</table>
<?php if( $a_VTA_Documento ){ ?>
<script type="text/javascript">
$( ".ui-widget-content" ).draggable
(
    { 
        cursor: "move",
        revert: true, helper: "clone", appendTo: 'body', scroll: false,
        start: function( e, ui )
        {
            console.log( arguments );
            $( ui.helper ).addClass( "ui-draggable-helper" );
        }
    }
);
</script>
<?php } ?>