Commit 2ca80da58c931c114e8fa83620bb389eb955c63e
1 parent
8bbbbeab
Exists in
master
relatório de usuário logado
Showing
2 changed files
with
184 additions
and
0 deletions
Show diff stats
src/Cacic/RelatorioBundle/Resources/views/Faturamento/usuario.html.twig
0 → 100644
| @@ -0,0 +1,106 @@ | @@ -0,0 +1,106 @@ | ||
| 1 | +{% extends 'CacicCommonBundle::base.html.twig' %} | ||
| 2 | + | ||
| 3 | +{% block breadcrumb %} | ||
| 4 | + <li class="active">{{ 'Usuário Logado'|trans }}</li> | ||
| 5 | +{% endblock %} | ||
| 6 | + | ||
| 7 | +{% block body %} | ||
| 8 | + | ||
| 9 | + <div class="row-fluid"> | ||
| 10 | + | ||
| 11 | + <div class="span8"> | ||
| 12 | + <div class="box grad_colour_black"> | ||
| 13 | + | ||
| 14 | + <h2 class="box_head round_top"><i class="icon-search"></i> {{'Relatório de usuário logado' |trans }}</h2> | ||
| 15 | + | ||
| 16 | + <div class="block box_content round_bottom padding_10"> | ||
| 17 | + | ||
| 18 | + <h4>{{ "Filtros para consulta de usuário logado"|trans }}</h4><br /> | ||
| 19 | + | ||
| 20 | + <form id="{{ 'formFaturamento'|trans }}" action="{{ path('cacic_relatorio_usuario_detalhar') }}" class="form-horizontal" method="POST" target="_blank"> | ||
| 21 | + | ||
| 22 | + <div class="control-group"> | ||
| 23 | + <label for="log_acesso_periodo" class="control-label">{{ 'Período'|trans }}</label> | ||
| 24 | + <div class="controls"> | ||
| 25 | + {{ form_widget(form.dtAcaoInicio, { 'attr': {'class': 'datepicker_on'} }) }} a {{ form_widget(form.dtAcaoFim, { 'attr': {'class': 'datepicker_on'} }) }} | ||
| 26 | + <p class="help-block">{{ "Informe o período no qual deseja realizar a faturar."|trans }}</p> | ||
| 27 | + </div> | ||
| 28 | + </div> | ||
| 29 | + | ||
| 30 | + <label class="control-label">{{ 'Usuário'|trans }}</label> | ||
| 31 | + <div class="control-group" > | ||
| 32 | + <div class="controls"> | ||
| 33 | + {{ form_widget(form.usuario) }} | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 36 | + | ||
| 37 | + <div class="control-group _cad_block_opcao"> | ||
| 38 | + <label class="control-label">{{ 'Local'|trans }}</label> | ||
| 39 | + <div class="controls"> | ||
| 40 | + | ||
| 41 | + | ||
| 42 | + <input type="checkbox" class="toggleCheck" name="toggleCheck[]" value="id.Local" id="toggleLocal"> | ||
| 43 | + <label for="toggleLocal"><b>{{ 'Marcar/desmarcar tudo'|trans }}</b></label> | ||
| 44 | + <div style="height: 165px; overflow: auto;"> | ||
| 45 | + | ||
| 46 | + <div class="modulo-opt-block"> | ||
| 47 | + {{ form_widget(form.idLocal, {'form_type': 'horizontal'}) }} | ||
| 48 | + </div> | ||
| 49 | + </div> | ||
| 50 | + </div> | ||
| 51 | + </div> | ||
| 52 | + | ||
| 53 | + <div class="control-group"> | ||
| 54 | + <div class="controls"> | ||
| 55 | + <button type="reset" class="btn"> | ||
| 56 | + <i class="icon-refresh"></i> | ||
| 57 | + {{ "Resetar"|trans }} | ||
| 58 | + </button> | ||
| 59 | + <button type="submit" class="btn btn-primary"> | ||
| 60 | + <i class="icon-search"></i> | ||
| 61 | + {{ 'Gerar relatório'|trans }} | ||
| 62 | + </button> | ||
| 63 | + <button type="submit" class="btn btn-success" formaction="{{ path('cacic_faturamento_csv') }}"> | ||
| 64 | + <i class="icon-download-alt"></i> | ||
| 65 | + {{'Gerar CSV'|trans }} | ||
| 66 | + </button> | ||
| 67 | + </div> | ||
| 68 | + </div> | ||
| 69 | + | ||
| 70 | + </form> | ||
| 71 | + </div> <!-- /block --> | ||
| 72 | + </div> <!-- /box --> | ||
| 73 | + </div> <!-- /span8 --> | ||
| 74 | + | ||
| 75 | + <div class="span4"> | ||
| 76 | + <div class="box grad_colour_black"> | ||
| 77 | + | ||
| 78 | + <h2 class="box_head round_top"><i class="icon-info-sign"></i> {{ "Informações Adicionais"|trans }}</h2> | ||
| 79 | + | ||
| 80 | + <div class="block box_content round_bottom padding_10"> | ||
| 81 | + <p> | ||
| 82 | + {{ "Nesta consulta o possível obter um relatório contendo o registro do último usuário logado na estação"|trans }}. | ||
| 83 | + </p> | ||
| 84 | + <p> | ||
| 85 | + {{ "O campos PERIODO e USUARIO são de preenchimento obrigatório para a realização da consulta"|trans }}. | ||
| 86 | + </p> | ||
| 87 | + <p> | ||
| 88 | + {{ "Não selecionar nenhum valor em LOCAL é o mesmo que selecionar todos"|trans }}. | ||
| 89 | + </p> | ||
| 90 | + </div> <!-- /block --> | ||
| 91 | + </div> <!-- /box --> | ||
| 92 | + </div> <!-- span4 --> | ||
| 93 | + | ||
| 94 | + </div> <!-- /row --> | ||
| 95 | + | ||
| 96 | +{% endblock %} | ||
| 97 | + | ||
| 98 | +{% block javascripts %} | ||
| 99 | + | ||
| 100 | + {{ parent() }} | ||
| 101 | + | ||
| 102 | + <script type="text/javascript"> | ||
| 103 | + System.Form.toggleCheck(); // Ativa o monitoramento de Clique no checkbox para marcar/desmarcar todos | ||
| 104 | + </script> | ||
| 105 | + | ||
| 106 | +{% endblock %} | ||
| 0 | \ No newline at end of file | 107 | \ No newline at end of file |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/usuarioDetalhar.html.twig
0 → 100644
| @@ -0,0 +1,78 @@ | @@ -0,0 +1,78 @@ | ||
| 1 | +{% extends 'CacicRelatorioBundle::base.html.twig' %} | ||
| 2 | + | ||
| 3 | +{% block body %} | ||
| 4 | + | ||
| 5 | + <h2>{{ 'Relatório de usuário logado -'|trans }} {{ usuario }}</h2> | ||
| 6 | + <h5 class="">{{ 'Período: '|trans }}{{ dtAcaoInicio|date("d/m/Y") }} a {{ dtAcaoFim|date("d/m/Y") }}</h5> | ||
| 7 | + <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("d/m/Y H\\hi") }}{% endif %}</h5> | ||
| 8 | + <hr /> | ||
| 9 | + | ||
| 10 | + <!--Botão CSV --> | ||
| 11 | + <a class="btn btn-primary" type="submit" href="{{ path('cacic_relatorio_usuario_csv',{'dataInicio':dtAcaoInicio|trim,'dataFim':dtAcaoFim|trim})}}" title="{{ "Máquinas faturadas"|trans }}" target="_self"> | ||
| 12 | + <i class="icon-bar-chart"></i> | ||
| 13 | + Gerar CSV | ||
| 14 | + </a> | ||
| 15 | + <!--Botão CSV --> | ||
| 16 | + | ||
| 17 | + <P /> | ||
| 18 | + | ||
| 19 | + {% if dados %} | ||
| 20 | + | ||
| 21 | + <table class="display datatable" id="datatable"> | ||
| 22 | + | ||
| 23 | + <thead> | ||
| 24 | + <tr> | ||
| 25 | + <th width="15%">{{ "Computador"|trans }}</th> | ||
| 26 | + <th width="9%">{{ "MAC Address"|trans }}</th> | ||
| 27 | + <th width="9%">{{ "Endereço IP"|trans }}</th> | ||
| 28 | + <th width="7%">{{ "Sistema Operacional"|trans }}</th> | ||
| 29 | + <th width="10%">{{ "Local"|trans }}</th> | ||
| 30 | + <th width="20%">{{ "Subrede"|trans }}</th> | ||
| 31 | + <th width="10%">{{ "Usuário"|trans }}</th> | ||
| 32 | + <th width="13%">{{ "Data/Hora da Última coleta"|trans }}</th> | ||
| 33 | + </tr> | ||
| 34 | + </thead> | ||
| 35 | + | ||
| 36 | + <tbody> | ||
| 37 | + {% for reg in dados %} | ||
| 38 | + {% set computadores = reg.idComputador|split(',') %} | ||
| 39 | + {% set nomes = reg.nmComputador|split(',') %} | ||
| 40 | + {% set ips = reg.teIpComputador|split(',') %} | ||
| 41 | + <tr> | ||
| 42 | + <td> | ||
| 43 | + {% for comp in nomes %} | ||
| 44 | + <b><a href="{{ path('cacic_faturamento_computador', {'nmComputador' : comp|trim }) }}" title="{{ 'Detalhar computador'|trans }}" target="_blank">{{ comp }}</a></b> | ||
| 45 | + {% else %} | ||
| 46 | + <b>{{ reg.nmComputador }}</b> | ||
| 47 | + {% endfor %} | ||
| 48 | + </td> | ||
| 49 | + <td><a href="{{ path('cacic_faturamento_computador', {'teNodeAddress' : reg.teNodeAddress|trim }) }}" title="{{ 'Detalhar computador'|trans }}" target="_blank">{{ reg.teNodeAddress }}</a></td> | ||
| 50 | + <td> | ||
| 51 | + {% for comp in ips %} | ||
| 52 | + <b><a href="{{ path('cacic_faturamento_computador', {'teIpComputador' : comp|trim }) }}" title="{{ 'Detalhar computador'|trans }}" target="_blank">{{ comp }}</a></b> | ||
| 53 | + {% else %} | ||
| 54 | + <b>{{ reg.teIpComputador }}</b> | ||
| 55 | + {% endfor %} | ||
| 56 | + </td> | ||
| 57 | + <td>{{ reg.sgSo }}</td> | ||
| 58 | + <td>{{ reg.nmLocal }}</td> | ||
| 59 | + <td>{{ reg.nmRede }} / {{ reg.teIpRede }}</td> | ||
| 60 | + <td>{{ reg.usuario }}</td> | ||
| 61 | + <td>{{ reg.data|date(' d, M, Y H:m:s') }}</td> | ||
| 62 | + </tr> | ||
| 63 | + | ||
| 64 | + {% endfor %} | ||
| 65 | + </tbody> | ||
| 66 | + </table> | ||
| 67 | + | ||
| 68 | + {% else %} | ||
| 69 | + | ||
| 70 | + <div class="row-fluid"> | ||
| 71 | + <table class="table table-striped"> | ||
| 72 | + <tr><td colspan="3" style="text-align: center"><b>{{ 'NENHUM REGISTRO ENCONTRADO'|trans }}</b></td></tr> | ||
| 73 | + </table> | ||
| 74 | + </div> | ||
| 75 | + | ||
| 76 | + {% endif %} | ||
| 77 | + | ||
| 78 | +{% endblock %} |