
<div id="resultContent" style=""></div>

<div class="card">
    <div class="container-fluid">
          <div class="form-row mx-0">
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="IdLinea">Linea</label>
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" id="IdLinea" name="IdLinea" onchange="$('#IdFamilia')[0].options.length = 1; publicForSelectAjaxJSON('<?php echo buildUrl( 'item/request' ) ?>', $( 'form' ).serialize() + '&TipoProc=Familia', 'IdFamilia');" required >
                        <option value=""> - Seleccione - </option>
                        <?php foreach ( MST_ClaseLineaFN::selectActivos() as $i_Key => $o_MST_ClaseLineaBN ){ ?>
                        <option value="<?=$o_MST_ClaseLineaBN->getIdLinea()?>" <?php if( $o_MST_ClaseLineaBN->getIdLinea()==$o_MST_ClaseSubFamiliaBN->getIdLinea() ){ echo "SELECTED"; } ?>> <?=$o_MST_ClaseLineaBN->getDescripcion()?> </option>
                        <?php } ?>
                    </select>
                </div>
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="IdFamilia">Familia</label>
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" id="IdFamilia" name="IdFamilia" required>
                        <option value=""> - Seleccione - </option>
                        <?php if( $o_MST_ClaseSubFamiliaBN->getIdLinea() ){ ?>
                            <?php foreach ( MST_ClaseFamiliaFN::selectActivos( $o_MST_ClaseSubFamiliaBN->getIdLinea() ) as $i_Key => $o_MST_ClaseFamiliaBN ){ ?>
                        <option value="<?=$o_MST_ClaseFamiliaBN->getIdFamilia()?>" <?php if( $o_MST_ClaseFamiliaBN->getIdFamilia()==$o_MST_ClaseSubFamiliaBN->getIdFamilia() ){ echo "SELECTED"; } ?>> <?=$o_MST_ClaseFamiliaBN->getDescripcion()?> </option>
                            <?php } ?>
                        <?php } ?>
                    </select>
                </div>
            </div>
                
            <div class="form-row mx-0">
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="Descripcion">Descripcion</label>
                    <input type="text" class="form-control" name="Descripcion" id="Descripcion" placeholder="" value="<?=$o_MST_ClaseSubFamiliaBN->getDescripcion();?>" onblur="this.value=this.value.toUpperCase();" required>
                </div>
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="Codigo">C&oacute;digo</label>
                    <input type="text" class="form-control" name="Codigo" id="Codigo" placeholder="" value="<?=$o_MST_ClaseSubFamiliaBN->getCodigo();?>" onblur="this.value=this.value.toUpperCase();" READONLY>
                </div>
            </div>
            
            <div class="form-row mx-0">
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="Estado">Estado</label>
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" id="Estado" name="Estado" required>
                        <option value=""> - Seleccione - </option>
                        <option value="A" <?php if( $o_MST_ClaseSubFamiliaBN->getEstado()=="A" ){ echo "SELECTED"; } ?>> ACTIVO </option>
                        <option value="I" <?php if( $o_MST_ClaseSubFamiliaBN->getEstado()=="I" ){ echo "SELECTED"; } ?>> INACTIVO </option>
                    </select>
                </div>
                <div class="col-md-6 mb-1">
                    &nbsp;
                </div>
            </div>

        <?php if( !myUser::getUser()->getObjectCompania()->getMostrarNumeroLote() ){ ?>

            <div class="dropdown-divider"></div>
            
            <div class="form-row mx-0">
            
                <div class="col-md-6 mb-1">
                    <div class="custom-control custom-checkbox mr-sm-2">
                        <input type="checkbox" class="custom-control-input" name="EsParaAlquiler" id="EsParaAlquiler" value="SI" <?php if( $o_MST_ClaseSubFamiliaBN->getEsParaAlquiler()=="SI" ){ echo "CHECKED"; } ?>>
                        <label class="custom-control-label text-body" for="EsParaAlquiler">Para Alquiler</label>
                    </div>
                </div>
                <div class="col-md-6 mb-1">
                    <div class="custom-control custom-checkbox mr-sm-2">
                        <input type="checkbox" class="custom-control-input" name="EsParaVenta" id="EsParaVenta" value="SI" <?php if( $o_MST_ClaseSubFamiliaBN->getEsParaVenta()=="SI" ){ echo "CHECKED"; } ?>>
                        <label class="custom-control-label text-body" for="EsParaVenta">Para Venta</label>
                    </div>
                </div>
                <!-- 
                <div class="col-md-3 mb-1">
                    <div class="custom-control custom-checkbox mr-sm-2">
                        <input type="checkbox" class="custom-control-input" name="TieneDescuentoAdelanto" id="TieneDescuentoAdelanto" value="S" <?php if( $o_MST_ClaseSubFamiliaBN->getTieneDescuentoAdelanto()=="SI" ){ echo "CHECKED"; } ?>>
                        <label class="custom-control-label text-body " for="TieneDescuentoAdelanto">Tiene Descuento Adelanto</label>
                    </div>
                </div>
                
                <div class="col-md-3 mb-1">
                    <div class="custom-control custom-checkbox mr-sm-2">
                        <input type="checkbox" class="custom-control-input" name="TieneDescuentoContado" id="TieneDescuentoContado" value="SI" <?php if( $o_MST_ClaseSubFamiliaBN->getTieneDescuentoContado()=="SI" ){ echo "CHECKED"; } ?>>
                        <label class="custom-control-label text-body" for="TieneDescuentoContado">Tiene Descuento al Contado</label>
                    </div>
                </div>
                -->
            </div>
            
            <div class="form-row mx-0">
                <div class="col-md-6 mb-1">
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" name="IdRangoAlquiler" id="IdRangoAlquiler" >
                    <option value="" > - SELECCIONE - </option>
                    <?php foreach ( MST_RangoFN::selectRangoAlquiler() as $o_MST_RangoVtaBN ){ ?>
                    <option value="<?=$o_MST_RangoVtaBN->getIdRango()?>" <?php if( $o_MST_ClaseSubFamiliaBN->getIdRangoAlquiler()==$o_MST_RangoVtaBN->getIdRango() ){ echo "selected"; } ?> > <?=strtoupper( $o_MST_RangoVtaBN->getDescripcion() )?> </option>
                    <?php } ?>
                    </select>
                </div>
                <div class="col-md-6 mb-1">
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" name="IdRangoVenta" id="IdRangoVenta">
                    <option value=""> - SELECCIONE - </option>
                    <?php foreach ( MST_RangoFN::selectRangoVentas() as $o_MST_RangoVtaBN ){ ?>
                    <option value="<?=$o_MST_RangoVtaBN->getIdRango()?>" <?php if( $o_MST_ClaseSubFamiliaBN->getIdRangoVenta()==$o_MST_RangoVtaBN->getIdRango() ){ echo "selected"; } ?>> <?=strtoupper( $o_MST_RangoVtaBN->getDescripcion() )?> </option>
                    <?php } ?>
                    </select>
                </div>
            </div>
            
            <div class="form-group col-14"><hr style="border-top: 1px solid #8c8b8b;"></div>
        <?php } ?>
      
    </div>
</div>
                                                    
<div id="dialog"><iframe id="myIframe" src="" frameborder="0" height="100%" width="100%"></iframe></div>
<script>
    objMainTab.modalUIDialog( "#dialog", { title : "Auditoria", width : 425, height  : 230 } );
</script>
                                                    