Commit d6299f399a8ea927efb491b495bdb47e9eb3f75a
1 parent
9e9a8bf0
Exists in
master
and in
1 other branch
- merge de branch (2.4) revisão [876:880]
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@883 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
17 changed files
with
910 additions
and
334 deletions
Show diff stats
admin/gerencia_licencas/aquisicoes_itens.class.php
... | ... | @@ -21,12 +21,8 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
21 | 21 | */ |
22 | 22 | include_once('common/cacic_common.class.php'); |
23 | 23 | |
24 | -/* | |
25 | - * | |
26 | - */ | |
27 | - unset($g_tipos_licenca); | |
28 | 24 | /** |
29 | - * Implementa controle de tipos de licença | |
25 | + * Implementa controle de itens adquiridos | |
30 | 26 | */ |
31 | 27 | class Tipos_Licenca extends Cacic_Common { |
32 | 28 | ... | ... |
admin/gerencia_licencas/aquisicoes_itens_01.js
... | ... | @@ -25,7 +25,6 @@ function validaTipoLicenca(_msg) { |
25 | 25 | } |
26 | 26 | else { |
27 | 27 | document.getElementById('error_id_tipo_licenca').innerHTML=""; |
28 | - g_resp = true; | |
29 | 28 | } |
30 | 29 | return resp; |
31 | 30 | } |
... | ... | @@ -40,7 +39,6 @@ function validaAquisicao(_msg) { |
40 | 39 | } |
41 | 40 | else { |
42 | 41 | document.getElementById('error_id_aquisicao').innerHTML=""; |
43 | - g_resp = true; | |
44 | 42 | } |
45 | 43 | return resp; |
46 | 44 | } |
... | ... | @@ -55,7 +53,6 @@ function validaSoftware(_msg) { |
55 | 53 | } |
56 | 54 | else { |
57 | 55 | document.getElementById('error_id_software').innerHTML=""; |
58 | - g_resp = true; | |
59 | 56 | } |
60 | 57 | return resp; |
61 | 58 | } |
... | ... | @@ -76,7 +73,6 @@ function validaQtdeLicenca(_msg) { |
76 | 73 | } |
77 | 74 | else { |
78 | 75 | document.getElementById('error_qtde_licenca').innerHTML=""; |
79 | - g_resp = true; | |
80 | 76 | } |
81 | 77 | return resp; |
82 | 78 | } |
... | ... | @@ -91,12 +87,12 @@ function validaDataVencimento(_msg) { |
91 | 87 | } |
92 | 88 | else { |
93 | 89 | document.getElementById('error_data_vencimento').innerHTML=""; |
94 | - g_resp = true; | |
95 | 90 | } |
96 | 91 | return resp; |
97 | 92 | } |
98 | 93 | |
99 | 94 | function validaForm(_msg) { |
95 | + g_resp = true; | |
100 | 96 | validaTipoLicenca(_msg); |
101 | 97 | validaAquisicao(_msg); |
102 | 98 | validaSoftware(_msg); | ... | ... |
admin/gerencia_licencas/aquisicoes_itens_01.tmpl.php
... | ... | @@ -156,7 +156,7 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
156 | 156 | onFocus="setClass(this, 'inputFocus');" |
157 | 157 | onBlur="setClass(this, 'input');" />{OBSERVACAO}</textarea> |
158 | 158 | |
159 | - <span class="erro" id="error_data_vencimento"></span> | |
159 | + <span class="erro" id="error_observacao"></span> | |
160 | 160 | </td> |
161 | 161 | </tr> |
162 | 162 | </table> | ... | ... |
admin/gerencia_licencas/arquivo/cadastros/frmSoftwares.php
... | ... | @@ -1,91 +0,0 @@ |
1 | -<?php | |
2 | -session_start(); | |
3 | -/* | |
4 | - * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
5 | - */ | |
6 | -if(!isset($_SESSION['id_usuario'])) | |
7 | - die('Acesso restrito (Restricted access)!'); | |
8 | -else { // Inserir regras para outras verificações (ex: permissões do usuário)! | |
9 | -} | |
10 | - | |
11 | -require_once('../../../../include/library.php'); | |
12 | -?> | |
13 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
14 | -<html> | |
15 | -<head> | |
16 | -<link rel="stylesheet" type="text/css" href="../../../../include/cacic.css"> | |
17 | -<title><?=$oTranslator->_('Cadastro de Softwares');?></title> | |
18 | -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
19 | -<script language="JavaScript"> | |
20 | -function validaForm() { | |
21 | - msg=""; | |
22 | - if((document.forms[0].nome.value=="") || (document.forms[0].nome.value.substring(0,1)==" ")){ | |
23 | - msg="- <?=$oTranslator->_('Nome e um campo obrigatorio!');?>"; | |
24 | - } | |
25 | - | |
26 | - if((document.forms[0].quantidadeLicenca.value=="") || (document.forms[0].quantidadeLicenca.value.substring(0,1)==" ")){ | |
27 | - msg=msg+"\n- <?=$oTranslator->_('Quantidade de licencas e um campo obrigatorio!');?>"; | |
28 | - } | |
29 | - | |
30 | - if (msg!="") { | |
31 | - alert(msg); | |
32 | - msg=""; | |
33 | - return false; | |
34 | - } | |
35 | -} | |
36 | -</script> | |
37 | -<link href="../../../../include/cacic.css" rel="stylesheet" type="text/css"> | |
38 | -</head> | |
39 | -<body bgcolor="#FFFFFF" topmargin="5" onload="document.forms[0].nome.focus()" background="../../../../imgs/linha_v.gif"> | |
40 | -<table width="90%" border="0" align="center"> | |
41 | - <tr> | |
42 | - <td class="cabecalho"><?=$oTranslator->_('Cadastro de Softwares');?></td> | |
43 | - </tr> | |
44 | - <tr> | |
45 | - <td class="descricao"> | |
46 | - <?=$oTranslator->_('kciq_msg cadastro de softwares help');?> | |
47 | - </td> | |
48 | - </tr> | |
49 | - <tr> | |
50 | - <td> </td> | |
51 | - </tr> | |
52 | -</table> | |
53 | -<br><br> | |
54 | -<form action="softwares.php" method="post" name="frmSoftwares" onSubmit="return validaForm();"> | |
55 | -<table width="90%" align="center"> | |
56 | -<tr> | |
57 | - <td>Nome:</td> | |
58 | - <td><input type=text name="nome" size="50"></td> | |
59 | -</tr> | |
60 | -<tr> | |
61 | - <td><?=$oTranslator->_('Descricao:');?></td> | |
62 | - <td><input type=text name="descricao" size="50"></td> | |
63 | -<tr> | |
64 | - <td><?=$oTranslator->_('Quantidade de Licencas:');?></td> | |
65 | - <td><input type=text name="quantidadeLicenca" size="10"></td> | |
66 | -</tr> | |
67 | -<tr> | |
68 | - <td><?=$oTranslator->_('Numero da Midia:');?></td> | |
69 | - <td><input type=text name="numeroMidia" size="10"></td> | |
70 | -</tr> | |
71 | -<tr> | |
72 | - <td><?=$oTranslator->_('Localizacao da Midia:');?></td> | |
73 | - <td><input type=text name="localMidia" size="50"></td> | |
74 | -</tr> | |
75 | -<tr> | |
76 | - <td><?=$oTranslator->_('Observacao:');?></td> | |
77 | - <td><textarea name="observacao" rows="3" cols="38"></textarea></td> | |
78 | -</tr> | |
79 | -<tr> | |
80 | - <td></td> | |
81 | - <td></td> | |
82 | -</tr> | |
83 | -<tr> | |
84 | - <td align="right"><input type="reset" name="cancelar" value="<?=$oTranslator->_('Cancelar');?>"/></td> | |
85 | - <td align="left"><input type="submit" name="gravar" value="<?=$oTranslator->_('Gravar');?>" width="100"></td> | |
86 | -</tr> | |
87 | -</table> | |
88 | -</form> | |
89 | -<p> </p> | |
90 | -</body> | |
91 | -</html> |
admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php
... | ... | @@ -1,143 +0,0 @@ |
1 | -<? | |
2 | -session_start(); | |
3 | -/* | |
4 | - * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
5 | - */ | |
6 | -if(!isset($_SESSION['id_usuario'])) | |
7 | - die('Acesso restrito (Restricted access)!'); | |
8 | -else { // Inserir regras para outras verificações (ex: permissões do usuário)! | |
9 | -} | |
10 | - | |
11 | -require_once('../../../../include/library.php'); | |
12 | -conecta_bd_cacic(); | |
13 | -?> | |
14 | -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
15 | -<html> | |
16 | -<head> | |
17 | -<link rel="stylesheet" type="text/css" href="../../../../include/cacic.css"> | |
18 | -<title></title> | |
19 | -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
20 | -<script language="JavaScript"> | |
21 | -function validaForm() { | |
22 | - msg=""; | |
23 | - if((document.forms[0].patrimonio.value=="") || (document.forms[0].patrimonio.value.substring(0,1)==" ")){ | |
24 | - msg="- <?=$oTranslator->_('Patrimonio e um campo obrigatorio!');?>"; | |
25 | - } | |
26 | - | |
27 | - if((document.forms[0].software.value==-1) || (document.forms[0].software.value.substring(0,1)==" ")){ | |
28 | - msg=msg+"\n- <?=$oTranslator->_('Software e um campo obrigatorio!');?>"; | |
29 | - } | |
30 | - | |
31 | - if((document.forms[0].dataAutorizacao.value=="") || (document.forms[0].dataAutorizacao.value.substring(0,1)==" ")){ | |
32 | - msg=msg+"\n- <?=$oTranslator->_('Data de autorizacao e um campo obrigatorio!');?>"; | |
33 | - } | |
34 | - | |
35 | - if (msg!="") { | |
36 | - alert(msg); | |
37 | - msg=""; | |
38 | - return false; | |
39 | - } | |
40 | -} | |
41 | -function formatar(src, mask) | |
42 | -{ | |
43 | - var i = src.value.length; | |
44 | - var saida = mask.substring(0,1); | |
45 | - var texto = mask.substring(i) | |
46 | -if (texto.substring(0,1) != saida) | |
47 | - { | |
48 | - src.value += texto.substring(0,1); | |
49 | - } | |
50 | -} | |
51 | -</script> | |
52 | -<link href="../../../../include/cacic.css" rel="stylesheet" type="text/css"> | |
53 | -</head> | |
54 | -<body bgcolor="#FFFFFF" topmargin="5" onLoad="document.forms[0].patrimonio.focus()" background="../../../../imgs/linha_v.gif"> | |
55 | -<table width="90%" border="0" align="center"> | |
56 | - <tr> | |
57 | - <td class="cabecalho"><?=$oTranslator->_('Cadastro de Softwares po Estacao');?></td> | |
58 | - </tr> | |
59 | - <tr> | |
60 | - <td class="descricao"> | |
61 | - <?=$oTranslator->_('Modulo para cadastramento manual de softwares por estacao');?> | |
62 | - </td> | |
63 | - </tr> | |
64 | - <tr> | |
65 | - <td> </td> | |
66 | - </tr> | |
67 | -</table> | |
68 | -<br><br> | |
69 | -<form action="softwaresEstacao.php" method="post" name="softwaresEstacao" onSubmit="return validaForm()"> | |
70 | -<table width="90%" align="center"> | |
71 | - <tr> | |
72 | - <td><?=$oTranslator->_('Patrimonio:');?></td> | |
73 | - <td><input type=text name="patrimonio" size="20"></td> | |
74 | - </tr> | |
75 | - <tr> | |
76 | - <td>Software:</td> | |
77 | - <td> | |
78 | - <select name="software" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);"> | |
79 | - <? | |
80 | - $query = "SELECT id_software, nm_software FROM softwares ORDER BY nm_software"; | |
81 | - $result = mysql_query($query) or die($oTranslator->_('Ocorreu um erro no select ou sua sessao expirou!')); | |
82 | - echo '<option value=-1></option>'; | |
83 | - while ($softwares=mysql_fetch_array($result)) { | |
84 | - echo '<option value=' . $softwares['id_software'] . '>' . $softwares['nm_software'] . '</option>'; | |
85 | - } | |
86 | - ?> | |
87 | - </select> | |
88 | - </td> | |
89 | - </tr> | |
90 | - <tr> | |
91 | - <td><?=$oTranslator->_('Computador:');?></td> | |
92 | - <td><input type=text name="computador" size="30"></td> | |
93 | - </tr> | |
94 | - <tr> | |
95 | - <td><?=$oTranslator->_('Data de Autorizacao:');?></td> | |
96 | - <td><input type=text name="dataAutorizacao" size="30" maxlength="10" onKeypress="return formatar(this,'##/##/####')";></td> | |
97 | - </tr> | |
98 | - <tr> | |
99 | - <td><?=$oTranslator->_('Numero do Processo:');?></td> | |
100 | - <td><input type=text name="numeroProcesso" size="30" maxlength="11" onKeypress="return formatar(this,'####/######')"></td> | |
101 | - </tr> | |
102 | - <tr> | |
103 | - <td><?=$oTranslator->_('Data de Expiracao:');?></td> | |
104 | - <td><input type=text name="dataExpiracao" size="30" maxlength="10" onKeypress="return formatar(this,'##/##/####')";></td> | |
105 | - </tr> | |
106 | - <tr> | |
107 | - <td><?=$oTranslator->_('Aquisicao:');?></td> | |
108 | - <td> | |
109 | - <select name="aquisicao" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);"> | |
110 | - <? | |
111 | - $query = "SELECT id_aquisicao, nm_proprietario FROM aquisicoes ORDER BY nm_proprietario"; | |
112 | - $result = mysql_query($query) or die($oTranslator->_('Ocorreu um erro no select ou sua sessao expirou!')); | |
113 | - echo '<option value=-1></option>'; | |
114 | - while ($aquisicoes=mysql_fetch_array($result)) { | |
115 | - echo '<option value=' . $aquisicoes['id_aquisicao'] . '>' . $aquisicoes['nm_proprietario'] . '</option>'; | |
116 | - } | |
117 | - ?> | |
118 | - </select> | |
119 | - </td> | |
120 | - </tr> | |
121 | - <tr> | |
122 | - <td><?=$oTranslator->_('Data de Desinstalacao:');?></td> | |
123 | - <td><input type=text name="dataDesinstalacao" size="30" maxlength="10" onKeypress="return formatar(this,'##/##/####')";></td> | |
124 | - </tr> | |
125 | - <tr> | |
126 | - <td><?=$oTranslator->_('Observacao:');?></td> | |
127 | - <td><textarea cols="23" rows="2" name="observacao"></textarea></td> | |
128 | - </tr> | |
129 | - <tr> | |
130 | - <td><?=$oTranslator->_('Patrimonio de Destino:');?></td> | |
131 | - <td><input type=text name="patrimonioDestino"></td> | |
132 | - </tr> | |
133 | - <tr> | |
134 | - <td></td> | |
135 | - <td></td> | |
136 | - </tr> | |
137 | - <tr> | |
138 | - <td align="center" colspan="2"><input type="submit" name="gravar" value="<?=$oTranslator->_('Gravar');?>" width="100" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>></td> | |
139 | - </tr> | |
140 | -</table> | |
141 | -<p> </p> | |
142 | -</body> | |
143 | -</html> |
admin/gerencia_licencas/arquivo/cadastros/softwares.php
... | ... | @@ -1,40 +0,0 @@ |
1 | -<?php | |
2 | -session_start(); | |
3 | -/* | |
4 | - * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
5 | - */ | |
6 | -if(!isset($_SESSION['id_usuario'])) | |
7 | - die('Acesso restrito (Restricted access)!'); | |
8 | -else { // Inserir regras para outras verificações (ex: permissões do usuário)! | |
9 | -} | |
10 | - | |
11 | -require_once('../../../../include/library.php'); | |
12 | -conecta_bd_cacic(); | |
13 | - | |
14 | - $query_select = "select max(id_software) as ID FROM softwares"; | |
15 | - | |
16 | - $result = mysql_query($query_select); | |
17 | - | |
18 | - $row = mysql_fetch_array($result); | |
19 | - | |
20 | - $Id = $row['ID']; | |
21 | - | |
22 | - if ($Id == null) { | |
23 | - $Id = 0; | |
24 | - }else{ | |
25 | - $Id += 1; | |
26 | - } | |
27 | - | |
28 | - $query_insert = "insert into softwares (id_software, nm_software, te_descricao_software, qt_licenca, nr_midia, te_local_midia, te_obs) " . | |
29 | - "values('$Id','$_REQUEST[nome]','$_REQUEST[descricao]','$_REQUEST[quantidadeLicenca]','$_REQUEST[numeroMidia]','$_REQUEST[localMidia]','$_REQUEST[observacao]')"; | |
30 | - | |
31 | - $result_ins = mysql_query($query_insert); | |
32 | - | |
33 | - if (!$result_ins){ | |
34 | - echo mensagem($oTranslator->_('Nao foi possivel gravar o registro!')); | |
35 | - }else { | |
36 | - echo mensagem($oTranslator->_('Registro gravado!')); | |
37 | - } | |
38 | -?> | |
39 | -<br><br> | |
40 | -<div align="center"><input type="button" name="btnVoltar" value="<?=$oTranslator->_('Voltar');?>'" onClick="javascript:window.location='frmSoftwares.php'"/></div> | |
41 | 0 | \ No newline at end of file |
admin/gerencia_licencas/arquivo/cadastros/softwaresEstacao.php
... | ... | @@ -1,46 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -function DataParaBd($data){ | |
4 | - $aux = explode("/",$data); | |
5 | - $data = $aux[2]."-".$aux[1]."-".$aux[0]; | |
6 | - if($data=='--') | |
7 | - $data=''; | |
8 | - return $data; | |
9 | -} | |
10 | - | |
11 | -session_start(); | |
12 | -/* | |
13 | - * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
14 | - */ | |
15 | -if(!isset($_SESSION['id_usuario'])) | |
16 | - die('Acesso restrito (Restricted access)!'); | |
17 | -else { // Inserir regras para outras verificações (ex: permissões do usuário)! | |
18 | -} | |
19 | - | |
20 | -require_once('../../../../include/library.php'); | |
21 | -conecta_bd_cacic(); | |
22 | - | |
23 | - $patrimonio = $_REQUEST[patrimonio]; | |
24 | - $software = $_REQUEST[software]; | |
25 | - $computador = $_REQUEST[computador]; | |
26 | - $dataAutorizacao = DataParaBd($_REQUEST[dataAutorizacao]); | |
27 | - $processo = $_REQUEST[numeroProcesso]; | |
28 | - $dataExpiracao = DataParaBd($_REQUEST[dataExpiracao]); | |
29 | - $aquisicaoParticular = $_REQUEST[aquisicao]; | |
30 | - $dataDesinstalacao = DataParaBd($_REQUEST[dataDesinstalacao]); | |
31 | - $observacao = $_REQUEST[observacao]; | |
32 | - $patDestino = $_REQUEST[patrimonioDestino]; | |
33 | - | |
34 | - $query_insert = "insert into softwares_estacao (nr_patrimonio, id_software, nm_computador, dt_autorizacao, nr_processo, dt_expiracao_instalacao, id_aquisicao_particular, dt_desinstalacao, te_observacao, nr_patr_destino) " . | |
35 | - "values('$patrimonio','$software','$computador','$dataAutorizacao','$processo','$dataExpiracao','$aquisicaoParticular','$dataDesinstalacao','$observacao','$patDestino')"; | |
36 | - | |
37 | - $result_ins = mysql_query($query_insert); | |
38 | - | |
39 | - if (!$result_ins){ | |
40 | - echo mensagem($oTranslator->_('Nao foi possivel gravar o registro!')); | |
41 | - }else { | |
42 | - echo mensagem($oTranslator->_('Registro gravado!')); | |
43 | - } | |
44 | -?> | |
45 | -<br><br> | |
46 | -<div align="center"><input type="button" name="btnVoltar" value="<?=$oTranslator->_('Voltar');?>" onClick="javascript:window.location='frmSoftwaresEstacao.php'"/></div> |
... | ... | @@ -0,0 +1,379 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: software_estacao.class.php 2009-10-12 14:05 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage GerenciaLicencas | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Classe para Controle de Software por Estação | |
14 | + */ | |
15 | + | |
16 | +// direct access is denied | |
17 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
18 | + | |
19 | +/* | |
20 | + * Classe geral | |
21 | + */ | |
22 | + include_once('common/cacic_common.class.php'); | |
23 | + | |
24 | +/** | |
25 | + * Implementa Controle de Softwares | |
26 | + */ | |
27 | + class Software extends Cacic_Common { | |
28 | + | |
29 | + function Software() { | |
30 | + parent::Cacic_Common(); | |
31 | + | |
32 | + } | |
33 | + | |
34 | + /** | |
35 | + * Obtem e preenche dados de software | |
36 | + * @access private | |
37 | + */ | |
38 | + function fillSoftwares($_id_soft_selected, $_disable=false) { | |
39 | + global $cacic_common, $cacic_setup; | |
40 | + $sql = "select * from softwares order by nm_software"; | |
41 | + $db_result = mysql_query($sql); | |
42 | + $list = array(); | |
43 | + $selected = ""; | |
44 | + $disabled = ""; | |
45 | + while( $soft = mysql_fetch_assoc($db_result) ) { | |
46 | + $selected = ($_id_soft_selected==$soft['id_software'])?"selected":""; | |
47 | + $disabled = ($_id_soft_selected==$soft['id_software'] and $_disable)?"disabled":""; | |
48 | + // monta linha de dados da licenca | |
49 | + $_arrAux = array( array( 'SOFTWARE_NAME'=>$soft['nm_software'], | |
50 | + 'SOFTWARE_ID'=>$soft['id_software'], | |
51 | + 'SOFTWARE_SELECTED'=>$selected, | |
52 | + 'SOFTWARE_DISABLED'=>$disabled | |
53 | + ) ); | |
54 | + $list = array_merge($list, $_arrAux); | |
55 | + } | |
56 | + | |
57 | + return $list; | |
58 | + } | |
59 | + | |
60 | + /** | |
61 | + * Obtem e preenche dados de software | |
62 | + * @access private | |
63 | + */ | |
64 | + protected function getSoftwareName($_id_soft_selected) { | |
65 | + global $cacic_common, $cacic_setup; | |
66 | + $sql = "select nm_software from softwares where id_software=".$_id_soft_selected; | |
67 | + $db_result = mysql_query($sql); | |
68 | + $soft = mysql_fetch_assoc($db_result); | |
69 | + return $soft['nm_software']; | |
70 | + } | |
71 | + | |
72 | + } | |
73 | + | |
74 | +/** | |
75 | + * Implementa controle de Software por Estação | |
76 | + */ | |
77 | + class Software_Estacao extends Software { | |
78 | + | |
79 | + function Software_Estacao() { | |
80 | + parent::Software(); | |
81 | + $this->setNamespace('softwareEstacao'); | |
82 | + $this->setRoot(dirname(__FILE__)); | |
83 | + list($file_name, $file_type, $script_type) = explode(".", basename(__FILE__)); | |
84 | + $this->readTemplatesFromInput($file_name.'_01.tmpl.php'); | |
85 | + } | |
86 | + | |
87 | + /** | |
88 | + * Armazena na "sessao" os dados de configuração padrao | |
89 | + * @access public | |
90 | + */ | |
91 | + function setup() { | |
92 | + global $cacic_common, $cacic_setup; | |
93 | + parent::setup(); | |
94 | + $cacic_common['padrao'] = 'Definicoes padrao para pre-preenchimento de campos'; | |
95 | + | |
96 | + $titulo = $this->oTranslator->_('Cadastro de Software por Estacao'); | |
97 | + | |
98 | + // Obtem acoes de formulário | |
99 | + $cacic_setup['btn_action_edit'] = Security::getString('btn_action_edit'); | |
100 | + $cacic_setup['btn_action_excluir'] = Security::getString('btn_action_excluir'); | |
101 | + $cacic_setup['btn_action_incluir'] = Security::getInt('btn_action_incluir'); | |
102 | + $cacic_setup['btn_salvar'] = Security::getInt('btn_salvar'); | |
103 | + | |
104 | + // Obtem dado de permissão (ACL) do utilizador | |
105 | + $cacic_setup['acl_permission'] = ($this->isAdminUser()?'enabled':'disabled'); | |
106 | + | |
107 | + /* | |
108 | + * Inicializa template com textos basicos | |
109 | + */ | |
110 | + $this->setPageTitle( $titulo ); | |
111 | + | |
112 | + | |
113 | + $this->addVar('SoftwareEstacao', 'CACIC_URL', CACIC_URL ); | |
114 | + $this->addVar('SoftwareEstacao_form', 'TITULO', $titulo ); | |
115 | + $this->addVar('SoftwareEstacao_form', 'DESCRICAO_TITLE', $this->oTranslator->_('Controle de software por estacao') ); | |
116 | + $this->addVar('SoftwareEstacao_form', 'SEQUENCIAL_TITLE', $this->oTranslator->_('Sequencial', T_SIGLA) ); | |
117 | + $this->addVar('SoftwareEstacao_form', 'AQUISICAO_PROC_TITLE', $this->oTranslator->_('Processo de aquisicao') ); | |
118 | + $this->addVar('SoftwareEstacao_form', 'SOFTWARE_TITLE', $this->oTranslator->_('Software') ); | |
119 | + $this->addVar('SoftwareEstacao_form', 'PATRIMONIO_TITLE', $this->oTranslator->_('Patrimonio') ); | |
120 | + $this->addVar('SoftwareEstacao_form', 'COMPUTADOR_TITLE', $this->oTranslator->_('Computador') ); | |
121 | + $this->addVar('SoftwareEstacao_form', 'DATA_AUTORIZACAO_TITLE', $this->oTranslator->_('Data de autorizacao') ); | |
122 | + | |
123 | + $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_INPUT_LABEL', $this->oTranslator->_('Patrimonio') ); | |
124 | + $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_DESTINO_INPUT_LABEL', $this->oTranslator->_('Patrimonio de destino') ); | |
125 | + $this->addVar('SoftwareEstacao_insert_edit', 'SOFTWARE_INPUT_LABEL', $this->oTranslator->_('Software') ); | |
126 | + $this->addVar('SoftwareEstacao_insert_edit', 'AQUISICAO_INPUT_LABEL', $this->oTranslator->_('Processo de aquisicao') ); | |
127 | + $this->addVar('SoftwareEstacao_insert_edit', 'COMPUTADOR_INPUT_LABEL', $this->oTranslator->_('Computador') ); | |
128 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_FORMATO', $this->oTranslator->_('DD/MM/AAAA', T_SIGLA) ); | |
129 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_AUTORIZACAO_INPUT_LABEL', $this->oTranslator->_('Data de autorizacao') ); | |
130 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_EXPIRACAO_INPUT_LABEL', $this->oTranslator->_('Data de expiracao') ); | |
131 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_DESINSTALACAO_INPUT_LABEL', $this->oTranslator->_('Data de desinstalacao') ); | |
132 | + $this->addVar('SoftwareEstacao_insert_edit', 'OBSERVACAO_INPUT_LABEL', $this->oTranslator->_('Observacao') ); | |
133 | + | |
134 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_AUTORIZACAO_HELP', $this->oTranslator->_('Data de autorizacao da instalacao') ); | |
135 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_EXPIRACAO_HELP', $this->oTranslator->_('Data de expiracao da instalacao') ); | |
136 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_DESINSTALACAO_HELP', $this->oTranslator->_('Data de desinstalacao do software do computador') ); | |
137 | + | |
138 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO', $this->oTranslator->_('Informe esse campo') ); | |
139 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_COMPUTADOR_NAME', $this->oTranslator->_('Informe computador') ); | |
140 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_DATA', $this->oTranslator->_('Informe data valida') ); | |
141 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_PATRIMONIO', $this->oTranslator->_('Informe patrimonio') ); | |
142 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_SOFTWARE', $this->oTranslator->_('Informe software') ); | |
143 | + $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_AQUISICAO', $this->oTranslator->_('Informe processo de aquisicao') ); | |
144 | + | |
145 | + $this->addVar('SoftwareEstacao_insert_edit', 'SELECT_OPTION', $this->oTranslator->_('--- Selecione ---') ); | |
146 | + | |
147 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR_TITLE', $this->oTranslator->_('Incluir')." ". strtolower($this->oTranslator->_('software por estacao'))); | |
148 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR', $this->oTranslator->_('Incluir registro') ); | |
149 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR_DENY', $cacic_setup['acl_permission']); | |
150 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR_TITLE', $this->oTranslator->_('Gravar alteracoes') ); | |
151 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR', $this->oTranslator->_('Gravar') ); | |
152 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR_DENY', $cacic_setup['acl_permission']); | |
153 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR_TITLE', $this->oTranslator->_('Cancelar alteracoes') ); | |
154 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR', $this->oTranslator->_('Cancelar') ); | |
155 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR_DENY', $cacic_setup['acl_permission']); | |
156 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_RESET_TITLE', $this->oTranslator->_('Restaurar valores') ); | |
157 | + $this->addVar('SoftwareEstacao_insert_edit', 'BTN_RESET', $this->oTranslator->_('Restaurar') ); | |
158 | + | |
159 | + $this->addVar('SoftwareEstacao_list', 'ACTIONS_DELETE_TITLE', $this->oTranslator->_('Excluir registro') ); | |
160 | + $this->addVar('SoftwareEstacao_list', 'ACTIONS_EDIT_TITLE', $this->oTranslator->_('Editar registro') ); | |
161 | + $this->addVar('SoftwareEstacao_actions_acl', 'ACTIONS_TITLE', $this->oTranslator->_('Acoes') ); | |
162 | + | |
163 | + } | |
164 | + | |
165 | + /** | |
166 | + * Executa a configuracao padrão do CACIC | |
167 | + * @access public | |
168 | + */ | |
169 | + function run() { | |
170 | + global $cacic_common, $cacic_setup; | |
171 | + $this->setup(); // atribui dados globais | |
172 | + | |
173 | + if($cacic_setup['acl_permission']=='disabled') // desabilita acões caso sem permissão | |
174 | + $this->addVar('SoftwareEstacao_insert_edit', 'acl_permission', $cacic_setup['acl_permission'] ); | |
175 | + elseif($cacic_setup['btn_action_incluir']) | |
176 | + $this->addVar('SoftwareEstacao_insert_edit', 'acl_permission', true ); | |
177 | + elseif($cacic_setup['btn_action_edit']) | |
178 | + $this->addVar('SoftwareEstacao_insert_edit', 'acl_permission', true ); | |
179 | + else | |
180 | + $this->addVar('SoftwareEstacao_insert_edit', 'acl_permission', false ); | |
181 | + | |
182 | + // desabilita acões caso sem permissão | |
183 | + $this->addVar('SoftwareEstacao_actions_acl', 'acl_permission', $cacic_setup['acl_permission'] ); | |
184 | + | |
185 | + if((isset($cacic_setup['btn_salvar']) and ($cacic_setup['btn_salvar'])) or | |
186 | + (isset($cacic_setup['btn_action_excluir']) and ($cacic_setup['btn_action_excluir'])) ) { | |
187 | + try { | |
188 | + $this->salvarDados(); | |
189 | + } | |
190 | + catch( Exception $erro ) { | |
191 | + $msg = '<span class="ErroImg"></span>'; | |
192 | + $msg .= '<span class="Erro">'.$erro->getMessage()."</span>"; | |
193 | + $this->setMessageText($msg); | |
194 | + } | |
195 | + } | |
196 | + $this->fillForm(); | |
197 | + $this->showForm(); | |
198 | + } | |
199 | + | |
200 | + /** | |
201 | + * Executa a configuracao padrão do CACIC | |
202 | + * @access public | |
203 | + */ | |
204 | + function salvarDados() { | |
205 | + global $cacic_common, $cacic_setup; | |
206 | + $error = true; | |
207 | + $msg = $this->oTranslator->_('Ocorreu erro no processamento... '); | |
208 | + /* | |
209 | + * Obtem dados do formulario | |
210 | + */ | |
211 | + $nr_patrimonio_aux = Security::getString('nr_patrimonio_aux'); | |
212 | + $id_software_aux = Security::getInt('id_software_aux'); | |
213 | + $nr_patrimonio = $nr_patrimonio_aux?$nr_patrimonio_aux:Security::getString('nr_patrimonio'); | |
214 | + $id_software = $id_software_aux?$id_software_aux:Security::getInt('id_software'); | |
215 | + $nm_computador = Security::getString('nm_computador'); | |
216 | + $id_aquisicao = Security::getInt('id_aquisicao'); | |
217 | + $dt_autorizacao = Security::getDate('dt_autorizacao'); | |
218 | + $nr_processo = Security::getString('nr_processo'); | |
219 | + $dt_expiracao_instalacao = Security::getDate('dt_expiracao_instalacao'); | |
220 | + $dt_desinstalacao = Security::getDate('dt_desinstalacao'); | |
221 | + $nr_patr_destino = Security::getString('nr_patr_destino'); | |
222 | + $te_observacao = Security::getString('observacao'); | |
223 | + | |
224 | + list($dia, $mes, $ano) = explode("/", $dt_autorizacao); | |
225 | + $dt_autorizacao= date('Y-m-d', strtotime($ano."-".$mes."-".$dia)); | |
226 | + | |
227 | + /* | |
228 | + * monta sql de atualizacao dos dados padrao | |
229 | + */ | |
230 | + $sql = ''; | |
231 | + if($cacic_setup['btn_salvar']) { | |
232 | + // verifica se Itens adiquiridos já está cadastrado | |
233 | + $sql = "select * from softwares_estacao " . | |
234 | + " where id_software = '" . $id_software ."'" . | |
235 | + " and nr_patrimonio= '" . $nr_patrimonio ."'; "; | |
236 | + $db_result = mysql_query($sql); | |
237 | + if(mysql_num_rows($db_result)) | |
238 | + $sql = "update softwares_estacao set nm_computador = '" . $nm_computador ."'". | |
239 | + ", dt_autorizacao = '".$dt_autorizacao."'". | |
240 | + ", nr_processo = '".$nr_processo."'" . | |
241 | + ", dt_expiracao_instalacao = '".$dt_expiracao_instalacao."'" . | |
242 | + ", dt_desinstalacao = '".$dt_desinstalacao."'" . | |
243 | + ", te_observacao = '".$te_observacao."'" . | |
244 | + ", nr_patr_destino = '".$nr_patr_destino."'" . | |
245 | + | |
246 | + " where id_software = '" . $id_software ."'" . | |
247 | + " and nr_patrimonio= '" . $nr_patrimonio ."'; "; | |
248 | + else { | |
249 | + $sql = "insert into softwares_estacao " . | |
250 | + "(nr_patrimonio, id_software, nm_computador, dt_autorizacao, nr_processo, dt_expiracao_instalacao," . | |
251 | + " dt_desinstalacao, te_observacao, nr_patr_destino) " . | |
252 | + "value (" . | |
253 | + "'".$nr_patrimonio."', " . | |
254 | + "'".$id_software."', " . | |
255 | + "'".$nm_computador."', " . | |
256 | + "'".$dt_autorizacao."', " . | |
257 | + "'".$nr_processo."', " . | |
258 | + "'".$dt_expiracao_instalacao."', " . | |
259 | + "'".$dt_desinstalacao."', " . | |
260 | + "'".$te_observacao."', " . | |
261 | + "'".$nr_patr_destino."' " . | |
262 | + ");"; | |
263 | + } | |
264 | + } | |
265 | + | |
266 | + if($cacic_setup['btn_action_excluir']) { | |
267 | + list($software_id, $nr_patrimonio) = explode("_", $cacic_setup['btn_action_excluir']); | |
268 | + if($software_id and $nr_patrimonio) | |
269 | + $sql = "delete from softwares_estacao " . | |
270 | + " where id_software = '" . $software_id ."'" . | |
271 | + " and nr_patrimonio= '" . $nr_patrimonio ."'; "; | |
272 | + } | |
273 | + | |
274 | + /* | |
275 | + * Atualiza dados na tabela | |
276 | + */ | |
277 | + $db_result = mysql_query($sql); | |
278 | + $error = mysql_errno($this->db_link); | |
279 | + $msg .= $this->oTranslator->_('messagem do servidor:')." <br><pre> "; | |
280 | + $msg .= mysql_error($this->db_link)."</pre>"; | |
281 | + | |
282 | + /* | |
283 | + * Lança execeção se ocorrer erro | |
284 | + */ | |
285 | + ($error) ? $this->throwError($msg):""; | |
286 | + | |
287 | + $this->setMessageText('<span class="OKImg">'.$this->oTranslator->_('Processamento realizado com sucesso')."</span>"); | |
288 | + } | |
289 | + | |
290 | + /** | |
291 | + * Obtem e preenche dados de formulario | |
292 | + * @access private | |
293 | + * @param string $btn_salvar Se botao para salvar foi acionado | |
294 | + */ | |
295 | + function fillForm() { | |
296 | + global $cacic_common, $cacic_setup; | |
297 | + | |
298 | + list($software_id, $nr_patrimonio) = explode("_", $cacic_setup['btn_action_edit']); | |
299 | + | |
300 | + /* | |
301 | + * Preenche formulário com dados | |
302 | + */ | |
303 | + $lista_softwares = $this->fillSoftwares($software_id); | |
304 | + $this->addRows('Software_insert_edit_list', $lista_softwares ); | |
305 | + | |
306 | + $list = array(); | |
307 | + $count = 0; | |
308 | + | |
309 | + $sql = "select * from softwares_estacao order by id_software"; | |
310 | + $db_result = mysql_query($sql); | |
311 | + while( $software_estacao = mysql_fetch_assoc($db_result) ) { | |
312 | + $count++; | |
313 | + // monta linha de dados da licenca | |
314 | + $_arrAux = array( array( 'AQUISICAO_PROC'=>$software_estacao['nr_processo'], | |
315 | + 'SOFTWARE_NAME'=> $this->getSoftwareName($software_estacao['id_software']), | |
316 | + 'SOFTWARE_ID'=> $software_estacao['id_software'], | |
317 | + 'PATRIMONIO_NR'=>$software_estacao['nr_patrimonio'], | |
318 | + 'COMPUTADOR_NAME'=>$software_estacao['nm_computador'], | |
319 | + 'DATA_AUTORIZACAO'=>date( $this->oTranslator->_('date view format', T_SIGLA), | |
320 | + strtotime($software_estacao['dt_autorizacao'] )), | |
321 | + 'SEQUENCIAL'=>$count, | |
322 | + | |
323 | + 'SOFTWARE_ID'=>$software_estacao['id_software'], | |
324 | + 'PATRIMONIO_NR'=>$software_estacao['nr_patrimonio'], | |
325 | + | |
326 | + 'acl_permission'=> $cacic_setup['acl_permission'] | |
327 | + ) ); | |
328 | + $list = array_merge($list, $_arrAux); | |
329 | + | |
330 | + // Atribui ao formulario os dados a serem editados | |
331 | + if($cacic_setup['btn_action_edit'] and ($software_id==$software_estacao['id_software'] and | |
332 | + $nr_patrimonio==$software_estacao['nr_patrimonio'])) { | |
333 | + | |
334 | + $this->addVar('SoftwareEstacao_insert_edit', 'SOFTWARE_ID', $software_estacao['id_software']); | |
335 | + $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_NR_DISABLED', "disabled"); | |
336 | + $this->addVar('SoftwareEstacao_insert_edit', 'SOFTWARE_DISABLED', "disabled"); | |
337 | + $this->addVar('SoftwareEstacao_insert_edit', 'AQUISICAO_PROC', $software_estacao['nr_processo']); | |
338 | + $this->addVar('SoftwareEstacao_insert_edit', 'SOFTWARE_NAME', $software_estacao['id_software']); | |
339 | + $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_NR', $software_estacao['nr_patrimonio']); | |
340 | + $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_DESTINO', $software_estacao['nr_patr_destino']); | |
341 | + $this->addVar('SoftwareEstacao_insert_edit', 'COMPUTADOR_NAME', $software_estacao['nm_computador'] ); | |
342 | + $this->addVar('SoftwareEstacao_insert_edit', 'DATA_AUTORIZACAO', date($this->oTranslator->_('date view format', T_SIGLA), | |
343 | + strtotime($software_estacao['dt_autorizacao'])) ); | |
344 | + $this->addVar('SoftwareEstacao_insert_edit', 'DT_EXPIRACAO_INSTALACAO', date($this->oTranslator->_('date view format', T_SIGLA), | |
345 | + strtotime($software_estacao['dt_expiracao_instalacao']))); | |
346 | + $this->addVar('SoftwareEstacao_insert_edit', 'DT_DESINSTALACAO', date($this->oTranslator->_('date view format', T_SIGLA), | |
347 | + strtotime($software_estacao['dt_desinstalacao']))); | |
348 | + $this->addVar('SoftwareEstacao_insert_edit', 'OBSERVACAO', $software_estacao['te_observacao'] ); | |
349 | + | |
350 | + } | |
351 | + } | |
352 | + | |
353 | + /* | |
354 | + * Preenche formulário com dados | |
355 | + */ | |
356 | + $this->addRows('SoftwareEstacao_list', $list ); | |
357 | + | |
358 | + } | |
359 | + | |
360 | + | |
361 | + /** | |
362 | + * Mostra formulario da configuracao padrao | |
363 | + * @access private | |
364 | + */ | |
365 | + function showForm() { | |
366 | + // Monta cabecalho da pagina | |
367 | + $this->displayParsedTemplate('CacicCommon_head'); | |
368 | + // Monta cabecalho da pagina | |
369 | + $this->displayParsedTemplate('SoftwareEstacao'); | |
370 | + | |
371 | + $this->displayParsedTemplate('SoftwareEstacao_form'); | |
372 | + | |
373 | + // Monta area de mensages e rodape da pagina | |
374 | + $this->displayParsedTemplate('CacicCommon_messages'); | |
375 | + $this->displayParsedTemplate('CacicCommon_footer'); | |
376 | + } | |
377 | + } | |
378 | + | |
379 | +?> | |
0 | 380 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,42 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: software_estacao.php 2009-10-12 14:05 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage GerenciaLicencas | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Controle de Software por Estação | |
14 | + */ | |
15 | + | |
16 | +session_start(); | |
17 | +$time_start = microtime(true); | |
18 | +/* | |
19 | + * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)! | |
20 | + */ | |
21 | +if(!isset($_SESSION['id_usuario'])) | |
22 | + die('Acesso restrito (Restricted access)!'); | |
23 | + | |
24 | +// Ativa modo de depuração (mostra todas as mensagens na página) | |
25 | +// $cacicDebug = true; | |
26 | + | |
27 | +include_once('../../include/library.php'); | |
28 | +AntiSpy('1,2,3'); // Permitido somente a estes cs_nivel_administracao... | |
29 | + | |
30 | +require_once('software_estacao.class.php'); | |
31 | + | |
32 | +$oCacic = new Software_Estacao(); | |
33 | +$oCacic->run(); | |
34 | + | |
35 | +/* | |
36 | + * Contabiliza tempo de processamento da página | |
37 | + */ | |
38 | +$time_end = microtime(true); | |
39 | +$time_proc = ($time_end-$time_start); | |
40 | +echo '<!-- in '.($time_proc)."ms -->"; | |
41 | + | |
42 | +?> | ... | ... |
... | ... | @@ -0,0 +1,111 @@ |
1 | +/** | |
2 | + * @version $Id: software_estacao_01.js 2009-10-12 14:07 harpiain $ | |
3 | + * @package CACIC-Admin | |
4 | + * @subpackage GerenciaLicencas | |
5 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
6 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
7 | + * @license GNU/GPL, see LICENSE.php | |
8 | + * CACIC is free software and parts of it may contain or be derived from the | |
9 | + * GNU General Public License or other free or open source software licenses. | |
10 | + * See COPYRIGHT.php for copyright notices and details. | |
11 | + * | |
12 | + * Funcoes javascript para Controle de Software por Estação | |
13 | + */ | |
14 | + | |
15 | +// valor de retorno global | |
16 | +var g_resp = true; | |
17 | + | |
18 | +function validaPatrimonio(_msg) { | |
19 | + var resp = true; | |
20 | + if((document.CacicCommon_form.nr_patrimonio.value=="") || (document.CacicCommon_form.nr_patrimonio.value.substring(0,1)==" ")){ | |
21 | + setClass(document.CacicCommon_form.nr_patrimonio, 'inputError'); | |
22 | + document.getElementById('error_nr_patrimonio').innerHTML=_msg; | |
23 | + resp = false; | |
24 | + g_resp = false; | |
25 | + } | |
26 | + else { | |
27 | + document.getElementById('error_nr_patrimonio').innerHTML=""; | |
28 | + } | |
29 | + return resp; | |
30 | +} | |
31 | + | |
32 | +function validaAquisicao(_msg) { | |
33 | + var resp = true; | |
34 | + if((document.CacicCommon_form.nr_processo.value=="") || (document.CacicCommon_form.nr_processo.value.substring(0,1)==" ")){ | |
35 | + setClass(document.CacicCommon_form.nr_processo, 'inputError'); | |
36 | + document.getElementById('error_nr_processo').innerHTML=_msg; | |
37 | + resp = false; | |
38 | + g_resp = false; | |
39 | + } | |
40 | + else { | |
41 | + document.getElementById('error_nr_processo').innerHTML=""; | |
42 | + } | |
43 | + return resp; | |
44 | +} | |
45 | + | |
46 | +function validaSoftware(_msg) { | |
47 | + var resp = true; | |
48 | + if((document.CacicCommon_form.id_software.value=="") || (document.CacicCommon_form.id_software.value.substring(0,1)==" ")){ | |
49 | + setClass(document.CacicCommon_form.id_software, 'inputError'); | |
50 | + document.getElementById('error_id_software').innerHTML=_msg; | |
51 | + resp = false; | |
52 | + g_resp = false; | |
53 | + } | |
54 | + else { | |
55 | + document.getElementById('error_id_software').innerHTML=""; | |
56 | + } | |
57 | + return resp; | |
58 | +} | |
59 | + | |
60 | +function validaComputador(_msg) { | |
61 | + var resp = true; | |
62 | + if((document.CacicCommon_form.nm_computador.value=="") || (document.CacicCommon_form.nm_computador.value.substring(0,1)==" ")){ | |
63 | + setClass(document.CacicCommon_form.nm_computador, 'inputError'); | |
64 | + document.getElementById('error_nm_computador').innerHTML=_msg; | |
65 | + resp = false; | |
66 | + g_resp = false; | |
67 | + } | |
68 | + else { | |
69 | + document.getElementById('error_nm_computador').innerHTML=""; | |
70 | + } | |
71 | + return resp; | |
72 | +} | |
73 | + | |
74 | +function validaDataAutorizacao(_msg) { | |
75 | + var resp = true; | |
76 | + if((document.CacicCommon_form.dt_autorizacao.value=="")){ | |
77 | + setClass(document.CacicCommon_form.dt_autorizacao, 'inputError'); | |
78 | + document.getElementById('error_dt_autorizacao').innerHTML=_msg; | |
79 | + resp = false; | |
80 | + g_resp = false; | |
81 | + } | |
82 | + else { | |
83 | + document.getElementById('error_dt_autorizacao').innerHTML=""; | |
84 | + } | |
85 | + return resp; | |
86 | +} | |
87 | + | |
88 | +function validaDataExpiracao(_msg) { | |
89 | + var resp = true; | |
90 | + if((document.CacicCommon_form.dt_expiracao_instalacao.value=="")){ | |
91 | + setClass(document.CacicCommon_form.dt_expiracao_instalacao, 'inputError'); | |
92 | + document.getElementById('error_dt_expiracao_instalacao').innerHTML=_msg; | |
93 | + resp = false; | |
94 | + g_resp = false; | |
95 | + } | |
96 | + else { | |
97 | + document.getElementById('error_dt_expiracao_instalacao').innerHTML=""; | |
98 | + } | |
99 | + return resp; | |
100 | +} | |
101 | + | |
102 | +function validaForm(_msg) { | |
103 | + g_resp = true; | |
104 | + validaPatrimonio(_msg); | |
105 | + validaSoftware(_msg); | |
106 | + validaAquisicao(_msg); | |
107 | + validaComputador(_msg); | |
108 | + validaDataAutorizacao(_msg); | |
109 | + | |
110 | + return g_resp; | |
111 | +} | ... | ... |
... | ... | @@ -0,0 +1,345 @@ |
1 | +<?php | |
2 | +/** | |
3 | + * @version $Id: software_estacao_01.tmpl.php 2009-10-12 14:06 harpiain $ | |
4 | + * @package CACIC-Admin | |
5 | + * @subpackage GerenciaLicencas | |
6 | + * @author Adriano dos Santos Vieira <harpiain at gmail.com> | |
7 | + * @copyright Copyright (C) 2008 Adriano dos Santos Vieira. All rights reserved. | |
8 | + * @license GNU/GPL, see LICENSE.php | |
9 | + * CACIC is free software and parts of it may contain or be derived from the | |
10 | + * GNU General Public License or other free or open source software licenses. | |
11 | + * See COPYRIGHT.php for copyright notices and details. | |
12 | + * | |
13 | + * Templates para Controle de Software por Estação | |
14 | + */ | |
15 | + | |
16 | +// direct access is denied | |
17 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
18 | + | |
19 | +?> | |
20 | +<softwareEstacao:tmpl name="SoftwareEstacao"> | |
21 | + <link href="{CACIC_URL}/admin/gerencia_licencas/aquisicoes_01.css" rel="stylesheet" type="text/css" /> | |
22 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/admin/gerencia_licencas/software_estacao_01.js"></script> | |
23 | + | |
24 | + <script src="{CACIC_URL}/include/sniffer.js" type="text/javascript" language="javascript"></script> | |
25 | + <script src="{CACIC_URL}/include/dyncalendar.js" type="text/javascript" language="javascript"></script> | |
26 | + <link href="{CACIC_URL}/include/dyncalendar.css" media="screen" rel="stylesheet"> | |
27 | +</softwareEstacao:tmpl> | |
28 | + | |
29 | +<softwareEstacao:tmpl name="SoftwareEstacao_form"> | |
30 | +<div class="cabecalho"> | |
31 | +<table> | |
32 | + <tr> | |
33 | + <td class="cabecalho"> | |
34 | + <softwareEstacao:comment><img src="../../imgs/cacic_logo.png" /></softwareEstacao:comment> | |
35 | + {TITULO} | |
36 | + </td> | |
37 | + </tr> | |
38 | + <tr> | |
39 | + <td> | |
40 | + <fieldset class="corpo"> | |
41 | + <legend>{DESCRICAO_TITLE} <b>{DESCRICAO_TITLE_MODE}</b></legend> | |
42 | + <table cellspacing="01"> | |
43 | + <tr> | |
44 | + <td colspan="10"> | |
45 | + <softwareEstacao:tmpl name="SoftwareEstacao_insert_edit" type="condition" conditionvar="acl_permission"> | |
46 | + | |
47 | + <softwareEstacao:sub condition="disabled"> | |
48 | + <softwareEstacao:comment><!--> | |
49 | + ** Caso o usuario nao tem permissao (ACL) não mostra formulário ou botoes de inserção | |
50 | + <--></softwareEstacao:comment> | |
51 | + </softwareEstacao:sub> | |
52 | + | |
53 | + <softwareEstacao:comment><!--> | |
54 | + ** Formulário para inserção de dados | |
55 | + <--></softwareEstacao:comment> | |
56 | + <softwareEstacao:sub condition="1"> | |
57 | + <fieldset> | |
58 | + <table> | |
59 | + <tr> | |
60 | + <td>{PATRIMONIO_INPUT_LABEL}<span class="necessario">*</span></td> | |
61 | + <td> | |
62 | + <input type="hidden" id="nr_patrimonio_aux" name="nr_patrimonio_aux" value="{PATRIMONIO_NR}"> | |
63 | + <input type="text" id="nr_patrimonio" name="nr_patrimonio" value="{PATRIMONIO_NR}" {PATRIMONIO_NR_DISABLED} | |
64 | + onClick="setClass(this, 'inputFocus');" | |
65 | + onBlur="if(validaPatrimonio('{MSG_VALIDACAO_PATRIMONIO}')){setClass(this, 'input');}" > | |
66 | + | |
67 | + <span class="erro" id="error_nr_patrimonio"></span> | |
68 | + </td> | |
69 | + </tr> | |
70 | + | |
71 | + <tr> | |
72 | + <td>{SOFTWARE_INPUT_LABEL}<span class="necessario">*</span></td> | |
73 | + <td> | |
74 | + <input type="hidden" id="id_software_aux" name="id_software_aux" value="{SOFTWARE_ID}"> | |
75 | + <select id="id_software" name="id_software" value="{SOFTWARE_ID}" {SOFTWARE_DISABLED} | |
76 | + onClick="setClass(this, 'inputFocus');" | |
77 | + onBlur="if(validaSoftware('{MSG_VALIDACAO_SOFTWARE}')){setClass(this, 'input');}" > | |
78 | + | |
79 | + <option value="">{SELECT_OPTION}</option> | |
80 | + | |
81 | + <softwareEstacao:tmpl name="Software_insert_edit_list"> | |
82 | + <option value="{SOFTWARE_ID}" {SOFTWARE_SELECTED}>{SOFTWARE_NAME}</option> | |
83 | + </softwareEstacao:tmpl> | |
84 | + | |
85 | + </select> | |
86 | + | |
87 | + <span class="erro" id="error_id_software"></span> | |
88 | + </td> | |
89 | + </tr> | |
90 | + | |
91 | + <tr> | |
92 | + <td width="30%">{AQUISICAO_INPUT_LABEL}<span class="necessario">*</span></td> | |
93 | + <td> | |
94 | + <input type="text" id="nr_processo" name="nr_processo" value="{AQUISICAO_PROC}" | |
95 | + onClick="setClass(this, 'inputFocus');" | |
96 | + onBlur="if(validaAquisicao('{MSG_VALIDACAO_AQUISICAO}')){setClass(this, 'input');}" > | |
97 | + | |
98 | + <span class="erro" id="error_nr_processo"></span> | |
99 | + <input type="hidden" id="id_aquisicao" name="id_aquisicao" value="{SOFTWARE_ID}" > | |
100 | + </td> | |
101 | + </tr> | |
102 | + | |
103 | + <tr> | |
104 | + <td>{COMPUTADOR_INPUT_LABEL}<span class="necessario">*</span></td> | |
105 | + <td> | |
106 | + <input type="text" id="nm_computador" name="nm_computador" value="{COMPUTADOR_NAME}" | |
107 | + onFocus="setClass(this, 'inputFocus');" | |
108 | + onBlur="if(validaComputador('{MSG_VALIDACAO_COMPUTADOR_NAME}')){setClass(this, 'input');}" /> | |
109 | + | |
110 | + <span class="erro" id="error_nm_computador"></span> | |
111 | + </td> | |
112 | + </tr> | |
113 | + | |
114 | + <tr> | |
115 | + <td>{DATA_AUTORIZACAO_INPUT_LABEL}<span class="necessario">*</span></td> | |
116 | + <td> | |
117 | + <input type="text" id="dt_autorizacao" name="dt_autorizacao" value="{DATA_AUTORIZACAO}" | |
118 | + onFocus="setClass(this, 'inputFocus');" | |
119 | + onBlur="if(validaDataAutorizacao('{MSG_VALIDACAO_DATA}')){setClass(this, 'input');}else{return false;}" /> | |
120 | + <span class="HelpImg" title="{DATA_AUTORIZACAO_HELP}"> </span> | |
121 | + <script type="text/javascript" language="JavaScript"> | |
122 | + <!-- | |
123 | + function dataCallback(date, month, year) { | |
124 | + if (String(month).length == 1) { | |
125 | + month = '0' + month; | |
126 | + } | |
127 | + if (String(date).length == 1) { | |
128 | + date = '0' + date; | |
129 | + } | |
130 | + document.CacicCommon_form.dt_autorizacao.value = date + '/' + month + '/' + year; | |
131 | + } | |
132 | + dt_autorizacao = new dynCalendar('dt_autorizacao', 'dataCallback'); | |
133 | + --> | |
134 | + </script> | |
135 | + {DATA_FORMATO} | |
136 | + | |
137 | + <span class="erro" id="error_dt_autorizacao"></span> | |
138 | + </td> | |
139 | + </tr> | |
140 | + | |
141 | + <tr> | |
142 | + <td>{DATA_EXPIRACAO_INPUT_LABEL}</td> | |
143 | + <td> | |
144 | + <input type="text" id="dt_expiracao_instalacao" name="dt_expiracao_instalacao" value="{DT_EXPIRACAO_INSTALACAO}" | |
145 | + onFocus="setClass(this, 'inputFocus');" | |
146 | + onBlur="setClass(this, 'input');" /> | |
147 | + <span class="HelpImg" title="{DATA_EXPIRACAO_HELP}"> </span> | |
148 | + <script type="text/javascript" language="JavaScript"> | |
149 | + <!-- | |
150 | + function dataExpiracaoCallback(date, month, year) { | |
151 | + if (String(month).length == 1) { | |
152 | + month = '0' + month; | |
153 | + } | |
154 | + if (String(date).length == 1) { | |
155 | + date = '0' + date; | |
156 | + } | |
157 | + document.CacicCommon_form.dt_expiracao_instalacao.value = date + '/' + month + '/' + year; | |
158 | + } | |
159 | + dt_expiracao_instalacao = new dynCalendar('dt_expiracao_instalacao', 'dataExpiracaoCallback'); | |
160 | + --> | |
161 | + </script> | |
162 | + {DATA_FORMATO} | |
163 | + | |
164 | + <span class="erro" id="error_dt_expiracao_instalacao"></span> | |
165 | + </td> | |
166 | + </tr> | |
167 | + | |
168 | + <tr> | |
169 | + <td>{DATA_DESINSTALACAO_INPUT_LABEL}</td> | |
170 | + <td> | |
171 | + <input type="text" id="dt_desinstalacao" name="dt_desinstalacao" value="{DT_DESINSTALACAO}" | |
172 | + onFocus="setClass(this, 'inputFocus');" | |
173 | + onBlur="setClass(this, 'input');" /> | |
174 | + <span class="HelpImg" title="{DATA_DESINSTALACAO_HELP}"> </span> | |
175 | + <script type="text/javascript" language="JavaScript"> | |
176 | + <!-- | |
177 | + function dataDesinstalacaoCallback(date, month, year) { | |
178 | + if (String(month).length == 1) { | |
179 | + month = '0' + month; | |
180 | + } | |
181 | + if (String(date).length == 1) { | |
182 | + date = '0' + date; | |
183 | + } | |
184 | + document.CacicCommon_form.dt_desinstalacao.value = date + '/' + month + '/' + year; | |
185 | + } | |
186 | + dt_desinstalacao = new dynCalendar('dt_desinstalacao', 'dataDesinstalacaoCallback'); | |
187 | + --> | |
188 | + </script> | |
189 | + {DATA_FORMATO} | |
190 | + | |
191 | + <span class="erro" id="error_dt_desinstalacao"></span> | |
192 | + </td> | |
193 | + </tr> | |
194 | + | |
195 | + <tr> | |
196 | + <td>{PATRIMONIO_DESTINO_INPUT_LABEL}</td> | |
197 | + <td> | |
198 | + <input type="text" id="nr_patr_destino" name="nr_patr_destino" value="{PATRIMONIO_DESTINO}" | |
199 | + onClick="setClass(this, 'inputFocus');" | |
200 | + onBlur="setClass(this, 'input');" > | |
201 | + | |
202 | + </td> | |
203 | + </tr> | |
204 | + | |
205 | + <tr> | |
206 | + <td style="vertical-align: top;">{OBSERVACAO_INPUT_LABEL}<td> | |
207 | + <textarea id="observacao" name="observacao" rows="3" cols="40" | |
208 | + onFocus="setClass(this, 'inputFocus');" | |
209 | + onBlur="setClass(this, 'input');" />{OBSERVACAO}</textarea> | |
210 | + | |
211 | + <span class="erro" id="error_observacao"></span> | |
212 | + </td> | |
213 | + </tr> | |
214 | + | |
215 | + </table> | |
216 | + | |
217 | + <softwareEstacao:comment><!--> | |
218 | + ** Botoes para salvar/cancelar dados inseridos no formulario | |
219 | + <--></softwareEstacao:comment> | |
220 | + <span class="botoes"> | |
221 | + <span class='botoes{BTN_SALVAR_DENY}'> | |
222 | + <input class='botoes{BTN_SALVAR_DENY}' type='button' title="{BTN_SALVAR_TITLE}" name="{BTN_SALVAR}" | |
223 | + onClick="if(validaForm('{MSG_VALIDACAO}')){ setDocVar( 'btn_salvar', 1 ); sendForm(document.CacicCommon_form);}" | |
224 | + value="{BTN_SALVAR}" {BTN_SALVAR_DENY} /> | |
225 | + </span> | |
226 | + <span class='botoes{BTN_CANCELAR_DENY}'> | |
227 | + <input class='botoes{BTN_CANCELAR_DENY}' type='button' title="{BTN_CANCELAR_TITLE}" name="{BTN_CANCELAR}" | |
228 | + onClick="sendForm(document.CacicCommon_form);" value="{BTN_CANCELAR}" {BTN_CANCELAR_DENY} /> | |
229 | + </span> | |
230 | + <input type='reset' title="{BTN_RESET_TITLE}" value="{BTN_RESET}" /> | |
231 | + <script type="text/javascript"> | |
232 | + //setFocus('nr_notafiscal'); | |
233 | + </script> | |
234 | + </span> | |
235 | + | |
236 | + </fieldset> | |
237 | + | |
238 | + </softwareEstacao:sub> | |
239 | + | |
240 | + <softwareEstacao:comment><!--> | |
241 | + ** Botao para entrar em modo de inserção de dados no formulario | |
242 | + <--></softwareEstacao:comment> | |
243 | + <softwareEstacao:sub condition="__default"> | |
244 | + <div align="right"> | |
245 | + <span class='botoes{BTN_INCLUIR_DENY}'> | |
246 | + <input class='botoes{BTN_INCLUIR_DENY}' type='button' title="{BTN_INCLUIR_TITLE}" name="{BTN_INCLUIR}" | |
247 | + onClick="setDocVar( 'btn_action_incluir', 1 ); sendForm(document.CacicCommon_form);" value="{BTN_INCLUIR}" {BTN_INCLUIR_DENY} /> | |
248 | + </span> | |
249 | + </div> | |
250 | + <input type="hidden" id="btn_action_incluir" name="btn_action_incluir" /> | |
251 | + </softwareEstacao:sub> | |
252 | + | |
253 | + </softwareEstacao:tmpl> | |
254 | + </td> | |
255 | + </tr> | |
256 | + | |
257 | + <softwareEstacao:comment><!--> | |
258 | + ** Formulario para mostrar dados cadastrados no banco | |
259 | + <--></softwareEstacao:comment> | |
260 | + <tr> | |
261 | + <th class="header" style='width: 3%;'>{SEQUENCIAL_TITLE}</th> | |
262 | + <th class="header">{PATRIMONIO_TITLE}</th> | |
263 | + <th class="header">{SOFTWARE_TITLE}</th> | |
264 | + <th class="header">{AQUISICAO_PROC_TITLE}</th> | |
265 | + <th class="header">{COMPUTADOR_TITLE}</th> | |
266 | + <th class="header">{DATA_AUTORIZACAO_TITLE}</th> | |
267 | + <softwareEstacao:tmpl name="SoftwareEstacao_actions_acl" type="condition" conditionvar="acl_permission"> | |
268 | + <softwareEstacao:sub condition="disabled"> | |
269 | + </softwareEstacao:sub> | |
270 | + <softwareEstacao:sub condition="__default"> | |
271 | + <th class="header" style='width: 10%;'>{ACTIONS_TITLE}</th> | |
272 | + </softwareEstacao:sub> | |
273 | + </softwareEstacao:tmpl> | |
274 | + </tr> | |
275 | + | |
276 | + <softwareEstacao:comment><!--> | |
277 | + Condicional (ACL), via template, para não mostrar botoes de inclusão, edição ou exclusão | |
278 | + <--></softwareEstacao:comment> | |
279 | + <softwareEstacao:tmpl name="SoftwareEstacao_list" type="condition" conditionvar="acl_permission"> | |
280 | + <softwareEstacao:sub condition="disabled"> | |
281 | + <tr class="even" onMouseOver="this.className = 'odd';" onMouseOut="this.className = 'even';"> | |
282 | + <td> | |
283 | + {SEQUENCIAL} | |
284 | + </td> | |
285 | + <td> | |
286 | + {PATRIMONIO_NR} | |
287 | + </td> | |
288 | + <td> | |
289 | + {SOFTWARE_NAME} | |
290 | + </td> | |
291 | + <td> | |
292 | + {AQUISICAO_PROC} | |
293 | + </td> | |
294 | + <td> | |
295 | + {COMPUTADOR_NAME} | |
296 | + </td> | |
297 | + <td align="center"> | |
298 | + {DATA_AUTORIZACAO} | |
299 | + </td> | |
300 | + </tr> | |
301 | + </softwareEstacao:sub> | |
302 | + <softwareEstacao:sub condition="__default"> | |
303 | + <tr class="even" onMouseOver="this.className = 'odd';" onMouseOut="this.className = 'even';" | |
304 | + title="{OBSERVACAO}"> | |
305 | + <td> | |
306 | + {SEQUENCIAL} | |
307 | + </td> | |
308 | + <td> | |
309 | + {PATRIMONIO_NR} | |
310 | + </td> | |
311 | + <td> | |
312 | + {SOFTWARE_NAME} | |
313 | + </td> | |
314 | + <td> | |
315 | + {AQUISICAO_PROC} | |
316 | + </td> | |
317 | + <td> | |
318 | + {COMPUTADOR_NAME} | |
319 | + </td> | |
320 | + <td align="center"> | |
321 | + {DATA_AUTORIZACAO} | |
322 | + </td> | |
323 | + <td> | |
324 | + <img style='width: 16px; height: 16px; cursor:pointer;' src="../../imgs/error.png" title="{ACTIONS_DELETE_TITLE}" | |
325 | + onClick="setDocVar( 'btn_action_excluir', '{SOFTWARE_ID}_{PATRIMONIO_NR}' ); sendForm(document.CacicCommon_form);" /> | |
326 | + <img style='width: 16px; height: 16px; cursor:pointer;' src="../../imgs/details.gif" title="{ACTIONS_EDIT_TITLE}" | |
327 | + onClick="setDocVar( 'btn_action_edit', '{SOFTWARE_ID}_{PATRIMONIO_NR}' ); sendForm(document.CacicCommon_form);" /> | |
328 | + </td> | |
329 | + </tr> | |
330 | + </softwareEstacao:sub> | |
331 | + </softwareEstacao:tmpl> | |
332 | + <tr> | |
333 | + <td colspan="10" class="botoes"> | |
334 | + <input type="hidden" id="btn_action_edit" name="btn_action_edit" /> | |
335 | + <input type="hidden" id="btn_action_excluir" name="btn_action_excluir" /> | |
336 | + <input type="hidden" id="btn_salvar" name="btn_salvar" value="" /> | |
337 | + </td> | |
338 | + </tr> | |
339 | + </table> | |
340 | + </fieldset> | |
341 | + </td> | |
342 | + </tr> | |
343 | +</table> | |
344 | +</div> | |
345 | +</softwareEstacao:tmpl> | ... | ... |
408 Bytes
include/cacic.css
... | ... | @@ -342,6 +342,21 @@ a.dcontexto:hover span |
342 | 342 | color: #f6bf01; |
343 | 343 | } |
344 | 344 | |
345 | +.Help { | |
346 | + padding: 00 10px 10 0px; | |
347 | + font-weight: bold; | |
348 | + font-size: 12px; | |
349 | + color: #9eaef3; | |
350 | +} | |
351 | + | |
352 | +.HelpImg { | |
353 | + background: url('../imgs/question.png') 100% 0 no-repeat; | |
354 | + padding: 00 10px 10 0px; | |
355 | + font-weight: bold; | |
356 | + font-size: 12px; | |
357 | + color: #9eaef3; | |
358 | +} | |
359 | + | |
345 | 360 | .necessario { |
346 | 361 | padding: 0px 02px 0px 0px; |
347 | 362 | color: red; | ... | ... |
language/en_US/menu_adm.txt
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
30 | 30 | ...Aquisições|admin/gerencia_licencas/aquisicoes.php|mainFrame||Cadastro de processos de aquisições de softwares |
31 | 31 | ...Itens adiquiridos|admin/gerencia_licencas/aquisicoes_itens.php|mainFrame||Itens adiquiridos por processos de aquisições de softwares |
32 | -...Softwares por Estação|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php|mainFrame||Softwares autorizados por estação | |
32 | +...Softwares por Estação|admin/gerencia_licencassoftware_estacao.php|mainFrame||Softwares autorizados por estação | |
33 | 33 | ...Tipos de Licença|admin/gerencia_licencas/tipos_licenca.php|mainFrame||Controle de tipos de licenças |
34 | 34 | ...Classificar Softwares|admin/gerencia_licencas/softwares_classificar.php|mainFrame||Classificar Softwares adiquiridos X inventariados |
35 | 35 | .<b>Maintenance</b>||mainFrame|imgs/config_gerais.gif | ... | ... |
language/es_UR/menu_adm.txt
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
29 | 29 | ...Adquisiciones|admin/gerencia_licencas/aquisicoes.php|mainFrame||Cadastro de processos de aquisições de softwares |
30 | 30 | ...Itens adiquiridos|admin/gerencia_licencas/aquisicoes_itens.php|mainFrame||Itens adiquiridos por processos de aquisições de softwares |
31 | -...Softwares por Estacion|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php|mainFrame||Softwares autorizados por estação | |
31 | +...Softwares por Estacion|admin/gerencia_licencas/software_estacao.php|mainFrame||Softwares autorizados por estação | |
32 | 32 | ...Tipos de Licença|admin/gerencia_licencas/tipos_licenca.php|mainFrame||Controle de tipos de licenças |
33 | 33 | ...Classificar Softwares|admin/gerencia_licencas/softwares_classificar.php|mainFrame||Classificar Softwares adiquiridos X inventariados |
34 | 34 | .<b>Mantenimiento</b>||mainFrame|imgs/config_gerais.gif | ... | ... |
language/pt_BR/language.pt_BR.inc.php
... | ... | @@ -1113,3 +1113,15 @@ pt_BR caminho (path) ftp |
1113 | 1113 | pt_BR localizacao admin info Localizacao |
1114 | 1114 | pt_BR executar atualizacoes admin info Executar atualizacoes |
1115 | 1115 | pt_BR confirma verificacao/atualizacao de subredes? admin info Confirma verificacao/atualizacao de subredes? |
1116 | +pt_BR cadastro de software por estacao admin info Cadastro de Software por Estacao | |
1117 | +pt_BR controle de software por estacao admin info Controle de software por estacao | |
1118 | +pt_BR data de autorizacao admin info Data de autorizacao | |
1119 | +pt_BR patrimonio de destino admin info Patrimonio de destino | |
1120 | +pt_BR data de expiracao admin info Data de expiracao | |
1121 | +pt_BR data de desinstalacao admin info Data de desinstalacao | |
1122 | +pt_BR data de autorizacao da instalacao admin info Data de autorizacao da instalacao | |
1123 | +pt_BR data de expiracao da instalacao admin info Data de expiracao da instalacao | |
1124 | +pt_BR data de desinstalacao do software do computador admin info Data de desinstalacao do software do computador | |
1125 | +pt_BR informe computador admin info Informe computador | |
1126 | +pt_BR informe patrimonio admin info Informe patrimonio | |
1127 | +pt_BR software por estacao admin info software por estacao | ... | ... |
language/pt_BR/menu_adm.txt
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
30 | 30 | ...Aquisições|admin/gerencia_licencas/aquisicoes.php|mainFrame||Cadatro de processos de aquisições de softwares |
31 | 31 | ...Itens adiquiridos|admin/gerencia_licencas/aquisicoes_itens.php|mainFrame||Itens adiquiridos por processos de aquisições de softwares |
32 | -...Softwares por Estação|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php|mainFrame||Softwares autorizados por estação | |
32 | +...Softwares por Estação|admin/gerencia_licencas/software_estacao.php|mainFrame||Softwares autorizados por estação | |
33 | 33 | ...Tipos de Licença|admin/gerencia_licencas/tipos_licenca.php|mainFrame||Controle de tipos de licenças |
34 | 34 | ...Classificar Softwares|admin/gerencia_licencas/softwares_classificar.php|mainFrame||Classificar Softwares adiquiridos X inventariados |
35 | 35 | .<b>Manutenção</b>||mainFrame|imgs/config_gerais.gif | ... | ... |