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

<style>
	table.ui-jqgrid-btable tr.jqgfirstrow td { border: none; }
	table.ui-jqgrid-btable { height: 1px; }
</style>

<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/transaccion/titulo/titulosUpload.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/transaccion/titulo/formManager.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/transaccion/titulo/tituloService.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/transaccion/titulo/tituloGrid.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/transaccion/titulo/tituloController.js?v=${versionJS}"></script>


<jsp:include page="/jsp/dda/contrato/transaccion/titulo/busquedaForm.jsp" />

<script LANGUAGE="JAVASCRIPT">
    var edoCto = ${estatusContrato};
    var pmn    = ${request.pmn};
</script>
    
<s:form  class="form-horizontal" action="#">
    <input type="hidden" id="idMDLAvalable" name="idMDLAvalable" value="<fmt:formatDate pattern='MM/dd/yyyy' value='${clista.fechaInicioPlusOneDay}' />" >
	
	<input type="hidden" id="pmn" value="${request.pmn}">		

		<fieldset>
		    <div class="form-group" id="divBotonesTitulo">
		        <div class="col-md-1"><label  class=" control-label">Acciones</label></div>
		        <div class="col-md-3"><select id="operacionesTitulosTransaccional" class="form-control"></select></div>
			    <div class="col-md-2">
			        <button id="bAceptar" class="btn btn-primary" type="button" onclick="tituloController.ejecutarAcciones();">Aceptar</button>				
		        </div>
			    <div class="col-md-1"></div>
			    <div class="col-md-5">
			    	<a href="../../../contrato/listado/irListado?pmn=${sessionScope.pmnReturn}&tipoContrato=${tipoContrato}" class="btn btn-default" roll="button" >Regresar</a>
			        <button id="bSubir" class="btn btn-primary" type="button" onclick="tituloController.openCargarDocumento();">Subir Archivo</button>				
			        <button id="bGuardar" class="btn btn-success" type="button" onclick="tituloController.guardarCambios();">Guardar Cambios</button>   
		        </div>
		    </div>
		</fieldset>
		

		
		
				
<%-- 			<div class="col-md-12 " align="left" >				
				<c:if test="${estatusContrato == 1}">
					<button id="bAgregar"          class="btn btn-primary" type="button" onclick="tituloController.open('guardar');">Agregar T&iacute;tulo</button>
					<button id="bEditar"           class="btn btn-primary" type="button" onclick="tituloController.open('editar');">Editar T&iacute;tulo</button>
					<button id="bEliminar"         class="btn btn-primary" type="button" onclick="tituloController.open('eliminar');">Eliminar T&iacute;tulo&nbsp;&nbsp;</button>
					<button id="bAjustarVentana"   class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('VentanaForm');">Ajustar Ventana</button>
					<button id="bAjustarCategoria" class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('CategoriaForm');">Ajustar Categor&iacute;a</button>				
					<button id="bAjustarHvdr"      class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('HvdrForm');">Ajustar HVDR</button>
					<a href="../../../contrato/listado/irListado?pmn=${sessionScope.pmnReturn}&tipoContrato=${tipoContrato}" class="btn btn-default" roll="button" >Regresar</a>									
				</c:if>
			</div>
	     </fieldset>		
		
		<fieldset>
			<div class="col-md-12 " align="right" >			
				<br>
			</div>
		</fieldset>
			
		<fieldset>
			<div class="col-md-12 " align="left" >			
					<button id="bAjustarDTO"      class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('CategoriaDTOForm');">Ajustar &nbsp;&nbsp;&nbsp;DTO</button>
					<button id="bAjustarDTR"      class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('CategoriaDTRForm');">Ajustar DTR</button>
					<button id="bValidar"         class="btn btn-primary" type="button" onclick="tituloController.validarMinimos();">Validar Minimos</button>				

					<button id="bSubir"           class="btn btn-primary" type="button" onclick="tituloController.openCargarDocumento();">&nbsp;&nbsp;&nbsp;&nbsp;Subir &nbsp;Archivo&nbsp;&nbsp;&nbsp;</button>					
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button id="bGuardar"         class="btn btn-success" type="button" onclick="tituloController.guardarCambios();">Guardar Cambios</button>
			</div> --%>
		</fieldset>
					
		
	
</s:form>

<br>

<div class="form-group" id="dynTitulosGrid">
	<table id="tituloGird"></table>
	<div id="tituloGirdPager"></div>
</div>

<script src="${contextPath}/js/common/perfil/perfilController.js?v=${versionJS}"></script>
<script src="${contextPath}/js/common/perfil/perfilService.js?v=${versionJS}"></script>

<jsp:include page="/jsp/dda/contrato/transaccion/titulo/titulosForm.jsp" />
<jsp:include page="/jsp/dda/contrato/transaccion/titulo/cambioMultipleForm.jsp" />
<jsp:include page="/jsp/dda/contrato/transaccion/titulo/eliminarForm.jsp" />
<jsp:include page="/jsp/dda/contrato/transaccion/titulo/cargaForm.jsp" />


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