<%@include file="/WEB-INF/includeTemplate.inc"%>
<%@page import="com.ejie.ad74a.util.constantes.Constantes"%>

<div id="dialogBandejaPapel0" style="display: none" class="custom_full_dialog">
		
	<!-- Feedback del detalle de la bandeja telemática-->
	<div id="bandejapapel0_detail_feedback"></div>
	
	
	<input type="hidden" value="<c:out value="${param.tableName}"/>" id="tableName"  />	
	<!-- Formulario para obtener los datos del detalle -->
	
	
<%-- 		<div class="clsCabecera plegable"><i class="mdi mdi-minus-box-outline"></i><spring:message code="bandejas.telematica.detail.datosGenerales"/></div> --%>
	<form:form modelAttribute="bandejapapel0" id="bandejapapel0_dialog_form" action="" method="POST">
		<form:hidden id="idEntrada12Detail" path="idEntrada12"/>	
		<form:hidden path="expediente.numExpediente00" id="numExpediente00Detail"/>
		<form:hidden path="expediente.idExpediente00" id="idExpediente00Detail"/>	
		<form:hidden path="observaciones12" id="observaciones12Detail"/>	
		<form:hidden path="numExpediente12" id="numExpediente12Detail"/>	
		<form:hidden path="estado12" id="estado12Detail"/>
		<form:hidden path="numRegistro12" id="numRegistro12Detail"/>
		<form:hidden path="procedureid12" id="procedureid12"/>
		<div class="detalle_cabecera">
			<div id="datos_generales" class="seccion detalle_datos_generales">	
			
				<fieldset style="padding-bottom: 0;">
					<div class="form-row row">
						<div class="col-sm-3">
							<label class=""><spring:message code="bandejas.papel0.fechaRegistro"/>:</label>
							<span class="datosResumen" id="fechaRegistroDetailPapel0"></span>
						</div>
						<div class="col-sm-3">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.numeroRegistro"/>:</label>
							<span class="datosResumen" id="numeroRegistroDetailPapel0"></span>
						</div>
						<div class="col-sm-3">
							<label class=""><spring:message code="bandejas.papel0.fechaRegOriginal"/>:</label>
							<span class="datosResumen" id="fRegOriginalDetail"></span>
						</div>
						<div class="col-sm-3">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.numeroRegOriginal"/>:</label>
							<span class="datosResumen" id="numRegOriginalDetail"></span>
						</div>																
					</div>		
					<div class="form-row row">
						<div class="col-sm-3">					
							<label class="lbl-xs"><spring:message code="bandejas.papel0.tipoEntrada"/>:</label>
							<span class="datosResumen" id="tipoEntradaDetailPapel0"></span>
						</div>
						<div class="col-sm-3">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.procedimiento"/>:</label>
							<span class="datosResumen" id="procedimientoDetailPapel0"></span>
						</div>
						<div class="col-sm-6">	
							<label class=""><spring:message code="bandejas.papel0.detail.procesarComo"/>:</label>
							<div class="form-groupMaterial" style="margin-top: 0; display: grid;">									
								<form:input path="tipoProceso12" id="tipoProceso12DetailPapel0" />								
							</div>												
						</div>					
					</div>
					<div class="form-row row">
						<div class="col-sm-6">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.remitente"/>:</label>
							<span class="datosResumen" id="remitenteDetail"></span>
						</div>						
						<div class="col-sm-3">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.numExpediente"/>:</label>
							<span class="datosResumen" id="expedienteDetailPapel0"></span>
						</div>
						<div class="col-sm-3" id="urgenciaLayer">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.urgencia"/>:</label>
							<div class="form-groupMaterial" style="margin-top: 0; display: grid;">
								<form:select path="urgencia12" id="urgenciaDetailPapel0" style="width: 100px">		
									<form:options items="${nivelesUrgencia}" itemLabel="descripcion" itemValue="value" />
							    </form:select>
							</div>																	
						</div>											
					</div>
					<div class="form-row row">
						<div class="col-sm-3">
							<label class="lbl-xs"><spring:message code="bandejas.papel0.qr"/>:</label>
							<span class="datosResumen" id="qrDetail"></span>
						</div>						
						<div class="col-sm-9">
							<div id="resumenDetailLayer"></div>
						</div>											
					</div>
<!-- 					<div id="resumenDetailLayer"></div> -->
				</fieldset>
			</div>
		</div>
		</form:form>
		
		<div id="informeSocialLayer" class="d-none focussed">					
			<div id="feedbackInfo" role="alert" class="rup-feedback rup-feedback_image rup-feedback_image_info" style="display: block; visibility: visible; opacity: 100;">
				<i class="mdi mdi-information"></i>
				<div id="feedbackInfo_content">
					<span>
						<spring:message code="bandejas.papel0.detail.informe.mensaje"/>
					</span>
				</div>
			</div>
			
			<table id="totales_detalle" class="tableFit table-striped table-bordered table-material no-footer dataTable dtr-column">
				<thead>
					<tr>
						<th><spring:message code="bandejas.papel0.detail.informe.fInicio"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.fFin"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.fEnvio"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.ayuntamiento"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.trabajadorSocial"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.urgente"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.documento"/></th>
						<th><spring:message code="bandejas.papel0.detail.informe.observaciones"/></th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td id="informeSocial_fInicio"></td>												
						<td id="informeSocial_fFin"></td>												
						<td id="informeSocial_fEnvio"></td>												
						<td id="informeSocial_ayuntamiento"></td>												
						<td id="informeSocial_trabajador"></td>												
						<td id="informeSocial_urgente"></td>
						<td id="informeSocial_documento"></td>												
						<td id="informeSocial_observaciones"></td>												
					</tr>
				</tbody>
			</table>
		</div>
		
		
		<div id="loading"></div>
		<div id="overlay-buscar" class="focussedOverlay d-none"></div>
		<div id="detalleAportacionLayer" class="d-none focussed">
		
			<input id="estado12Hidden" hidden="hidden">
		
			<div class="form-row row">   
	    		<div class="form-groupMaterial col-sm-2">	            	    
					<input id="numExpediente00Buscar" required="required" readonly="readonly"/>
					<label class=""><spring:message code="bandejas.papel0.numExpediente"/>:</label>
				</div> 
				<div class="form-groupMaterial col-sm-2">
	    			<button type="button" id="buscarExpedienteBtn" class="btn-material btn-material-sm btn-material-primary-low-emphasis icon-button"> 
	        			<i class="mdi mdi-magnify" style="font-size: 1.7rem;"></i> 
	        		</button>
	    			<button type="button" id="clearExpedienteBtn" class="btn-material btn-material-sm btn-material-danger-low-emphasis icon-button d-none"> 
	        			<i class="mdi mdi-eraser" style="font-size: 1.7rem;"></i> 
	        		</button>                              
	    		</div>
	    		
			</div>
			<div class="clsSubCabecera plegable d-none"></div>
			<div class="plegado" id="expediente_filter_layer" style="margin-right: 10px;">
				<div class="form-row row" style="margin-top: 0">		
					<div class="col-sm-12" style="position: relative; margin: 0 0 1rem 0;">
						<div id="busquedaExpediente"></div>	    	
					</div>
				</div>
			</div>
     	</div>
     	  	     
			
	            
        <div class="clsCabecera plegable"><i class="bullet mdi mdi-minus-box-outline"></i><spring:message code="bandejas.papel0.detail.observaciones"/></div>
        <div>
            <div class="form-row row">
                <div class="form-groupMaterial col-sm-12">
                    <textarea id="observacionesDetail" rows="4"></textarea>
                </div>
            </div>
        </div>            		    
	        
    <div class="clsCabecera plegable"><i class="bullet mdi mdi-minus-box-outline"></i><spring:message code="bandejas.papel0.detail.documentosAportados"/></div>
    <div>        	
		<form:form modelAttribute="documentoPapel0" id="documentosPapel0_filter_form" method="POST" class="d-none">
		<!-- Barra de herramientas del formulario de filtrado -->
			<div id="documentosPapel0_filter_toolbar" class="formulario_legend"></div>
			<fieldset id="documentosPapel0_filter_fieldset">	
				<form:input path="bandejaPapel0.idEntrada12" id="idEntrada13_filter_table_from"/>						
			</fieldset>
		</form:form>
                    	
		<table id="documentopapel0" class="tableFit table-striped table-bordered table-material"
			data-url-base="../documentopapel0"
			data-filter-form="#documentosPapel0_filter_form">
    		<thead>
        		<tr>
        			<th data-col-prop="oidDocumento13">
						<spring:message code="bandejas.papel0.detail.oid"/>
					</th>		        		
       				<th data-col-prop="${idiomaLocale eq 'es' ? 'tipoDocumento.descEs36' : 'tipoDocumento.descEu36'}" data-col-sidx="${idiomaLocale eq 'es' ? 'DESCES36' : 'DESCEU36'}">
						<spring:message code="bandejas.papel0.detail.tipoDocumento"/>
					</th>				
	    		</tr>
    		</thead>
		</table>
	</div>
<!--         </fieldset>   -->
       
</div>

<!-- MODAL TIPIFICAR DOCUMENTOS -->
<spring:url value="../documentopapel0/changeRoleDocument" var="tipificarDocumento_url"/>
<div id="tipificar_documentosPapel0_dialog" action="${tipificarDocumento_url}" style="display: none;"  class="custom_mid_dialog">	
	<div id="rup_feedback_tipificar_documentos_papel0"></div>
	<div class="form-row row">
		<div class="form-groupMaterial col-sm-12"> 
		    <label for="idTipoDoc_tipificar_papel0"><spring:message code="bandejas.telematica.detail.tipologiaDocu"/></label>					
			<input id="idTipoDoc_tipificar_papel0" />			  
		</div>
	</div>	
</div>	

