Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
HTML
<center><font size="5000">CONTROLE DE ERROS ABERTOS</font></center>
Gráfico
bgColor#222222
orientationvertical
borderColor#DDDDDD
height400
width1200
showShapesfalse
typeline
 012345678910111213
META0153045607590105120 135150165 180195
1º Trimestre027477187112140150165182210228248261
2º Trimestre013285273107126148170194223250273297
3º Trimestre0133554          

 

 

Gráfico
bgColor#222222
orientationvertical
dataOrientationvertical
borderColor#DDDDDD
height400
legendfalse
width1200
showShapesfalse
typeline
 JanFevMarAbrMaiJunJulAgoSetOutNovDez
META10176868010410054     

 

 

Excerpt
SQL
dataSourceSIA
SELECT
(ARRAY['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez']) [date_part('MONTH', p.dtInicio)],
SUM(Case when EXTRACT(MONTH FROM p.dtInicio) = EXTRACT(MONTH FROM P.dtInicio) then 1 else 0 end) AS "Quantidade"
FROM esiaprocesso p
LEFT JOIN esiaCategoriaEvento c ON p.cdCategoriaevento = c.cdCategoriaEvento
WHERE date_part('year', p.dtInicio) = 2018
and c.cdCategoriaEvento = 2
and p.cdTipoPendencia = 1
and p.cdEntidade <> 526
and p.cdProduto in (3,10,12,4,8,16,21)
GROUP BY date_part('MONTH', p.dtInicio)
ORDER BY date_part('MONTH', p.dtInicio)

HTML
<center><font size="2500">Número de erros que entraram:</font></center>

SQL
dataSourceSIA
stylebackground-color:black;color:yellow; font-weight:bold;font-size:3.8em;
rowOrientationhorizontal
retainRowStyleOrderfalse
SELECT 
SUM(CASE WHEN current_date = P.dtInicio then 1 else 0 end) as "Hoje",
SUM(Case when cast(EXTRACT(WEEK FROM current_date) as integer) = cast(EXTRACT(WEEK FROM P.dtInicio) as integer) then 1 else 0 end) as "Semana ",
SUM(Case when EXTRACT(MONTH FROM current_date) = EXTRACT(MONTH FROM P.dtInicio) then 1 else 0 end) as "Mês   ",
COUNT(*) as "Trimestre"
FROM esiaprocesso p
LEFT JOIN esiaCategoriaEvento c ON p.cdCategoriaevento = c.cdCategoriaEvento
WHERE date_part('year',p.dtInicio) >= 2018
and date_part('MONTH',p.dtInicio) >= 7
and c.cdCategoriaEvento = 2
and p.cdTipoPendencia = 1
and p.cdEntidade <> 526
and p.cdProduto in (3,10,12,4,8,16,21)