Commit 9e9a8bf081460a85f04d1750110a90469907aad5
1 parent
8c7b1df8
Exists in
master
and in
1 other branch
- merge de branch (2.4) revisão [874:875]
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@876 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
14 changed files
with
755 additions
and
17 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,287 @@ |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @version $Id: aquisicoes.class.php 2009-10-11 11:28 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 Aquisicoes | |
| 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 | + * | |
| 26 | + */ | |
| 27 | + unset($g_tipos_licenca); | |
| 28 | +/** | |
| 29 | + * Implementa controle de tipos de licença | |
| 30 | + */ | |
| 31 | + class Aquisicoes extends Cacic_Common { | |
| 32 | + | |
| 33 | + function Aquisicoes() { | |
| 34 | + parent::Cacic_Common(); | |
| 35 | + $this->setNamespace('gerenciaLicencas'); | |
| 36 | + $this->setRoot(dirname(__FILE__)); | |
| 37 | + $this->readTemplatesFromInput('aquisicoes_01.tmpl.php'); | |
| 38 | + } | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * Armazena na "sessao" os dados de configuração padrao | |
| 42 | + * @access public | |
| 43 | + */ | |
| 44 | + function setup() { | |
| 45 | + global $cacic_common, $cacic_setup; | |
| 46 | + parent::setup(); | |
| 47 | + $cacic_common['padrao'] = 'Definicoes padrao para pre-preenchimento de campos'; | |
| 48 | + | |
| 49 | + $titulo = $this->oTranslator->_('Cadastro de Processos de Aquisicoes'); | |
| 50 | + | |
| 51 | + // Obtem acoes de formulário | |
| 52 | + $cacic_setup['btn_action_edit'] = Security::getString('btn_action_edit'); | |
| 53 | + $cacic_setup['btn_action_excluir'] = Security::getString('btn_action_excluir'); | |
| 54 | + $cacic_setup['btn_action_incluir'] = Security::getInt('btn_action_incluir'); | |
| 55 | + $cacic_setup['btn_salvar'] = Security::getInt('btn_salvar'); | |
| 56 | + | |
| 57 | + // Obtem dado de permissão (ACL) do utilizador | |
| 58 | + $cacic_setup['acl_permission'] = ($this->isAdminUser()?'enabled':'disabled'); | |
| 59 | + | |
| 60 | + /* | |
| 61 | + * Inicializa template com textos basicos | |
| 62 | + */ | |
| 63 | + $this->setPageTitle( $titulo ); | |
| 64 | + | |
| 65 | + | |
| 66 | + $this->addVar('Aquisicoes', 'CACIC_URL', CACIC_URL ); | |
| 67 | + $this->addVar('Aquisicoes_form', 'TITULO', $titulo ); | |
| 68 | + $this->addVar('Aquisicoes_form', 'DESCRICAO_TITLE', $this->oTranslator->_('Controle de processos de aquisicoes') ); | |
| 69 | + $this->addVar('Aquisicoes_form', 'AQUISICAO_TITLE', $this->oTranslator->_('Processo de aquisicao') ); | |
| 70 | + $this->addVar('Aquisicoes_form', 'NOME_EMPRESA_NAME_TITLE', $this->oTranslator->_('Nome da empresa') ); | |
| 71 | + $this->addVar('Aquisicoes_form', 'NOME_PROPRIETARIO_TITLE', $this->oTranslator->_('Nome do proprietario') ); | |
| 72 | + $this->addVar('Aquisicoes_form', 'NR_NOTA_FISCAL_TITLE', $this->oTranslator->_('Nota Fiscal') ); | |
| 73 | + $this->addVar('Aquisicoes_form', 'DATA_AQUISICAO_TITLE', $this->oTranslator->_('Data de aquisicao') ); | |
| 74 | + | |
| 75 | + $this->addVar('Aquisicoes_insert_edit', 'NOME_PROPRIETARIO_NAME_INPUT_LABEL', $this->oTranslator->_('Nome do proprietario') ); | |
| 76 | + $this->addVar('Aquisicoes_insert_edit', 'AQUISICAO_INPUT_LABEL', $this->oTranslator->_('Processo de aquisicao') ); | |
| 77 | + $this->addVar('Aquisicoes_insert_edit', 'NOME_EMPRESA_NAME_INPUT_LABEL', $this->oTranslator->_('Nome da empresa') ); | |
| 78 | + $this->addVar('Aquisicoes_insert_edit', 'NR_NOTA_FISCAL_INPUT_LABEL', $this->oTranslator->_('Nota Fiscal') ); | |
| 79 | + $this->addVar('Aquisicoes_insert_edit', 'DATA_AQUISICAO_INPUT_LABEL', $this->oTranslator->_('Data de aquisicao') ); | |
| 80 | + $this->addVar('Aquisicoes_insert_edit', 'DATA_AQUISICAO_FORMATO', $this->oTranslator->_('DD/MM/AAAA', T_SIGLA) ); | |
| 81 | + | |
| 82 | + $this->addVar('Aquisicoes_insert_edit', 'SELECT_OPTION', $this->oTranslator->_('--- Selecione ---') ); | |
| 83 | + | |
| 84 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_INCLUIR_TITLE', $this->oTranslator->_('Incluir registro') ); | |
| 85 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_INCLUIR', $this->oTranslator->_('Incluir')." ". strtolower($this->oTranslator->_('Processo de aquisicao'))); | |
| 86 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_INCLUIR_DENY', $cacic_setup['acl_permission']); | |
| 87 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_SALVAR_TITLE', $this->oTranslator->_('Gravar alteracoes') ); | |
| 88 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_SALVAR', $this->oTranslator->_('Gravar') ); | |
| 89 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_SALVAR_DENY', $cacic_setup['acl_permission']); | |
| 90 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_CANCELAR_TITLE', $this->oTranslator->_('Cancelar alteracoes') ); | |
| 91 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_CANCELAR', $this->oTranslator->_('Cancelar') ); | |
| 92 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_CANCELAR_DENY', $cacic_setup['acl_permission']); | |
| 93 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_RESET_TITLE', $this->oTranslator->_('Restaurar valores') ); | |
| 94 | + $this->addVar('Aquisicoes_insert_edit', 'BTN_RESET', $this->oTranslator->_('Restaurar') ); | |
| 95 | + | |
| 96 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO', $this->oTranslator->_('Informe esse campo') ); | |
| 97 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO_QTDE', $this->oTranslator->_('Informe numero da nota fiscal') ); | |
| 98 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO_DATA', $this->oTranslator->_('Informe data valida') ); | |
| 99 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO_LIC_TYPE', $this->oTranslator->_('Informe nome do proprietario') ); | |
| 100 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO_NOME_EMPRESA', $this->oTranslator->_('Informe nome da empresa') ); | |
| 101 | + $this->addVar('Aquisicoes_insert_edit', 'MSG_VALIDACAO_AQUISICAO', $this->oTranslator->_('Informe processo de aquisicao') ); | |
| 102 | + | |
| 103 | + $this->addVar('Aquisicoes_list', 'ACTIONS_DELETE_TITLE', $this->oTranslator->_('Excluir registro') ); | |
| 104 | + $this->addVar('Aquisicoes_list', 'ACTIONS_EDIT_TITLE', $this->oTranslator->_('Editar registro') ); | |
| 105 | + $this->addVar('Aquisicoes_actions_acl', 'ACTIONS_TITLE', $this->oTranslator->_('Acoes') ); | |
| 106 | + | |
| 107 | + } | |
| 108 | + | |
| 109 | + /** | |
| 110 | + * Executa a configuracao padrão do CACIC | |
| 111 | + * @access public | |
| 112 | + */ | |
| 113 | + function run() { | |
| 114 | + global $cacic_common, $cacic_setup; | |
| 115 | + $this->setup(); // atribui dados globais | |
| 116 | + | |
| 117 | + if($cacic_setup['acl_permission']=='disabled') // desabilita acões caso sem permissão | |
| 118 | + $this->addVar('Aquisicoes_insert_edit', 'acl_permission', $cacic_setup['acl_permission'] ); | |
| 119 | + elseif($cacic_setup['btn_action_incluir']) | |
| 120 | + $this->addVar('Aquisicoes_insert_edit', 'acl_permission', true ); | |
| 121 | + elseif($cacic_setup['btn_action_edit']) | |
| 122 | + $this->addVar('Aquisicoes_insert_edit', 'acl_permission', true ); | |
| 123 | + else | |
| 124 | + $this->addVar('Aquisicoes_insert_edit', 'acl_permission', false ); | |
| 125 | + | |
| 126 | + // desabilita acões caso sem permissão | |
| 127 | + $this->addVar('Aquisicoes_actions_acl', 'acl_permission', $cacic_setup['acl_permission'] ); | |
| 128 | + | |
| 129 | + if((isset($cacic_setup['btn_salvar']) and ($cacic_setup['btn_salvar'])) or | |
| 130 | + (isset($cacic_setup['btn_action_excluir']) and ($cacic_setup['btn_action_excluir'])) ) { | |
| 131 | + try { | |
| 132 | + $this->salvarDados(); | |
| 133 | + } | |
| 134 | + catch( Exception $erro ) { | |
| 135 | + $msg = '<span class="ErroImg"></span>'; | |
| 136 | + $msg .= '<span class="Erro">'.$erro->getMessage()."</span>"; | |
| 137 | + $this->setMessageText($msg); | |
| 138 | + } | |
| 139 | + } | |
| 140 | + $this->fillForm(); | |
| 141 | + $this->showForm(); | |
| 142 | + } | |
| 143 | + | |
| 144 | + /** | |
| 145 | + * Executa a configuracao padrão do CACIC | |
| 146 | + * @access public | |
| 147 | + */ | |
| 148 | + function salvarDados() { | |
| 149 | + global $cacic_common, $cacic_setup; | |
| 150 | + $error = true; | |
| 151 | + $msg = $this->oTranslator->_('Ocorreu erro no processamento... '); | |
| 152 | + /* | |
| 153 | + * Obtem dados do formulario | |
| 154 | + */ | |
| 155 | + $id_aquisicao = Security::getInt('id_aquisicao'); | |
| 156 | + $data_aquisicao = Security::getDate('data_aquisicao'); | |
| 157 | + $nr_processo = Security::getString('nr_processo'); | |
| 158 | + $nm_empresa = Security::getString('nm_empresa'); | |
| 159 | + $nm_proprietario = Security::getString('nm_proprietario'); | |
| 160 | + $nr_notafiscal = Security::getString('nr_notafiscal'); | |
| 161 | + | |
| 162 | + list($dia, $mes, $ano) = explode("/", $data_aquisicao); | |
| 163 | + $data_aquisicao= date('Y-m-d', strtotime($ano."-".$mes."-".$dia)); | |
| 164 | + | |
| 165 | + /* | |
| 166 | + * monta sql de atualizacao dos dados padrao | |
| 167 | + */ | |
| 168 | + $sql = ''; | |
| 169 | + if($cacic_setup['btn_salvar']) { | |
| 170 | + // verifica se Itens adiquiridos já está cadastrado | |
| 171 | + $sql = "select * from aquisicoes " . | |
| 172 | + " where id_aquisicao = '" . $id_aquisicao ."'; "; | |
| 173 | + $db_result = mysql_query($sql); | |
| 174 | + if(mysql_num_rows($db_result)) | |
| 175 | + $sql = "update aquisicoes set nr_notafiscal = '" . $nr_notafiscal ."'". | |
| 176 | + ", dt_aquisicao = '".$data_aquisicao."'". | |
| 177 | + ", nr_processo = '".$nr_processo."'" . | |
| 178 | + ", nm_empresa = '".$nm_empresa."'" . | |
| 179 | + ", nm_proprietario = '".$nm_proprietario."'" . | |
| 180 | + " where id_aquisicao = '" . $id_aquisicao ."'; "; | |
| 181 | + else { | |
| 182 | + $sql = "insert into aquisicoes (dt_aquisicao, nr_processo, nm_empresa, nm_proprietario, nr_notafiscal) " . | |
| 183 | + "value (" . | |
| 184 | + "'".$data_aquisicao."', " . | |
| 185 | + "'".$nr_processo."', " . | |
| 186 | + "'".$nm_empresa."', " . | |
| 187 | + "'".$nm_proprietario."', " . | |
| 188 | + "'".$nr_notafiscal."' " . | |
| 189 | + ");"; | |
| 190 | + } | |
| 191 | + } | |
| 192 | + | |
| 193 | + if($cacic_setup['btn_action_excluir']) { | |
| 194 | + $id_aquisicao = $cacic_setup['btn_action_excluir']; | |
| 195 | + if($id_aquisicao) | |
| 196 | + $sql = "delete from aquisicoes " . | |
| 197 | + " where id_aquisicao = '" . $id_aquisicao ."'; "; | |
| 198 | + } | |
| 199 | + | |
| 200 | + /* | |
| 201 | + * Atualiza dados na tabela | |
| 202 | + */ | |
| 203 | + $db_result = mysql_query($sql); | |
| 204 | + $error = mysql_errno($this->db_link); | |
| 205 | + $msg .= $this->oTranslator->_('messagem do servidor:')." <br><pre> "; | |
| 206 | + $msg .= mysql_error($this->db_link)."</pre>"; | |
| 207 | + | |
| 208 | + /* | |
| 209 | + * Lança execeção se ocorrer erro | |
| 210 | + */ | |
| 211 | + ($error) ? $this->throwError($msg):""; | |
| 212 | + | |
| 213 | + $this->setMessageText('<span class="OKImg">'.$this->oTranslator->_('Processamento realizado com sucesso')."</span>"); | |
| 214 | + } | |
| 215 | + | |
| 216 | + /** | |
| 217 | + * Obtem e preenche dados de formulario | |
| 218 | + * @access private | |
| 219 | + * @param string $btn_salvar Se botao para salvar foi acionado | |
| 220 | + */ | |
| 221 | + function fillForm() { | |
| 222 | + global $cacic_common, $cacic_setup; | |
| 223 | + | |
| 224 | + $aquisicao_id = $cacic_setup['btn_action_edit']; | |
| 225 | + | |
| 226 | + $list = array(); | |
| 227 | + $count = 0; | |
| 228 | + | |
| 229 | + $sql = "select * from aquisicoes order by id_aquisicao"; | |
| 230 | + $db_result = mysql_query($sql); | |
| 231 | + while( $aquisicoes = mysql_fetch_assoc($db_result) ) { | |
| 232 | + $count++; | |
| 233 | + // monta linha de dados da licenca | |
| 234 | + $_arrAux = array( array( 'AQUISICAO_PROC'=>$aquisicoes['nr_processo'], | |
| 235 | + 'NOME_EMPRESA'=>$aquisicoes['nm_empresa'], | |
| 236 | + 'NOME_PROPRIETARIO'=>$aquisicoes['nm_proprietario'], | |
| 237 | + 'NR_NOTA_FISCAL'=>$aquisicoes['nr_notafiscal'], | |
| 238 | + 'DATA_AQUISICAO'=>date( $this->oTranslator->_('date view format', T_SIGLA), | |
| 239 | + strtotime($aquisicoes['dt_aquisicao'] )), | |
| 240 | + 'SEQUENCIAL'=>$count, | |
| 241 | + | |
| 242 | + 'AQUISICAO_ID'=>$aquisicoes['id_aquisicao'], | |
| 243 | + | |
| 244 | + 'acl_permission'=> $cacic_setup['acl_permission'] | |
| 245 | + ) ); | |
| 246 | + $list = array_merge($list, $_arrAux); | |
| 247 | + | |
| 248 | + // Atribui ao formulario os dados a serem editados | |
| 249 | + if($cacic_setup['btn_action_edit'] and ($aquisicao_id==$aquisicoes['id_aquisicao'])) { | |
| 250 | + | |
| 251 | + $this->addVar('Aquisicoes_insert_edit', 'AQUISICAO_ID', $aquisicoes['id_aquisicao']); | |
| 252 | + $this->addVar('Aquisicoes_insert_edit', 'AQUISICAO_PROC', $aquisicoes['nr_processo']); | |
| 253 | + $this->addVar('Aquisicoes_insert_edit', 'NOME_EMPRESA', $aquisicoes['nm_empresa']); | |
| 254 | + $this->addVar('Aquisicoes_insert_edit', 'NOME_PROPRIETARIO', $aquisicoes['nm_proprietario']); | |
| 255 | + $this->addVar('Aquisicoes_insert_edit', 'NR_NOTA_FISCAL', $aquisicoes['nr_notafiscal'] ); | |
| 256 | + $this->addVar('Aquisicoes_insert_edit', 'DATA_AQUISICAO', date($this->oTranslator->_('date view format', T_SIGLA), | |
| 257 | + strtotime($aquisicoes['dt_aquisicao'])) ); | |
| 258 | + } | |
| 259 | + } | |
| 260 | + | |
| 261 | + /* | |
| 262 | + * Preenche formulário com dados | |
| 263 | + */ | |
| 264 | + $this->addRows('Aquisicoes_list', $list ); | |
| 265 | + | |
| 266 | + } | |
| 267 | + | |
| 268 | + | |
| 269 | + /** | |
| 270 | + * Mostra formulario da configuracao padrao | |
| 271 | + * @access private | |
| 272 | + */ | |
| 273 | + function showForm() { | |
| 274 | + // Monta cabecalho da pagina | |
| 275 | + $this->displayParsedTemplate('CacicCommon_head'); | |
| 276 | + // Monta cabecalho da pagina | |
| 277 | + $this->displayParsedTemplate('Aquisicoes'); | |
| 278 | + | |
| 279 | + $this->displayParsedTemplate('Aquisicoes_form'); | |
| 280 | + | |
| 281 | + // Monta area de mensages e rodape da pagina | |
| 282 | + $this->displayParsedTemplate('CacicCommon_messages'); | |
| 283 | + $this->displayParsedTemplate('CacicCommon_footer'); | |
| 284 | + } | |
| 285 | + } | |
| 286 | + | |
| 287 | +?> | |
| 0 | 288 | \ No newline at end of file | ... | ... |
| ... | ... | @@ -0,0 +1,42 @@ |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @version $Id: aquisicoes.php 2009-10-11 11:25 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 Aquisicoes | |
| 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('aquisicoes.class.php'); | |
| 31 | + | |
| 32 | +$oCacic = new Aquisicoes(); | |
| 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,101 @@ |
| 1 | +/** | |
| 2 | + * @version $Id: aquisicoes_01.js 2009-10-11 11:29 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 Aquisicoes | |
| 13 | + */ | |
| 14 | + | |
| 15 | +// valor de retorno global | |
| 16 | +var g_resp = true; | |
| 17 | + | |
| 18 | +function validaNomeProprietario(_msg) { | |
| 19 | + var resp = true; | |
| 20 | + if((document.CacicCommon_form.nm_proprietario.value=="") || (document.CacicCommon_form.nm_proprietario.value.substring(0,1)==" ")){ | |
| 21 | + setClass(document.CacicCommon_form.nm_proprietario, 'inputError'); | |
| 22 | + document.getElementById('error_nm_proprietario').innerHTML=_msg; | |
| 23 | + resp = false; | |
| 24 | + g_resp = false; | |
| 25 | + } | |
| 26 | + else { | |
| 27 | + document.getElementById('error_nm_proprietario').innerHTML=""; | |
| 28 | + g_resp = true; | |
| 29 | + } | |
| 30 | + return resp; | |
| 31 | +} | |
| 32 | + | |
| 33 | +function validaAquisicao(_msg) { | |
| 34 | + var resp = true; | |
| 35 | + if((document.CacicCommon_form.nr_processo.value=="") || (document.CacicCommon_form.nr_processo.value.substring(0,1)==" ")){ | |
| 36 | + setClass(document.CacicCommon_form.nr_processo, 'inputError'); | |
| 37 | + document.getElementById('error_nr_processo').innerHTML=_msg; | |
| 38 | + resp = false; | |
| 39 | + g_resp = false; | |
| 40 | + } | |
| 41 | + else { | |
| 42 | + document.getElementById('error_nr_processo').innerHTML=""; | |
| 43 | + g_resp = true; | |
| 44 | + } | |
| 45 | + return resp; | |
| 46 | +} | |
| 47 | + | |
| 48 | +function validaNomeEmpresa(_msg) { | |
| 49 | + var resp = true; | |
| 50 | + if((document.CacicCommon_form.nm_empresa.value=="") || (document.CacicCommon_form.nm_empresa.value.substring(0,1)==" ")){ | |
| 51 | + setClass(document.CacicCommon_form.nm_empresa, 'inputError'); | |
| 52 | + document.getElementById('error_nm_empresa').innerHTML=_msg; | |
| 53 | + resp = false; | |
| 54 | + g_resp = false; | |
| 55 | + } | |
| 56 | + else { | |
| 57 | + document.getElementById('error_nm_empresa').innerHTML=""; | |
| 58 | + g_resp = true; | |
| 59 | + } | |
| 60 | + return resp; | |
| 61 | +} | |
| 62 | + | |
| 63 | +function validaNotaFiscal(_msg) { | |
| 64 | + var resp = true; | |
| 65 | + if((document.CacicCommon_form.nr_notafiscal.value=="") || (document.CacicCommon_form.nr_notafiscal.value.substring(0,1)==" ")){ | |
| 66 | + setClass(document.CacicCommon_form.nr_notafiscal, 'inputError'); | |
| 67 | + document.getElementById('error_nr_notafiscal').innerHTML=_msg; | |
| 68 | + resp = false; | |
| 69 | + g_resp = false; | |
| 70 | + } | |
| 71 | + else { | |
| 72 | + document.getElementById('error_nr_notafiscal').innerHTML=""; | |
| 73 | + g_resp = true; | |
| 74 | + } | |
| 75 | + return resp; | |
| 76 | +} | |
| 77 | + | |
| 78 | +function validaDataAquisicao(_msg) { | |
| 79 | + var resp = true; | |
| 80 | + if((document.CacicCommon_form.data_aquisicao.value=="")){ | |
| 81 | + setClass(document.CacicCommon_form.data_aquisicao, 'inputError'); | |
| 82 | + document.getElementById('error_data_aquisicao').innerHTML=_msg; | |
| 83 | + resp = false; | |
| 84 | + g_resp = false; | |
| 85 | + } | |
| 86 | + else { | |
| 87 | + document.getElementById('error_data_aquisicao').innerHTML=""; | |
| 88 | + g_resp = true; | |
| 89 | + } | |
| 90 | + return resp; | |
| 91 | +} | |
| 92 | + | |
| 93 | +function validaForm(_msg) { | |
| 94 | + validaNomeProprietario(_msg); | |
| 95 | + validaAquisicao(_msg); | |
| 96 | + validaNomeEmpresa(_msg); | |
| 97 | + validaNotaFiscal(_msg); | |
| 98 | + validaDataAquisicao(_msg); | |
| 99 | + | |
| 100 | + return g_resp; | |
| 101 | +} | ... | ... |
| ... | ... | @@ -0,0 +1,260 @@ |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @version $Id: aquisicoes_01.tmpl.php 2009-10-11 11:21 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 Aquisicoes | |
| 14 | + */ | |
| 15 | + | |
| 16 | +// direct access is denied | |
| 17 | +defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | |
| 18 | + | |
| 19 | +?> | |
| 20 | +<gerenciaLicencas:tmpl name="Aquisicoes"> | |
| 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/aquisicoes_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 | +</gerenciaLicencas:tmpl> | |
| 28 | + | |
| 29 | +<gerenciaLicencas:tmpl name="Aquisicoes_form"> | |
| 30 | +<div class="cabecalho"> | |
| 31 | +<table> | |
| 32 | + <tr> | |
| 33 | + <td class="cabecalho"> | |
| 34 | + <gerenciaLicencas:comment><img src="../../imgs/cacic_logo.png" /></gerenciaLicencas:comment> | |
| 35 | + {TITULO} | |
| 36 | + </td> | |
| 37 | + </tr> | |
| 38 | + <tr> | |
| 39 | + <td> | |
| 40 | + <fieldset class="corpo"> | |
| 41 | + <legend>{DESCRICAO_TITLE}</legend> | |
| 42 | + <table cellspacing="01"> | |
| 43 | + <tr> | |
| 44 | + <td colspan="10"> | |
| 45 | + <gerenciaLicencas:tmpl name="Aquisicoes_insert_edit" type="condition" conditionvar="acl_permission"> | |
| 46 | + | |
| 47 | + <gerenciaLicencas:sub condition="disabled"> | |
| 48 | + <gerenciaLicencas:comment><!--> | |
| 49 | + ** Caso o usuario nao tem permissao (ACL) não mostra formulário ou botoes de inserção | |
| 50 | + <--></gerenciaLicencas:comment> | |
| 51 | + </gerenciaLicencas:sub> | |
| 52 | + | |
| 53 | + <gerenciaLicencas:comment><!--> | |
| 54 | + ** Formulário para inserção de dados | |
| 55 | + <--></gerenciaLicencas:comment> | |
| 56 | + <gerenciaLicencas:sub condition="1"> | |
| 57 | + <fieldset> | |
| 58 | + <table> | |
| 59 | + <tr> | |
| 60 | + <td width="30%">{AQUISICAO_INPUT_LABEL}<span class="necessario">*</span></td> | |
| 61 | + <td> | |
| 62 | + <input type="text" id="nr_processo" name="nr_processo" value="{AQUISICAO_PROC}" | |
| 63 | + onClick="setClass(this, 'inputFocus');" | |
| 64 | + onBlur="if(validaAquisicao('{MSG_VALIDACAO_AQUISICAO}')){setClass(this, 'input');}" > | |
| 65 | + | |
| 66 | + <span class="erro" id="error_nr_processo"></span> | |
| 67 | + <input type="hidden" id="id_aquisicao" name="id_aquisicao" value="{AQUISICAO_ID}" > | |
| 68 | + </td> | |
| 69 | + </tr> | |
| 70 | + | |
| 71 | + <tr> | |
| 72 | + <td>{NOME_EMPRESA_NAME_INPUT_LABEL}<span class="necessario">*</span></td> | |
| 73 | + <td> | |
| 74 | + <input type="text" id="nm_empresa" name="nm_empresa" value="{NOME_EMPRESA}" | |
| 75 | + onClick="setClass(this, 'inputFocus');" | |
| 76 | + onBlur="if(validaNomeEmpresa('{MSG_VALIDACAO_NOME_EMPRESA}')){setClass(this, 'input');}" /> | |
| 77 | + | |
| 78 | + <span class="erro" id="error_nm_empresa"></span> | |
| 79 | + </td> | |
| 80 | + </tr> | |
| 81 | + | |
| 82 | + <tr> | |
| 83 | + <td>{NOME_PROPRIETARIO_NAME_INPUT_LABEL}<span class="necessario">*</span></td> | |
| 84 | + <td> | |
| 85 | + <input type="text" id="nm_proprietario" name="nm_proprietario" value="{NOME_PROPRIETARIO}" | |
| 86 | + onClick="setClass(this, 'inputFocus');" | |
| 87 | + onBlur="if(validaNomeProprietario('{MSG_VALIDACAO_LIC_TYPE}')){setClass(this, 'input');}" > | |
| 88 | + | |
| 89 | + <span class="erro" id="error_nm_proprietario"></span> | |
| 90 | + </td> | |
| 91 | + </tr> | |
| 92 | + | |
| 93 | + <tr> | |
| 94 | + <td>{NR_NOTA_FISCAL_INPUT_LABEL}<span class="necessario">*</span></td> | |
| 95 | + <td> | |
| 96 | + <input type="text" id="nr_notafiscal" name="nr_notafiscal" value="{NR_NOTA_FISCAL}" | |
| 97 | + onFocus="setClass(this, 'inputFocus');" | |
| 98 | + onBlur="if(validaNotaFiscal('{MSG_VALIDACAO_QTDE}')){setClass(this, 'input');}" /> | |
| 99 | + | |
| 100 | + <span class="erro" id="error_nr_notafiscal"></span> | |
| 101 | + </td> | |
| 102 | + </tr> | |
| 103 | + | |
| 104 | + <tr> | |
| 105 | + <td>{DATA_AQUISICAO_INPUT_LABEL}<span class="necessario">*</span></td> | |
| 106 | + <td> | |
| 107 | + <input type="text" id="data_aquisicao" name="data_aquisicao" value="{DATA_AQUISICAO}" | |
| 108 | + onFocus="setClass(this, 'inputFocus');" | |
| 109 | + onBlur="if(validaDataAquisicao('{MSG_VALIDACAO_DATA}')){setClass(this, 'input');}else{return false;}" /> | |
| 110 | + <script type="text/javascript" language="JavaScript"> | |
| 111 | + <!-- | |
| 112 | + function dataVencimentoCallback(date, month, year) { | |
| 113 | + if (String(month).length == 1) { | |
| 114 | + month = '0' + month; | |
| 115 | + } | |
| 116 | + if (String(date).length == 1) { | |
| 117 | + date = '0' + date; | |
| 118 | + } | |
| 119 | + document.CacicCommon_form.data_aquisicao.value = date + '/' + month + '/' + year; | |
| 120 | + } | |
| 121 | + data_aquisicao = new dynCalendar('data_aquisicao', 'dataVencimentoCallback'); | |
| 122 | + --> | |
| 123 | + </script> | |
| 124 | + {DATA_AQUISICAO_FORMATO} | |
| 125 | + | |
| 126 | + <span class="erro" id="error_data_aquisicao"></span> | |
| 127 | + </td> | |
| 128 | + </tr> | |
| 129 | + | |
| 130 | + </table> | |
| 131 | + | |
| 132 | + <gerenciaLicencas:comment><!--> | |
| 133 | + ** Botoes para salvar/cancelar dados inseridos no formulario | |
| 134 | + <--></gerenciaLicencas:comment> | |
| 135 | + <span class="botoes"> | |
| 136 | + <span class='botoes{BTN_SALVAR_DENY}'> | |
| 137 | + <input class='botoes{BTN_SALVAR_DENY}' type='button' title="{BTN_SALVAR_TITLE}" name="{BTN_SALVAR}" | |
| 138 | + onClick="if(validaForm('{MSG_VALIDACAO}')){ setDocVar( 'btn_salvar', 1 ); sendForm(document.CacicCommon_form);}" | |
| 139 | + value="{BTN_SALVAR}" {BTN_SALVAR_DENY} /> | |
| 140 | + </span> | |
| 141 | + <span class='botoes{BTN_CANCELAR_DENY}'> | |
| 142 | + <input class='botoes{BTN_CANCELAR_DENY}' type='button' title="{BTN_CANCELAR_TITLE}" name="{BTN_CANCELAR}" | |
| 143 | + onClick="sendForm(document.CacicCommon_form);" value="{BTN_CANCELAR}" {BTN_CANCELAR_DENY} /> | |
| 144 | + </span> | |
| 145 | + <input type='reset' title="{BTN_RESET_TITLE}" value="{BTN_RESET}" /> | |
| 146 | + <script type="text/javascript"> | |
| 147 | + //setFocus('nr_notafiscal'); | |
| 148 | + </script> | |
| 149 | + </span> | |
| 150 | + | |
| 151 | + </fieldset> | |
| 152 | + | |
| 153 | + </gerenciaLicencas:sub> | |
| 154 | + | |
| 155 | + <gerenciaLicencas:comment><!--> | |
| 156 | + ** Botao para entrar em modo de inserção de dados no formulario | |
| 157 | + <--></gerenciaLicencas:comment> | |
| 158 | + <gerenciaLicencas:sub condition="__default"> | |
| 159 | + <div align="right"> | |
| 160 | + <span class='botoes{BTN_INCLUIR_DENY}'> | |
| 161 | + <input class='botoes{BTN_INCLUIR_DENY}' type='button' title="{BTN_INCLUIR_TITLE}" name="{BTN_INCLUIR}" | |
| 162 | + onClick="setDocVar( 'btn_action_incluir', 1 ); sendForm(document.CacicCommon_form);" value="{BTN_INCLUIR}" {BTN_INCLUIR_DENY} /> | |
| 163 | + </span> | |
| 164 | + </div> | |
| 165 | + <input type="hidden" id="btn_action_incluir" name="btn_action_incluir" /> | |
| 166 | + </gerenciaLicencas:sub> | |
| 167 | + | |
| 168 | + </gerenciaLicencas:tmpl> | |
| 169 | + </td> | |
| 170 | + </tr> | |
| 171 | + | |
| 172 | + <gerenciaLicencas:comment><!--> | |
| 173 | + ** Formulario para mostrar dados cadastrados no banco | |
| 174 | + <--></gerenciaLicencas:comment> | |
| 175 | + <tr> | |
| 176 | + <th class="header" style='width: 3%;'>{AQUISICAO_ITEM_ID_TITLE}</th> | |
| 177 | + <th class="header">{AQUISICAO_TITLE}</th> | |
| 178 | + <th class="header">{NOME_EMPRESA_NAME_TITLE}</th> | |
| 179 | + <th class="header">{NOME_PROPRIETARIO_TITLE}</th> | |
| 180 | + <th class="header">{NR_NOTA_FISCAL_TITLE}</th> | |
| 181 | + <th class="header">{DATA_AQUISICAO_TITLE}</th> | |
| 182 | + <gerenciaLicencas:tmpl name="Aquisicoes_actions_acl" type="condition" conditionvar="acl_permission"> | |
| 183 | + <gerenciaLicencas:sub condition="disabled"> | |
| 184 | + </gerenciaLicencas:sub> | |
| 185 | + <gerenciaLicencas:sub condition="__default"> | |
| 186 | + <th class="header" style='width: 10%;'>{ACTIONS_TITLE}</th> | |
| 187 | + </gerenciaLicencas:sub> | |
| 188 | + </gerenciaLicencas:tmpl> | |
| 189 | + </tr> | |
| 190 | + | |
| 191 | + <gerenciaLicencas:comment><!--> | |
| 192 | + Condicional (ACL), via template, para não mostrar botoes de inclusão, edição ou exclusão | |
| 193 | + <--></gerenciaLicencas:comment> | |
| 194 | + <gerenciaLicencas:tmpl name="Aquisicoes_list" type="condition" conditionvar="acl_permission"> | |
| 195 | + <gerenciaLicencas:sub condition="disabled"> | |
| 196 | + <tr class="even" onMouseOver="this.className = 'odd';" onMouseOut="this.className = 'even';"> | |
| 197 | + <td> | |
| 198 | + {SEQUENCIAL} | |
| 199 | + </td> | |
| 200 | + <td> | |
| 201 | + {AQUISICAO_PROC} | |
| 202 | + </td> | |
| 203 | + <td> | |
| 204 | + {NOME_EMPRESA} | |
| 205 | + </td> | |
| 206 | + <td> | |
| 207 | + {NOME_PROPRIETARIO} | |
| 208 | + </td> | |
| 209 | + <td align="right"> | |
| 210 | + {NR_NOTA_FISCAL} | |
| 211 | + </td> | |
| 212 | + <td align="center"> | |
| 213 | + {DATA_AQUISICAO} | |
| 214 | + </td> | |
| 215 | + </tr> | |
| 216 | + </gerenciaLicencas:sub> | |
| 217 | + <gerenciaLicencas:sub condition="__default"> | |
| 218 | + <tr class="even" onMouseOver="this.className = 'odd';" onMouseOut="this.className = 'even';" | |
| 219 | + title="{OBSERVACAO}"> | |
| 220 | + <td> | |
| 221 | + {SEQUENCIAL} | |
| 222 | + </td> | |
| 223 | + <td> | |
| 224 | + {AQUISICAO_PROC} | |
| 225 | + </td> | |
| 226 | + <td> | |
| 227 | + {NOME_EMPRESA} | |
| 228 | + </td> | |
| 229 | + <td> | |
| 230 | + {NOME_PROPRIETARIO} | |
| 231 | + </td> | |
| 232 | + <td align="right"> | |
| 233 | + {NR_NOTA_FISCAL} | |
| 234 | + </td> | |
| 235 | + <td align="center"> | |
| 236 | + {DATA_AQUISICAO} | |
| 237 | + </td> | |
| 238 | + <td> | |
| 239 | + <img style='width: 16px; height: 16px; cursor:pointer;' src="../../imgs/error.png" title="{ACTIONS_DELETE_TITLE}" | |
| 240 | + onClick="setDocVar( 'btn_action_excluir', '{AQUISICAO_ID}' ); sendForm(document.CacicCommon_form);" /> | |
| 241 | + <img style='width: 16px; height: 16px; cursor:pointer;' src="../../imgs/details.gif" title="{ACTIONS_EDIT_TITLE}" | |
| 242 | + onClick="setDocVar( 'btn_action_edit', '{AQUISICAO_ID}' ); sendForm(document.CacicCommon_form);" /> | |
| 243 | + </td> | |
| 244 | + </tr> | |
| 245 | + </gerenciaLicencas:sub> | |
| 246 | + </gerenciaLicencas:tmpl> | |
| 247 | + <tr> | |
| 248 | + <td colspan="10" class="botoes"> | |
| 249 | + <input type="hidden" id="btn_action_edit" name="btn_action_edit" /> | |
| 250 | + <input type="hidden" id="btn_action_excluir" name="btn_action_excluir" /> | |
| 251 | + <input type="hidden" id="btn_salvar" name="btn_salvar" value="" /> | |
| 252 | + </td> | |
| 253 | + </tr> | |
| 254 | + </table> | |
| 255 | + </fieldset> | |
| 256 | + </td> | |
| 257 | + </tr> | |
| 258 | +</table> | |
| 259 | +</div> | |
| 260 | +</gerenciaLicencas:tmpl> | ... | ... |
admin/gerencia_licencas/aquisicoes_itens_01.js
| ... | ... | @@ -15,12 +15,6 @@ |
| 15 | 15 | // valor de retorno global |
| 16 | 16 | var g_resp = true; |
| 17 | 17 | |
| 18 | -function isInt(x) { | |
| 19 | - var y=parseInt(x); | |
| 20 | - if (isNaN(y)) return false; | |
| 21 | - return x==y && x.toString()==y.toString(); | |
| 22 | -} | |
| 23 | - | |
| 24 | 18 | function validaTipoLicenca(_msg) { |
| 25 | 19 | var resp = true; |
| 26 | 20 | if((document.CacicCommon_form.id_tipo_licenca.value=="") || (document.CacicCommon_form.id_tipo_licenca.value.substring(0,1)==" ")){ | ... | ... |
admin/gerencia_licencas/consulta/lista_aquisicoes_software_particular.php
| ... | ... | @@ -21,6 +21,7 @@ if(!isset($_SESSION['id_usuario'])) |
| 21 | 21 | die('Acesso restrito (Restricted access)!'); |
| 22 | 22 | else { // Inserir regras para outras verificações (ex: permissões do usuário)! |
| 23 | 23 | } |
| 24 | +require_once('../../../include/library.php'); | |
| 24 | 25 | |
| 25 | 26 | $v_id_software = $_GET['id_software']; |
| 26 | 27 | ?> |
| ... | ... | @@ -66,7 +67,6 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 |
| 66 | 67 | <br> |
| 67 | 68 | <br> |
| 68 | 69 | <? |
| 69 | -require_once('../../../include/library.php'); | |
| 70 | 70 | conecta_bd_cacic(); |
| 71 | 71 | |
| 72 | 72 | $query = "SELECT s.nm_software, SUM(ai.qt_licenca) as qtde | ... | ... |
admin/gerencia_licencas/consulta/lista_instalacoes_software_particular.php
| ... | ... | @@ -21,6 +21,7 @@ if(!isset($_SESSION['id_usuario'])) |
| 21 | 21 | die('Acesso restrito (Restricted access)!'); |
| 22 | 22 | else { // Inserir regras para outras verificações (ex: permissões do usuário)! |
| 23 | 23 | } |
| 24 | +require_once('../../../include/library.php'); | |
| 24 | 25 | |
| 25 | 26 | $v_id_software = $_GET['id_software']; |
| 26 | 27 | ?> |
| ... | ... | @@ -67,7 +68,6 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 |
| 67 | 68 | <br> |
| 68 | 69 | <br> |
| 69 | 70 | <? |
| 70 | -require_once('../../../include/library.php'); | |
| 71 | 71 | conecta_bd_cacic(); |
| 72 | 72 | |
| 73 | 73 | $query = "SELECT s.nm_software, COUNT(se.id_software) | ... | ... |
| ... | ... | @@ -0,0 +1,22 @@ |
| 1 | +/** | |
| 2 | + * @version $Id: cacic_common_01.js 2009-10-11 11:33 harpiain $ | |
| 3 | + * @package CACIC-Common | |
| 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 Cacic | |
| 13 | + */ | |
| 14 | + | |
| 15 | +// valor de retorno global | |
| 16 | +var g_resp = true; | |
| 17 | + | |
| 18 | +function isInt(x) { | |
| 19 | + var y=parseInt(x); | |
| 20 | + if (isNaN(y)) return false; | |
| 21 | + return x==y && x.toString()==y.toString(); | |
| 22 | +} | ... | ... |
common/cacic_common_01.tmpl.php
| ... | ... | @@ -25,6 +25,7 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); |
| 25 | 25 | <link href="{CACIC_URL}/include/cacic.css" rel="stylesheet" type="text/css" /> |
| 26 | 26 | <link href="{CACIC_URL}/common/cacic_common_01.css" rel="stylesheet" type="text/css" /> |
| 27 | 27 | <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/include/cacic.js"></script> |
| 28 | + <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/common/cacic_common_01.js"></script> | |
| 28 | 29 | <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/bibliotecas/javascript/asv/asvAjax.js"></script> |
| 29 | 30 | <script language="JavaScript" type="text/javascript" src="{CACIC_URL}/bibliotecas/javascript/asv/asvUtils.js"></script> |
| 30 | 31 | </head> | ... | ... |
include/cacic.css
| ... | ... | @@ -225,12 +225,12 @@ a.dcontexto:hover span |
| 225 | 225 | vertical-align: top; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | -.frameprincipal .inputFocus { | |
| 229 | - text-align: left; | |
| 230 | - vertical-align: top; | |
| 231 | - background-color: yellow; | |
| 232 | -} | |
| 233 | - | |
| 228 | +.frameprincipal .inputFocus { | |
| 229 | + text-align: left; | |
| 230 | + vertical-align: top; | |
| 231 | + background-color: #CCCCCC; | |
| 232 | +} | |
| 233 | + | |
| 234 | 234 | .frameprincipal .inputError { |
| 235 | 235 | text-align: left; |
| 236 | 236 | vertical-align: top; | ... | ... |
language/en_US/menu_adm.txt
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | ...U. O. Nível 2|admin/patrimonio/nivel2/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 2 |
| 28 | 28 | ...Opções|admin/patrimonio/opcoes.php|mainFrame||Opções da coleta de Informações de Patrimônio e Localização Física |
| 29 | 29 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
| 30 | -...Aquisições|admin/gerencia_licencas/arquivo/index.php|mainFrame||Processos de aquisições de softwares | |
| 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 | 32 | ...Softwares por Estação|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.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 | ... | ... |
language/es_UR/menu_adm.txt
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | ...U. O. Nível 2|admin/patrimonio/nivel2/index.php|mainFrame||Captura de Unidades Organizacionales de Nível 2 |
| 27 | 27 | ...Opciones|admin/patrimonio/opcoes.php|mainFrame||Opciones de captura de Informaciones de Patrimonio y Localizacion Física |
| 28 | 28 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
| 29 | -...Adquisiciones|admin/gerencia_licencas/arquivo/index.php|mainFrame||Processos de aquisições de softwares | |
| 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 | 31 | ...Softwares por Estacion|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.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 | ... | ... |
language/pt_BR/language.pt_BR.inc.php
| ... | ... | @@ -1082,3 +1082,34 @@ pt_BR com esta mascara, esta subrede atendera a faixa |
| 1082 | 1082 | pt_BR confirma? geral info Confirma? |
| 1083 | 1083 | pt_BR atualizacoes de subredes rede info Atualizacoes de subredes |
| 1084 | 1084 | pt_BR atualizacoes de subredes - texto de ajuda rede info As informações referem-se aos objetos constantes do repositório, os quais poderão ser assinalados para verificação de existência e/ou versões nas SubRedes cadastradas |
| 1085 | +pt_BR cadastro de processos de aquisicoes admin info Cadastro de Processos de Aquisicoes | |
| 1086 | +pt_BR controle de processos de aquisicoes admin info Controle de processos de aquisicoes | |
| 1087 | +pt_BR nome da empresa admin info Nome da empresa | |
| 1088 | +pt_BR nome do proprietario admin info Nome do proprietario | |
| 1089 | +pt_BR nota fiscal admin info Nota Fiscal | |
| 1090 | +pt_BR data de aquisicao admin info Data de aquisicao | |
| 1091 | +pt_BR informe numero da nota fiscal admin info Informe numero da nota fiscal | |
| 1092 | +pt_BR informe nome do proprietario admin info Informe nome do proprietario | |
| 1093 | +pt_BR informe nome da empresa admin info Informe nome da empresa | |
| 1094 | +pt_BR marca/desmarca todos os objetos admin info Marca/desmarca todos os objetos | |
| 1095 | +pt_BR agentes para ms-windows admin info Agentes para MS-Windows | |
| 1096 | +pt_BR hash admin info Hash | |
| 1097 | +pt_BR forcar admin info Forcar | |
| 1098 | +pt_BR agentes para gnu/linux admin info Agentes para GNU/Linux | |
| 1099 | +pt_BR subredes cadastradas admin info SubRedes Cadastradas | |
| 1100 | +pt_BR marcar/desmarcar todas as subredes admin info Marcar/desmarcar todas as subRedes | |
| 1101 | +pt_BR legenda para as subredes admin info Legenda para as SubRedes | |
| 1102 | +pt_BR amarelo admin info Amarelo | |
| 1103 | +pt_BR existencia de modulo com versao diferente admin info Existencia de modulo com versao diferente | |
| 1104 | +pt_BR laranja admin info Laranja | |
| 1105 | +pt_BR inexistencia parcial de modulos admin info Inexistencia parcial de modulos | |
| 1106 | +pt_BR vermelho admin info Vermelho | |
| 1107 | +pt_BR inexistencia total de modulos admin info Inexistencia total de modulos | |
| 1108 | +pt_BR dica: clique nas cores da legenda para marcar/desmarcar subredes em bloco admin info Dica: Clique nas Cores da legenda para marcar/desmarcar subredes em bloco | |
| 1109 | +pt_BR sequencia admin info Sequencia | |
| 1110 | +pt_BR nome da subrede admin info Nome da Subrede | |
| 1111 | +pt_BR servidor de atualizacoes admin info Servidor de atualizacoes | |
| 1112 | +pt_BR caminho (path) ftp admin info Caminho (path) FTP | |
| 1113 | +pt_BR localizacao admin info Localizacao | |
| 1114 | +pt_BR executar atualizacoes admin info Executar atualizacoes | |
| 1115 | +pt_BR confirma verificacao/atualizacao de subredes? admin info Confirma verificacao/atualizacao de subredes? | ... | ... |
language/pt_BR/menu_adm.txt
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | ...U. O. Nível 2|admin/patrimonio/nivel2/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 2 |
| 28 | 28 | ...Opções|admin/patrimonio/opcoes.php|mainFrame||Opções da coleta de Informações de Patrimônio e Localização Física |
| 29 | 29 | ..<b>Gerencia Aquisições</b>||mainFrame||Controle de softwares e licenças |
| 30 | -...Aquisições|admin/gerencia_licencas/arquivo/index.php|mainFrame||Processos de aquisições de softwares | |
| 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 | 32 | ...Softwares por Estação|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.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 | ... | ... |