<%@ include file="/WEB-INF/templates/taglibs.jsp"%>

<div class='row-fluid'>
	<div class='span12'>
		<form name='formBusinessUser' action='${ctx}/pages/gerenciamentoPortfolio/gerenciamentoPortfolioBusinessUser/gerenciamentoPortfolioBusinessUser'>
			<input type="hidden" id="listaIdUsuarioVinculado" name="listaIdUsuarioVinculado" />
			<input type="hidden" id="listaIdGrupoVinculado" name="listaIdGrupoVinculado" />
			<input type="hidden" id="textoPesquisado" name="textoPesquisado" />
			<input type="hidden" id="idServicoAtual" name="idServicoAtual" />
			<input type='hidden' name='idBusinessUser' id='idBusinessUser'/>
			<input type='hidden' name='tipo' id='tipoBusinessUser'/>
			<input type='hidden' name='acaoUsuarioNegocioOcorrenciaServico' id='acaoUsuarioNegocioOcorrenciaServico'/>
			<input type='hidden' name='idsUsuarioNegocioOcorrenciaServico' id='idsUsuarioNegocioOcorrenciaServico'/>
		</form>

		<div class='row-fluid'>
			<div class='row-fluid'>
				<button type='button' id='btnBusinessUserUsuario'
					class="botaoNovo lFloat btn btn-icon btn-primary glyphicons retweet btnGravar"
					onclick="clickAbrirPopupDialogGerenciamentoPortfolioBusinessUserUsuario();">
					<i></i>
					<fmt:message key="gerenciaportfolio.businessUserVincularUsuario" />
				</button>

				<button type='button' id='btnBusinessUserGrupo'
					class="botaoNovo lFloat btn btn-icon btn-primary glyphicons retweet btnGravar"
					onclick="clickAbrirPopupDialogGerenciamentoPortfolioBusinessUserGrupo();">
					<i></i>
					<fmt:message key="gerenciaportfolio.businessUserVincularGrupo" />
				</button>
			</div>

			<div class="row-fluid">
				<div class="span12 input-append">
					<div class="span12">
						<input autofocus class="campoPesquisa" type="text" id="inputFiltroBusinessUser" value="" /> 
							
						<span onclick="limparBarraPesquisa();" class="add-on remove xPesquisa">	
							<i class="icon-remove" deluminate_imagetype="png"></i>
						</span> 
						
						<span onclick="filtrarUsuarioNegocio();" class="add-on lupaPesquisa">
							<i class="icon-search" deluminate_imagetype="png"></i>
						</span>
					</div>
				</div>
			</div>

			<div id='divDinamicoListaServicosBusinessUser' class="row-fluid"></div>
		</div>
		
	</div>
</div>

<div class="modal modal-medium hide fade" id="modal-portfolio-business-user-vincular-grupo">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h3 class="title"> <fmt:message key="gerenciaportfolio.businessUserVincularGrupo" /> </h3>
	</div>
	<div class="modal-body modal-body-max-height">
		<form name='formBusinessUserVincularGrupo'>
			<cit:findField formName='formBusinessUserVincularGrupo' lockupName='LOOKUP_GRUPO' checkbox='true' id='LOOKUP_SERVICO_BUSINESS_USER_VINCULAR_GRUPO' heigth='400' javascriptCode='true' htmlCode='true' />
		</form>
	</div>
</div>

<div class="modal modal-medium hide fade" id="modal-portfolio-business-user-vincular-usuario">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h3 class="title"> <fmt:message key="gerenciaportfolio.businessUserVincularUsuario" /> </h3>
	</div>
	<div class="modal-body modal-body-max-height">
		<form name='formBusinessUserVincularUsuario'>
			<cit:findField formName='formBusinessUserVincularUsuario' lockupName='LOOKUP_USUARIO' checkbox='true' id='LOOKUP_SERVICO_BUSINESS_USER_VINCULAR_USUARIO' heigth='400' javascriptCode='true' htmlCode='true' />
		</form>
	</div>
</div>