<div ng-controller="imprimirControllerF2">
    <div class="modal-header">
        <h3>Imprimir Ficha de Inventário</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <form class="form-horizontal" role="form">
                <label>Entidade Afetatária</label>
                <br />
                <!--<select class="form-control" ng-init="carregarEntidades()"
                        ng-model="selectedEntidade"
                        ng-options="e.NomeEntidade for e in entidades">
                    <option value="">O Agrupamento...</option>
                </select>-->
                <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 />
                <label>Factos Patrimoniais</label>
                <br />
                <select class="form-control"
                        ng-model="selectedTipo"
                        ng-change="selTipo(selectedTipo)"
                        ng-options="e.desc for e in tipos"></select>
                <br />
                <label>Ano</label>
                <br />
                <input type="text"
                       class="form-control"
                       ng-model="ano"
                       maxlength="4"
                       numbers-only
                       placeholder="" />
                <br/>
                <label>Classificação Patrimonial</label>
                <br />
                <select class="form-control" ng-init="carregarClassificacoesPatri()"
                        ng-model="selectedClass"
                        ng-options="cl._CodigoConta+' '+cl._DescricaoConta for cl in classificacoesPatri">
                    <option value="">Qualquer Classificação...</option>
                </select>
                <br />
            </form>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="printFichaInv(true); ok()">Excel</button>
        <button class="btn btn-primary" ng-click="printFichaInv(false); ok()">PDF</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>
</div>


