/** * Armazena na "sessao" os dados de configuração padrao * @access public */ function setup() { global $cacic_common, $cacic_setup; parent::setup(); $cacic_common['padrao'] = 'Definicoes padrao para pre-preenchimento de campos'; $titulo = $this->oTranslator->_('Cadastro de Software por Estacao'); // Obtem acoes de formulário $cacic_setup['btn_action_edit'] = Security::getString('btn_action_edit'); $cacic_setup['btn_action_excluir'] = Security::getString('btn_action_excluir'); $cacic_setup['btn_action_incluir'] = Security::getInt('btn_action_incluir'); $cacic_setup['btn_salvar'] = Security::getInt('btn_salvar'); // Obtem dado de permissão (ACL) do utilizador $cacic_setup['acl_permission'] = $this->isAdminUser() ? 'enabled' : 'disabled'; /* * Inicializa template com textos basicos */ $this->setPageTitle($titulo); $this->addVar('SoftwareEstacao', 'CACIC_URL', CACIC_URL); $this->addVar('SoftwareEstacao_form', 'TITULO', $titulo); $this->addVar('SoftwareEstacao_form', 'DESCRICAO_TITLE', $this->oTranslator->_('Controle de software por estacao')); $this->addVar('SoftwareEstacao_form', 'SEQUENCIAL_TITLE', $this->oTranslator->_('Sequencial', T_SIGLA)); $this->addVar('SoftwareEstacao_form', 'AQUISICAO_PROC_TITLE', $this->oTranslator->_('Processo de aquisicao')); $this->addVar('SoftwareEstacao_form', 'SOFTWARE_TITLE', $this->oTranslator->_('Software')); $this->addVar('SoftwareEstacao_form', 'PATRIMONIO_TITLE', $this->oTranslator->_('Patrimonio')); $this->addVar('SoftwareEstacao_form', 'COMPUTADOR_TITLE', $this->oTranslator->_('Computador')); $this->addVar('SoftwareEstacao_form', 'DATA_AUTORIZACAO_TITLE', $this->oTranslator->_('Data de autorizacao')); $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_INPUT_LABEL', $this->oTranslator->_('Patrimonio')); $this->addVar('SoftwareEstacao_insert_edit', 'PATRIMONIO_DESTINO_INPUT_LABEL', $this->oTranslator->_('Patrimonio de destino')); $this->addVar('SoftwareEstacao_insert_edit', 'SOFTWARE_INPUT_LABEL', $this->oTranslator->_('Software')); $this->addVar('SoftwareEstacao_insert_edit', 'AQUISICAO_INPUT_LABEL', $this->oTranslator->_('Processo de aquisicao')); $this->addVar('SoftwareEstacao_insert_edit', 'COMPUTADOR_INPUT_LABEL', $this->oTranslator->_('Computador')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_FORMATO', $this->oTranslator->_('DD/MM/AAAA', T_SIGLA)); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_AUTORIZACAO_INPUT_LABEL', $this->oTranslator->_('Data de autorizacao')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_EXPIRACAO_INPUT_LABEL', $this->oTranslator->_('Data de expiracao')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_DESINSTALACAO_INPUT_LABEL', $this->oTranslator->_('Data de desinstalacao')); $this->addVar('SoftwareEstacao_insert_edit', 'OBSERVACAO_INPUT_LABEL', $this->oTranslator->_('Observacao')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_AUTORIZACAO_HELP', $this->oTranslator->_('Data de autorizacao da instalacao')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_EXPIRACAO_HELP', $this->oTranslator->_('Data de expiracao da instalacao')); $this->addVar('SoftwareEstacao_insert_edit', 'DATA_DESINSTALACAO_HELP', $this->oTranslator->_('Data de desinstalacao do software do computador')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO', $this->oTranslator->_('Informe esse campo')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_COMPUTADOR_NAME', $this->oTranslator->_('Informe computador')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_DATA', $this->oTranslator->_('Informe data valida')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_PATRIMONIO', $this->oTranslator->_('Informe patrimonio')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_SOFTWARE', $this->oTranslator->_('Informe software')); $this->addVar('SoftwareEstacao_insert_edit', 'MSG_VALIDACAO_AQUISICAO', $this->oTranslator->_('Informe processo de aquisicao')); $this->addVar('SoftwareEstacao_insert_edit', 'SELECT_OPTION', $this->oTranslator->_('--- Selecione ---')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR_TITLE', $this->oTranslator->_('Incluir') . " " . strtolower($this->oTranslator->_('software por estacao'))); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR', $this->oTranslator->_('Incluir registro')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_INCLUIR_DENY', $cacic_setup['acl_permission']); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR_TITLE', $this->oTranslator->_('Gravar alteracoes')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR', $this->oTranslator->_('Gravar')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_SALVAR_DENY', $cacic_setup['acl_permission']); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR_TITLE', $this->oTranslator->_('Cancelar alteracoes')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR', $this->oTranslator->_('Cancelar')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_CANCELAR_DENY', $cacic_setup['acl_permission']); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_RESET_TITLE', $this->oTranslator->_('Restaurar valores')); $this->addVar('SoftwareEstacao_insert_edit', 'BTN_RESET', $this->oTranslator->_('Restaurar')); $this->addVar('SoftwareEstacao_list', 'ACTIONS_DELETE_TITLE', $this->oTranslator->_('Excluir registro')); $this->addVar('SoftwareEstacao_list', 'ACTIONS_EDIT_TITLE', $this->oTranslator->_('Editar registro')); $this->addVar('SoftwareEstacao_actions_acl', 'ACTIONS_TITLE', $this->oTranslator->_('Acoes')); }