<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@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);
%>

<%@ taglib prefix="compress" uri="http://htmlcompressor.googlecode.com/taglib/compressor"%>
<compress:html
	enabled="true"
	jsCompressor="closure"
	compressCss="true"
	compressJavaScript="true"
	removeComments="true"
	removeMultiSpaces="true">
	
<html <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : "" %>>
<head>
	<meta name="viewport" content="width=device-width" />
	<%@include file="/novoLayout/common/include/libCabecalho.jsp" %>
	<title><fmt:message key="citcorpore.comum.title" /></title>
	<link type="text/css" rel="stylesheet" href="css/gerenciamentoServicos.css"/>
	<link type="text/css" rel="stylesheet" href="${ctx}/novoLayout/common/include/css/jqueryautocomplete.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"/>
</head>
<cit:janelaAguarde id="JANELA_AGUARDE_MENU" title="" style="display:none;top:325px;width:300px;left:500px;height:50px;position:absolute;" />
<body>
	<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="separator top"></div>
				<div class="row-fluid">
					<div class="innerLR">
						<div class="widget">
							<div class="widget-head">
								<h4 class="heading"><fmt:message key="gerenciaservico.solicitacoes"/></h4>
								<div class="iframe-hidden pull-right">
									<h4 id="resize-window" class="heading glyphicons resize_full" style="cursor: pointer;"><i></i></h4>
								</div>
							</div>
							<div class="widget-body collapse in">
								<div class="tabsbar">
									<ul>
										<li class="active"><a href="#tab1-3" data-toggle="tab"><fmt:message key="gerenciamentoservico.gerenciarSolicitacoes"/></a></li>
										<li class="" onclick="renderizarGraficos()"><a href="#tab2-3" data-toggle="tab"><fmt:message key="citcorpore.comum.graficos"/></a></li>
										<li class="" onclick="renderizarResumoSolicitacoes()"><a href="#tab3-3" data-toggle="tab"><span><fmt:message key="gerenciamentoservico.resumoSolicitacoes"/></span></a></li>
									</ul>
								</div>
								<div class="tab-content">
									<div class="tab-pane active" id="tab1-3">
										<form id='formGerenciamento' name='formGerenciamento' method='post' action="${ctx}/pages/gerenciamentoServicosImpl/gerenciamentoServicosImpl">
											<cit:gerenciamentoField classeExecutora="br.com.centralit.citcorpore.ajaxForms.GerenciamentoServicosImpl" paginacao="true" tipoLista="1"></cit:gerenciamentoField>
										</form>
										<form id='form' name='form' method='post' action="${ctx}/pages/gerenciamentoServicos/gerenciamentoServicos">
											<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="tab2-3">
										<span class='btn btn-primary btn-icon glyphicons refresh' id='btnAtualizarGraficos'><i></i><fmt:message key="citcorpore.comum.atualizarGraficos"/></span>

										<!-- Widget -->
										<div class="widget">

											<!-- Widget heading -->
											<div class="widget-head">
												<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoSituacao"/></h4>
											</div>
											<!-- // Widget heading END -->

											<div class="widget-body">

												<!-- Simple Chart -->
												<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 id="divGrafico" style="height: 350px; width: 100%!important;"></div> -->
											</div>
										</div>
										<!-- // Widget END -->

										<!-- Widget -->
										<div class="widget" style="float:left; width:49%">

											<!-- Widget heading -->
											<div class="widget-head">
												<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoPrioridade"/></h4>
											</div>
											<!-- // Widget heading END -->

											<div class="widget-body">
												<!-- Chart with lines and fill with no points -->
												<div class='row-fluid'>
													<div id="divGrafico2" style="height: 350px; border: 1px solid #D8D8D8" class="span12"></div>
												</div>
											</div>
										</div>
										<!-- // Widget END -->

										<!-- Widget -->
										<div class="widget" style="float:right; width:49%;">

											<!-- Widget heading -->
											<div class="widget-head">
												<h4 class="heading"><fmt:message key="citcorpore.comum.solicitacaoGrupo"/></h4>
											</div>
											<!-- // Widget heading END -->

											<div class="widget-body">
												<div class='row-fluid'>
													<div id="divGrafico3" style="height: 350px; border: 1px solid #D8D8D8" class="span12"></div>
												</div>
											</div>
										</div>
										<!-- // Widget END -->
									</div>
									<div class="tab-pane" id="tab3-3">

									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- Fim conteudo-->

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

	<!-- [INÍCIO] MODAL NOVA SOLICITACAO -->
	<div class="modal hide fade in" 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">
			<div id='contentFrameNovaSolicitacao'>
			</div>
		</div>
	</div>
	<!-- [FIM] MODAL NOVA SOLICITACAO -->

	<!-- MODAL RECLASSIFICAR -->
	<div class="modal hide fade in" 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'>
				</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>

	<!-- MODAL RECLASSIFICAR -->
	<div class="modal hide fade in" id="modal_reclassificar2" 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='contentReclassificarSolicitacao2'>
			</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 in" 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'>
			</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 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'>
			</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 in" 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'>
			</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 in" 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'>
			</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 in" 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'>
			</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 in" 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'>
			</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 in" 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'>
			</div>
		</div>
	</div>

	<!-- MODAL ITENS DE CONFIGURAÇÃO ... -->
	<div class="modal hide fade in" 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="divMudancaSolicitacao" style="display: block">
					<div class='widget'>
						<div class='widget-head'><h4 class='heading'><fmt:message key="solicitacaoServico.itemConfiguracaoAdcionado" /></h4></div>
							<div class='widget-body'>
								<div id='MudancaSolicitacao'>
								</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 in" 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">

				</div>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
			</div>
	</div>

	<!-- MODAL SOLICITACAOFILHAS ... -->
	<div class="modal hide fade in" 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="solicitacaoservico.solicitacaofilha" /></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 in" 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">
			<div class="form-actions">
				<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>

	<div class="modal hide fade in" 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">
			<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 in" 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 in" 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='contentFrameDescricaoSolicitacao'>
			</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 in" 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">

					</div>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<div style="margin: 0;" class="form-actions">
				<a href="#" class="btn " onclick="preencherComboOrigem();" data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
			</div>
		</div>
	</div>
	
	<div class="modal hide fade in" 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 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>
		
	<div id="POPUP_SERVICO">
		<iframe id='fraServico' src='about:blank' width="100%" height="100%"></iframe>
	</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 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 src="js/gerenciamentoServicos.js" type="text/javascript"></script>
</body>
</html>
</compress:html>
