public function execute()
 {
     try {
         if (request::getInstance()->isMethod('POST')) {
             $fecha = request::getInstance()->getPost(pVentaTableClass::getNameField(pVentaTableClass::FECHA, false));
             $usuario_id = request::getInstance()->getPost(pVentaTableClass::getNameField(pVentaTableClass::USUARIO_ID, true));
             //                $fields = array(
             //                    pVentaTableClass::FECHA,
             //                    pVentaTableClass::USUARIO_ID
             //                );
             $data = array(pVentaTableClass::FECHA => ${$fecha}, pVentaTableClass::USUARIO_ID => $usuario_id);
             pVentaTableClass::insert($data);
         }
         routing::getInstance()->redirect('pVenta', 'index');
     } catch (PDOException $exc) {
         echo $exc->getMessage();
         echo '<br>';
         echo '<pre>';
         print_r($exc->getTrace());
         echo '</pre>';
     }
 }
                        </td>
                    </tr>
<?php 
}
?>
            </tbody>
        </table>
         <div class="text-right">
             pagina <select id="slgPaginador" onchange="paginador(this,'<?php 
echo routing::getInstance()->getUrlWeb(pVenta, index);
?>
')">
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>

                </select> de 100
            </div>
    </form>
    <form id="frmDelete" action="<?php 
echo routing::getInstance()->getUrlWeb('pVenta', 'delete');
?>
" method="POST">
        <input type="hidden" id="idDelete" name="<?php 
echo pVentaTableClass::getNameField(pVentaTableClass::ID, true);
?>
">
    </form>
</div>

?>
" type="datetime-local" name="<?php 
echo pVentaTableClass::getNameField(pVentaTableClass::FECHA, true);
?>
" ></th>   
                    </tr>
                     <tr>
                        <th>
                            <?php 
echo i18n::__('user', null, 'user');
?>
:
                        </th>
                        <th>
                            <select name="<?php 
echo pVentaTableClass::getNameField(pVentaTableClass::USUARIO_ID, true);
?>
">
                                <?php 
foreach ($objUsuario as $key) {
    ?>
                                    <option value="<?php 
    echo $key->id;
    ?>
">
                                        <?php 
    echo $key->user_name;
    ?>
                                    </option>
                                <?php 
}