	<div ng-controller = "reporteRevenueYSplitsController">
	
	<div class="form-group row">
		<div class="col-sm-1"><label class="control-label" for="estudio">Estudio:</label></div>
		<div class="col-sm-3">
		   <select class="form-control-sm" id="estudios" ng-model="estudio">
               <option value="">Seleccione</option>
               <option ng-repeat="option in estudios" 
                       value="{{option.idEstudio}}" 
                       ng-selected="{{option.idEstudio == estudio}}">{{option.descripcionEstudio}}
               </option>
           </select> 
		</div>
	</div>

	<div class="form-group row">
		<div class="col-sm-1"><label class="control-label" for="tipoAbono">Type:</label></div>
		<div class="col-sm-3">
			<select class="form-control-sm" id="tipoAbono" ng-model="tipoAbono">
				<option value="">Seleccione</option>
				<option value="Type 1 Premium">Type 1 Premium</option>
				<option value="Type 1 Premier">Type 1 Premier</option>
				<option value="Type 2">Type 2</option>
				<option value="EST 1/EST 2">EST 1/EST 2</option>
				<option value="EST 8">EST 8</option>
			</select>
		</div>
	</div>	
	
	<div class="form-group row">
		<div class="col-sm-1"><label class="control-label" for="mes">Mes:</label></div>
		<div class="col-sm-2">
			<input class="form-control required" id="mes" name="mes" type="text" ng-model="fecha" ng-change="cambioFecha()">
		</div>
		<div class="col-sm-1"></div>
		<div class="col-sm-2"></div>
	</div>	
	
	<div class="form-group row">
        <div class="col-sm-6"></div>
		<div class="col-sm-2">
			<button class="btn btn-success" type="button" ng-click="muestraReporte(fecha, tipoAbono, estudio)" >Generar Reporte</button>
		</div>
		
	    <div class="col-sm-2">
			<button ng-disabled="header == null || tabla == null" 
			   type="button" ng-click="imprime('areaImpresion', fecha)" >
			      <img src="${contextPath}/design/img/common/print.png" />
			</button>
			<button ng-disabled="header == null || tabla == null" 
			   id="botonExportar" type="button" 
			   ng-click="descargaReporte(fecha, tipoAbono, 'RRS', estudio)" >
			      <img src="${contextPath}/design/img/common/excel.gif" />
			</button>
		</div>
	
		<div class="col-sm-1"></div>
		
	</div>
	
	<br>
	<br>
	
         <div ng-if="header != null && muestraInformacion" id ="tablaReporteCostoPerView" class="search-table-outter wrapper" >                    				
	              <div id ="areaImpresion">
	              <table class="table table-responsive feesT">
	                	<thead class="">                		
				      		<tr ng-repeat="row in header track by $index" >
								<th ng-if="mostrarColumna(column.cname)" class="encabezados encabezadoTabla" ng-repeat="column in row track by $index" ><div class="angular-with-newlines">{{column.valor}}</div></th>																									     	                			 	
				    		</tr>				    		
				        <thead>
				        <tbody>
		                    <tr ng-if="tabla != null"  ng-repeat="row in tabla track by $index"  >                                                                        		                        		                      		                  		
		                        <td  ng-if="mostrarColumna(column.cname)" ng-style="obtenEstilo(row, column, $parent.$parent.$index, $index,  tabla.length)"  ng-repeat="column in row track by $index" class="tdEditable">		                            
		                       	   <div >{{obtenFiltro(column.valor, row, column, $parent.$parent.$index, $index,  tabla.length)}}</div>
		                        </td>		                  				                  		
		                    </tr>
		                    <tr ng-if="tabla == null"  >                                                                        		                        		                      		                  		
		                        <td colspan="{{header[0].length}}" align="center" >	
		                          No se encontr&oacute; informaci&oacute;n	                            
 		                        </td>		                  				                  		
		                    </tr> 	                    
	                    </tbody>
	                </table>
	                </div>
	    </div> 
	
	
	</div>
