Commit 148b700680e21c660dff2452357dc8f0ebb33f3d
1 parent
3df9c833
Exists in
master
tela gestao
Showing
5 changed files
with
78 additions
and
5 deletions
Show diff stats
wscacicneo/__init__.py
... | ... | @@ -13,6 +13,7 @@ def main(global_config, **settings): |
13 | 13 | config.add_route('graficop', 'graficop') |
14 | 14 | config.add_route('notifications', 'notifications') |
15 | 15 | config.add_route('admin', 'admin') |
16 | + config.add_route('gestao', 'gestao') | |
16 | 17 | config.add_route('reports', 'reports') |
17 | 18 | config.add_route('busca', 'busca') |
18 | 19 | config.add_route('gestor', 'gestor') | ... | ... |
... | ... | @@ -0,0 +1,65 @@ |
1 | + | |
2 | +// **** FILTRO DE ITENS **** | |
3 | + | |
4 | +Ext.define('User1',{ | |
5 | + extend: 'Ext.data.Model', | |
6 | + fields: ['chbox', 'item' ] | |
7 | +}); | |
8 | + | |
9 | +var userStore1 = Ext.create('Ext.data.Store', { | |
10 | + model: 'User1', | |
11 | + data: [ | |
12 | + { item: 'Computador'}, | |
13 | + { item: 'Processador'}, | |
14 | + { item: 'Memórias'}, | |
15 | + { item: 'Hard Disk (HD)'}, | |
16 | + { item: 'Sistemas Operacionais'}, | |
17 | + { item: 'Suítes de Escritórios'}, | |
18 | + { item: 'Ativos de Redes'}, | |
19 | + { item: 'Softwares Básicos'}, | |
20 | + ] | |
21 | +}); | |
22 | + | |
23 | +table1 = Ext.create('Ext.grid.Panel', { | |
24 | + store: userStore1, | |
25 | + width: 400, | |
26 | + height: 200, | |
27 | + // title: 'Application Users', | |
28 | + columns: [ | |
29 | + { | |
30 | + text: 'Item', | |
31 | + width: 500, | |
32 | + sortable: true, | |
33 | + hideable: false, | |
34 | + dataIndex: 'item' | |
35 | + }, | |
36 | + ] | |
37 | +}); | |
38 | + | |
39 | +tabela1 = Ext.create('Ext.panel.Panel', { | |
40 | + layout: 'fit', | |
41 | + title: 'Gerar Relatório', | |
42 | + width: '75%', | |
43 | + frame: true, | |
44 | + draggable: true, | |
45 | + collapsible: true, | |
46 | + border : true, | |
47 | + style: { | |
48 | + "text-align": 'center', | |
49 | + margin: '0px auto 15px auto' | |
50 | + }, | |
51 | + items: table1, | |
52 | +}); | |
53 | + | |
54 | +Ext.onReady(function(){ | |
55 | + | |
56 | + | |
57 | + Ext.create('Ext.Container', { | |
58 | + padding:'15px', | |
59 | + items: [tabela1], | |
60 | + renderTo: 'widgets' | |
61 | + }); | |
62 | + | |
63 | +}); | |
64 | + | |
65 | + | ... | ... |
wscacicneo/templates/reports.pt
1 | 1 | <metal:main use-macro="load: master.pt"> |
2 | -<<<<<<< HEAD | |
3 | -<!-- <script metal:fill-slot="javascript" type="text/javascript" src="static/reports.js"></script>--> | |
4 | -<script metal:fill-slot="javascript" type="text/javascript" src="static/reports.js"></script> | |
5 | -======= | |
6 | 2 | <!-- Insere JavaScript --> |
7 | 3 | <script metal:fill-slot="javascript" type="text/javascript" src="static/reports.js"></script> |
8 | ->>>>>>> a1454feb4541f60bde65a7192f871a00bb39d799 | |
9 | 4 | |
10 | 5 | <div metal:fill-slot="conteudo" id="widgets"></div> |
11 | 6 | </metal:main> |
7 | + | ... | ... |
wscacicneo/views.py
... | ... | @@ -23,6 +23,10 @@ def home(request): |
23 | 23 | def reports(request): |
24 | 24 | return {'project': 'WSCacicNeo'} |
25 | 25 | |
26 | +@view_config(route_name='gestao', renderer='templates/gestao.pt') | |
27 | +def gestao(request): | |
28 | + return {'project': 'WSCacicNeo'} | |
29 | + | |
26 | 30 | @view_config(route_name='perfil', renderer='templates/perfil.pt') |
27 | 31 | def perfil(request): |
28 | 32 | return {'project': 'WSCacicNeo'} | ... | ... |