<?php use_helper( 'UrlFunctions' ); ?>
<?php use_helper( 'IncludePartial' ); ?>
<?php use_helper( 'UtilFunctions' ); ?>

<?php if( $TipoProc == "lstVehiculo" ){ ?>
    <?=crearCombo( 
                    array
                    ( 
                        "name"=>"IdVehiculo", 
                        "ParamId"=>"getIdVehiculo", 
                        "ParamDesc"=>"getVehiculoPlaca", 
                        "style"=>"width:80%;", 
                        "onchange"=>"recuperarComboxTipo( 'lstChofer', 1 );"
                    ), TR_VehiculoFN::selectActivosProg( $FechaProgramada, $Turno ) 
                 )?>
<?php } ?>

<?php if( $TipoProc == "lstChofer" ){ ?>
    <?=crearCombo( 
                    array
                    ( 
                        "name"=>"IdChofer", 
                        "ParamId"=>"getIdChofer", 
                        "ParamDesc"=>"getChoferNombre", 
                        "style"=>"width:70%;",
                        "onchange"=>"buscarRutaAsignada()"
                    ), 
                    TR_ChoferFN::selectActivosProg( $FechaProgramada, $Turno, $Vehiculo ),
                    $i_IdSelect
                 )?>
    <?php if( $i_IdSelect ){ ?>
    <script type="text/javascript">
    setTimeout
    (
        function()
        {
        	buscarRutaAsignada();
        }, 200
    )
    </script>
    <?php } ?>
<?php } ?>