<%@page import="br.com.centralit.citcorpore.util.CitCorporeConstantes"%>
<%@page import="br.com.centralit.citcorpore.util.WebUtil"%>
<%@page import="br.com.centralit.citcorpore.bean.UsuarioDTO"%>
<%@page import="br.com.citframework.dto.Usuario"%>
<%@ page import="br.com.centralit.citcorpore.util.Enumerados.ParametroSistema" %>
<%@page import="br.com.centralit.citcorpore.util.Enumerados.ServiceRequestStatus"%>
<%@page import="br.com.centralit.citcorpore.util.Enumerados.SituacaoSLA"%>
<%@ page import="br.com.centralit.citcorpore.util.ParametroUtil" %>
<%@ page import="br.com.centralit.citcorpore.free.Free"%>
<%@page import="br.com.centralit.bpm.util.Enumerated"%>

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

<%
	response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
	response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
	response.setDateHeader("Expires", 0); // Proxies.
	
	String id = request.getParameter("id");
	String strRegistrosExecucao = (String) request.getAttribute("strRegistrosExecucao");
	if (strRegistrosExecucao == null) {
		strRegistrosExecucao = "";
	}

	String idSolicitacaoServico = UtilStrings.nullToVazio((String)request.getParameter("idSolicitacaoServico"));
	String nomeTarefa = UtilStrings.nullToVazio((String)request.getAttribute("nomeTarefa"));

	String PAGE_CADADTRO_SOLICITACAOSERVICO = ParametroUtil.getValorParametroCitSmartHashMap(br.com.centralit.citcorpore.util.Enumerados.ParametroSistema.PAGE_CADADTRO_SOLICITACAOSERVICO,"");

	String tarefaAssociada = (String) request.getAttribute("tarefaAssociada");
	if (tarefaAssociada == null) {
		tarefaAssociada = "N";
	}

	String nomeUsuario = "";
	UsuarioDTO usuario = WebUtil.getUsuario(request);
	if (usuario != null)
		nomeUsuario = usuario.getNomeUsuario();

	pageContext.setAttribute("nomeUsuario", nomeUsuario);

	String URL_SISTEMA = CitCorporeConstantes.CAMINHO_SERVIDOR + request.getContextPath()+'/';

	String contextoAplicacao = br.com.citframework.util.Constantes.getValue("CONTEXTO_APLICACAO");
	pageContext.setAttribute("contextoAplicacao", contextoAplicacao);

	SituacaoSLA situacaoSLA_A = SituacaoSLA.A;
	Integer situacaoSolicitacaoServico_Suspensa = ServiceRequestStatus.SUSPENDED.getId();
	Integer situacaoSolicitacaoServico_Cancelada = ServiceRequestStatus.CANCELED.getId();
	String acaoIniciar = Enumerated.ACTION_START;
	String acaoExecutar = Enumerated.ACTION_EXECUTE;
	pageContext.setAttribute("situacaoSLA_A", situacaoSLA_A);
	pageContext.setAttribute("situacaoSolicitacaoServico_Suspensa", situacaoSolicitacaoServico_Suspensa);
	pageContext.setAttribute("situacaoSolicitacaoServico_Cancelada", situacaoSolicitacaoServico_Cancelada);
	pageContext.setAttribute("acaoIniciar", acaoIniciar);
	pageContext.setAttribute("acaoExecutar", acaoExecutar);
	
	String TAMANHO_MAXIMO_UPLOAD = ParametroUtil.getValorParametroCitSmartHashMap(ParametroSistema.TAMANHO_MAXIMO_ARQUIVO_UPLOAD,"1073741824");
	pageContext.setAttribute("TAMANHO_MAXIMO_UPLOAD", TAMANHO_MAXIMO_UPLOAD);
%>

<!doctype html public "">
<html <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : "" %>>
	<head>	
		<%@include file="/novoLayout/common/include/libCabecalho.jsp" %>
		<%@include file="/novoLayout/common/include/titulo.jsp" %>
		<link type="text/css" rel="stylesheet" href="${ctx}/novoLayout/common/include/css/template.css"/>
		<link type="text/css" rel="stylesheet" href="${ctx}/css/dropzone.css"/>
		<link type="text/css" rel="stylesheet" href="${ctx}/novoLayout/common/include/css/jqueryautocomplete.css"/>
		<link type="text/css" rel="stylesheet" href="css/gerenciamentoServicos2.css"/>
		
		<link type="text/css" rel="stylesheet" href="${ctx}/plugins/pivottablejs/pivot.min.css"/>
		<link type="text/css" rel="stylesheet" href="${ctx}/plugins/datatables/css/jquery.dataTables.min.css"/>
		<link type="text/css" rel="stylesheet" href="${ctx}/pages/smartReportGenerator/css/commonStyle.css"/>
		
		<script type="text/javascript">
			var TAMANHO_MAXIMO_UPLOAD = "${TAMANHO_MAXIMO_UPLOAD}";
			var ctx = "${ctx}";
		</script>
	</head>
	<cit:janelaAguarde id="JANELA_AGUARDE_MENU"  title="" style="display:none;top:325px;width:300px;left:500px;height:50px;position:absolute;"></cit:janelaAguarde>
	<body>
		<%@include file="/novoLayout/common/include/hint.jsp"%>
		<div class="container-fluid fixed">
			<div class="navbar main hidden-print">
				<%@include file="/novoLayout/common/include/cabecalho.jsp" %>
				<%@include file="/novoLayout/common/include/menuPadrao.jsp" %>
			</div>
			<div id="wrapper">
				<!-- Inicio conteudo -->
				<div id="content">
					<div class="row-fluid">
						<div class="widget">
							<div class="widget-head">
								<h4 class="heading"><fmt:message key="portal.gerenciamentoServico" /></h4>
								<div class="iframe-hidden pull-right">
									<h4 id="resize-window" class="heading glyphicons resize_full" style="cursor: pointer;"><i></i></h4>
								</div>
								<div class="pull-right mr10">
									<button id="cadastroRapido" name="cadastroRapido" type="button" class="btn btn-primary"><fmt:message key="citcorpore.comum.cadastrorapido" /></button>
									<button id="cadastroTemplate" name="cadastroTemplate" type="button" onclick="modalTemplatesSolicitacaoServico();" class="btn btn-primary"><fmt:message key="citcorpore.comum.cadastroTemplate" /></button>
									<button id="novaSolicitacao" name="novaSolicitacao" type="button" onclick="modalNovaSolicitacaoServico();" class="btn btn-primary"><fmt:message key="gerenciaservico.novasolicitacao" /></button>
								</div>
							</div>
							<div class="widget-body collapse in">
								<div class="widget widget-tabs">
									<div class="widget-head">
										<ul class="pull-left mr10">
											<li class="active"><a href="#tab-1" data-toggle="tab"><fmt:message key="citcorpore.comum.gerenciamento" /></a></li>
											<li onclick="renderizarGraficos()"><a href="#tab-2" data-toggle="tab"><fmt:message key="citcorpore.comum.graficos"/></a></li>
											<li onclick="renderizarResumoSolicitacoes()"><a href="#tab-3" data-toggle="tab"><fmt:message key="gerenciamentoservico.resumoSolicitacoes"/></a></li>
										</ul>
									</div>
									<div class="widget-body">
										<div class="tab-content">
											<div class="tab-pane active" id="tab-1">
												<form id='formGerenciamento' name='formGerenciamento' method='post' action="${ctx}/pages/gerenciamentoServicos2/gerenciamentoServicos2">
													<input type='hidden' id='paginaSelecionada' name='paginaSelecionada' />
													<input type='hidden' id='quantidadeAtrasadas' name='quantidadeAtrasadas' />
													<input type='hidden' id='quantidadeTotal' name='quantidadeTotal' />
													<input type='hidden' id='nomeCampoOrdenacao' name='nomeCampoOrdenacao' />
													<input type='hidden' id='ordenacaoAsc' name='ordenacaoAsc' />
												
													<div class="widget" data-toggle="collapse-widget">
														<div class="widget-head">
															<h4 class="heading"><fmt:message key="citcorpore.comum.opcoes" /></h4>
														</div>
														<div class="widget-body">
															<div class="row-fluid">
																<div class="span2">
																	<h5><fmt:message key="citcorpore.comum.numero" /></h5>
																	<input id="idSolicitacao" name="idSolicitacao" type="text" class="span12" maxlength="9" onkeydown="if ( event.keyCode == 13 ){ pesquisarItensFiltro(); }" />
																</div>
																<div class="span4">
																	<h5><fmt:message key="solicitacaoServico.solicitante" /></h5>
																	<input type="hidden" id="idSolicitante" name="idSolicitante" class="span12" />
																</div>
																<div class="span3">
																	<h5><fmt:message key="solicitacaoServico.tipoSolicitacao" /></h5>
																	<select id="idTipo" name="idTipo" class="span12"></select>
																</div>
																<div class="span3">
																	<h5><fmt:message key="categoriaProduto.categoria_situacao" /></h5>
																	<select id="idStatus" name="idStatus" class="span12"></select>
																</div>
															</div>
															<div class="mais-opcoes hide">
																<div class="row-fluid">
																	<div class="span4">
																		<h5><fmt:message key="contrato.contrato" /></h5>
																		<select id="idContrato" name="idContrato" class="span12"></select>
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="citcorpore.comum.grupoExecutor" /></h5>
																		<select id="idGrupoAtual" name="idGrupoAtual" class="span12"></select>
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="solicitacaoServico.tarefaatual.desc" /></h5>
																		<select id="tarefaAtual" name="tarefaAtual" class="span12"></select>
																	</div>
																	<div class="span4">
																		<h5><fmt:message key="citcorpore.comum.responsavel" /></h5>
																		<input type="hidden" id="idResponsavelAtual" name="idResponsavelAtual" class="span12" />
																	</div>
																</div>
																<div class="row-fluid">
																	<div class="span4">
																		<h5><fmt:message key="gerenciamentoservico.palavrasChave" /></h5>
																		<input id="palavraChave" name="palavraChave" type="text" class="span12" />
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="citcorpore.comum.visualizar" /></h5>
																		<select id="tipoVisualizacao" name="tipoVisualizacao" class="span12"></select>
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="gerenciamentoservico.situacaoSla" /></h5>
																		<select id="situacaoSla" name="situacaoSla" class="span12"></select>
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="gerenciamentoservico.ordenarPor" /></h5>
																		<select id="ordenarPor" name="ordenarPor" class="span12"></select>
																	</div>
																	<div class="span2">
																		<h5><fmt:message key="citcorpore.comum.itensPorPagina" /></h5>
																		<select id="itensPorPagina" name="itensPorPagina" class="span12"></select>
																	</div>
																</div>
															</div>
															<div class="separator bottom"></div>
															<div class="row-fluid">
																<div class="span6">
																	<button type="button" class="btn btn-default" onclick="pesquisarItensFiltro();" title="<fmt:message key='citcorpore.comum.atualizar' />"><i class="material-icons md-16">cached</i></button>
																	<button type="button" id="atualizacaoAutomatica" name="atualizacaoAutomatica" class="btn btn-default" data-toggle="button" title="<fmt:message key='citcorpore.comum.atualizar' /> <fmt:message key='citcorpore.comum.automaticamente' />"><i class="material-icons md-16">history</i></button>
																	<div class="btn-group ml5" data-toggle="buttons-radio">
																		<button id="visualizacaoDetalhada" name="visualizacaoDetalhada" type="button" class="btn btn-default" title="<fmt:message key='citcorpore.comum.detalhado' />"><i class="material-icons md-16">view_day</i></button>
																		<button id="visualizacaoResumida" name="visualizacaoResumida" type="button" class="btn btn-default active" title="<fmt:message key='citcorpore.comum.resumido' />"><i class="material-icons md-16">view_list</i></button>
																	</div>
																</div>
																<div class="span6 text-right">
																	<button type="button" class="btn btn-primary" onclick="pesquisarItensFiltro();" title="<fmt:message key='citcorpore.comum.buscar' />"><i class="material-icons md-16">search</i></button>
																	<button type="button" class="btn btn-default" onclick="chamarPesquisaSolicitacoes();"><fmt:message key="citcorpore.comum.pesquisaAvancada" /></button>
																	<button type="button" class="btn btn-default" onclick="chamarAgendaGrid();"><fmt:message key="citcorpore.comum.agenta" /></button>
                													<button type='button' class="btn btn-default btn-suspender-reativar hide" onclick="chamarSuspenderReativarSolicitacaoGrid();"><fmt:message key="suspensaoReativacaoSolicitacao.tituloBotaoSolicitacao" /></button>
																	<button type="button" class="btn btn-default mostrar-mais-opcoes"><i class="material-icons md-16">expand_more</i></button>
																</div>
															</div>
														</div>
														<div class="widget-footer align-right">
															<a id='gir-relatorios' href='#' class='glyphicons charts' style='color: #8ec657' onclick='javascript:return false;' tabindex='0' data-toggle='popover' data-trigger='focus'  data-container='body' data-placement='left' data-html='true' data-content='' data-title="<fmt:message key='menu.nome.relatorio' />">
																<i></i><fmt:message key="menu.nome.relatorio" />
															</a>
														</div>
													</div>
													
													<div id="content-solicitacao" class="content">
														<div class="carregando"></div>
													</div>
													
													<div class="separator bottom"></div>
													
													<div class="paginacaoGerenciamento"></div>
												</form>
												<form id='form' name='form' method='post' action="${ctx}/pages/gerenciamentoServicos2/gerenciamentoServicos2">
													<input type="hidden" id='idTarefa' name='idTarefa'>
													<input type="hidden" id='idSolicitacaoSel' name='idSolicitacaoSel'>
													<input type="hidden" id='acaoFluxo' name='acaoFluxo'>
												</form>
											</div>
											<div class="tab-pane" id="tab-2">
												<span class='btn btn-primary btn-icon glyphicons refresh' id='btnAtualizarGraficos'><i></i><fmt:message key="citcorpore.comum.atualizarGraficos"/></span>
												<div class="separator bottom"></div>
												<div class="widget">
													<div class="widget-head">
														<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoSituacao"/></h4>
													</div>
													<div class="widget-body">
														<div style="width: 100%!important;" class='row-fluid'>
															<div id="tdAvisosSol" style="height: 350px; border: 1px solid #D8D8D8" class="span6"></div>
															<div id="divGrafico" style="height: 350px; border: 1px solid #D8D8D8" class="span6"></div>
														</div>
													</div>
												</div>
												<div class="widget" style="float:left; width:49%">
													<div class="widget-head">
														<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoPrioridade"/></h4>
													</div>
													<div class="widget-body">
														<div class='row-fluid'>
															<div id="divGrafico2" style="height: 350px; border: 1px solid #D8D8D8" class="span12"></div>
														</div>
													</div>
												</div>
												<div class="widget" style="float:right; width:49%;">
													<div class="widget-head">
														<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoGrupo"/></h4>
													</div>
													<div class="widget-body">
														<div class='row-fluid'>
															<div id="divGrafico3" style="height: 350px; border: 1px solid #D8D8D8" class="span12"></div>
														</div>
													</div>
												</div>
												
												<div class="clearfix"></div>
											</div>
											<div class="tab-pane" id="tab-3">
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_templatesSolicitacaoServico" aria-hidden="false" data-width="400">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3 class="lfloat"><fmt:message key="citcorpore.comum.templates" /></h3>
					</div>
					<div class="modal-body">
						<div class="row-fluid">
							<div id="templateSolicitacoes" class="span12"></div>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_novaSolicitacao" tabindex="-1" data-backdrop="static" data-keyboard="false">
					<div class="modal-header">
						<h3 class="lfloat"><fmt:message key="evm.cadAcaoAutoIncReq.incidenteRequisicaoProcedimento" /></h3>
						<button type="button" class="close rfloat" data-dismiss="modal" aria-hidden="true">×</button>
						<a type="button" onclick="redimensionaJanela(this)" class="redimensionar rfloat glyphicons resize_full"><i></i></a>
					</div>
					<div class="modal-body">
						<iframe src="about:blank" id="frameNovaSolicitacao" width="100%"></iframe>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_descricaoSolicitacao" aria-hidden="false" data-width="700">
					<!-- Modal heading -->
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="gerenciaservico.descricaosolicitacao" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentDescricaoSolicitacao'></div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_exibirDelegacaoTarefa" aria-hidden="false" data-width="850">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.solicitacao" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentFrameExibirDelegacaoTarefa'>
							<iframe id="frameExibirDelegacaoTarefa" src="about:blank" width="100%" height="485"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_suspender" aria-hidden="false" data-width="750">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.solicitacao"/></h3>
					</div>
					<div class="modal-body">
						<div id='contentFrameSuspender'>
							<iframe id="frameExibirSuspender" src="about:blank" width="100%" height="400" class="iframeSemBorda"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<div style="margin: 0;" class="form-actions">
							<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_criarSubSolicitacao" aria-hidden="false" data-width="700">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="gerenciaservico.duplicarSolicitacao"/></h3>
					</div>
					<div class="modal-body">
						<form name="formInformacoesContato" id="formInformacoesContato" action='${ctx}/pages/solicitacaoServicoMultiContratos/solicitacaoServicoMultiContratos'>
							<input type='hidden' name='idSolicitante' id='idSolicitante' />
							<input type='hidden' name='idSolicitacaoServico' id='idSolicitacaoServico' />
							<input type='hidden' name='idContrato' id='idContrato' />
							<input type="hidden" name="idTipoDemandaServico" id="idTipoDemandaServico" />
							<input type='hidden' name='idStatusFiltroSolicitante' id='idStatusFiltroSolicitante' />
							<input type='hidden' name='buscaFiltroSolicitante' id='buscaFiltroSolicitante' />
							<input type='hidden' name='nomecontato' id='nomecontato' />
			
							<input type='hidden' name='idStatus' id='idStatus' />
							<input type='hidden' name='idGrupoAtual' id='idGrupoAtual' />
			
							<div class='row-fluid'>
								<div class="input-append span12">
									<label class="strong campoObrigatorio"><fmt:message key="origemAtendimento.origem" /></label>
									<select name='idOrigem' id='idOrigem'></select>
									<button type="button" class="btn btn-mini btn-primary btn-icon glyphicons circle_plus" id='btnCadastroOrigemAux' onclick="chamaPopupCadastroOrigemSub()"><i></i><fmt:message key="novaOrigemAtendimento.novaOrigemAtendimento" /></button>
								</div>
							</div>
			
							<div class='row-fluid'>
								<div class="input-append">
									<label class="strong campoObrigatorio">
										<fmt:message key="solicitacaoServico.solicitante" />
									</label>
									<input class="span12" type="text" name="nomeSolicitante" id="nomeSolicitante" required="required" placeholder="<fmt:message key="servico.nomeSolicitante" />">
									<span class="add-on"><i class="icon-search"></i></span>
									<span class="btn btn-mini btn-primary btn-icon glyphicons search modal_lookupSolicitante" href="#modal_lookupSolicitante" data-toggle="modal" data-target="#modal_lookupSolicitante"><i></i><fmt:message key="citcorpore.comum.pesquisaAvancada" /></span>
								</div>
							</div>
							<div class='row-fluid'>
								<div class="span6">
									<label class="strong campoObrigatorio"><fmt:message key="solicitacaoServico.emailContato" /></label>
									<input id="emailcontato" type='text' name="emailcontato" maxlength="120" class="span12" />
								</div>
								<div class="span6">
									<label class="strong campoObrigatorio"><fmt:message key="solicitacaoServico.telefoneDoContato" /></label>
									<input id="telefonecontato" type='text' name="telefonecontato" maxlength="16" placeholder="(000) 99999-9999"/>
								</div>
							</div>
							<div class='row-fluid'>
								<div class="span10" id='divUnidade'>
								</div>
							</div>
							<div class='row-fluid'>
								<div class="span6">
									<label class="strong" title="<fmt:message key="colaborador.cadastroUnidade"/>">
										<fmt:message key="solicitacaoServico.localidadeFisica"/>
									</label>
									<select name="idLocalidade" id='idLocalidade'></select>
								</div>
							</div>
							<div class='row-fluid'>
								<div class="controls">
									<label class="strong"><fmt:message key="solicitacaoServico.observacao" /></label>
									<div class="controls">
										<textarea class="span12" rows="5" cols="100" id="observacao" name="observacao"></textarea>
									</div>
								</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" onclick="duplicarSolicitacao();"><fmt:message key="citcorpore.comum.gravar" /></a>
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_exibirSubSolicitaces" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.solicitacaoSubSolicitacao" /></h3>
					</div>
					<div class="modal-body">
						<form id="formIncidentesRelacionados" name='formIncidentesRelacionados' method="post" action='${ctx}/pages/incidentesRelacionados/incidentesRelacionados'>
							<input type='hidden' name='idSolicitacaoIncRel' value=''/>
							<div id="tabelaIncidentesRelacionados"></div>
						</form>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_alterarSLA" aria-hidden="false" data-width="850">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
							<h3><fmt:message key="citcorpore.comum.solicitacao" /></h3>
						</div>
						<div class="modal-body">
							<div id='contentFrameAlterarSLA'>
								<iframe id="frameAlterarSLA" src="about:blank" width="100%" height="520""></iframe>
							</div>
						</div>
						<div class="modal-footer">
							<div style="margin: 0;" class="form-actions">
							<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_reclassificarSolicitacao" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.reclassificaosolicitacao"/></h3>
					</div>
					<div class="modal-body">
						<div id='contentframeReclassificarSolicitacao'>
							<iframe id="frameReclassificarSolicitacao" src="about:blank" width="100%" height="700"></iframe>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_agendarAtividade" aria-hidden="false" data-width="850">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.solicitacao" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentFrameAgendarAtividade'>
							<iframe id="frameAgendarAtividade" src="about:blank" width="100%" height="460"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade in" id="modal_agenda" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.agenta" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentFrameagendaAtvPeriodicas'>
							<iframe id="frameAgendaAtvPeriodicas" src="about:blank" width="100%" height="530"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_pesquisaGeralSolicitacao" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.solicitacao" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentPesquisaGeralSolicitacao'>
							<iframe id="framePesquisaGeralSolicitacao" src="about:blank" width="100%" height="600"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_solicitacaofilha" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="gerenciaservico.solicitacoesRelacionadas" /></h3>
					</div>
						<div class="modal-body">
							<div id="divSolicitacaoRelacionada" style="display: block">
								<div class='widget'>
									<div class='widget-head'><h4 class='heading'><fmt:message key="solicitacaoServico.solicitacao" /></h4></div>
										<div class='widget-body'>
											<div id='solicitacaoRelacionada'>
											</div>
										</div>
								</div>
							</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_lookupSolicitante" aria-hidden="false" data-width="600">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="colaborador.pesquisacolaborador" /></h3>
					</div>
					<div class="modal-body">
						<form name='formPesquisaColaborador' style="width: 540px">
							<cit:findField formName='formPesquisaColaborador'
							lockupName='LOOKUP_SOLICITANTE_CONTRATO' id='LOOKUP_SOLICITANTE'
							top='0' left='0' len='550' heigth='200' javascriptCode='true'
							htmlCode='true' />
						</form>
					</div>
					<div class="modal-footer">
						<div class="form-actions">
							<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
						</div>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_origem_sub" aria-hidden="false" data-width="600">
					<!-- Modal heading -->
					<div class="modal-header">
						<!-- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> -->
						<h3></h3>
					</div>
					<div class="modal-body">
						<div class='slimScrollDiv'>
							<div class='slim-scroll' id='contentFrameOrigem'>
								<div id="conteudoframeExibirOrigemSub">
									<iframe id="frameExibirOrigemSub" src="about:blank" width="100%" height="350"></iframe>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " onclick="preencherComboOrigem();" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal-relatorios">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="closeReports();">&times;</button>
						<h3 class="title"><fmt:message key="controle.relatorios" /></h3>
					</div>
					<div class="modal-body">
						<iframe id="iframeRelatorios" name="iframeRelatorios" src="" width="100%" height="400px"></iframe>
					</div>
					<div class="modal-footer">
						<div class="row-fluid">
							<div class="span4">
								<button class="btn btn-block btn-default" onclick="Modal.close($('#modal-relatorios'));closeReports();"><fmt:message key="citcorpore.comum.fechar" /></button>
							</div>
						</div>
					</div>
				</div>
					
				<div id="POPUP_SERVICO">
					<iframe id='fraServico' src='about:blank' width="100%" height="100%"></iframe>
				</div>
				
				<div class="modal modal-50 hide fade" id="modal_itemConfiguracao" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="solicitacaoServico.itemConfiguracao" /></h3>
					</div>
						<div class="modal-body">
							<div id='ItemConfiguracaoSolicitacao'></div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal modal-50 hide fade" id="modal_anexos" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.anexos" /></h3>
					</div>
						<div class="modal-body">
							<div id='AnexosSolicitacao'></div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_informacaoItemConfiguracao" aria-hidden="false">
					<!-- Modal heading -->
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="solicitacaoServico.itemConfiguracao" /></h3>
					</div>
					<div class="modal-body">
						<div id="conteudoiframeInformacaoItemConfiguracao">
							<iframe id="iframeInformacaoItemConfiguracao" src="about:blank" width="99%" height="530"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_infoServicosNegocioTecnico" aria-hidden="false">
					<div class="modal-header">
						 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="portal.carrinho.listagem" /></h3>
					</div>
					<div class="modal-body">
						<div class='slimScrollDiv'>
							<div class='slim-scroll'>
								<div id="divInfoServicosNegocioTecnico">
									<div class="filter-bar">
										<div class='row-fluid'>
											<input type='text' class='span12' id='filtroTableServicosNegocioTecnico' placeholder="<fmt:message key="portal.carrinho.filtroBusca" />" onkeyup="filtroTableJs(this, 'tblListaServicosNegocioTecnico')">
										</div>
									</div>
									<table id='tblListaServicosNegocioTecnico' class='dynamicTable table  table-bordered table-condensed dataTable'>
										<tr>
											<th></th>
											<th ><fmt:message key="citcorpore.comum.servico" /></th>
										</tr>
									</table>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_infoServicos" aria-hidden="false">
					<div class="modal-header">
						 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="portal.carrinho.listagem" /></h3>
					</div>
					<div class="modal-body">
						<div class='slimScrollDiv'>
							<div class='slim-scroll'>
								<div id="divInfoServicos">
									<div class="filter-bar">
										<div class='row-fluid'>
											<input type='text' class='span12' id='filtroTableServicos' placeholder="<fmt:message key="portal.carrinho.filtroBusca" />" onkeyup="filtroTableJs(this, 'tblListaServicos')">
										</div>
									</div>
									<table id='tblListaServicos' class='dynamicTable table  table-bordered table-condensed dataTable'>
										<tr>
											<th></th>
											<th ><fmt:message key="citcorpore.comum.servico" /></th>
										</tr>
									</table>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_SuspenderReativarSolicitacao" aria-hidden="false" data-width="700">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="suspensaoReativacaoSolicitacao.tituloPopUp" /></h3>
					</div>
					<div class="modal-body">
						<div id='contentFrameSuspenderReativarSolicitacao'>
							<iframe id="frameSuspenderReativarSolicitacao" src="about:blank" width="100%" height="520"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="modal_pesquisaItemConfiguracao" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="solicitacaoServico.pesquisarItemConfiguracao" /></h3>
					</div>
					<div class="modal-body">
						<div id="conteudoPesquisaItemConfiguracao">
							<iframe id="framePesquisaItemConfiguracao" src="about:blank" width="99%" height="530"></iframe>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade" id="mensagem_insercao" aria-hidden="false" data-backdrop="static" data-keyboard="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					</div>
					<div class="modal-body" >
						<div id="divInsercao"></div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade in" id="modal_script" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="solicitacaoServico.script" /></h3>
					</div>
					<div class="modal-body">
						<div id="divScript">
							<fmt:message key="citcorpore.comum.selecionescript" />
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div id="modal-cadastro-rapido" name="modal-cadastro-rapido" class="modal hide fade height-90">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="gerenciaservico.novasolicitacao" /></h3>
					</div>
					<div class="modal-body max-height-90">
						<form id='formCadastroRapido' name='formCadastroRapido' method='post' action="${ctx}/pages/gerenciamentoServicos2/gerenciamentoServicos2">
							<input type="hidden" id="idServicoCadastroRapido" name="idServicoCadastroRapido" />
							<input type="hidden" id="idServicoNegocioTecnicoBuscaCadastroRapido" name="idServicoNegocioTecnicoBuscaCadastroRapido" />
							<input type="hidden" id="idSolicitanteCadastroRapido" name="idSolicitanteCadastroRapido" />
							<input type="hidden" id="idsItemConfiguracaoCadastroRapido" name="idsItemConfiguracaoCadastroRapido" />
							<input type='hidden' id="nomeContatoCadastroRapido" name="nomeContatoCadastroRapido" />
							
							<input type='hidden' id="idTemplate" name="idTemplate" />
					
							<div class="row-fluid">
								<div class="span6">
									<h5 class="pull-left campoObrigatorio"><fmt:message key="solicitacaoServico.solicitante" /></h5>
									<input type="text" id="nomeSolicitanteCadastroRapido" name="nomeSolicitanteCadastroRapido" class="span12" />
								</div>
								<div class="span6">
									<h5><fmt:message key="citcorpore.comum.telefone" /></h5>
									<input type="text" id="telefoneContatoCadastroRapido" name="telefoneContatoCadastroRapido" placeholder="(000) 99999-9999" maxlength="16" class="span12" />
								</div>
							</div>
							<div class="row-fluid">
								<div class="span6">
									<h5 class="campoObrigatorio"><fmt:message key="citcorpore.comum.email" /></h5>
									<input type="text" id="emailContatoCadastroRapido" name="emailContatoCadastroRapido" class="span12" />
								</div>
								<div class="span6">
									<h5 class="campoObrigatorio"><fmt:message key="citcorpore.comum.origemNovoLayout" /></h5>
									<select id="idOrigemContatoCadastroRapido" name="idOrigemContatoCadastroRapido" class="span12"></select>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span12">
									<div id="filters-container" class="widget" data-toggle="collapse-widget" data-collapse-closed="false">
										<div class="widget-head"> 
											<h4 class="heading glyphicons adjust_alt"><i></i><fmt:message key="solicitacaoServico.filtros.titulo" /></h4>
											<div class="sla">
												<span id="tdResultadoSLAPrevisto" class="label">N/A</span>
												<span id="divMini_loading" style="display: none" ><img src='<%=URL_SISTEMA%>novoLayout/common/include/imagens/mini_loading.gif'></span>
											</div>
											<div class="scripts label" onclick="carregaScript()" title="<fmt:message key="scripts.scripts" />"><i class="material-icons md-14">find_in_page</i></div>
										</div>
										
										<div class="widget-body">
											<div class="span4">
												<h5  class="strong"><fmt:message key="solicitacaoServico.filtros.catalogo" /></h5>
												<select class="span12" name="idTipoCatalogoServicoSolicitacaoCadastroRapido" id="idTipoCatalogoServicoSolicitacaoCadastroRapido" onchange="changeCatalogoServicoSolicitacao();"></select>
											</div>
											<div class="span8 pesquisaServicoNegocioTecnico">
												<h5 class="pull-left strong"><fmt:message key="solicitacaoServico.filtros.servico" /></h5>
												<label id="lblLimparServicoNegocioTecnicoBusca" class="pull-right label" onclick="limparServicoNegocioTecnico()"><i class="material-icons md-14">cancel</i></label>
												<label id="lblPesquisarServicoNegocioTecnicoBusca" class="pull-right label label-success mr1" onclick="buscarTodosServicosNegocioTecnico()" ><i class="material-icons md-14">search</i></label>
												<input class="span12" type="text" name="servicoNegocioTecnicoBuscaCadastroRapido" id="servicoNegocioTecnicoBuscaCadastroRapido" />
											</div>
											<div class="row-fluid">
												<div class="uniformjs span4"  id="checkUtilizaCategoriaServico">
													<label></br></label>
													<label class="checkbox" id="checkUtilizaCategoriaServico">
														<input type="checkbox" name="utilizaCategoriaServicoCadastroRapido" id="utilizaCategoriaServicoCadastroRapido" value="S" onclick="carregaCategoriaServico();" />
														<fmt:message key="solicitacaoServico.utilizaCategoriaServico" />
													</label>
												</div>
												<div class="divCategoriaServico span8">
													<div>
														<h5 class="strong"><fmt:message key="servico.categoria" /></h5>
														<select disabled="disabled" class="span12 disabled" id="idCategoriaServicoCadastroRapido" name="idCategoriaServicoCadastroRapido" onchange="montaParametrosAutocompleteServico();"></select>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span4">
													<h5 class="strong campoObrigatorio"><fmt:message key="solicitacaoServico.tipo" /></h5>
													<select class="span12" name="idTipoDemandaServicoCadastroRapido" id="idTipoDemandaServicoCadastroRapido" onchange="changeTipoSolicitacaoServico();"></select>
												</div>
												<div class="span8 pesquisaServico">
													<h5 class="pull-left strong campoObrigatorio"><fmt:message key="solicitacaoServico.requisicaoIncidente" /></h5>
													<label id="lblLimparServicoBusca" class="pull-right label mr1" onclick="limparServico()"><i class="material-icons md-14">cancel</i></label>
													<label id="lblPesquisarServicoBusca" class="pull-right label label-success mr1" onclick="buscarTodosServicos()"><i class="material-icons md-14">search</i></label>
													<input class="span12" type="text" name="servicoBuscaCadastroRapido" id="servicoBuscaCadastroRapido" required="required" onkeyup="eventoStartLoading(event);" />
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span6">
									<h5 class="campoObrigatorio"><fmt:message key="citcorpore.comum.contrato" /></h5>
									<select id="idContratoCadastroRapido" name="idContratoCadastroRapido" class="span12" onchange="changeContrato();"></select>
								</div>
								<div id="divUnidadeCadastroRapido" class="span6"></div>
							</div>
							
							<div class="row-fluid">
								<div class="span6">
									<h5 class="campoObrigatorio"><fmt:message key="solicitacaoServico.impacto" /></h5>
									<select id="impactoCadastroRapido" name="impactoCadastroRapido" class="span12" onchange="calcularSLA();"></select>
								</div>
								<div class="span6">
									<h5 class="campoObrigatorio"><fmt:message key="solicitacaoServico.urgencia" /></h5>
									<select id="urgenciaCadastroRapido" name="urgenciaCadastroRapido" class="span12" onchange="calcularSLA();"></select>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span12">
									<h5 class="campoObrigatorio"><fmt:message key="solicitacaoServico.descricao" /></h5>
									<textarea id="descricaoCadastroRapido" name="descricaoCadastroRapido" class="span12" rows="2"></textarea>
								</div>
							</div>
							<div class="row-fluid">
								<div class="span12">
									<h5>
										<fmt:message key="itemConfiguracao.itemConfiguracao" />
										<label id="lblPesquisarItemConfiguracao" class="pull-right label label-success" onclick="abrirModalPesquisaItemConfiguracao()"><i class="material-icons md-14">search</i></label>
									</h5>
									<div id="itensConfiguracaoSelecionados"></div>
								</div>
							</div>
							
							<div class="separator bottom"></div>
							
							<div class="row-fluid">
								<div class="span12">
									<div class="widget" data-toggle="collapse-widget" data-collapse-closed="true">
										<div class="widget-head"> 
											<h4 class="heading glyphicons circle_ok"><i></i><fmt:message key="solicitacaoServico.fechamento" /></h4>
										</div>
										<div class="widget-body">
											<div class="row-fluid">
												<div class="span6">
													<h5 class="campoObrigatorio"><fmt:message key="solicitacaoServico.situacao" /></h5>
													<select id="idStatusCadastroRapido" name="idStatusCadastroRapido" class="span12">
														<option value="1"><fmt:message key="solicitacaoServico.situacaoRegistrada" /></option>
														<option value="4"><fmt:message key="solicitacaoServico.situacaoResolvida" /></option>
														<option value="3"><fmt:message key="solicitacaoServico.situacao.Cancelada" /></option>
													</select>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<h5><fmt:message key="solicitacaoServico.detalhamentocausa" /></h5>
													<textarea id="detalhamentoCausaCadastroRapido" name="detalhamentoCausaCadastroRapido" class="span12" rows="2"></textarea>
												</div>
												<div class="span6">
													<h5><fmt:message key="solicitacaoservico.solucaoResposta"/></h5>
													<textarea id="respostaCadastroRapido" name="respostaCadastroRapido" class="span12" rows="2"></textarea>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</form>
						<div class="row-fluid">
							<div class="span12">
								<div class="dropzone"></div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary" onclick="gravarCadastroRapido();"><fmt:message key="citcorpore.comum.gravar" /></a>
						<a href="#" class="btn btn-default" onclick="Modal.close('modal-cadastro-rapido');"><fmt:message key="citcorpore.comum.cancelar" /></a>
					</div>
				</div>
				
				<div class="modal modal-30 hide fade" id="modal_confirm" aria-hidden="false">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h3><fmt:message key="citcorpore.comum.confirmacao" /></h3>
					</div>
					<div class="modal-body"></div>
					<div class="modal-footer">
						<a href="#" class="btn btn-primary confirm" onclick=""><fmt:message key="citcorpore.comum.gravar" /></a>
						<a href="#" class="btn" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
					</div>
				</div>
				
				<div class="modal hide fade div-smart-report" id="modal-smart-report">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h3 class="title"><fmt:message key="citcorpore.comum.relatorio" /></h3>
					</div>
					<div class="modal-body max-height-90">
						<form id="formSmartReport" name="formSmartReport" action="${ctx}/pages/smartReportGenerator/smartReportGenerator">
							<input type="hidden" id="idSmartReportParam" name="idSmartReport" value="" />
							<input type="hidden" id="specificID" name="specificID" value="" />
							
							<div class="widget hidden div-smart-report-params" data-toggle="collapse-widget" data-collapse-closed="false">
								<div class="widget-head" onclick="UtilSmartReport.collapseWidget(this);">
									<h4 class="heading">
										<label class="campoObrigatorio"><fmt:message key="citcorpore.comum.filtros" /></label>
									</h4>
								</div><!-- .widget-head -->
								
								<div class="widget-body">
									<div class="body-params clearfix"></div>
								</div><!-- .widget-body -->
							</div><!-- .widget -->
							
							<div class="modal-body-content smart-report-content">
								<canvas id="canvas"></canvas>
							</div><!-- .modal-body-content -->
						</form>
					</div>
				</div>
				
				<!--  Fim conteudo-->
				<%@include file="/novoLayout/common/include/rodape.jsp" %>
			</div>
		</div>
		
		<script type="text/javascript">
			var contextoAplicacao = "${contextoAplicacao}";
			var situacaoSLA_A = "${situacaoSLA_A}";
			var situacaoSolicitacaoServico_Suspensa = "${situacaoSolicitacaoServico_Suspensa};"
			var situacaoSolicitacaoServico_Cancelada = "${situacaoSolicitacaoServico_Cancelada};"
			var nomeUsuario = "${nomeUsuario}";
			var c = "${c}";
			var acaoIniciar = "${acaoIniciar}";
			var acaoExecutar = "${acaoExecutar}";
		</script>
	
		<script src="${ctx}/js/CollectionUtils.js" type="text/javascript"></script>
		<script src="${ctx}/js/ObjectUtils.js" type="text/javascript"></script>
		<script src="${ctx}/js/UploadUtils.js" type="text/javascript"></script>
		<script src="${ctx}/template_new/js/jquery/jquery.maskedinput.js" type="text/javascript"></script>
		<script src="${ctx}/js/dropzone.js" type="text/javascript"></script>
		
		<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
		<script>google || document.write('<script type="text/javascript" src="${ctx}/plugins/googlecharts/googlecharts.js"><\/script>')</script>
		<script type="text/javascript" src="${ctx}/plugins/pivottablejs/pivot.min.js"></script>
		<script type="text/javascript" src="${ctx}/plugins/pivottablejs/gchart_renderers.min.js"></script>
		<script type="text/javascript" src="${ctx}/plugins/datatables/jquery.dataTables.min.js"></script>
		<script type="text/javascript" src="${ctx}/plugins/chartjs/Chart.bundle.min.js"></script>
		
		<script type="text/javascript" src="js/gerenciamentoServicos2.js"></script>
	</body>
</html>