Pular para o conteúdo
Voltar

VBP - Valor Bruto da Produção

Um erro ocorreu enquanto processava o modelo.
?sort_by(...) failed at sequence index 8 (0-based): The "publishDate" subvariable was not found.
1<#-- 
2    Nome: Observatório Desenvolvimento (SEDEC) - MIGRACAO 
3    Estrutura: Observatório Desenvolvimento (SEDEC) 
4    Descrição: 
5    Fazer cache: Sim 
6    Data alteração: 2022 05 12 
7    Tarefa: #46151 
8    Obs.: 
9--> 
10<style> 
11.lista_formulario_titulo { 
12	background-color: #152e75; 
13	color: #FFF; 
14	cursor: pointer; 
15	padding: 18px; 
16	width: 100%; 
17	border: none; 
18	text-align: left; 
19	outline: none; 
20	font-size: 15px; 
21	transition: 0.4s; 
22	border-top: 1px solid #b0b5bb; 
23    border-left: 1px solid #b0b5bb; 
24    border-right: 1px solid #b0b5bb; 
25
26 
27.active_lista, .pergunta_frequente:hover { 
28    background-color: #152e75; 
29	color: #FFF; 
30
31 
32.lista_formulario_titulo:hover:after { 
33    border-top: 2px solid #FFF; 
34    border-left: 2px solid #FFF; 
35	-webkit-transform: rotate(-135deg); 
36    -moz-transform: rotate(-135deg); 
37    -ms-transform: rotate(-135deg); 
38    -o-transform: rotate(-135deg); 
39    transform: rotate(-137deg); 
40
41 
42.lista_formulario_panel { 
43    padding: 0 18px; 
44    background-color: white; 
45    max-height: 0; 
46    overflow: hidden; 
47    transition: max-height 0.2s ease-out; 
48    border-bottom: 1px solid #b0b5bb; 
49    border-left: 1px solid #b0b5bb; 
50    border-right: 1px solid #b0b5bb; 
51	margin-bottom: 10px !important; 
52
53 
54.lista_formulario_panel p { 
55	padding: 10px; 
56
57 
58.lista_formulario_titulo:after { 
59    border-top: 2px solid #FFF; 
60    border-left: 2px solid #FFF; 
61    content: ""; 
62    width: 6px; 
63    height: 6px; 
64    right: 20px; 
65    z-index: 10; 
66    -webkit-transform: rotate(-225deg); 
67    -moz-transform: rotate(-225deg); 
68    -ms-transform: rotate(-225deg); 
69    -o-transform: rotate(-225deg); 
70    transform: rotate(-225deg); 
71	margin-top: 5px; 
72    float: right; 
73    margin-left: 5px; 
74
75 
76.active_lista:after { 
77	border-top: 2px solid #FFF; 
78    border-left: 2px solid #FFF; 
79	-webkit-transform: rotate(-135deg); 
80    -moz-transform: rotate(-135deg); 
81    -ms-transform: rotate(-135deg); 
82    -o-transform: rotate(-135deg); 
83    transform: rotate(-137deg); 
84
85 
86 
87.cat-service-icon { 
88	width: 100%; 
89	text-align: center; 
90	color: #fff; 
91	background: #00AEEF !important; 
92	position: relative; 
93
94 
95.line-link { 
96	border-top: 3px solid #00AEEF; 
97	position: absolute; 
98	right: -35px; 
99	top: 90px; 
100	height: 1px; 
101	width: 50px; 
102
103 
104#service-content { 
105	margin-top: -5px; 
106
107 
108#service-background {} 
109 
110#left-col {} 
111 
112.mt-service .asset-full-content { 
113	font-family: 'Calibri'; 
114	text-align: justify; 
115	margin-top: 55px; 
116	padding-right: 20px; 
117
118 
119.attach-title { 
120	font-family: 'Nexa'; 
121	text-transform: uppercase; 
122	color: #fff; 
123	font-size: 14px; 
124	padding: 5px; 
125	background-color: #1255A6; 
126
127 
128.attach-content { 
129	margin-top: 3px; 
130	padding: 10px 0; 
131	border-top: 2px solid #1255A6; 
132
133 
134.orgao { 
135	font-family: 'Calibri'; 
136	margin-top: 30px; 
137
138 
139.brasao { 
140	font-family: 'Nexa'; 
141	text-transform: uppercase; 
142	text-align: center; 
143
144 
145.brasao .icon-wrapper { 
146	border: 2px solid #fff; 
147	width: 34px; 
148	height: 34px; 
149	display: table !important; 
150	margin: 0 auto; 
151	padding: 5px; 
152
153 
154.brasao i.service-icon { 
155	padding: 0 !important; 
156	color: #fff; 
157
158 
159.mini { 
160	font-size: .4em; 
161
162 
163.sigla { 
164	font-family: 'Nexa'; 
165	color: #fff; 
166	text-transform: uppercase; 
167
168 
169.line { 
170	display: block; 
171	font-size: 14px; 
172
173 
174.relateds {} 
175 
176.relateds ul { 
177	list-style: none; 
178	color: #fff; 
179	padding: 7px 10px 10px 0; 
180	margin: 0 0 0 10px; 
181
182 
183.relateds ul li { 
184	border-bottom: 1px solid #fff; 
185	line-height: 15px; 
186	padding: 3px 3px 5px 3px; 
187
188 
189.relateds ul li.ativo { 
190	background-color: #00aeef; 
191
192 
193.relateds ul li a:hover { 
194	color: #009ae5; 
195
196 
197.lifecycle { 
198	padding: 10px; 
199	background: #193177 !important; 
200
201 
202.lifecycle .icon-wrapper i { 
203	font-size: 36px; 
204	display: table-cell; 
205	padding: 15px; 
206
207 
208.lifecycle .row-fluid>div:hover { 
209	background: #5a70b0; 
210
211 
212.service-title { 
213	background: #00AEEF; 
214	text-align; 
215	display: -webkit-inline-box; 
216
217 
218.service-title h1 { 
219	color: #fff; 
220	padding: 20px; 
221	margin: 0; 
222	text-transform: uppercase; 
223	font-size: 1.8em; 
224	display: inline-flex; 
225
226 
227.service-lc-title { 
228	font-size: 48px; 
229	color: #fff; 
230	text-transform: uppercase; 
231	font-weight: bold; 
232	display: -webkit-inline-box; 
233	vertical-align: top; 
234	line-height: 120px; 
235	margin-left: 20px; 
236
237 
238.service-lc-title small { 
239	font-size: 14px; 
240	line-height: 18px; 
241	margin-top: -40px; 
242	position: absolute; 
243
244 
245.ico-service { 
246	border: 4px solid #fff; 
247	display: table !important; 
248	border-radius: 100%; 
249	padding: 10px; 
250
251 
252.ico-service i { 
253	color: #fff; 
254	font-size: 100px; 
255	padding: 10px; 
256	display: table-cell !important; 
257
258 
259.back-service { 
260	min-height: 200px !important; 
261	background-size: cover !important; 
262	padding: 15px; 
263	width: 48.1%; 
264	float: right; 
265
266 
267.cor .icon-wrapper { 
268	border: 2px solid #fff; 
269	width: 68px; 
270	height: 68px; 
271	display: table !important; 
272	border-radius: 50px; 
273	margin: 0 auto; 
274	padding: 5px; 
275
276 
277.cor a, 
278.cor .service-icon { 
279	color: #fff; 
280
281 
282.cor a:hover { 
283	color: #fff; 
284	text-decoration: none; 
285
286 
287.cor { 
288	background: #0071bb; 
289
290 
291.pagetitle-content input[type="text"] { 
292	color: #fff; 
293	background: rgba(255, 255, 255, 0.3); 
294	border: 0; 
295	padding: 3px 5px; 
296	margin-top: 5px; 
297
298 
299.pagetitle-content .search-layout { 
300	display: none; 
301
302 
303.pagetitle-content .control-group { 
304	margin-bottom: 0; 
305
306 
307.pagetitle-content .liferaytokenlist { 
308	display: none; 
309
310 
311.pagetitle-content form { 
312	margin: 0; 
313	display: -webkit-inline-box; 
314	padding-left: 20px; 
315
316 
317.taglib-header { 
318	display: none; 
319
320</style> 
321<#assign 
322    theme_img_path = request["theme-display"]["path-theme-images"] 
323 
324    journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") 
325    ja = journalArticleLocalService.getArticle( groupId, .vars['reserved-article-id'].data ) 
326    resourceprimKey = ja.getResourcePrimKey() 
327    assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") 
328    assetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
329    categoryUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") 
330    categoryPorpertyService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService") 
331    assetCategories = categoryUtil.getAssetEntryAssetCategories(assetEntry.getEntryId()) 
332 
333    lifecycle = httpUtil.getParameter(request["attributes"].CURRENT_COMPLETE_URL, 'ciclo') 
334/> 
335 
336<#if lifecycle == 'cv_indcom' > 
337	<#assign lifecycleLabel = 'indústria e comércio' /> 
338<#elseif lifecycle == 'cv_empinv' > 
339	<#assign lifecycleLabel = 'empreendedorismo e investimentos' /> 
340<#elseif lifecycle == 'cv_agremp' > 
341	<#assign lifecycleLabel = 'agricultura empresarial' /> 
342<#elseif lifecycle == 'cv_tur' > 
343	<#assign lifecycleLabel = 'turismo' /> 
344</#if> 
345 
346<#assign jaTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
347 
348<#list jaTags.getAssetEntryAssetTags(assetEntry.entryId) as aeTag > 
349    <#if aeTag.name == lifecycle > 
350        <#assign tagId = aeTag.tagId /> 
351    </#if> 
352</#list> 
353 
354<#list assetCategories as category > 
355    <#if (category.name == "AGRONEGÓCIO") > 
356		<#assign catIcon= "icon-mt-agricultura" /> 
357		<#assign catName = category.name /> 
358		<#assign catId = category.categoryId /> 
359        <#break> 
360	<#elseif (category.name == "TURISMO") > 
361		<#assign catIcon= "icon-mt-turismo2" /> 
362		<#assign catName = category.name /> 
363		<#assign catId = category.categoryId /> 
364        <#break> 
365	<#elseif (category.name == "EMPREENDEDORISMO") > 
366		<#assign catIcon= "icon-mt-empreendedor" /> 
367		<#assign catName = category.name /> 
368		<#assign catId = category.categoryId /> 
369        <#break> 
370	<#elseif (category.name == "LOGÍSTICA") > 
371		<#assign catIcon= "icon-mt-entrega" /> 
372		<#assign catName = category.name /> 
373		<#assign catId = category.categoryId /> 
374        <#break> 
375	<#elseif (category.name == "COMÉRCIO EXTERIOR") > 
376		<#assign catIcon= "icon-mt-navio" /> 
377		<#assign catName = category.name /> 
378		<#assign catId = category.categoryId /> 
379        <#break> 
380	<#elseif (category.name == "INVESTIMENTO") > 
381		<#assign catIcon= "icon-mt-grafico" /> 
382		<#assign catName = category.name /> 
383		<#assign catId = category.categoryId /> 
384        <#break> 
385    <#elseif (category.name == "RECURSOS MATERIAIS (NATURAIS)") > 
386		<#assign catIcon= "icon-mt-arvore" /> 
387		<#assign catName = category.name /> 
388		<#assign catId = category.categoryId /> 
389        <#break> 
390	<#elseif (category.name == "MINAS E ENERGIA") > 
391		<#assign catIcon= "icon-mt-bio-energia" /> 
392		<#assign catName = category.name /> 
393		<#assign catId = category.categoryId /> 
394        <#break> 
395    <#elseif (category.name == "PERFIL DO ESTADO") > 
396		<#assign catIcon= "icon-mt-mt" /> 
397		<#assign catName = category.name /> 
398		<#assign catId = category.categoryId /> 
399        <#break> 
400    <#elseif (category.name == "CONSÓRCIO") > 
401		<#assign catIcon= "icon-bar-chart" /> 
402		<#assign catName = category.name /> 
403		<#assign catId = category.categoryId /> 
404        <#break> 
405     <#elseif (category.name == "ARTESANATO") > 
406		<#assign catIcon= "icon-mt-artesanato-2" /> 
407		<#assign catName = category.name /> 
408		<#assign catId = category.categoryId /> 
409        #break 
410    <#elseif (category.name == "COMÉRCIO") > 
411		<#assign catIcon= "icon-mt-consumidor" /> 
412		<#assign catName = category.name /> 
413		<#assign catId = category.categoryId /> 
414        <#break> 
415    <#elseif (category.name == "INCENTIVOS") > 
416		<#assign catIcon= "icon-mt-presente" /> 
417		<#assign catName = category.name /> 
418		<#assign catId = category.categoryId /> 
419        <#break> 
420    <#elseif (category.name == "INDÚSTRIA") > 
421		<#assign catIcon= "icon-mt-fabrica" /> 
422		<#assign catName = category.name /> 
423		<#assign catId = category.categoryId /> 
424        <#break> 
425    <#elseif (category.name == "SERVIÇOS") > 
426		<#assign catIcon= "icon-mt-ferramentas" /> 
427		<#assign catName = category.name /> 
428		<#assign catId = category.categoryId /> 
429        <#break> 
430    </#if> 
431</#list> 
432 
433<div class="service-title"> 
434    <h1>${.vars['reserved-article-title'].data}</h1> 
435</div> 
436 
437<#if (image.getData()?trim != '') > 
438    <img style="margin-top:50px;" src="${image.getData()}" /> 
439</#if> 
440<br><br> 
441${full_text.getData()}<br><br> 
442 
443<#if link_service.getData()?has_content > 
444    <span class="attach-title">Link do Serviço</span> 
445    <div class="attach-content row-fluid"><a href="${link_service.getData()}">${link_service.getData()}</a></div> 
446<#elseif file.getData()?has_content > 
447    <span class="attach-title">Download</span> 
448    <div class="attach-content row-fluid"> 
449        <a href="${file.getData()}" download> 
450        	Clique aqui para baixar o arquivo 
451        </a> 
452    </div> 
453</#if> 
454 
455<div class="row-fluid orgao" style="display:none;"> 
456    <div class="span6 brasao"> 
457        <a href="${site.getData()}"> 
458			<img src="${theme_img_path}/brasoes/sefaz.png" /> 
459        </a> 
460    </div> 
461    <div class="span6"> 
462    </div> 
463</div> 
464 
465<#assign 
466    portalURL = "${httpUtil.getProtocol(request.attributes.CURRENT_URL)}://${getterUtil.getString(.vars['request.theme-display.portal-url'])}" 
467/> 
468 
469<div class="cat-service-icon cor" style="height:inherit;padding: 17px 0 10px;"> 
470    <div class="icon-wrapper"> 
471        <i class="service-icon ${catIcon!''}"></i> 
472    </div> 
473    <h5 style="font-size:18px;font-weight:normal;text-transform:uppercase;">${catName!''}</h5> 
474    <div class="line-link"></div> 
475    <#if lifecycle != '' > 
476        <a href="observatorio-desenvolvimento?ciclo=${lifecycle}"><i class="icon-arrow-left"></i> Serviços para ${lifecycleLabel!''}</a> 
477    <#else> 
478        <a href="/observatorio-desenvolvimento"><i class="icon-arrow-left"></i> Voltar</a> 
479    </#if> 
480</div> 
481 
482<#assign 
483    assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService" ) 
484 
485    currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
486    currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() 
487    currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId) 
488/> 
489 
490<div class="cor relateds"> 
491    <ul> 
492		<#list assetEntryLocalService.getAssetCategoryAssetEntries(catId!0, -1, -1)?sort_by("publishDate") as entry > 
493			<#if entry.visible > 
494				<#if entry.getEntryId() == assetEntry.getEntryId() > 
495					<#assign classAtivo = "class='ativo'" /> 
496				<#else> 
497					<#assign classAtivo = "" /> 
498				</#if> 
499				<#assign linkedArticle = journalArticleLocalService.getLatestArticle(entry.getClassPK(), 0) /> 
500				<li ${classAtivo}><a href="${complementoURL!''}/-/${linkedArticle.urlTitle}"> ${linkedArticle.getTitle(locale)}</a></li> 
501			</#if> 
502		</#list> 
503    </ul> 
504</div> 
505 
506<script type="text/javascript"> 
507    var serviceHeader = jQuery('.mt-service .header-service').clone(); 
508    var serviceContent = jQuery('.mt-service .asset-full-content').clone(); 
509    var serviceIcon = jQuery('.mt-service .cat-service-icon').clone(); 
510    var serviceList = jQuery('.mt-service .relateds').clone(); 
511    var lifecycle = jQuery('.mt-service .lifecycle').clone(); 
512 
513    jQuery('.mt-service .asset-full-content').remove(); 
514 
515    if('${lifecycle}' != ''){ 
516        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="span12" id="service-header"></div></div><div class="row-fluid" id="service-background"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
517    }else{ 
518        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="row-fluid" id="service-background" style="margin-top:-20px;"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
519
520    jQuery('#left-col').append(serviceIcon); 
521    jQuery('#left-col').append(serviceList); 
522    jQuery('#left-col').append(lifecycle); 
523    jQuery('#service-content').append(serviceContent); 
524 
525    jQuery('.mt-service .header-service').remove(); 
526    jQuery('.mt-service .asset-full-content .cat-service-icon').remove(); 
527    jQuery('.mt-service .asset-full-content .relateds').remove(); 
528    jQuery('.mt-service .asset-full-content .lifecycle').remove(); 
529    jQuery('#service-header').append(serviceHeader); 
530 
531    /*window.setTimeout( function(){ 
532        //var search = document.querySelectorAll('.mt-search form')[0]; 
533        //document.querySelectorAll('.pagetitle-content')[0].appendChild(search); 
534        //document.querySelectorAll('.mt-search')[0].style.display = 'none'; 
535        document.querySelectorAll('.pagetitle-content select')[0].style.display = 'none'; 
536        document.querySelectorAll('.pagetitle-content form')[0].style.display = '-webkit-inline-box'; 
537        document.querySelectorAll('.pagetitle-content form')[0].style.marginLeft = '20px'; 
538        document.querySelectorAll('.pagetitle-content form')[0].style.marginBottom = '0'; 
539 
540        var x = document.querySelectorAll(".pagetitle-content input[type='image']")[0].src.replace("search.png", "search2.png"); 
541        document.querySelectorAll(".pagetitle-content input[type='image']")[0].src = x; 
542        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginLeft = "-34px"; 
543        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.background = "rgba(255,255,255,0.3)"; 
544        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.padding = "5px"; 
545        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginTop = "-2px"; 
546 
547        document.querySelectorAll('.pagetitle-content')[0].style.paddingBottom = '0'; 
548        document.querySelectorAll('.pagetitle-content')[0].style.paddingTop = '10px'; 
549 
550    }, 500 );*/ 
551</script> 



Contato:
Sugestão, elogios e reclamações, Solicitações
observatorio@sedec.mt.gov.br
(65) 3613-0121
Vinicius Hideki K. Bispo