<div ng-controller="imprimirControllerExistencias">
    <div class="modal-header">
        <h3>{{selected.item.titulo}}</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <form class="form-horizontal" role="form">
                <label>Entidade Afetatária</label>
                <br />
                
                <input type="text" placeholder="" class="form-control" style="cursor:default"
                       popover-placement="top"
                       popover-trigger="mouseenter"
                       data-popover="Nome da Entidade"
                       readonly="readonly" ng-model="selectedEdificio.NomeEntidade" />
                <br />
                <div class="col-md-12" style="margin-bottom:15px">

                    <div class="col-md-4">
                        <select class="form-control" ng-init="carregarEdificios()"
                                ng-change="selEdificio(selectedEdificio)"
                                ng-model="selectedEdificio"
                                ng-options="e.EdificioEntidade for e in edificios">
                            <option value="">Qualquer Edifício ...</option>
                        </select>
                    </div>
                    <div class="col-md-4">
                        <select class="form-control"
                                ng-change="selPiso(selectedPiso)"
                                ng-model="selectedPiso"
                                ng-options="e.Descricao for e in selectedEdificio.LstPiso">
                            <option value="">Qualquer Piso ...</option>
                        </select>

                    </div>
                    <div class="col-md-4">
                        <select class="form-control"
                                ng-model="selectedSala"
                                ng-options="e.Descricao for e in selectedPiso.LstSala">
                            <option value="">Qualquer Sala ...</option>
                        </select>
                    </div>

                </div>

                <br />
                
                                
            </form>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-show="selected.item.mostrarBtRelBens==true" ng-click="printRelacaoBens(); ok()">Relação de bens</button>
        <button class="btn btn-primary" ng-show="selected.item.mortrarBtRelExist==true" ng-click="printFichaInv(true); ok()">Excel</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>
</div>




