Commit 4d467af049556fe742320918da3711727256969c

Authored by Macieski
1 parent 582b4afc
Exists in master

telas novas do super gerente

wscacicneo/__init__.py
... ... @@ -13,11 +13,25 @@ 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('proc', 'proc')
  17 + config.add_route('sistema', 'sistema')
  18 + config.add_route('orgao', 'orgao')
  19 + config.add_route('list', 'list')
16 20 config.add_route('gestao', 'gestao')
  21 + config.add_route('memoria', 'memoria')
  22 + config.add_route('basico', 'basico')
  23 + config.add_route('rede', 'rede')
  24 + config.add_route('escritorio', 'escritorio')
  25 + config.add_route('hd', 'hd')
  26 + config.add_route('config', 'config')
  27 + config.add_route('users', 'users')
  28 + config.add_route('login', 'login')
17 29 config.add_route('reports', 'reports')
  30 + config.add_route('computador', 'computador')
18 31 config.add_route('busca', 'busca')
19 32 config.add_route('gestor', 'gestor')
20 33 config.add_route('diagnostic', 'diagnostic')
  34 + config.add_route('cadastro', 'cadastro')
21 35 config.add_route('sobre', 'sobre')
22 36 config.add_route('perfil', 'perfil')
23 37 config.scan()
... ...
wscacicneo/static/basico.js 0 → 100644
... ... @@ -0,0 +1,68 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Data',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'Nome',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + xtype: 'button',
  30 + text: 'Enviar',
  31 + style : {
  32 + margin : " 0px 10px 0px 0px"
  33 + }
  34 + },
  35 + {
  36 + xtype: 'button',
  37 + text: 'Limpar',
  38 + },
  39 + ]
  40 +});
  41 +
  42 +painel = Ext.create('Ext.panel.Panel', {
  43 + layout: 'fit',
  44 + title: 'Básicos',
  45 + width: '75%',
  46 + height: 200,
  47 + frame: true,
  48 + draggable: true,
  49 + collapsible: true,
  50 + border : true,
  51 + style: {
  52 + "text-align": 'center',
  53 + margin: '0px auto 15px auto'
  54 + },
  55 + items: table,
  56 +});
  57 +
  58 +Ext.onReady(function(){
  59 +
  60 +
  61 + Ext.create('Ext.Container', {
  62 + padding: '15px',
  63 + items: [painel],
  64 + renderTo: 'widgets'
  65 + });
  66 +
  67 +});
  68 +
... ...
wscacicneo/static/cadastro.js 0 → 100644
... ... @@ -0,0 +1,92 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Nome',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Matricula',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'E-mail',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + fieldLabel: 'Telefone',
  30 + name: 'telefone'
  31 + },
  32 + {
  33 + fieldLabel: 'Orgão',
  34 + width: 450,
  35 + name: 'orgao'
  36 + },
  37 + {
  38 + fieldLabel: 'Cargo',
  39 + width:450,
  40 + name: 'cargo'
  41 + },
  42 + {
  43 + fieldLabel: 'Setor',
  44 + width:450,
  45 + name: 'setor'
  46 + },
  47 + {
  48 + fieldLabel: 'Permissão',
  49 + width: 200,
  50 + name: 'permissao'
  51 + },
  52 + {
  53 + xtype: 'button',
  54 + text: 'Enviar',
  55 + style:{
  56 + margin: '0px 10px 0px 400px',
  57 + }
  58 + },
  59 + {
  60 + xtype: 'button',
  61 + text: 'Cancelar',
  62 + },
  63 + ]
  64 +});
  65 +
  66 +painel = Ext.create('Ext.panel.Panel', {
  67 + layout: 'fit',
  68 + title: 'Cadastro Usuário',
  69 + width: '75%',
  70 + height: 300,
  71 + frame: true,
  72 + draggable: true,
  73 + collapsible: true,
  74 + border : true,
  75 + style: {
  76 + "text-align": 'center',
  77 + margin: '0px auto 15px auto'
  78 + },
  79 + items: table,
  80 +});
  81 +
  82 +Ext.onReady(function(){
  83 +
  84 +
  85 + Ext.create('Ext.Container', {
  86 + padding: '15px',
  87 + items: [painel],
  88 + renderTo: 'widgets'
  89 + });
  90 +
  91 +});
  92 +
... ...
wscacicneo/static/computador.js 0 → 100644
... ... @@ -0,0 +1,66 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Qantidade',
  15 + width:300,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Tipo',
  20 + width: 300,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + xtype: 'button',
  25 + text: 'Enviar',
  26 + style:{
  27 + margin: '0px 10px 0px 0px',
  28 + }
  29 + },
  30 + {
  31 + xtype: 'button',
  32 + text: 'Limpar',
  33 + style:{
  34 + margin: '0px 10px 0px 0px',
  35 + }
  36 + },
  37 + ]
  38 +});
  39 +
  40 +painel = Ext.create('Ext.panel.Panel', {
  41 + layout: 'fit',
  42 + title: 'Computador',
  43 + width: 425,
  44 + height: 150,
  45 + frame: true,
  46 + draggable: true,
  47 + collapsible: true,
  48 + border : true,
  49 + style: {
  50 + "text-align": 'center',
  51 + margin: '0px auto 15px auto'
  52 + },
  53 + items: table,
  54 +});
  55 +
  56 +Ext.onReady(function(){
  57 +
  58 +
  59 + Ext.create('Ext.Container', {
  60 + padding: '15px',
  61 + items: [painel],
  62 + renderTo: 'widgets'
  63 + });
  64 +
  65 +});
  66 +
... ...
wscacicneo/static/config.js 0 → 100644
... ... @@ -0,0 +1,128 @@
  1 +/*GRAFICO DE ORGÃOS*/
  2 +
  3 +
  4 +Ext.define('User',{
  5 + extend: 'Ext.data.Model',
  6 + fields: [ 'codigo', 'orgao', 'date' ]
  7 +});
  8 +
  9 +var userStore = Ext.create('Ext.data.Store', {
  10 + model: 'User',
  11 + data: [
  12 + { codigo: 'Gráficos'},
  13 + { codigo: 'Favoritos'},
  14 + { codigo: 'Pesquisa Rápida'},
  15 + { codigo: 'Notificações'},
  16 + { codigo: 'Base de Dados'},
  17 + ]
  18 +});
  19 +
  20 +table = Ext.create('Ext.grid.Panel', {
  21 + store: userStore,
  22 + width: 400,
  23 + height: 200,
  24 + // title: 'Application Users',
  25 + columns: [
  26 + {
  27 + text: 'Opções',
  28 + width: 550,
  29 + sortable: true,
  30 + hideable: false,
  31 + dataIndex: 'codigo'
  32 + },
  33 + ]
  34 +});
  35 +
  36 +tabela = Ext.create('Ext.panel.Panel', {
  37 + layout: 'fit',
  38 + title: 'Configurações da Aplicação',
  39 + width: '75%',
  40 + height: 165,
  41 + frame: true,
  42 + draggable: true,
  43 + collapsible: true,
  44 + border : true,
  45 + style: {
  46 + "text-align": 'center',
  47 + margin: '0px auto 15px auto'
  48 + },
  49 + items: table,
  50 +});
  51 +
  52 +Ext.onReady(function(){
  53 +
  54 +
  55 + Ext.create('Ext.Container', {
  56 + padding: '15px',
  57 + items: [tabela],
  58 + renderTo: 'widgets'
  59 + });
  60 +
  61 +});
  62 +
  63 +
  64 +// **** FILTRO DE ITENS ****
  65 +
  66 +Ext.define('User1',{
  67 + extend: 'Ext.data.Model',
  68 + fields: ['chbox', 'item' ]
  69 +});
  70 +
  71 +var userStore1 = Ext.create('Ext.data.Store', {
  72 + model: 'User1',
  73 + data: [
  74 + { item: 'Relatórios'},
  75 + { item: 'Meu Perfil'},
  76 + ]
  77 +});
  78 +
  79 +table1 = Ext.create('Ext.grid.Panel', {
  80 + store: userStore1,
  81 + width: 400,
  82 + height: 200,
  83 + // title: 'Application Users',
  84 + columns: [
  85 + {
  86 + text: 'Pesquisar',
  87 + width: 500,
  88 + sortable: true,
  89 + hideable: false,
  90 + dataIndex: 'item'
  91 + },
  92 + {
  93 + text: 'Remover',
  94 + width: 100,
  95 + sortable: true,
  96 + hideable: false,
  97 + dataIndex: 'excluir'
  98 + },
  99 +
  100 + ]
  101 +});
  102 +
  103 +tabela1 = Ext.create('Ext.panel.Panel', {
  104 + layout: 'fit',
  105 + title: 'Favoritos',
  106 + width: '75%',
  107 + frame: true,
  108 + draggable: true,
  109 + collapsible: true,
  110 + border : true,
  111 + style: {
  112 + "text-align": 'center',
  113 + margin: '0px auto 15px auto'
  114 + },
  115 + items: table1,
  116 +});
  117 +
  118 +Ext.onReady(function(){
  119 +
  120 +
  121 + Ext.create('Ext.Container', {
  122 + padding:'15px',
  123 + items: [tabela1],
  124 + renderTo: 'widgets'
  125 + });
  126 +
  127 +});
  128 +
... ...
wscacicneo/static/escritorio.js 0 → 100644
... ... @@ -0,0 +1,69 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Nome',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'Tipo',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + xtype: 'button',
  30 + text: 'Enviar',
  31 + style : {
  32 + margin : " 0px 10px 0px 0px"
  33 + }
  34 + },
  35 + {
  36 + xtype: 'button',
  37 + text: 'Limpar',
  38 + },
  39 +
  40 + ]
  41 +});
  42 +
  43 +painel = Ext.create('Ext.panel.Panel', {
  44 + layout: 'fit',
  45 + title: 'Swites De Escritorios',
  46 + width: '75%',
  47 + height: 155,
  48 + frame: true,
  49 + draggable: true,
  50 + collapsible: true,
  51 + border : true,
  52 + style: {
  53 + "text-align": 'center',
  54 + margin: '0px auto 15px auto'
  55 + },
  56 + items: table,
  57 +});
  58 +
  59 +Ext.onReady(function(){
  60 +
  61 +
  62 + Ext.create('Ext.Container', {
  63 + padding: '15px',
  64 + items: [painel],
  65 + renderTo: 'widgets'
  66 + });
  67 +
  68 +});
  69 +
... ...
wscacicneo/static/hd.js 0 → 100644
... ... @@ -0,0 +1,73 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Marca',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'Tipo',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + fieldLabel: 'Idade',
  30 + name: 'telefone'
  31 + },
  32 + {
  33 + xtype: 'button',
  34 + text: 'Enviar',
  35 + style : {
  36 + margin : " 0px 10px 0px 0px"
  37 + }
  38 + },
  39 + {
  40 + xtype: 'button',
  41 + text: 'Limpar',
  42 + },
  43 +
  44 + ]
  45 +});
  46 +
  47 +painel = Ext.create('Ext.panel.Panel', {
  48 + layout: 'fit',
  49 + title: 'HD',
  50 + width: '75%',
  51 + height: 200,
  52 + frame: true,
  53 + draggable: true,
  54 + collapsible: true,
  55 + border : true,
  56 + style: {
  57 + "text-align": 'center',
  58 + margin: '0px auto 15px auto'
  59 + },
  60 + items: table,
  61 +});
  62 +
  63 +Ext.onReady(function(){
  64 +
  65 +
  66 + Ext.create('Ext.Container', {
  67 + padding: '15px',
  68 + items: [painel],
  69 + renderTo: 'widgets'
  70 + });
  71 +
  72 +});
  73 +
... ...
wscacicneo/static/home.js
1 1 var painelContent=
2 2 "<br>"+
3   - "Opção 1" + "<br>" + "<hr />" +
4   - "Opção 2" + "<br>" +"<hr />" +
5   - "Opção 3" + "<br>" +"<hr />" +
6   - "Opção 4" + "<br>" +"<hr />" +
7   - "Opção 5" + "<br>" +"<hr />" +
8   - "Opção 6" + "<br>" + "<br>"
  3 + "Opção 1" + "<br>" + "<hr />" +
  4 + "Opção 2" + "<br>" +"<hr />" +
  5 + "Opção 3" + "<br>" +"<hr />" +
  6 + "Opção 4" + "<br>" +"<hr />" +
  7 + "Opção 5" + "<br>" +"<hr />" +
  8 + "Opção 6" + "<br>" + "<br>"
9 9  
10 10 admin = Ext.create('Ext.panel.Panel', {
11 11 title: 'Ultimas Atividades',
... ... @@ -28,8 +28,8 @@ Ext.onReady(function(){
28 28 padding: '15px',
29 29 items: [admin],
30 30 renderTo: 'widgets'
31   - });
32   -
  31 + });
  32 +
33 33 });
34 34  
35 35 // **** GRAFICO DE PIZZA ****
... ... @@ -101,13 +101,10 @@ widget = Ext.create(&#39;Ext.panel.Panel&#39;, {
101 101 });
102 102  
103 103 Ext.onReady(function(){
104   -
105   -
106   - Ext.create('Ext.Container', {
107   - padding: '15px',
108   - items: [widget],
109   - renderTo: 'widgets'
110   - });
111   -
  104 + Ext.create('Ext.Container', {
  105 + padding: '15px',
  106 + items: [widget],
  107 + renderTo: 'widgets'
  108 + });
112 109 });
113 110  
... ...
wscacicneo/static/list.js 0 → 100644
... ... @@ -0,0 +1,66 @@
  1 +/*GRAFICO DE ORGÃOS*/
  2 +
  3 +
  4 +Ext.define('User',{
  5 + extend: 'Ext.data.Model',
  6 + fields: [ 'codigo', 'orgao', 'date' ]
  7 +});
  8 +
  9 +var userStore = Ext.create('Ext.data.Store', {
  10 + model: 'User',
  11 + data: [
  12 + { orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  13 + { orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  14 + { orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  15 + { orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  16 + ]
  17 +});
  18 +
  19 +table = Ext.create('Ext.grid.Panel', {
  20 + store: userStore,
  21 + width: 400,
  22 + height: 200,
  23 + // title: 'Application Users',
  24 + columns: [
  25 + {
  26 + text: 'Orgão',
  27 + width: 300,
  28 + dataIndex: 'orgao',
  29 + hidden: false,
  30 + },
  31 + {
  32 + text: '',
  33 + sortable: false,
  34 + width:80,
  35 + flex: 1,
  36 + dataIndex: 'date'
  37 + },
  38 + ]
  39 +});
  40 +
  41 +tabela = Ext.create('Ext.panel.Panel', {
  42 + layout: 'fit',
  43 + title: 'Orgãos',
  44 + width: '75%',
  45 + frame: true,
  46 + draggable: true,
  47 + collapsible: true,
  48 + border : true,
  49 + style: {
  50 + "text-align": 'center',
  51 + margin: '0px auto 15px auto'
  52 + },
  53 + items: table,
  54 +});
  55 +
  56 +Ext.onReady(function(){
  57 +
  58 +
  59 + Ext.create('Ext.Container', {
  60 + padding: '15px',
  61 + items: [tabela],
  62 + renderTo: 'widgets'
  63 + });
  64 +
  65 +});
  66 +
... ...
wscacicneo/static/login.js
1   -var login = Ext.widget({
2   - xtype: 'form',
3   - layout: 'form',
4   - frame: true,
5   - border : false,
6   - fieldDefaults: {
7   - labelAlign: 'top',
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Usuário',
  15 + width:300,
  16 + name: 'nome'
8 17 },
9   - items: [{
10   - xtype: 'textfield',
11   - name: 'nome',
12   - fieldLabel: 'Nome',
13   - }, {
14   - xtype: 'textfield',
15   - name: 'senha',
16   - inputType: 'password',
17   - fieldLabel: 'Senha'
18   - }, {
19   - xtype: 'checkboxfield',
20   - name: 'lembrasenha',
21   - boxLabel: 'Lembrar minha senha'
22   - }],
23   -
24   - buttons: [{
25   - text: 'Entrar',
26   - handler: function() {
27   - window.location = 'home';
  18 + {
  19 + fieldLabel: 'Senha',
  20 + width: 300,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + xtype: 'button',
  25 + text: 'Login',
  26 + style:{
  27 + margin: '10px 10px 0px 0px',
28 28 }
29   - }]
30   - });
  29 + },
  30 + {
  31 + xtype: 'button',
  32 + text: 'Recuperar Senha',
  33 + style:{
  34 + margin: '10px 10px 0px 0px',
  35 + }
  36 +
  37 + },
  38 + ]
  39 +});
  40 +
  41 +painel = Ext.create('Ext.panel.Panel', {
  42 + layout: 'fit',
  43 + title: 'Meu Perfil',
  44 + width: 400,
  45 + height: 150,
  46 + frame: true,
  47 + draggable: true,
  48 + collapsible: true,
  49 + border : true,
  50 + style: {
  51 + "text-align": 'center',
  52 + margin: '0px auto 50px 100px'
  53 + },
  54 + items: table,
  55 +});
31 56  
32 57 Ext.onReady(function(){
33 58  
  59 +
34 60 Ext.create('Ext.Container', {
35   - items: [login],
36   - renderTo: 'login'
37   - });
  61 + padding: '15px',
  62 + items: [painel],
  63 + renderTo: 'widgets'
  64 + });
38 65  
39 66 });
  67 +
... ...
wscacicneo/static/main.css
... ... @@ -133,4 +133,3 @@ a{
133 133 text-decoration: none;
134 134 font-size: 110%
135 135 }
136   -
... ...
wscacicneo/static/memoria.js 0 → 100644
... ... @@ -0,0 +1,73 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Interface',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'Armazenamento',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + fieldLabel: 'Idade',
  30 + name: 'telefone'
  31 + },
  32 + {
  33 + xtype: 'button',
  34 + text: 'Enviar',
  35 + style : {
  36 + margin : " 0px 10px 0px 0px"
  37 + }
  38 + },
  39 + {
  40 + xtype: 'button',
  41 + text: 'Limpar',
  42 + },
  43 +
  44 + ]
  45 +});
  46 +
  47 +painel = Ext.create('Ext.panel.Panel', {
  48 + layout: 'fit',
  49 + title: 'Memoria',
  50 + width: '75%',
  51 + height: 200,
  52 + frame: true,
  53 + draggable: true,
  54 + collapsible: true,
  55 + border : true,
  56 + style: {
  57 + "text-align": 'center',
  58 + margin: '0px auto 15px auto'
  59 + },
  60 + items: table,
  61 +});
  62 +
  63 +Ext.onReady(function(){
  64 +
  65 +
  66 + Ext.create('Ext.Container', {
  67 + padding: '15px',
  68 + items: [painel],
  69 + renderTo: 'widgets'
  70 + });
  71 +
  72 +});
  73 +
... ...
wscacicneo/static/orgao.js 0 → 100644
... ... @@ -0,0 +1,91 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Nome',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Matricula',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'E-mail',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + fieldLabel: 'Tempo da Coleta',
  30 + width: 300,
  31 + name: 'email'
  32 + },
  33 +
  34 + {
  35 + fieldLabel: 'Telefone',
  36 + name: 'telefone'
  37 + },
  38 + {
  39 + fieldLabel: 'Tipo',
  40 + width: 450,
  41 + name: 'orgao'
  42 + },
  43 + {
  44 + xtype: 'button',
  45 + text: 'Editar',
  46 + style:{
  47 + margin: '0px 10px 0px 320px',
  48 + }
  49 + },
  50 + {
  51 + xtype: 'button',
  52 + text: 'Alterar Senha',
  53 + style:{
  54 + margin: '0px 10px 0px 0px',
  55 + }
  56 + },
  57 + {
  58 + xtype: 'button',
  59 + text: 'Excluir',
  60 + },
  61 +
  62 + ]
  63 +});
  64 +
  65 +painel = Ext.create('Ext.panel.Panel', {
  66 + layout: 'fit',
  67 + title: 'Meu Perfil',
  68 + width: '75%',
  69 + height: 250,
  70 + frame: true,
  71 + draggable: true,
  72 + collapsible: true,
  73 + border : true,
  74 + style: {
  75 + "text-align": 'center',
  76 + margin: '0px auto 15px auto'
  77 + },
  78 + items: table,
  79 +});
  80 +
  81 +Ext.onReady(function(){
  82 +
  83 +
  84 + Ext.create('Ext.Container', {
  85 + padding: '15px',
  86 + items: [painel],
  87 + renderTo: 'widgets'
  88 + });
  89 +
  90 +});
  91 +
... ...
wscacicneo/static/perfil.js
... ... @@ -5,7 +5,6 @@ var table = Ext.create(&#39;Ext.form.Panel&#39;, {
5 5 width: 280,
6 6 style: {
7 7 "text-align": 'left',
8   -
9 8 },
10 9  
11 10 bodyPadding: 10,
... ... @@ -23,7 +22,7 @@ var table = Ext.create(&#39;Ext.form.Panel&#39;, {
23 22 },
24 23 {
25 24 fieldLabel: 'E-mail',
26   - width: 300,
  25 + width: 300,
27 26 name: 'email'
28 27 },
29 28 {
... ... @@ -54,13 +53,21 @@ var table = Ext.create(&#39;Ext.form.Panel&#39;, {
54 53 xtype: 'button',
55 54 text: 'Editar',
56 55 style:{
57   - margin: '0px 10px 0px 400px',
  56 + margin: '0px 10px 0px 320px',
58 57 }
59 58 },
60 59 {
61 60 xtype: 'button',
62 61 text: 'Alterar Senha',
  62 + style:{
  63 + margin: '0px 10px 0px 0px',
  64 + }
  65 + },
  66 + {
  67 + xtype: 'button',
  68 + text: 'Excluir',
63 69 },
  70 +
64 71 ]
65 72 });
66 73  
... ...
wscacicneo/static/proc.js 0 → 100644
... ... @@ -0,0 +1,73 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'Marca',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + fieldLabel: 'Tipo',
  25 + width: 300,
  26 + name: 'email'
  27 + },
  28 + {
  29 + fieldLabel: 'Idade',
  30 + name: 'telefone'
  31 + },
  32 + {
  33 + xtype: 'button',
  34 + text: 'Enviar',
  35 + style : {
  36 + margin : " 0px 10px 0px 0px"
  37 + }
  38 + },
  39 + {
  40 + xtype: 'button',
  41 + text: 'Limpar',
  42 + },
  43 +
  44 + ]
  45 +});
  46 +
  47 +painel = Ext.create('Ext.panel.Panel', {
  48 + layout: 'fit',
  49 + title: 'Processador',
  50 + width: '75%',
  51 + height: 200,
  52 + frame: true,
  53 + draggable: true,
  54 + collapsible: true,
  55 + border : true,
  56 + style: {
  57 + "text-align": 'center',
  58 + margin: '0px auto 15px auto'
  59 + },
  60 + items: table,
  61 +});
  62 +
  63 +Ext.onReady(function(){
  64 +
  65 +
  66 + Ext.create('Ext.Container', {
  67 + padding: '15px',
  68 + items: [painel],
  69 + renderTo: 'widgets'
  70 + });
  71 +
  72 +});
  73 +
... ...
wscacicneo/static/rede.js 0 → 100644
... ... @@ -0,0 +1,64 @@
  1 +var table = Ext.create('Ext.form.Panel', {
  2 + renderTo: Ext.getBody(),
  3 + title: '',
  4 + height: 130,
  5 + width: 280,
  6 + style: {
  7 + "text-align": 'left',
  8 + },
  9 +
  10 + bodyPadding: 10,
  11 + defaultType: 'textfield',
  12 + items: [
  13 + {
  14 + fieldLabel: 'Quantidade',
  15 + width:450,
  16 + name: 'nome'
  17 + },
  18 + {
  19 + fieldLabel: 'ativos rede',
  20 + width: 250,
  21 + name: 'matricula'
  22 + },
  23 + {
  24 + xtype: 'button',
  25 + text: 'Enviar',
  26 + style : {
  27 + margin : " 0px 10px 0px 0px"
  28 + }
  29 + },
  30 + {
  31 + xtype: 'button',
  32 + text: 'Limpar',
  33 + },
  34 +
  35 + ]
  36 +});
  37 +
  38 +painel = Ext.create('Ext.panel.Panel', {
  39 + layout: 'fit',
  40 + title: 'Rede',
  41 + width: '75%',
  42 + height: 200,
  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: table,
  52 +});
  53 +
  54 +Ext.onReady(function(){
  55 +
  56 +
  57 + Ext.create('Ext.Container', {
  58 + padding: '15px',
  59 + items: [painel],
  60 + renderTo: 'widgets'
  61 + });
  62 +
  63 +});
  64 +
... ...
wscacicneo/static/users.js 0 → 100644
... ... @@ -0,0 +1,73 @@
  1 +/*GRAFICO DE ORGÃOS*/
  2 +
  3 +
  4 +Ext.define('User',{
  5 + extend: 'Ext.data.Model',
  6 + fields: [ 'codigo', 'orgao', 'date' ]
  7 +});
  8 +
  9 +var userStore = Ext.create('Ext.data.Store', {
  10 + model: 'User',
  11 + data: [
  12 + { codigo: 'Pedro', orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  13 + { codigo: 'Carlos', orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  14 + { codigo: 'Thiago', orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  15 + { codigo: 'Helder', orgao: 'Minist&eacuterio da Fazenda', date: 'Editar Excluir' },
  16 + ]
  17 +});
  18 +
  19 +table = Ext.create('Ext.grid.Panel', {
  20 + store: userStore,
  21 + width: 400,
  22 + height: 200,
  23 + // title: 'Application Users',
  24 + columns: [
  25 + {
  26 + text: 'Nome',
  27 + width: 75,
  28 + sortable: true,
  29 + hideable: false,
  30 + dataIndex: 'codigo'
  31 + },
  32 + {
  33 + text: 'Orgao',
  34 + width: 300,
  35 + dataIndex: 'orgao',
  36 + hidden: false,
  37 + },
  38 + {
  39 + text: '',
  40 + sortable: false,
  41 + width:80,
  42 + flex: 1,
  43 + dataIndex: 'date'
  44 + },
  45 + ]
  46 +});
  47 +
  48 +tabela = Ext.create('Ext.panel.Panel', {
  49 + layout: 'fit',
  50 + title: 'Usuários',
  51 + width: '75%',
  52 + frame: true,
  53 + draggable: true,
  54 + collapsible: true,
  55 + border : true,
  56 + style: {
  57 + "text-align": 'center',
  58 + margin: '0px auto 15px auto'
  59 + },
  60 + items: table,
  61 +});
  62 +
  63 +Ext.onReady(function(){
  64 +
  65 +
  66 + Ext.create('Ext.Container', {
  67 + padding: '15px',
  68 + items: [tabela],
  69 + renderTo: 'widgets'
  70 + });
  71 +
  72 +});
  73 +
... ...
wscacicneo/templates/basico.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/basico.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/cadastro.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/cadastro.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/computador.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/computador.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/config.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/config.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/escritorio.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/escritorio.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/gestor.pt
1 1 <metal:main use-macro="load: master.pt">
2   - <!-- Insere JavaScript -->
3 2 <script metal:fill-slot="javascript" type="text/javascript" src="static/gestor.js"></script>
4 3  
5 4 <div metal:fill-slot="conteudo" id="widgets"></div>
... ...
wscacicneo/templates/hd.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/hd.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/list.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/list.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets"></div>
  6 +</metal:main>
  7 +
... ...
wscacicneo/templates/login.pt
1   -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2   -<html xmlns="http://www.w3.org/1999/xhtml"
3   - xmlns:tal="http://xml.zope.org/namespaces/tal"
4   - xmlns:metal="http://xml.zope.org/namespaces/metal"
5   - xmlns:i18n="http://xml.zope.org/namespaces/i18n">
6   - <head>
7   - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8   - <title>Cacic Super Admin</title>
9   -
10   - </head>
11   - <body>
12   - <header>
13   - <!-- Menu Superior da página -->
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/login.js"></script>
14 4  
15   - <div id="logo">
16   - <img src="static/caciclogo.jpg">
17   - </div>
18   - </header>
19   - <div id="centro">
20   - <div id="login">
21   - <h1>Log In</h1>
22   - </div>
23   - </div>
24   - <footer>
25   - <div id="desenvolvido">
26   - Desenvolvido por:
27   - </div>
  5 + <div metal:fill-slot="conteudo" id="widgets"></div>
  6 +</metal:main>
28 7  
29   - <LINK href="/static/ext-js/resources/css/ext-all-gray.css" type="text/css" rel="stylesheet">
30   - <LINK href="/static/login.css" type="text/css" rel="stylesheet">
31   - <LINK href="/static/layout.css" type="text/css" rel="stylesheet">
32   - <script type="text/javascript" src="/static/ext-js/ext-all.js"></script>
33   - <script type="text/javascript" src="/static/login.js"></script>
34   -
35   - </footer>
36   - </body>
37   -
38   -</html>
... ...
wscacicneo/templates/memoria.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/memoria.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/orgao.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/orgao.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/rede.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/rede.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/sistema.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/sistema.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets">
  6 +</div>
  7 +</metal:main>
... ...
wscacicneo/templates/user.pt 0 → 100644
... ... @@ -0,0 +1,58 @@
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2 +<html xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:tal="http://xml.zope.org/namespaces/tal"
  4 + xmlns:metal="http://xml.zope.org/namespaces/metal"
  5 + xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  6 + <head>
  7 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8 + <title>Cacic Super Admin</title>
  9 + <!-- CSS e JavaScript vão aqui -->
  10 + <metal:content define-slot="head">
  11 +
  12 + </head>
  13 + <body>
  14 + <header>
  15 + <!-- Menu Superior da página -->
  16 +
  17 + <div id="logo">
  18 + <a href="home"><img src="static/caciclogo.jpg"></a>
  19 + </div>
  20 + <div id="usuario">
  21 + </div>
  22 + </header>
  23 + <div id="centro">
  24 + <div id="menu-lateral">
  25 + <div id="menu-principal">
  26 + </div>
  27 + <div id="menu-favoritos"></div>
  28 + </div>
  29 + <div id="conteudo">
  30 + <metal:content define-slot="conteudo" />
  31 + </div>
  32 + </div>
  33 + <footer>
  34 + <div id="links-footer">
  35 + </div>
  36 + <div id="desenvolvido">
  37 + Desenvolvido por:
  38 + </div>
  39 +
  40 + <LINK href="static/ext-js/resources/css/ext-all-gray.css" type="text/css" rel="stylesheet">
  41 + <LINK href="static/main.css" type="text/css" rel="stylesheet">
  42 + <LINK href="static/layout.css" type="text/css" rel="stylesheet">
  43 + <!-- <LINK href="static/bootstrap/bootstrap/css/bootstrap.css" type="text/css" rel="stylesheet"> -->
  44 + <script type="text/javascript" src="static/ext-js/ext-all.js"></script>
  45 + <script type="text/javascript" src="static/login.js"></script>
  46 + <script type="text/javascript" src="static/jquery-2.0.3.min.js"></script>
  47 + <!-- <script type="text/javascript" src="static/bootstrap/bootstrap/js/bootstrap.js"></script> -->
  48 +
  49 + <!-- Slot para o CSS -->
  50 + <metal:content define-slot="css" />
  51 +
  52 + <!-- Slot para o JavaScript -->
  53 + <metal:content define-slot="javascript" />
  54 +
  55 + </footer>
  56 + </body>
  57 +
  58 +</html>
... ...
wscacicneo/templates/users.pt 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<metal:main use-macro="load: master.pt">
  2 + <!-- Insere JavaScript -->
  3 + <script metal:fill-slot="javascript" type="text/javascript" src="static/users.js"></script>
  4 +
  5 + <div metal:fill-slot="conteudo" id="widgets"></div>
  6 +</metal:main>
  7 +
... ...
wscacicneo/views.py
... ... @@ -51,10 +51,67 @@ def admin(request):
51 51 def diagnostic(request):
52 52 return {'project': 'WSCacicNeo'}
53 53  
  54 +@view_config(route_name='users', renderer='templates/users.pt')
  55 +def users(request):
  56 + return {'project': 'WSCacicNeo'}
  57 +
  58 +@view_config(route_name='cadastro', renderer='templates/cadastro.pt')
  59 +def cadastro(request):
  60 + return {'project': 'WSCacicNeo'}
  61 +
  62 +@view_config(route_name='login', renderer='templates/user.pt')
  63 +def login(request):
  64 + return {'project': 'WSCacicNeo'}
  65 +
  66 +@view_config(route_name='orgao', renderer='templates/orgao.pt')
  67 +def orgao(request):
  68 + return {'project': 'WSCacicNeo'}
  69 +
  70 +@view_config(route_name='config', renderer='templates/config.pt')
  71 +def config(request):
  72 + return {'project': 'WSCacicNeo'}
  73 +
  74 +@view_config(route_name='list', renderer='templates/list.pt')
  75 +def list(request):
  76 + return {'project': 'WSCacicNeo'}
  77 +
54 78 @view_config(route_name='sobre', renderer='templates/sobre.pt')
55 79 def sobre(request):
56 80 return {'project': 'WSCacicNeo'}
57 81  
  82 +#formularios de cadastro de coleta
  83 +
  84 +@view_config(route_name='computador', renderer='templates/computador.pt')
  85 +def computador(request):
  86 + return {'project': 'WSCacicNeo'}
  87 +
  88 +@view_config(route_name='proc', renderer='templates/proc.pt')
  89 +def proc(request):
  90 + return {'project': 'WSCacicNeo'}
  91 +
  92 +@view_config(route_name='memoria', renderer='templates/memoria.pt')
  93 +def memoria(request):
  94 + return {'project': 'WSCacicNeo'}
  95 +
  96 +@view_config(route_name='hd', renderer='templates/hd.pt')
  97 +def hd(request):
  98 + return {'project': 'WSCacicNeo'}
  99 +
  100 +@view_config(route_name='escritorio', renderer='templates/escritorio.pt')
  101 +def escritorio(request):
  102 + return {'project': 'WSCacicNeo'}
  103 +
  104 +@view_config(route_name='rede', renderer='templates/rede.pt')
  105 +def rede(request):
  106 + return {'project': 'WSCacicNeo'}
  107 +
  108 +@view_config(route_name='basico', renderer='templates/basico.pt')
  109 +def basico(request):
  110 + return {'project': 'WSCacicNeo'}
  111 +
  112 +@view_config(route_name='sistema', renderer='templates/sistema.pt')
  113 +def sistema(request):
  114 + return {'project': 'WSCacicNeo'}
58 115  
59 116 @view_config(route_name='busca', renderer='templates/busca.pt')
60 117 def my_view8(request):
... ...