<?php use_helper( 'UrlFunctions' ); ?>
<?php use_helper( 'IncludePartial' ); ?>
<?php use_helper( 'UtilFunctions' ); ?>
<div class="titleBody descripProy">
    <ul>
        <li style="width:100% !important;">
            Stock Minimo - Faltantes
            <span style="float:right;">
            <input type="button" class="button" value="Regresar List Item" onclick="location.href='<?=buildUrl( "item/list", "" )?>';" style="font-size: 11px;" title="Regresar a Listado de Item">
            </span>
        </li>
    </ul>
</div>

<div id="resultContent" style=""></div>
<div class="block">
    <form action="" method="post" name="form1" id="form1">
        <table class="marco" style="background:#E3E9E2" width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td nowrap="nowrap"><label for="ClienteNom" class="label">C&oacute;digo :</label></td>
                            <td nowrap="nowrap"><input type="text" class="text" name="Codigo" id="Codigo" style="width: 90%"></td>
                            <td nowrap="nowrap"><label for="ClienteNom" class="label">Descripci&oacute;n :</label></td>
                            <td nowrap="nowrap"><input type="text" class="text" name="DescripcionCompleta" id="DescripcionCompleta" style="width: 90%"></td>
                            <td nowrap="nowrap"><label for="IdItemTipo" class="label">Proveedor:</label></td>
                            <td nowrap="nowrap">
                            <?php crearCombo( array( "id"=>"IdPersona", "ParamId"=>"getIdPersona", "ParamDesc"=>"getNombreCompletoLLeno", "style"=>"width:90%" ), $a_MST_PersonaMast ); ?>
                            </td>
                            <td nowrap="nowrap"><label for="IdItemTipo" class="label">Marca:</label></td>
                            <td nowrap="nowrap">
                                <?php crearCombo( array( "id"=>"IdMarca", "ParamId"=>"getIdMarca", "ParamDesc"=>"getDescripcionLocal", "style"=>"width:90%" ), $a_ALM_Marca ); ?>
                            </td>
                            <td nowrap="nowrap">
                                <label for="mostrar_todos" class="label">Mostrar Todos:</label>
                                <input type="checkbox" name="mostrar_todos" id="mostrar_todos" value="1">
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <input type="button" onclick="findControl();" value="Buscar" id="btn_frmFindFeaturesTpl" class="button">
                </td>
            </tr>
        </table>
    </form>
</div>

<?php include_partial( "gridStkMin" ); ?>

<script>
$( document ).bind
(
    'keyup', 
    function( e ) 
    {
        if( e.which === 13 ) //ENTER
        {
            findControl();
        }
        if( e.which === 27 ) //ESCAPE
        {
            //parent.closeWindow();
        }
    }
);
//$( "#CodigoBarras" ).focus();
</script>
