
<%@include file="/jsp/common/defaultTopLogin.jsp"%>

<script src="${contextPath}/js/common/perfil/perfilService.js?v=${versionJS}"></script>
<script src="${contextPath}/js/common/perfil/perfilController.js?v=${versionJS}"></script>
<script src="${contextPath}/design/js/plugins/expand/Expand1.js"></script>
<script src="${contextPath}/js/dda/reporte/amortizacion/reporteAmortizacionSAPDLA.js?v=${versionJS}"></script>

<script>
	$().ready(function() {
		var perfilController = new PerfilController();
		perfilController.ejecutarPerfil('209');
	});
</script>

<link rel="stylesheet" href="${contextPath}/design/css/addons/theme_medium_purple/select2.css"/>


<form name="myform" id="formaId" method="POST"
	enctype="multipart/form-data" >

	<div class="form-group">	
		<label class="col-sm-1 control-label">Estudio:</label> 
        <select id="estudioEleccion" class="col-sm-3 form-control-sm" onchange="llamaObtenerContratos()" required>
	     	<option value=""> Seleccione </option>
	     	<option value="-1" > Todos </option>
	        <c:forEach var="m" items="${listaEstudios}">
	        <option value="${m.idEstudio}" > ${m.descripcionEstudio} </option>
	        </c:forEach>
        </select>
    	<label class="col-sm-1 control-label">Contrato:</label> 
        <select id="contratoEleccion" class="col-sm-2 form-control-sm" disabled>
        </select>
    	   
    	<label  class="col-sm-2 control-label" for="fecha">Mes de Consulta:</label> 		   	
           <div class="col-sm-2">
              <input  id="fecha"  class="form-control" 
              required> 
           </div> 

    </div>
	
    <div class="form-group"></div>
      
    <div class="form-group">
             <div class="col-sm-4"></div>
<%--     		 <div class="col-sm-4">
    	     	<a href="../../factura/listado/index?pmn=<%=pmnReturn%>" class="btn btn-default col-sm-4" roll="button" >Regresar</a>
    	     </div> --%>
    	     <div class="col-sm-2">       
                 <button class="btn btn-success" id="consultaReporte" type="button">Consulta Reporte</button>
	         </div>
	         <div class="col-sm-2">       
                 <button class="btn btn-info" id="generaExcelReporte" type="button">Exporta Reporte</button>
	         </div>
	         
<!-- 	         <div class="col-sm-4">
	 	         <div id='botonConsultarFactura'> </div>
	 	     </div>	 -->
    </div>
    
<!--     var url = contextPath +'/contrato/amortizacion/excelAmortizacion.action?idEstudio=' + $("#idEstudio").val() + '?fecha='+ $("#fecha").val();
window.open(url); -->
	
	<div class="form-group"></div>
	<div class="form-group"></div>
	<div class="form-group"></div>
	
	<div class='alert alert-dismissible alert-warning' id="loadingDiv" style="display: block;">
		<span>Cargando reporte...</span>
	</div>
	<div id='tablaAmortizacionDetalle'> </div>
</form>

<%@include file="/jsp/common/defaultBottomLogin.jsp"%>