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

<script src="${contextPath}/design/js/plugins/expand/Expand1.js"></script>
<script src="${contextPath}/js/dda/reporte/amortizacion/reporteAmortizacionSAPDLA.js?v=${versionJS}"></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-xs-2 control-label">Estudio:</label> 
	       <div class="col-xs-2">
              <select id="estudioEleccion" class="form-control" 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>
    	   </div>
    	<label class="col-xs-2 control-label">Contrato:</label> 
	       <div class="col-xs-2">
              <select id="contratoEleccion" class="form-control" disabled>
              </select>
    	   </div>
    	   
    	<label  class="col-xs-2 control-label" for="fecha">Mes de Consulta:</label> 		   	
           <div class="col-xs-2">
              <input  id="fecha"  class="form-control" 
              required> 
           </div> 

    </div>
	
    <div class="form-group"></div>
      
    <div class="form-group">
             <div class="col-xs-4"></div>
<%--     		 <div class="col-xs-4">
    	     	<a href="../../factura/listado/index?pmn=<%=pmnReturn%>" class="btn btn-default col-xs-4" roll="button" >Regresar</a>
    	     </div> --%>
    	     <div class="col-xs-2">       
                 <button class="btn btn-success" id="consultaReporte" type="button">Consulta Reporte</button>
	         </div>
	         <div class="col-xs-2">       
                 <button class="btn btn-info" id="generaExcelReporte" type="button">Exporta Reporte</button>
	         </div>
	         
<!-- 	         <div class="col-xs-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"%>