improve setup mysql, start make postgresql setup,added dbtype in options, data compress script and new extract data script method. bugfix: book images
This commit is contained in:
@@ -48,16 +48,17 @@ Library Manager System writen in Java-Swing available for Windows, Linux and Mac
|
|||||||
* ~~instalador mysql + script criação banco de dados em first run (create if no exits)~~
|
* ~~instalador mysql + script criação banco de dados em first run (create if no exits)~~
|
||||||
* ON CONFLICT DO NOTHING import xlsx em janela de opcoes de importacao
|
* ON CONFLICT DO NOTHING import xlsx em janela de opcoes de importacao
|
||||||
* relatorios de emprestimos e devolucoes
|
* relatorios de emprestimos e devolucoes
|
||||||
* limitar consultas de select * para especificas nos codigos
|
* limitar consultas de select * para especificas nos códigos.
|
||||||
* suporte a internacionalização
|
* suporte a internacionalização
|
||||||
|
|
||||||
**BUGS?^^
|
**BUGS?^^
|
||||||
|
|
||||||
* regra de negocio emprestimo? atrasado mas marca como dias restantes e ta gerando multa
|
* Regra de negocio emprestimo? atrasado mas marca como dias restantes e ta gerando multa(com mais de 15 dias)
|
||||||
* livro cadastro dublica se alterar isbn
|
* livro cadastro dublica se alterar isbn.
|
||||||
* botao salver em cartao faz nada (abrir explorer na url)
|
* Botão salver em cartao faz nada (abrir explorer na url).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Softwares:
|
Softwares:
|
||||||
https://cloud.librography.com/index.php/s/3kQZ9DkmAGaCWw6
|
https://cloud.librography.com/index.php/s/3kQZ9DkmAGaCWw6
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,90 @@
|
|||||||
|
7-Zip
|
||||||
|
~~~~~
|
||||||
|
License for use and distribution
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
7-Zip Copyright (C) 1999-2019 Igor Pavlov.
|
||||||
|
|
||||||
|
The licenses for files are:
|
||||||
|
|
||||||
|
1) 7z.dll:
|
||||||
|
- The "GNU LGPL" as main license for most of the code
|
||||||
|
- The "GNU LGPL" with "unRAR license restriction" for some code
|
||||||
|
- The "BSD 3-clause License" for some code
|
||||||
|
2) All other files: the "GNU LGPL".
|
||||||
|
|
||||||
|
Redistributions in binary form must reproduce related license information from this file.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
You can use 7-Zip on any computer, including a computer in a commercial
|
||||||
|
organization. You don't need to register or pay for 7-Zip.
|
||||||
|
|
||||||
|
|
||||||
|
GNU LGPL information
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You can receive a copy of the GNU Lesser General Public License from
|
||||||
|
http://www.gnu.org/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BSD 3-clause License
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
The "BSD 3-clause License" is used for the code in 7z.dll that implements LZFSE data decompression.
|
||||||
|
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
|
||||||
|
that also uses the "BSD 3-clause License":
|
||||||
|
|
||||||
|
----
|
||||||
|
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder(s) nor the names of any contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
unRAR license restriction
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The decompression engine for RAR archives was developed using source
|
||||||
|
code of unRAR program.
|
||||||
|
All copyrights to original unRAR code are owned by Alexander Roshal.
|
||||||
|
|
||||||
|
The license for original unRAR code has the following restriction:
|
||||||
|
|
||||||
|
The unRAR sources cannot be used to re-create the RAR compression algorithm,
|
||||||
|
which is proprietary. Distribution of modified unRAR sources in separate form
|
||||||
|
or as a part of other software is permitted, provided that it is clearly
|
||||||
|
stated in the documentation and source comments that the code may
|
||||||
|
not be used to develop a RAR (WinRAR) compatible archiver.
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
Igor Pavlov
|
||||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
copy ..\dist\Librography.jar C:\Librography\
|
||||||
|
copy Librography.bat C:\Librography\
|
||||||
|
|
||||||
|
7z.exe a -tZip data C:\Librography\
|
||||||
|
|
||||||
|
rename data.zip data
|
||||||
Binary file not shown.
@@ -0,0 +1,354 @@
|
|||||||
|
-- SQLINES DEMO *** rated by MySQL Workbench
|
||||||
|
-- 11/01/21 23:54:12
|
||||||
|
-- SQLINES DEMO *** Version: 1.0
|
||||||
|
-- SQLINES DEMO *** orward Engineering
|
||||||
|
|
||||||
|
/* SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; */
|
||||||
|
/* SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; */
|
||||||
|
/* SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; */
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
CREATE SCHEMA IF NOT EXISTS "applibrography";
|
||||||
|
-- TEMPLATE = template0
|
||||||
|
-- WITH OWNER "applibrography"
|
||||||
|
-- ENCODING 'UTF8' LC_COLLATE =
|
||||||
|
-- 'en_US.UTF-8'
|
||||||
|
-- LC_CTYPE = 'en_US.UTF-8';
|
||||||
|
|
||||||
|
SET SCHEMA 'applibrography' ;
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_leitores`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_leitores_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_leitores (
|
||||||
|
id INT ZEROFILL NOT NULL DEFAULT NEXTVAL ('applibrography.tb_leitores_seq'),
|
||||||
|
nome VARCHAR(100) NULL,
|
||||||
|
rg VARCHAR(30) NULL DEFAULT NULL,
|
||||||
|
cpf VARCHAR(20) NULL DEFAULT NULL,
|
||||||
|
email VARCHAR(200) NULL DEFAULT NULL,
|
||||||
|
telefone VARCHAR(30) NULL DEFAULT NULL,
|
||||||
|
celular VARCHAR(30) NULL DEFAULT NULL,
|
||||||
|
cep VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
endereco VARCHAR(255) NULL DEFAULT NULL,
|
||||||
|
numero VARCHAR(50) NULL DEFAULT NULL,
|
||||||
|
complemento VARCHAR(200) NULL DEFAULT NULL,
|
||||||
|
bairro VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
cidade VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
estado VARCHAR(2) NULL DEFAULT NULL,
|
||||||
|
tipo VARCHAR(15) NULL,
|
||||||
|
is_locked SMALLINT NULL,
|
||||||
|
curso VARCHAR(45) NULL,
|
||||||
|
curso_ano VARCHAR(45) NULL,
|
||||||
|
qtd_emprestimos INT NULL,
|
||||||
|
emprestmax INT NULL,
|
||||||
|
observacoes VARCHAR(225) NULL,
|
||||||
|
PRIMARY KEY (id))
|
||||||
|
;
|
||||||
|
|
||||||
|
ALTER SEQUENCE applibrography.tb_leitores_seq RESTART WITH 00000100;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_fornecedores`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_fornecedores_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_fornecedores (
|
||||||
|
id INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_fornecedores_seq'),
|
||||||
|
nome VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
cnpj VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
email VARCHAR(200) NULL DEFAULT NULL,
|
||||||
|
telefone VARCHAR(30) NULL DEFAULT NULL,
|
||||||
|
celular VARCHAR(30) NULL DEFAULT NULL,
|
||||||
|
cep VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
endereco VARCHAR(255) NULL DEFAULT NULL,
|
||||||
|
numero VARCHAR(50) NULL DEFAULT NULL,
|
||||||
|
complemento VARCHAR(200) NULL DEFAULT NULL,
|
||||||
|
bairro VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
cidade VARCHAR(100) NULL DEFAULT NULL,
|
||||||
|
estado VARCHAR(2) NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (id))
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_funcionarios`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_funcionarios_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_funcionarios (
|
||||||
|
id INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_funcionarios_seq'),
|
||||||
|
nome VARCHAR(100) NOT NULL,
|
||||||
|
rg VARCHAR(30) NULL,
|
||||||
|
cpf VARCHAR(20) NULL,
|
||||||
|
email VARCHAR(200) NULL,
|
||||||
|
senha VARCHAR(10) NOT NULL,
|
||||||
|
cargo VARCHAR(100) NOT NULL,
|
||||||
|
nivel_acesso VARCHAR(50) NOT NULL,
|
||||||
|
telefone VARCHAR(30) NULL,
|
||||||
|
celular VARCHAR(30) NULL,
|
||||||
|
cep VARCHAR(100) NOT NULL,
|
||||||
|
endereco VARCHAR(255) NULL,
|
||||||
|
numero VARCHAR(50) NULL,
|
||||||
|
complemento VARCHAR(200) NULL,
|
||||||
|
bairro VARCHAR(100) NULL,
|
||||||
|
cidade VARCHAR(100) NOT NULL,
|
||||||
|
estado VARCHAR(2) NOT NULL,
|
||||||
|
PRIMARY KEY (id))
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_livros`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_livros_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_livros (
|
||||||
|
id INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_livros_seq'),
|
||||||
|
titulo VARCHAR(100) NOT NULL,
|
||||||
|
autor VARCHAR(45) NOT NULL,
|
||||||
|
editora VARCHAR(45) NOT NULL,
|
||||||
|
isbn VARCHAR(13) NOT NULL,
|
||||||
|
ano VARCHAR(4) NOT NULL,
|
||||||
|
serie VARCHAR(45) NULL,
|
||||||
|
edicao VARCHAR(45) NULL,
|
||||||
|
idioma VARCHAR(25) NOT NULL,
|
||||||
|
tb_fornecedores_id INT NULL,
|
||||||
|
piso VARCHAR(45) NULL,
|
||||||
|
corredor VARCHAR(45) NULL,
|
||||||
|
posicao VARCHAR(45) NULL,
|
||||||
|
secao VARCHAR(45) NULL,
|
||||||
|
disponibilidade VARCHAR(15) NOT NULL,
|
||||||
|
observacoes VARCHAR(225) NULL,
|
||||||
|
is_emprestado SMALLINT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
,
|
||||||
|
CONSTRAINT fk_tb_livros_tb_fornecedores1
|
||||||
|
FOREIGN KEY (tb_fornecedores_id)
|
||||||
|
REFERENCES applibrography.tb_fornecedores (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE INDEX fk_tb_livros_tb_fornecedores1_idx ON applibrography.tb_livros (tb_fornecedores_id ASC);
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_emprestimos`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_emprestimos_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_emprestimos (
|
||||||
|
id INT ZEROFILL NOT NULL DEFAULT NEXTVAL ('applibrography.tb_emprestimos_seq'),
|
||||||
|
data_emprestimo TIMESTAMP(0) NULL,
|
||||||
|
data_devolucao TIMESTAMP(0) NULL DEFAULT NULL,
|
||||||
|
observacoes TEXT NULL DEFAULT NULL,
|
||||||
|
tb_funcionarios_id INT NULL,
|
||||||
|
tb_livros_id INT NULL,
|
||||||
|
tb_livros_tb_fornecedores_id INT NULL,
|
||||||
|
tb_leitores_id INT ZEROFILL NULL,
|
||||||
|
data_entrega_agendada TIMESTAMP(0) NULL,
|
||||||
|
tb_funcionarios_iddevol INT NULL,
|
||||||
|
static_id_emprestimo INT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
,
|
||||||
|
CONSTRAINT fk_tb_emprestimos_tb_funcionarios1
|
||||||
|
FOREIGN KEY (tb_funcionarios_id)
|
||||||
|
REFERENCES applibrography.tb_funcionarios (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_tb_emprestimos_tb_livros1
|
||||||
|
FOREIGN KEY (tb_livros_id)
|
||||||
|
REFERENCES applibrography.tb_livros (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_tb_emprestimos_tb_leitores1
|
||||||
|
FOREIGN KEY (tb_leitores_id)
|
||||||
|
REFERENCES applibrography.tb_leitores (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_tb_emprestimos_tb_funcionarios2
|
||||||
|
FOREIGN KEY (tb_funcionarios_iddevol)
|
||||||
|
REFERENCES applibrography.tb_funcionarios (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
;
|
||||||
|
|
||||||
|
ALTER SEQUENCE applibrography.tb_emprestimos_seq RESTART WITH 10000000;
|
||||||
|
|
||||||
|
CREATE INDEX fk_tb_emprestimos_tb_funcionarios1_idx ON applibrography.tb_emprestimos (tb_funcionarios_id ASC);
|
||||||
|
CREATE INDEX fk_tb_emprestimos_tb_livros1_idx ON applibrography.tb_emprestimos (tb_livros_id ASC, tb_livros_tb_fornecedores_id ASC);
|
||||||
|
CREATE INDEX fk_tb_emprestimos_tb_leitores1_idx ON applibrography.tb_emprestimos (tb_leitores_id ASC);
|
||||||
|
CREATE INDEX fk_tb_emprestimos_tb_funcionarios2_idx ON applibrography.tb_emprestimos (tb_funcionarios_iddevol ASC);
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_multa`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_multa_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_multa (
|
||||||
|
idmulta INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_multa_seq'),
|
||||||
|
dias_atraso INT NOT NULL,
|
||||||
|
valor_multa DECIMAL(10,2) NULL,
|
||||||
|
esta_pago SMALLINT NULL,
|
||||||
|
tb_leitores_id INT ZEROFILL NOT NULL,
|
||||||
|
tb_emprestimos_id INT ZEROFILL NOT NULL,
|
||||||
|
PRIMARY KEY (idmulta, tb_emprestimos_id)
|
||||||
|
,
|
||||||
|
CONSTRAINT fk_multa_tb_leitores1
|
||||||
|
FOREIGN KEY (tb_leitores_id)
|
||||||
|
REFERENCES applibrography.tb_leitores (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION,
|
||||||
|
CONSTRAINT fk_tb_multa_tb_emprestimos1
|
||||||
|
FOREIGN KEY (tb_emprestimos_id)
|
||||||
|
REFERENCES applibrography.tb_emprestimos (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE INDEX fk_multa_tb_leitores1_idx ON applibrography.tb_multa (tb_leitores_id ASC);
|
||||||
|
CREATE INDEX fk_tb_multa_tb_emprestimos1_idx ON applibrography.tb_multa (tb_emprestimos_id ASC);
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_opcoes`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_opcoes_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_opcoes (
|
||||||
|
id INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_opcoes_seq'),
|
||||||
|
data VARCHAR(45) NOT NULL,
|
||||||
|
parentid INT NULL,
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
,
|
||||||
|
CONSTRAINT fk_Opcoes_Opcoes1
|
||||||
|
FOREIGN KEY (parentid)
|
||||||
|
REFERENCES applibrography.tb_opcoes (id)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE INDEX fk_Opcoes_Opcoes1_idx ON applibrography.tb_opcoes (parentid ASC);
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** aphy`.`tb_recibos`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES LICENSE FOR EVALUATION USE ONLY
|
||||||
|
CREATE SEQUENCE applibrography.tb_recibos_seq;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS applibrography.tb_recibos (
|
||||||
|
id INT NOT NULL DEFAULT NEXTVAL ('applibrography.tb_recibos_seq'),
|
||||||
|
emprestimo_id INT NULL,
|
||||||
|
data_emprestimo VARCHAR(45) NULL,
|
||||||
|
data_devolucao_agendada VARCHAR(45) NULL,
|
||||||
|
data_entrega VARCHAR(45) NULL,
|
||||||
|
livro VARCHAR(45) NULL,
|
||||||
|
usuario VARCHAR(45) NULL,
|
||||||
|
tipo VARCHAR(45) NULL,
|
||||||
|
multa VARCHAR(45) NULL,
|
||||||
|
status VARCHAR(45) NULL,
|
||||||
|
funcionario VARCHAR(45) NULL,
|
||||||
|
PRIMARY KEY (id))
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
/* SET SQL_MODE=@OLD_SQL_MODE; */
|
||||||
|
/* SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; */
|
||||||
|
/* SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; */
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** pplibrography`.`tb_leitores`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
START TRANSACTION;
|
||||||
|
SET SCHEMA 'applibrography';
|
||||||
|
INSERT INTO applibrography.tb_leitores (id, nome, rg, cpf, email, telefone, celular, cep, endereco, numero, complemento, bairro, cidade, estado, tipo, is_locked, curso, curso_ano, qtd_emprestimos, emprestmax, observacoes) VALUES (00000101, 'Leitor Teste', '5.432.234-1', '099.999.345-23', 'leitor@mail.com', '(42)98877-2299', '(42)98877-2299', '854670-000', 'Rua 1 de abril', '13', 'casa', 'Centro', 'Mallet', 'PR', 'Estudante', 0, 'Letras', '1', 0, 123, 'Ok');
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** pplibrography`.`tb_fornecedores`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
START TRANSACTION;
|
||||||
|
SET SCHEMA 'applibrography';
|
||||||
|
INSERT INTO applibrography.tb_fornecedores (id, nome, cnpj, email, telefone, celular, cep, endereco, numero, complemento, bairro, cidade, estado) VALUES (1, 'Fornecedor Teste', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** pplibrography`.`tb_funcionarios`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
START TRANSACTION;
|
||||||
|
SET SCHEMA 'applibrography';
|
||||||
|
INSERT INTO applibrography.tb_funcionarios (id, nome, rg, cpf, email, senha, cargo, nivel_acesso, telefone, celular, cep, endereco, numero, complemento, bairro, cidade, estado) VALUES (1, 'Administrador', NULL, NULL, 'admin@admin', 'admin', 'Administrador', 'Administrador', NULL, NULL, '84570-000', NULL, NULL, NULL, NULL, 'Mallet', 'PR');
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** pplibrography`.`tb_livros`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
START TRANSACTION;
|
||||||
|
SET SCHEMA 'applibrography';
|
||||||
|
INSERT INTO applibrography.tb_livros (id, titulo, autor, editora, isbn, ano, serie, edicao, idioma, tb_fornecedores_id, piso, corredor, posicao, secao, disponibilidade, observacoes, is_emprestado) VALUES (1, 'Alice no Pis das maravilhas', 'Lewis Carrol', 'Nope', '1231231231231', '1894', '1', '1', 'Portugues', 1, NULL, NULL, NULL, 'Literatura Universal', '5', 'ok', 0);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
-- SQLINES DEMO *** pplibrography`.`tb_opcoes`
|
||||||
|
-- SQLINES DEMO *** ------------------------------------
|
||||||
|
START TRANSACTION;
|
||||||
|
SET SCHEMA 'applibrography';
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (1, 'piso', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (2, 'corredor', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (3, 'secao', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (4, 'posicao', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (5, 'disponibilidade', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (6, 'printerurl', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (7, 'instituicaonome', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (8, 'instiuicaoendereco', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (17, 'piso 1', 1);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (20, 'corredor 1', 2);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (21, '1A', 3);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (22, 'Literatura Universal', 4);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (13, '0', 5);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (14, '3', 5);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (15, 'Biblioteca de Hogwarts', 7);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (16, 'Rua Epsilon, 888, Cidade Imaginaria, LA ', 8);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (9, 'tiposdeusuarios', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (18, 'Estudante', 9);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (19, 'Professor', 9);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (10, 'server url', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (11, 'libraryname', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (12, 'libraryAddress', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (23, '127.0.0.1', 12);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (24, 'Nome da Biblioteca', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (25, 'valor_multa', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (26, '300', 25);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (27, 'MsgReceipt', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (28, 'Obrigado!!', 27);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (29, 'theme', NULL);
|
||||||
|
INSERT INTO applibrography.tb_opcoes (id, data, parentid) VALUES (30, 'dark', 29);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
@echo off
|
||||||
|
:start
|
||||||
|
|
||||||
|
|
||||||
|
PATH=C:\Librography_data\postgres\bin;%path%
|
||||||
|
netstat -o -n -a | findstr 5432
|
||||||
|
if %ERRORLEVEL% equ 0 goto FOUND
|
||||||
|
echo Postgresql not found or not usisng default port 5432...
|
||||||
|
ECHO Do you wanto open open browser to download it?
|
||||||
|
ECHO 1. yes
|
||||||
|
ECHO 2. no
|
||||||
|
set /p choice=Choose your option.
|
||||||
|
if '%choice%'=='' ECHO "%choice%" is not valid please try again
|
||||||
|
if '%choice%'=='1' goto open
|
||||||
|
if '%choice%'=='2' goto FIN
|
||||||
|
ECHO.
|
||||||
|
goto start
|
||||||
|
:open
|
||||||
|
echo opening the Postgresql download link....
|
||||||
|
pause
|
||||||
|
START Https://www.enterprisedb.com/postgresql-tutorial-resources-training?uuid=ea5c8104-3940-4ed1-b427-81cf19781581&campaignId=70138000000rYFmAAM
|
||||||
|
ECHO 1 - Download the setup from link opening on browser and after install and then we will continue the setup
|
||||||
|
ECHO 2 - Install with optiion "Only Server" and setup a root password
|
||||||
|
ECHO 3 - take a note of the root password, fisnish the installer and continue this setup
|
||||||
|
Rem %Downloads%/postgresql-10.19-1-windows-x64.exe --mode unattended --unattendedmodeui minimal --superpassword MIRANDA --prefix C:\Librography_data\postgres --datadir C:\Librography_data\postgres\data
|
||||||
|
pause
|
||||||
|
Rem :continue
|
||||||
|
Rem echo ok
|
||||||
|
goto start
|
||||||
|
Rem goto FIN
|
||||||
|
:FOUND
|
||||||
|
echo port found. It mean the Postgresql is installed
|
||||||
|
echo we can continue the setup...
|
||||||
|
pause
|
||||||
|
:FIN
|
||||||
|
|
||||||
|
echo .
|
||||||
|
echo .
|
||||||
|
@echo off
|
||||||
|
rem ------------------------------------------------
|
||||||
|
echo Creating access to user. Waiting ...
|
||||||
|
echo Enter the Postgresql user password:
|
||||||
|
set /p rootpassword=
|
||||||
|
set dbname=applibrography
|
||||||
|
set dbuser=applibrography
|
||||||
|
set userpassword=gowl
|
||||||
|
set PGPASSWORD=MIRANDA
|
||||||
|
Rem "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" "-uroot" "-p"
|
||||||
|
SET PATH=%PATH%;C:\Librography_data\postgres\bin
|
||||||
|
psql -U postgres -c "CREATE DATABASE %dbname%;"
|
||||||
|
psql -U postgres -c "CREATE USER '%dbuser%'@'localhost' IDENTIFIED BY '%userpassword%';"
|
||||||
|
psql -U postgres -c "GRANT ALL PRIVILEGES ON %dbuser%.* TO '%dbuser%'@'localhost';"
|
||||||
|
|
||||||
|
psql -U postgres -c "FLUSH PRIVILEGES;"
|
||||||
|
psql -U postgres -c "source script-posgresql.sql"
|
||||||
|
echo Done.
|
||||||
|
echo "Postgresql user created."
|
||||||
|
echo "Username: %dbuser%"
|
||||||
|
echo "Password: %userpassword%"
|
||||||
|
rem ------------------------------------------------
|
||||||
|
echo .
|
||||||
|
echo .
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -99,31 +99,46 @@
|
|||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtIp" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtIp" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveIp" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveIp" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel12" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel12" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtUserDB" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtUserDB" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveUserDB" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveUserDB" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel15" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel15" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtPassDB" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtPassDB" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePassDB" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePassDB" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLabel21" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxDBType" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSaveDBType" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="103" alignment="1" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLabel9" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxPrinter" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSavePrinter" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="jLabel16" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel16" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
@@ -132,23 +147,25 @@
|
|||||||
<Component id="btnSaveMsgRecibo" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveMsgRecibo" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="101" max="-2" attributes="0"/>
|
</Group>
|
||||||
|
<EmptySpace min="-2" pref="66" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jLabel13" alignment="0" min="-2" pref="146" max="-2" attributes="0"/>
|
<Component id="jLabel13" alignment="0" min="-2" pref="146" max="-2" attributes="0"/>
|
||||||
<Component id="lblLibraryLogo" alignment="0" min="-2" pref="143" max="-2" attributes="0"/>
|
<Component id="lblLibraryLogo" alignment="0" min="-2" pref="143" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="22" max="-2" attributes="0"/>
|
</Group>
|
||||||
<Component id="jLabel9" min="-2" max="-2" attributes="0"/>
|
</Group>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Component id="boxPrinter" min="-2" pref="251" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="btnSavePrinter" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jLabel11" alignment="0" min="-2" pref="144" max="-2" attributes="0"/>
|
<Component id="jLabel11" alignment="0" min="-2" pref="144" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel10" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel10" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -158,34 +175,36 @@
|
|||||||
<Component id="txtLibraryName" min="-2" pref="320" max="-2" attributes="0"/>
|
<Component id="txtLibraryName" min="-2" pref="320" max="-2" attributes="0"/>
|
||||||
<Component id="txtLibraryAddress" min="-2" pref="317" max="-2" attributes="0"/>
|
<Component id="txtLibraryAddress" min="-2" pref="317" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="btnLibraryName" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryName" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnLibraryAddress" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryAddress" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Component id="jLabel13" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="lblLibraryLogo" min="-2" pref="146" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="jLabel21" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxDBType" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSaveDBType" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtIp" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtIp" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -197,9 +216,9 @@
|
|||||||
<Component id="txtUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePassDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePassDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -211,23 +230,13 @@
|
|||||||
<Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtmsgRecibo" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtmsgRecibo" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="jLabel13" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="lblLibraryLogo" min="-2" pref="146" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="boxPrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="boxPrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="separate" min="-2" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtLibraryName" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtLibraryName" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -239,9 +248,7 @@
|
|||||||
<Component id="txtLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace min="-2" pref="132" max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<EmptySpace pref="59" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -277,6 +284,7 @@
|
|||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxPrinterMouseClicked"/>
|
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxPrinterMouseClicked"/>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="boxPrinterActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
@@ -393,6 +401,36 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtmsgRecibo">
|
<Component class="javax.swing.JTextField" name="txtmsgRecibo">
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JLabel" name="jLabel21">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Tipo de Banco de Dados:"/>
|
||||||
|
</Properties>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JComboBox" name="boxDBType">
|
||||||
|
<Properties>
|
||||||
|
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||||
|
<StringArray count="2">
|
||||||
|
<StringItem index="0" value="postgresql"/>
|
||||||
|
<StringItem index="1" value="mysql"/>
|
||||||
|
</StringArray>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxDBTypeMouseClicked"/>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="boxDBTypeActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
<AuxValues>
|
||||||
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
|
</AuxValues>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JButton" name="btnSaveDBType">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Salvar"/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSaveDBTypeActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="jPanel3">
|
<Container class="javax.swing.JPanel" name="jPanel3">
|
||||||
@@ -555,7 +593,7 @@
|
|||||||
<Component id="txtTipos" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtTipos" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="57" max="32767" attributes="0"/>
|
<EmptySpace pref="140" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -818,7 +856,7 @@
|
|||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="cboxTema" min="-2" pref="280" max="-2" attributes="0"/>
|
<Component id="cboxTema" min="-2" pref="280" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveTheme" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="279" max="32767" attributes="0"/>
|
<EmptySpace pref="279" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -829,10 +867,10 @@
|
|||||||
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveTheme" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="cboxTema" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="cboxTema" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="324" max="32767" attributes="0"/>
|
<EmptySpace pref="407" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -843,12 +881,12 @@
|
|||||||
<Property name="text" type="java.lang.String" value="Tema Padrão:"/>
|
<Property name="text" type="java.lang.String" value="Tema Padrão:"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton1">
|
<Component class="javax.swing.JButton" name="btnSaveTheme">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Salvar"/>
|
<Property name="text" type="java.lang.String" value="Salvar"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSaveThemeActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JComboBox" name="cboxTema">
|
<Component class="javax.swing.JComboBox" name="cboxTema">
|
||||||
@@ -861,6 +899,9 @@
|
|||||||
</Property>
|
</Property>
|
||||||
<Property name="selectedIndex" type="int" value="-1"/>
|
<Property name="selectedIndex" type="int" value="-1"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cboxTemaActionPerformed"/>
|
||||||
|
</Events>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|||||||
Binary file not shown.
@@ -2,6 +2,11 @@
|
|||||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="24"/>
|
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="24"/>
|
||||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||||
<group/>
|
<group>
|
||||||
|
<file>file:/G:/Desktop/git/Librography/src/br/com/projeto/view/FormOptions.java</file>
|
||||||
|
<file>file:/G:/Desktop/git/Librography/src/br/com/projeto/jdbc/ConexaoBanco.java</file>
|
||||||
|
<file>file:/G:/Desktop/git/Librography/src/br/com/projeto/view/FormEmprestimos.java</file>
|
||||||
|
<file>file:/G:/Desktop/git/Librography/src/br/com/projeto/jdbc/TestarConexao.java</file>
|
||||||
|
</group>
|
||||||
</open-files>
|
</open-files>
|
||||||
</project-private>
|
</project-private>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ file.reference.mysql-connector-java-5.1.23-bin.jar=lib/mysql-connector-java-5.1.
|
|||||||
file.reference.poi-5.0.0.jar=lib/poi-5.0.0.jar
|
file.reference.poi-5.0.0.jar=lib/poi-5.0.0.jar
|
||||||
file.reference.poi-ooxml-5.0.0.jar=lib/poi-ooxml-5.0.0.jar
|
file.reference.poi-ooxml-5.0.0.jar=lib/poi-ooxml-5.0.0.jar
|
||||||
file.reference.poi-ooxml-lite-5.0.0.jar-1=lib/poi-ooxml-lite-5.0.0.jar
|
file.reference.poi-ooxml-lite-5.0.0.jar-1=lib/poi-ooxml-lite-5.0.0.jar
|
||||||
|
file.reference.postgresql-42.3.1.jar=lib/postgresql-42.3.1.jar
|
||||||
file.reference.xmlbeans-5.0.0.jar=lib/xmlbeans-5.0.0.jar
|
file.reference.xmlbeans-5.0.0.jar=lib/xmlbeans-5.0.0.jar
|
||||||
file.reference.yaz4j-1.7.0-SNAPSHOT.jar=lib/yaz4j-1.7.0-SNAPSHOT.jar
|
file.reference.yaz4j-1.7.0-SNAPSHOT.jar=lib/yaz4j-1.7.0-SNAPSHOT.jar
|
||||||
includes=**
|
includes=**
|
||||||
@@ -71,7 +72,8 @@ javac.classpath=\
|
|||||||
${file.reference.poi-ooxml-5.0.0.jar}:\
|
${file.reference.poi-ooxml-5.0.0.jar}:\
|
||||||
${file.reference.poi-ooxml-lite-5.0.0.jar-1}:\
|
${file.reference.poi-ooxml-lite-5.0.0.jar-1}:\
|
||||||
${file.reference.xmlbeans-5.0.0.jar}:\
|
${file.reference.xmlbeans-5.0.0.jar}:\
|
||||||
${file.reference.yaz4j-1.7.0-SNAPSHOT.jar}
|
${file.reference.yaz4j-1.7.0-SNAPSHOT.jar}:\
|
||||||
|
${file.reference.postgresql-42.3.1.jar}
|
||||||
# Space-separated list of extra javac options
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=
|
javac.compilerargs=
|
||||||
javac.deprecation=false
|
javac.deprecation=false
|
||||||
|
|||||||
@@ -295,8 +295,8 @@ public class EmprestimoDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String campoStatusColor(Timestamp data_devolucao, int atraso) throws Exception {
|
public String campoStatusColor(Timestamp data_devolucao, int atraso) throws Exception {
|
||||||
if (atraso < -15) {
|
if (atraso < -15) { //errado
|
||||||
String d = "+ de 15 dias atrasado";
|
String d = "+ de 15 dias restantes ou ilimitado";
|
||||||
return d;
|
return d;
|
||||||
} else if (data_devolucao == null && atraso == 0) {
|
} else if (data_devolucao == null && atraso == 0) {
|
||||||
String d = "Vence Hoje";
|
String d = "Vence Hoje";
|
||||||
@@ -308,7 +308,7 @@ public class EmprestimoDao {
|
|||||||
String d = String.valueOf(atraso) + " dias de atraso";
|
String d = String.valueOf(atraso) + " dias de atraso";
|
||||||
return d;
|
return d;
|
||||||
} else if (atraso > 15) {
|
} else if (atraso > 15) {
|
||||||
String d = "+de 15 dias restantes ou ilimitado";
|
String d = "+ de 15 dias de atraso";
|
||||||
return d;
|
return d;
|
||||||
} else {
|
} else {
|
||||||
int x = Math.abs(atraso);
|
int x = Math.abs(atraso);
|
||||||
|
|||||||
@@ -31,17 +31,20 @@ public class ConexaoBanco {
|
|||||||
String ipserverPath = "";
|
String ipserverPath = "";
|
||||||
String dbuserpPath = "";
|
String dbuserpPath = "";
|
||||||
String dbpassPath = "";
|
String dbpassPath = "";
|
||||||
|
String dbTypePath = "";
|
||||||
|
|
||||||
switch (util.getOS()) {
|
switch (util.getOS()) {
|
||||||
case WINDOWS:
|
case WINDOWS:
|
||||||
ipserverPath = "C:\\Librography\\ipserver";
|
ipserverPath = "C:\\Librography\\ipserver";
|
||||||
dbuserpPath = "C:\\Librography\\DBUser";
|
dbuserpPath = "C:\\Librography\\DBUser";
|
||||||
dbpassPath = "C:\\Librography\\DBPass";
|
dbpassPath = "C:\\Librography\\DBPass";
|
||||||
|
dbTypePath = "C:\\Librography\\DBType";
|
||||||
break;
|
break;
|
||||||
case MAC:
|
case MAC:
|
||||||
ipserverPath = "//Applications//Librography.app//config//ipserver";
|
ipserverPath = "//Applications//Librography.app//config//ipserver";
|
||||||
dbuserpPath = "//Applications//Librography.app//config//DBUser";
|
dbuserpPath = "//Applications//Librography.app//config//DBUser";
|
||||||
dbpassPath = "//Applications//Librography.app//config//DBPass";
|
dbpassPath = "//Applications//Librography.app//config//DBPass";
|
||||||
|
dbTypePath = "//Applications//Librography.app//config//DBType";
|
||||||
break;
|
break;
|
||||||
case LINUX:
|
case LINUX:
|
||||||
// some stuff
|
// some stuff
|
||||||
@@ -60,7 +63,17 @@ public class ConexaoBanco {
|
|||||||
String contentPass;
|
String contentPass;
|
||||||
contentPass = new String(Files.readAllBytes(Paths.get(dbpassPath)));
|
contentPass = new String(Files.readAllBytes(Paths.get(dbpassPath)));
|
||||||
|
|
||||||
String url = "jdbc:mysql://" + contentIP + ":3306/applibrography"; //Nome da base de dados
|
String contentDBType = new String(Files.readAllBytes(Paths.get(dbTypePath)));
|
||||||
|
|
||||||
|
String contentDBPort = "";
|
||||||
|
if(contentDBType.contains("mysql")) {
|
||||||
|
contentDBPort = "3306";
|
||||||
|
} else if (contentDBType.contains("postgresql")) {
|
||||||
|
contentDBPort = "5432";
|
||||||
|
}
|
||||||
|
|
||||||
|
//String url = "jdbc:mysql://" + contentIP + ":3306/applibrography"; //Nome da base de dados
|
||||||
|
String url = "jdbc:" + contentDBType + "://" + contentIP + ":" + contentDBPort + "/applibrography"; //Nome da base de dados
|
||||||
String user = contentUser; //nome do usuário do MySQL
|
String user = contentUser; //nome do usuário do MySQL
|
||||||
String password = contentPass; //senha do MySQL
|
String password = contentPass; //senha do MySQL
|
||||||
//System.out.println(url + user + password);
|
//System.out.println(url + user + password);
|
||||||
|
|||||||
@@ -99,31 +99,46 @@
|
|||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtIp" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtIp" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveIp" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveIp" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel12" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel12" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtUserDB" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtUserDB" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveUserDB" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveUserDB" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<Component id="jLabel15" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel15" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="txtPassDB" min="-2" pref="251" max="-2" attributes="0"/>
|
<Component id="txtPassDB" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePassDB" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePassDB" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLabel21" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxDBType" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSaveDBType" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="103" alignment="1" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Component id="jLabel9" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxPrinter" min="-2" pref="251" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSavePrinter" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="jLabel16" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel16" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
@@ -132,23 +147,25 @@
|
|||||||
<Component id="btnSaveMsgRecibo" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveMsgRecibo" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="101" max="-2" attributes="0"/>
|
</Group>
|
||||||
|
<EmptySpace min="-2" pref="66" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jLabel13" alignment="0" min="-2" pref="146" max="-2" attributes="0"/>
|
<Component id="jLabel13" alignment="0" min="-2" pref="146" max="-2" attributes="0"/>
|
||||||
<Component id="lblLibraryLogo" alignment="0" min="-2" pref="143" max="-2" attributes="0"/>
|
<Component id="lblLibraryLogo" alignment="0" min="-2" pref="143" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="22" max="-2" attributes="0"/>
|
</Group>
|
||||||
<Component id="jLabel9" min="-2" max="-2" attributes="0"/>
|
</Group>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Component id="boxPrinter" min="-2" pref="251" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="btnSavePrinter" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="jLabel11" alignment="0" min="-2" pref="144" max="-2" attributes="0"/>
|
<Component id="jLabel11" alignment="0" min="-2" pref="144" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel10" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel10" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -158,34 +175,36 @@
|
|||||||
<Component id="txtLibraryName" min="-2" pref="320" max="-2" attributes="0"/>
|
<Component id="txtLibraryName" min="-2" pref="320" max="-2" attributes="0"/>
|
||||||
<Component id="txtLibraryAddress" min="-2" pref="317" max="-2" attributes="0"/>
|
<Component id="txtLibraryAddress" min="-2" pref="317" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="btnLibraryName" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryName" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnLibraryAddress" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryAddress" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Component id="jLabel13" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="lblLibraryLogo" min="-2" pref="146" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="jLabel21" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="boxDBType" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnSaveDBType" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtIp" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtIp" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -197,9 +216,9 @@
|
|||||||
<Component id="txtUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSaveUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveUserDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePassDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePassDB" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -211,23 +230,13 @@
|
|||||||
<Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtmsgRecibo" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtmsgRecibo" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="jLabel13" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="lblLibraryLogo" min="-2" pref="146" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Component id="btnSetLibraryLogo" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="boxPrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="boxPrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnSavePrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSavePrinter" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="separate" min="-2" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel10" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="txtLibraryName" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtLibraryName" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
@@ -239,9 +248,7 @@
|
|||||||
<Component id="txtLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="btnLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnLibraryAddress" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
<EmptySpace min="-2" pref="132" max="-2" attributes="0"/>
|
||||||
</Group>
|
|
||||||
<EmptySpace pref="59" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -277,6 +284,7 @@
|
|||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxPrinterMouseClicked"/>
|
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxPrinterMouseClicked"/>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="boxPrinterActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
@@ -393,6 +401,36 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JTextField" name="txtmsgRecibo">
|
<Component class="javax.swing.JTextField" name="txtmsgRecibo">
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JLabel" name="jLabel21">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Tipo de Banco de Dados:"/>
|
||||||
|
</Properties>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JComboBox" name="boxDBType">
|
||||||
|
<Properties>
|
||||||
|
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
|
||||||
|
<StringArray count="2">
|
||||||
|
<StringItem index="0" value="postgresql"/>
|
||||||
|
<StringItem index="1" value="mysql"/>
|
||||||
|
</StringArray>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="boxDBTypeMouseClicked"/>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="boxDBTypeActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
<AuxValues>
|
||||||
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
|
</AuxValues>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JButton" name="btnSaveDBType">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Salvar"/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSaveDBTypeActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="jPanel3">
|
<Container class="javax.swing.JPanel" name="jPanel3">
|
||||||
@@ -555,7 +593,7 @@
|
|||||||
<Component id="txtTipos" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="txtTipos" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel14" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="57" max="32767" attributes="0"/>
|
<EmptySpace pref="140" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -818,7 +856,7 @@
|
|||||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Component id="cboxTema" min="-2" pref="280" max="-2" attributes="0"/>
|
<Component id="cboxTema" min="-2" pref="280" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveTheme" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="279" max="32767" attributes="0"/>
|
<EmptySpace pref="279" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -829,10 +867,10 @@
|
|||||||
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="btnSaveTheme" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="cboxTema" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="cboxTema" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="324" max="32767" attributes="0"/>
|
<EmptySpace pref="407" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@@ -843,12 +881,12 @@
|
|||||||
<Property name="text" type="java.lang.String" value="Tema Padrão:"/>
|
<Property name="text" type="java.lang.String" value="Tema Padrão:"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="jButton1">
|
<Component class="javax.swing.JButton" name="btnSaveTheme">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Salvar"/>
|
<Property name="text" type="java.lang.String" value="Salvar"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSaveThemeActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JComboBox" name="cboxTema">
|
<Component class="javax.swing.JComboBox" name="cboxTema">
|
||||||
@@ -861,6 +899,9 @@
|
|||||||
</Property>
|
</Property>
|
||||||
<Property name="selectedIndex" type="int" value="-1"/>
|
<Property name="selectedIndex" type="int" value="-1"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cboxTemaActionPerformed"/>
|
||||||
|
</Events>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import br.com.projeto.model.Options;
|
|||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
@@ -77,6 +78,9 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
btnSaveMsgRecibo = new javax.swing.JButton();
|
btnSaveMsgRecibo = new javax.swing.JButton();
|
||||||
jLabel16 = new javax.swing.JLabel();
|
jLabel16 = new javax.swing.JLabel();
|
||||||
txtmsgRecibo = new javax.swing.JTextField();
|
txtmsgRecibo = new javax.swing.JTextField();
|
||||||
|
jLabel21 = new javax.swing.JLabel();
|
||||||
|
boxDBType = new javax.swing.JComboBox<>();
|
||||||
|
btnSaveDBType = new javax.swing.JButton();
|
||||||
jPanel3 = new javax.swing.JPanel();
|
jPanel3 = new javax.swing.JPanel();
|
||||||
jLabel2 = new javax.swing.JLabel();
|
jLabel2 = new javax.swing.JLabel();
|
||||||
jLabel3 = new javax.swing.JLabel();
|
jLabel3 = new javax.swing.JLabel();
|
||||||
@@ -111,7 +115,7 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
btnExcluirTipos = new javax.swing.JButton();
|
btnExcluirTipos = new javax.swing.JButton();
|
||||||
jPanel4 = new javax.swing.JPanel();
|
jPanel4 = new javax.swing.JPanel();
|
||||||
jLabel17 = new javax.swing.JLabel();
|
jLabel17 = new javax.swing.JLabel();
|
||||||
jButton1 = new javax.swing.JButton();
|
btnSaveTheme = new javax.swing.JButton();
|
||||||
cboxTema = new javax.swing.JComboBox<>();
|
cboxTema = new javax.swing.JComboBox<>();
|
||||||
|
|
||||||
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
||||||
@@ -160,6 +164,11 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
boxPrinterMouseClicked(evt);
|
boxPrinterMouseClicked(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
boxPrinter.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
boxPrinterActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
btnSavePrinter.setText("Salvar");
|
btnSavePrinter.setText("Salvar");
|
||||||
btnSavePrinter.addActionListener(new java.awt.event.ActionListener() {
|
btnSavePrinter.addActionListener(new java.awt.event.ActionListener() {
|
||||||
@@ -230,12 +239,33 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
|
|
||||||
jLabel16.setText("Mensagem Recibo:");
|
jLabel16.setText("Mensagem Recibo:");
|
||||||
|
|
||||||
|
jLabel21.setText("Tipo de Banco de Dados:");
|
||||||
|
|
||||||
|
boxDBType.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "postgresql", "mysql" }));
|
||||||
|
boxDBType.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||||
|
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||||
|
boxDBTypeMouseClicked(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
boxDBType.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
boxDBTypeActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
btnSaveDBType.setText("Salvar");
|
||||||
|
btnSaveDBType.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
btnSaveDBTypeActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
|
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
|
||||||
jPanel2.setLayout(jPanel2Layout);
|
jPanel2.setLayout(jPanel2Layout);
|
||||||
jPanel2Layout.setHorizontalGroup(
|
jPanel2Layout.setHorizontalGroup(
|
||||||
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
|
||||||
.addGap(20, 20, 20)
|
.addGap(17, 17, 17)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
@@ -258,50 +288,67 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addGap(18, 18, 18)
|
.addGap(18, 18, 18)
|
||||||
.addComponent(btnSavePassDB))
|
.addComponent(btnSavePassDB))
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
.addComponent(jLabel16)
|
.addComponent(jLabel21)
|
||||||
.addGap(18, 18, 18)
|
.addGap(18, 18, 18)
|
||||||
.addComponent(txtmsgRecibo, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(boxDBType, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addGap(24, 24, 24)
|
.addGap(18, 18, 18)
|
||||||
.addComponent(btnSaveMsgRecibo)))
|
.addComponent(btnSaveDBType))
|
||||||
.addGap(101, 101, 101)
|
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addComponent(lblLibraryLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
.addGap(22, 22, 22)
|
|
||||||
.addComponent(jLabel9)
|
.addComponent(jLabel9)
|
||||||
.addGap(18, 18, 18)
|
.addGap(18, 18, 18)
|
||||||
.addComponent(boxPrinter, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(boxPrinter, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(btnSavePrinter))
|
.addComponent(btnSavePrinter))
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
|
.addComponent(jLabel16)
|
||||||
|
.addGap(18, 18, 18)
|
||||||
|
.addComponent(txtmsgRecibo, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addGap(24, 24, 24)
|
||||||
|
.addComponent(btnSaveMsgRecibo))))
|
||||||
|
.addGap(66, 66, 66)
|
||||||
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
|
.addGap(38, 38, 38)
|
||||||
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(lblLibraryLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
||||||
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.addComponent(btnSetLibraryLogo)))
|
||||||
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
|
.addGap(7, 7, 7)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel10))
|
.addComponent(jLabel10))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(txtLibraryName, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(txtLibraryName, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(txtLibraryAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))))
|
.addComponent(txtLibraryAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addGap(24, 24, 24)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
|
||||||
.addGap(0, 0, Short.MAX_VALUE)
|
|
||||||
.addComponent(btnSetLibraryLogo))
|
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(btnLibraryName)
|
.addComponent(btnLibraryName)
|
||||||
.addComponent(btnLibraryAddress))
|
.addComponent(btnLibraryAddress))
|
||||||
.addGap(0, 0, Short.MAX_VALUE)))))
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
);
|
);
|
||||||
jPanel2Layout.setVerticalGroup(
|
jPanel2Layout.setVerticalGroup(
|
||||||
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addGroup(jPanel2Layout.createSequentialGroup()
|
||||||
.addGap(12, 12, 12)
|
.addGap(12, 12, 12)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(jLabel13)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(lblLibraryLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addGap(18, 18, 18)
|
||||||
|
.addComponent(btnSetLibraryLogo)
|
||||||
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
|
||||||
|
.addGap(0, 0, Short.MAX_VALUE)
|
||||||
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
|
.addComponent(jLabel21)
|
||||||
|
.addComponent(boxDBType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(btnSaveDBType))
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel6)
|
.addComponent(jLabel6)
|
||||||
.addComponent(txtIp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(txtIp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
@@ -311,7 +358,7 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addComponent(jLabel12)
|
.addComponent(jLabel12)
|
||||||
.addComponent(txtUserDB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(txtUserDB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(btnSaveUserDB))
|
.addComponent(btnSaveUserDB))
|
||||||
.addGap(18, 18, 18)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel15)
|
.addComponent(jLabel15)
|
||||||
@@ -321,15 +368,8 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(btnSaveMsgRecibo)
|
.addComponent(btnSaveMsgRecibo)
|
||||||
.addComponent(jLabel16)
|
.addComponent(jLabel16)
|
||||||
.addComponent(txtmsgRecibo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
.addComponent(txtmsgRecibo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(jLabel13)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(lblLibraryLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
|
||||||
.addGap(18, 18, 18)
|
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(btnSetLibraryLogo)
|
|
||||||
.addGroup(jPanel2Layout.createSequentialGroup()
|
|
||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel9)
|
.addComponent(jLabel9)
|
||||||
.addComponent(boxPrinter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(boxPrinter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
@@ -343,8 +383,8 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel11)
|
.addComponent(jLabel11)
|
||||||
.addComponent(txtLibraryAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(txtLibraryAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(btnLibraryAddress))))
|
.addComponent(btnLibraryAddress))
|
||||||
.addContainerGap(59, Short.MAX_VALUE))
|
.addGap(132, 132, 132))
|
||||||
);
|
);
|
||||||
|
|
||||||
jTabbedPane2.addTab("Geral", jPanel2);
|
jTabbedPane2.addTab("Geral", jPanel2);
|
||||||
@@ -624,22 +664,27 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addComponent(btnExcluirTipos)
|
.addComponent(btnExcluirTipos)
|
||||||
.addComponent(txtTipos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(txtTipos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(jLabel14))
|
.addComponent(jLabel14))
|
||||||
.addContainerGap(57, Short.MAX_VALUE))
|
.addContainerGap(140, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
jTabbedPane2.addTab("Biblioteca", jPanel3);
|
jTabbedPane2.addTab("Biblioteca", jPanel3);
|
||||||
|
|
||||||
jLabel17.setText("Tema Padrão:");
|
jLabel17.setText("Tema Padrão:");
|
||||||
|
|
||||||
jButton1.setText("Salvar");
|
btnSaveTheme.setText("Salvar");
|
||||||
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
btnSaveTheme.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton1ActionPerformed(evt);
|
btnSaveThemeActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
cboxTema.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Tema Claro", "Tema Escuro" }));
|
cboxTema.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Tema Claro", "Tema Escuro" }));
|
||||||
cboxTema.setSelectedIndex(-1);
|
cboxTema.setSelectedIndex(-1);
|
||||||
|
cboxTema.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
cboxTemaActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
|
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
|
||||||
jPanel4.setLayout(jPanel4Layout);
|
jPanel4.setLayout(jPanel4Layout);
|
||||||
@@ -651,7 +696,7 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addGap(18, 18, 18)
|
.addGap(18, 18, 18)
|
||||||
.addComponent(cboxTema, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(cboxTema, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jButton1)
|
.addComponent(btnSaveTheme)
|
||||||
.addContainerGap(279, Short.MAX_VALUE))
|
.addContainerGap(279, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
jPanel4Layout.setVerticalGroup(
|
jPanel4Layout.setVerticalGroup(
|
||||||
@@ -660,9 +705,9 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
.addGap(38, 38, 38)
|
.addGap(38, 38, 38)
|
||||||
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(jLabel17)
|
.addComponent(jLabel17)
|
||||||
.addComponent(jButton1)
|
.addComponent(btnSaveTheme)
|
||||||
.addComponent(cboxTema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(cboxTema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addContainerGap(324, Short.MAX_VALUE))
|
.addContainerGap(407, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
jTabbedPane2.addTab("Aparência", jPanel4);
|
jTabbedPane2.addTab("Aparência", jPanel4);
|
||||||
@@ -846,29 +891,6 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
// TODO add your handling code here:
|
// TODO add your handling code here:
|
||||||
}//GEN-LAST:event_boxTiposActionPerformed
|
}//GEN-LAST:event_boxTiposActionPerformed
|
||||||
|
|
||||||
private void btnSaveIpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveIpActionPerformed
|
|
||||||
try {
|
|
||||||
//mudar para dao com esse
|
|
||||||
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\ipserver"));
|
|
||||||
//txtIp.getText();
|
|
||||||
txtIp.write(out);
|
|
||||||
} catch (IOException e1) {
|
|
||||||
System.err.println("Error occurred");
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
|
||||||
//editar
|
|
||||||
//mostrar ip no inicio
|
|
||||||
try {
|
|
||||||
Options obj = new Options();
|
|
||||||
obj.setServer_ip((String) txtIp.getText());// aqui
|
|
||||||
OptionsDao dao = new OptionsDao();
|
|
||||||
dao.setIp(obj);
|
|
||||||
JOptionPane.showMessageDialog(null, "Ip Salvo!");
|
|
||||||
} catch (Exception e) {
|
|
||||||
JOptionPane.showMessageDialog(null, "Erro:" + e);
|
|
||||||
}
|
|
||||||
}//GEN-LAST:event_btnSaveIpActionPerformed
|
|
||||||
|
|
||||||
|
|
||||||
private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
|
private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
|
||||||
//impressoas padrão aqui
|
//impressoas padrão aqui
|
||||||
@@ -952,7 +974,6 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
}//GEN-LAST:event_btnLibraryNameActionPerformed
|
}//GEN-LAST:event_btnLibraryNameActionPerformed
|
||||||
|
|
||||||
private void btnLibraryAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLibraryAddressActionPerformed
|
private void btnLibraryAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLibraryAddressActionPerformed
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Options obj = new Options();
|
Options obj = new Options();
|
||||||
obj.setLibrary_name((String) txtLibraryAddress.getText());// aqui
|
obj.setLibrary_name((String) txtLibraryAddress.getText());// aqui
|
||||||
@@ -964,27 +985,6 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
}
|
}
|
||||||
}//GEN-LAST:event_btnLibraryAddressActionPerformed
|
}//GEN-LAST:event_btnLibraryAddressActionPerformed
|
||||||
|
|
||||||
private void btnSaveUserDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveUserDBActionPerformed
|
|
||||||
try {
|
|
||||||
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\DBUser"));
|
|
||||||
txtUserDB.write(out);
|
|
||||||
} catch (IOException e1) {
|
|
||||||
System.err.println("Error occurred");
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}//GEN-LAST:event_btnSaveUserDBActionPerformed
|
|
||||||
|
|
||||||
private void btnSavePassDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSavePassDBActionPerformed
|
|
||||||
try {
|
|
||||||
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\DBPass"));
|
|
||||||
txtPassDB.write(out);
|
|
||||||
} catch (IOException e1) {
|
|
||||||
System.err.println("Error occurred");
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
|
||||||
}//GEN-LAST:event_btnSavePassDBActionPerformed
|
|
||||||
|
|
||||||
private void boxPrinterMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_boxPrinterMouseClicked
|
private void boxPrinterMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_boxPrinterMouseClicked
|
||||||
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
|
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
|
||||||
boxPrinter.addItem("Dialogo");
|
boxPrinter.addItem("Dialogo");
|
||||||
@@ -1019,11 +1019,93 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
}
|
}
|
||||||
}//GEN-LAST:event_btnSaveMsgReciboActionPerformed
|
}//GEN-LAST:event_btnSaveMsgReciboActionPerformed
|
||||||
|
|
||||||
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
private void btnSaveThemeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveThemeActionPerformed
|
||||||
OptionsDao optionsdao = new OptionsDao();
|
OptionsDao optionsdao = new OptionsDao();
|
||||||
optionsdao.setTheme((int) cboxTema.getSelectedIndex());
|
optionsdao.setTheme((int) cboxTema.getSelectedIndex());
|
||||||
JOptionPane.showMessageDialog(null, "Tema Salvo! reinicie o aplicativo para aplicar!");
|
JOptionPane.showMessageDialog(null, "Tema Salvo! reinicie o aplicativo para aplicar!");
|
||||||
}//GEN-LAST:event_jButton1ActionPerformed
|
}//GEN-LAST:event_btnSaveThemeActionPerformed
|
||||||
|
|
||||||
|
private void btnSavePassDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSavePassDBActionPerformed
|
||||||
|
try {
|
||||||
|
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\DBPass"));
|
||||||
|
txtPassDB.write(out);
|
||||||
|
} catch (IOException e1) {
|
||||||
|
System.err.println("Error occurred");
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
}//GEN-LAST:event_btnSavePassDBActionPerformed
|
||||||
|
|
||||||
|
private void btnSaveUserDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveUserDBActionPerformed
|
||||||
|
try {
|
||||||
|
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\DBUser"));
|
||||||
|
txtUserDB.write(out);
|
||||||
|
} catch (IOException e1) {
|
||||||
|
System.err.println("Error occurred");
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}//GEN-LAST:event_btnSaveUserDBActionPerformed
|
||||||
|
|
||||||
|
private void btnSaveIpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveIpActionPerformed
|
||||||
|
try {
|
||||||
|
//mudar para dao com esse
|
||||||
|
PrintWriter out = new PrintWriter(new FileWriter("C:\\Librography\\ipserver"));
|
||||||
|
//txtIp.getText();
|
||||||
|
txtIp.write(out);
|
||||||
|
} catch (IOException e1) {
|
||||||
|
System.err.println("Error occurred");
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
//editar
|
||||||
|
//mostrar ip no inicio
|
||||||
|
try {
|
||||||
|
Options obj = new Options();
|
||||||
|
obj.setServer_ip((String) txtIp.getText());// aqui
|
||||||
|
OptionsDao dao = new OptionsDao();
|
||||||
|
dao.setIp(obj);
|
||||||
|
JOptionPane.showMessageDialog(null, "Ip Salvo!");
|
||||||
|
} catch (Exception e) {
|
||||||
|
JOptionPane.showMessageDialog(null, "Erro:" + e);
|
||||||
|
}
|
||||||
|
}//GEN-LAST:event_btnSaveIpActionPerformed
|
||||||
|
|
||||||
|
private void boxDBTypeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_boxDBTypeMouseClicked
|
||||||
|
// PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
|
||||||
|
//boxDBType.addItem("Dialogo");
|
||||||
|
// for (PrintService printer : printServices) {
|
||||||
|
//boxDBType.addItem(printer.getName());
|
||||||
|
// erro
|
||||||
|
// }
|
||||||
|
}//GEN-LAST:event_boxDBTypeMouseClicked
|
||||||
|
|
||||||
|
private void btnSaveDBTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveDBTypeActionPerformed
|
||||||
|
try {
|
||||||
|
//mudar para dao com esse
|
||||||
|
|
||||||
|
FileOutputStream out = new FileOutputStream("C:\\Librography\\DBType");
|
||||||
|
String printer = (String) boxDBType.getSelectedItem();
|
||||||
|
out.write(printer.trim().getBytes());
|
||||||
|
out.close();
|
||||||
|
//System.out.println(printer);
|
||||||
|
|
||||||
|
} catch (IOException e1) {
|
||||||
|
System.err.println("Error occurred");
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}//GEN-LAST:event_btnSaveDBTypeActionPerformed
|
||||||
|
|
||||||
|
private void boxDBTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boxDBTypeActionPerformed
|
||||||
|
// TODO add your handling code here:
|
||||||
|
}//GEN-LAST:event_boxDBTypeActionPerformed
|
||||||
|
|
||||||
|
private void boxPrinterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boxPrinterActionPerformed
|
||||||
|
// TODO add your handling code here:
|
||||||
|
}//GEN-LAST:event_boxPrinterActionPerformed
|
||||||
|
|
||||||
|
private void cboxTemaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboxTemaActionPerformed
|
||||||
|
// TODO add your handling code here:
|
||||||
|
}//GEN-LAST:event_cboxTemaActionPerformed
|
||||||
|
|
||||||
//############################################################################
|
//############################################################################
|
||||||
/**
|
/**
|
||||||
@@ -1070,6 +1152,7 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JComboBox<String> boxCorredor;
|
private javax.swing.JComboBox<String> boxCorredor;
|
||||||
|
private javax.swing.JComboBox<String> boxDBType;
|
||||||
private javax.swing.JComboBox<String> boxDisponibilidade;
|
private javax.swing.JComboBox<String> boxDisponibilidade;
|
||||||
private javax.swing.JComboBox boxPiso;
|
private javax.swing.JComboBox boxPiso;
|
||||||
private javax.swing.JComboBox<String> boxPosicao;
|
private javax.swing.JComboBox<String> boxPosicao;
|
||||||
@@ -1090,14 +1173,15 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
private javax.swing.JButton btnExcluirTipos;
|
private javax.swing.JButton btnExcluirTipos;
|
||||||
private javax.swing.JButton btnLibraryAddress;
|
private javax.swing.JButton btnLibraryAddress;
|
||||||
private javax.swing.JButton btnLibraryName;
|
private javax.swing.JButton btnLibraryName;
|
||||||
|
private javax.swing.JButton btnSaveDBType;
|
||||||
private javax.swing.JButton btnSaveIp;
|
private javax.swing.JButton btnSaveIp;
|
||||||
private javax.swing.JButton btnSaveMsgRecibo;
|
private javax.swing.JButton btnSaveMsgRecibo;
|
||||||
private javax.swing.JButton btnSavePassDB;
|
private javax.swing.JButton btnSavePassDB;
|
||||||
private javax.swing.JButton btnSavePrinter;
|
private javax.swing.JButton btnSavePrinter;
|
||||||
|
private javax.swing.JButton btnSaveTheme;
|
||||||
private javax.swing.JButton btnSaveUserDB;
|
private javax.swing.JButton btnSaveUserDB;
|
||||||
private javax.swing.JButton btnSetLibraryLogo;
|
private javax.swing.JButton btnSetLibraryLogo;
|
||||||
private javax.swing.JComboBox<String> cboxTema;
|
private javax.swing.JComboBox<String> cboxTema;
|
||||||
private javax.swing.JButton jButton1;
|
|
||||||
private javax.swing.JLabel jLabel1;
|
private javax.swing.JLabel jLabel1;
|
||||||
private javax.swing.JLabel jLabel10;
|
private javax.swing.JLabel jLabel10;
|
||||||
private javax.swing.JLabel jLabel11;
|
private javax.swing.JLabel jLabel11;
|
||||||
@@ -1108,6 +1192,7 @@ public class FormOptions extends javax.swing.JFrame {
|
|||||||
private javax.swing.JLabel jLabel16;
|
private javax.swing.JLabel jLabel16;
|
||||||
private javax.swing.JLabel jLabel17;
|
private javax.swing.JLabel jLabel17;
|
||||||
private javax.swing.JLabel jLabel2;
|
private javax.swing.JLabel jLabel2;
|
||||||
|
private javax.swing.JLabel jLabel21;
|
||||||
private javax.swing.JLabel jLabel3;
|
private javax.swing.JLabel jLabel3;
|
||||||
private javax.swing.JLabel jLabel4;
|
private javax.swing.JLabel jLabel4;
|
||||||
private javax.swing.JLabel jLabel5;
|
private javax.swing.JLabel jLabel5;
|
||||||
|
|||||||
Reference in New Issue
Block a user