diff --git a/LojaInstrumentos/Log.txt b/LojaInstrumentos/Log.txt new file mode 100644 index 0000000..d14abcd --- /dev/null +++ b/LojaInstrumentos/Log.txt @@ -0,0 +1,1000 @@ + +Log +Data do Acesso: 05/12/2015 +Hora do Acesso: 03:19 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 05/12/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 05/12/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Produto +Ação:Cadastrar produto no estoque +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar Usuario/Senha +Ação:Alterar Usuario/Senha do usuario +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Produto +Ação:Cadastrar produto no estoque +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 07:34 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:17 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:16 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:12 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Relatorio de vendas +Ação:Relatorio de vendas detalhado +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Contas a receber +Ação:Receber contas dos clientes +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:11 +Ultimo Usuario Logado:Xcution +Menu Acessado: Venda Mercadoria +Ação:Vender mercadoria para clientes +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:10 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:10 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:09 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:09 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Produto +Ação:Cadastrar produto no estoque +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:09 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:09 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 03:08 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 02:44 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar Cliente +Ação:Alterar dados do cliente +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 02:44 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar Usuario/Senha +Ação:Alterar Usuario/Senha do usuario +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 02:44 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 13/11/2015 +Hora do Acesso: 02:36 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 09:49 +Ultimo Usuario Logado:Xcution +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 09:49 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 08:56 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 07:08 +Ultimo Usuario Logado:Xcution +Menu Acessado: Venda Mercadoria +Ação:Vender mercadoria para clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 07:08 +Ultimo Usuario Logado:Xcution +Menu Acessado: Contas a receber +Ação:Receber contas dos clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 07:08 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 07:07 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 07:06 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Venda Mercadoria +Ação:Vender mercadoria para clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 03:18 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 03:15 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:52 +Ultimo Usuario Logado:admin +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:52 +Ultimo Usuario Logado:admin +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:52 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:46 +Ultimo Usuario Logado:admin +Menu Acessado: Cadastrar Produto +Ação:Cadastrar produto no estoque +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:46 +Ultimo Usuario Logado:admin +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:45 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:admin +Menu Acessado: Venda Mercadoria +Ação:Vender mercadoria para clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:admin +Menu Acessado: Relatorio de vendas +Ação:Relatorio de vendas detalhado +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:admin +Menu Acessado: Contas a receber +Ação:Receber contas dos clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:admin +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:Xcution +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar Cliente +Ação:Alterar dados do cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar produto +Ação:Alterar produto +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:42 +Ultimo Usuario Logado:Xcution +Menu Acessado: Alterar Usuario/Senha +Ação:Alterar Usuario/Senha do usuario +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:41 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Relatorio de vendas +Ação:Relatorio de vendas detalhado +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Contas a receber +Ação:Receber contas dos clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Venda Mercadoria +Ação:Vender mercadoria para clientes +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Consulta Vendas +Ação:Consultar vendas realizadas +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Consultar Produto +Ação:Consultar se produto existe ou não +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Consulta cliente +Ação:Consultar se cliente esta cadastrado e vereficar dados +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Alterar produto +Ação:Alterar produto +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Alterar Usuario/Senha +Ação:Alterar Usuario/Senha do usuario +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Alterar Cliente +Ação:Alterar dados do cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Cadastrar Produto +Ação:Cadastrar produto no estoque +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Cadastrar Usuario +Ação:Cadastrar usuario para uso do sistema +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado: +Menu Acessado: Cadastrar Cliente +Ação:Cadastrar Cliente +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:28 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:13 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 06/11/2015 +Hora do Acesso: 02:06 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos: + + +Log +Data do Acesso: 12425 +Hora do Acesso: 1515 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos:Fudeo + + +Log +Data do Acesso: 12425 +Hora do Acesso: 1515 +Ultimo Usuario Logado:Xcution +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos:Fudeo + + +Log +Data do Acesso: 12425 +Hora do Acesso: 1515 +Ultimo Usuario Logado:admin +Menu Acessado: Logado No Sistema +Ação:Logar +Erros ocorridos:Fudeo + +null diff --git a/LojaInstrumentos/Ultimo.txt b/LojaInstrumentos/Ultimo.txt new file mode 100644 index 0000000..f77b004 --- /dev/null +++ b/LojaInstrumentos/Ultimo.txt @@ -0,0 +1 @@ +admin \ No newline at end of file diff --git a/LojaInstrumentos/build.xml b/LojaInstrumentos/build.xml index 93d99b8..3731daf 100644 --- a/LojaInstrumentos/build.xml +++ b/LojaInstrumentos/build.xml @@ -1,73 +1,73 @@ - - - - - - - - - - - Builds, tests, and runs the project LojaInstrumentos. - - - + + + + + + + + + + + Builds, tests, and runs the project Loja. + + + diff --git a/LojaInstrumentos/db/Criar schema.script b/LojaInstrumentos/db/Criar schema.script new file mode 100644 index 0000000..382d243 --- /dev/null +++ b/LojaInstrumentos/db/Criar schema.script @@ -0,0 +1,4 @@ +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +CREATE USER SA PASSWORD "" +GRANT DBA TO SA +SET WRITE_DELAY 10 diff --git a/LojaInstrumentos/db/agenda.properties b/LojaInstrumentos/db/agenda.properties new file mode 100644 index 0000000..2fa824c --- /dev/null +++ b/LojaInstrumentos/db/agenda.properties @@ -0,0 +1,17 @@ +#HSQL Database Engine 1.8.0.5 +#Fri Dec 04 04:03:34 BRST 2015 +hsqldb.script_format=0 +runtime.gc_interval=0 +sql.enforce_strict_size=false +hsqldb.cache_size_scale=8 +readonly=false +hsqldb.nio_data_file=true +hsqldb.cache_scale=14 +version=1.8.0 +hsqldb.default_table_type=memory +hsqldb.cache_file_scale=1 +hsqldb.log_size=200 +modified=yes +hsqldb.cache_version=1.7.0 +hsqldb.original_version=1.8.0 +hsqldb.compatible_version=1.8.0 diff --git a/LojaInstrumentos/db/sql_inclusao_dados.sql b/LojaInstrumentos/db/sql_inclusao_dados.sql new file mode 100644 index 0000000..21a41be --- /dev/null +++ b/LojaInstrumentos/db/sql_inclusao_dados.sql @@ -0,0 +1,9 @@ +insert into produto(codigo, nome, marca, modelo, descricao, datacompra, quantidade, valorunitario, valorcompra) +values(2,'palheta', 'generico', 'generico', 'palheta generica de plastico preto','2015-10-21',31,1.50,0.60) +; +insert into produto(codigo, nome, marca, modelo, descricao, datacompra, quantidade, valorunitario, valorcompra) +values(3,'pedal', 'generico', 'generico', 'pedal generico','2015-11-21',5,200.50,150.960) +; +insert into produto(codigo, nome, marca, modelo, descricao, datacompra, quantidade, valorunitario, valorcompra) +values(4,'cordas', 'generico', 'generico', 'cordas para violao','2015-10-26',20,5.50,3.60) +; diff --git a/LojaInstrumentos/db/sql_tabela_cliente.sql b/LojaInstrumentos/db/sql_tabela_cliente.sql new file mode 100644 index 0000000..1493291 --- /dev/null +++ b/LojaInstrumentos/db/sql_tabela_cliente.sql @@ -0,0 +1,21 @@ +CREATE TABLE cliente +(cpf integer primary key not null, +rg integer not null, +nome varchar(20) not null, +sobrenome varchar(50) not null, +sexo varchar(10) not null, +datanascimento date not null, +datacadastro date not null, +estadocivil varchar(15) not null, +telefone varchar(13) not null, +celular varchar(13) not null, +email varchar(50) not null, +endereco varchar(50) not null, +logadouro varchar(50) not null, +bairro varchar(50) not null, +numero integer not null, +cep integer not null, +estado varchar(2) not null, +complemento varchar(50) not null, +referencia varchar(100) not null +); diff --git a/LojaInstrumentos/db/sql_tabela_produtos.sql b/LojaInstrumentos/db/sql_tabela_produtos.sql new file mode 100644 index 0000000..6864cff --- /dev/null +++ b/LojaInstrumentos/db/sql_tabela_produtos.sql @@ -0,0 +1,11 @@ +CREATE TABLE produto +(codigo integer primary key , +nome varchar(20) not null, +marca varchar(50) not null, +modelo varchar(50) not null, +descricao varchar(50) not null, +datacompra date not null, +quantidade integer not null, +valorunitario decimal not null, +valorcompra decimal not null +); diff --git a/LojaInstrumentos/db/sql_tabela_usuario.sql b/LojaInstrumentos/db/sql_tabela_usuario.sql new file mode 100644 index 0000000..4373e6a --- /dev/null +++ b/LojaInstrumentos/db/sql_tabela_usuario.sql @@ -0,0 +1,9 @@ +CREATE TABLE usuario +(cpf integer primary key , +rg integer not null, +nome varchar(20) not null, +sobrenome varchar(50) not null, +email varchar(50) not null, +user varchar(30) not null, +senha varchar(30) not null +); diff --git a/LojaInstrumentos/hsqldb-2.3.3.zip b/LojaInstrumentos/hsqldb-2.3.3.zip new file mode 100644 index 0000000..17fce84 Binary files /dev/null and b/LojaInstrumentos/hsqldb-2.3.3.zip differ diff --git a/LojaInstrumentos/lib/.log b/LojaInstrumentos/lib/.log new file mode 100644 index 0000000..323b471 --- /dev/null +++ b/LojaInstrumentos/lib/.log @@ -0,0 +1,2 @@ +/*C2*/SET SCHEMA PUBLIC +CONNECT USER SA diff --git a/LojaInstrumentos/lib/.properties b/LojaInstrumentos/lib/.properties new file mode 100644 index 0000000..4722645 --- /dev/null +++ b/LojaInstrumentos/lib/.properties @@ -0,0 +1,17 @@ +#HSQL Database Engine 1.8.0.5 +#Fri Dec 04 04:07:58 BRST 2015 +hsqldb.script_format=0 +runtime.gc_interval=0 +sql.enforce_strict_size=false +hsqldb.cache_size_scale=8 +readonly=false +hsqldb.nio_data_file=true +hsqldb.cache_scale=14 +version=1.8.0 +hsqldb.default_table_type=memory +hsqldb.cache_file_scale=1 +hsqldb.log_size=200 +modified=yes +hsqldb.cache_version=1.7.0 +hsqldb.original_version=1.8.0 +hsqldb.compatible_version=1.8.0 diff --git a/LojaInstrumentos/lib/.script b/LojaInstrumentos/lib/.script new file mode 100644 index 0000000..c8f83b7 --- /dev/null +++ b/LojaInstrumentos/lib/.script @@ -0,0 +1,12 @@ +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +CREATE MEMORY TABLE CLIENTE(CPF INTEGER NOT NULL PRIMARY KEY,RG INTEGER NOT NULL,NOME VARCHAR(20) NOT NULL,SOBRENOME VARCHAR(50) NOT NULL,SEXO CHAR NOT NULL,DATANASCIMENTO DATE NOT NULL,DATACADASTRO DATE NOT NULL,ESTADOCIVIL CHAR NOT NULL,TELEFONE VARCHAR(13) NOT NULL,CELULAR VARCHAR(13) NOT NULL,EMAIL VARCHAR(50) NOT NULL,ENDERECO VARCHAR(50) NOT NULL,LOGADOURO VARCHAR(50) NOT NULL,BAIRRO VARCHAR(50) NOT NULL,NUMERO INTEGER NOT NULL,CEP INTEGER NOT NULL,ESTADO VARCHAR(2) NOT NULL,COMPLEMENTO VARCHAR(50) NOT NULL,REFERENCIA VARCHAR(100) NOT NULL) +CREATE MEMORY TABLE USUARIO(CPF INTEGER NOT NULL PRIMARY KEY,RG INTEGER NOT NULL,NOME VARCHAR(20) NOT NULL,SOBRENOME VARCHAR(50) NOT NULL,EMAIL VARCHAR(50) NOT NULL,USER VARCHAR(30) NOT NULL,SENHA VARCHAR(30) NOT NULL) +CREATE MEMORY TABLE PRODUTO(CODIGO INTEGER NOT NULL PRIMARY KEY,NOME VARCHAR(20) NOT NULL,MARCA VARCHAR(50) NOT NULL,MODELO VARCHAR(50) NOT NULL,DESCRICAO VARCHAR(50) NOT NULL,DATACOMPRA DATE NOT NULL,QUANTIDADE INTEGER NOT NULL,VALORUNITARIO DECIMAL NOT NULL,VALORCOMPRA DECIMAL NOT NULL) +CREATE USER SA PASSWORD "" +GRANT DBA TO SA +SET WRITE_DELAY 10 +SET SCHEMA PUBLIC +INSERT INTO PRODUTO VALUES(1,'guitarra','Fender','American Standard MN','Guitarra El\u00e9trica Fender Stratocaster - American Standard MN - Preto','2015-09-13',13,15790.52569,10230.30256) +INSERT INTO PRODUTO VALUES(2,'palheta','generico','generico','palheta generica de plastico preto','2015-10-21',31,1.50,0.60) +INSERT INTO PRODUTO VALUES(3,'pedal','generico','generico','pedal generico','2015-11-21',5,200.50,150.960) +INSERT INTO PRODUTO VALUES(4,'cordas','generico','generico','cordas para violao','2015-10-26',20,5.50,3.60) diff --git a/LojaInstrumentos/lib/hsqldb.jar b/LojaInstrumentos/lib/hsqldb.jar new file mode 100644 index 0000000..fd28f2f Binary files /dev/null and b/LojaInstrumentos/lib/hsqldb.jar differ diff --git a/LojaInstrumentos/lib/servlet-2_3-fcs-classfiles.zip b/LojaInstrumentos/lib/servlet-2_3-fcs-classfiles.zip new file mode 100644 index 0000000..c450772 Binary files /dev/null and b/LojaInstrumentos/lib/servlet-2_3-fcs-classfiles.zip differ diff --git a/LojaInstrumentos/lib/sqltool.jar b/LojaInstrumentos/lib/sqltool.jar new file mode 100644 index 0000000..aa0e184 Binary files /dev/null and b/LojaInstrumentos/lib/sqltool.jar differ diff --git a/LojaInstrumentos/localhost/Loja.log b/LojaInstrumentos/localhost/Loja.log new file mode 100644 index 0000000..5fcdf95 --- /dev/null +++ b/LojaInstrumentos/localhost/Loja.log @@ -0,0 +1,5 @@ +/*C1*/SET SCHEMA SYSTEM_LOBS +INSERT INTO BLOCKS VALUES(0,2147483647,0) +COMMIT +/*C2*/SET SCHEMA PUBLIC +DISCONNECT diff --git a/LojaInstrumentos/localhost/Loja.properties b/LojaInstrumentos/localhost/Loja.properties new file mode 100644 index 0000000..449c3d4 --- /dev/null +++ b/LojaInstrumentos/localhost/Loja.properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Fri Dec 04 15:58:19 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/Loja.script b/LojaInstrumentos/localhost/Loja.script new file mode 100644 index 0000000..2f717cf --- /dev/null +++ b/LojaInstrumentos/localhost/Loja.script @@ -0,0 +1,42 @@ +SET DATABASE UNIQUE NAME HSQLDB516E25069F +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA diff --git a/LojaInstrumentos/localhost/loja .log b/LojaInstrumentos/localhost/loja .log new file mode 100644 index 0000000..e69de29 diff --git a/LojaInstrumentos/localhost/loja .properties b/LojaInstrumentos/localhost/loja .properties new file mode 100644 index 0000000..4511eb1 --- /dev/null +++ b/LojaInstrumentos/localhost/loja .properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Fri Dec 04 16:09:35 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/loja .script b/LojaInstrumentos/localhost/loja .script new file mode 100644 index 0000000..fed4045 --- /dev/null +++ b/LojaInstrumentos/localhost/loja .script @@ -0,0 +1,42 @@ +SET DATABASE UNIQUE NAME HSQLDB516E2F554F +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA diff --git a/LojaInstrumentos/localhost/loja [sa em Esquema default].log b/LojaInstrumentos/localhost/loja [sa em Esquema default].log new file mode 100644 index 0000000..e69de29 diff --git a/LojaInstrumentos/localhost/loja [sa em Esquema default].properties b/LojaInstrumentos/localhost/loja [sa em Esquema default].properties new file mode 100644 index 0000000..5bb9277 --- /dev/null +++ b/LojaInstrumentos/localhost/loja [sa em Esquema default].properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Fri Dec 04 16:07:14 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/loja [sa em Esquema default].script b/LojaInstrumentos/localhost/loja [sa em Esquema default].script new file mode 100644 index 0000000..7f1f66d --- /dev/null +++ b/LojaInstrumentos/localhost/loja [sa em Esquema default].script @@ -0,0 +1,42 @@ +SET DATABASE UNIQUE NAME HSQLDB516E2762CD +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA diff --git a/LojaInstrumentos/localhost/loja [sa em Public].log b/LojaInstrumentos/localhost/loja [sa em Public].log new file mode 100644 index 0000000..e69de29 diff --git a/LojaInstrumentos/localhost/loja [sa em Public].properties b/LojaInstrumentos/localhost/loja [sa em Public].properties new file mode 100644 index 0000000..f7d7805 --- /dev/null +++ b/LojaInstrumentos/localhost/loja [sa em Public].properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Fri Dec 04 16:09:09 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/loja [sa em Public].script b/LojaInstrumentos/localhost/loja [sa em Public].script new file mode 100644 index 0000000..dc0287e --- /dev/null +++ b/LojaInstrumentos/localhost/loja [sa em Public].script @@ -0,0 +1,42 @@ +SET DATABASE UNIQUE NAME HSQLDB516E2EF081 +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA diff --git a/LojaInstrumentos/localhost/loja.lck b/LojaInstrumentos/localhost/loja.lck new file mode 100644 index 0000000..392a0c8 Binary files /dev/null and b/LojaInstrumentos/localhost/loja.lck differ diff --git a/LojaInstrumentos/localhost/loja.log b/LojaInstrumentos/localhost/loja.log new file mode 100644 index 0000000..5dc2923 --- /dev/null +++ b/LojaInstrumentos/localhost/loja.log @@ -0,0 +1,4 @@ +/*C4*/SET SCHEMA PUBLIC +CREATE TABLE produto\u000a(codigo integer primary key ,\u000anome varchar(20) not null,\u000amarca varchar(50) not null,\u000amodelo varchar(50) not null,\u000adescricao varchar(50) not null,\u000adatacompra date not null,\u000aquantidade integer not null,\u000avalorunitario decimal not null,\u000avalorcompra decimal not null\u000a) +CREATE TABLE usuario\u000a(cpf integer primary key ,\u000arg integer not null,\u000anome varchar(20) not null,\u000asobrenome varchar(50) not null,\u000aemail varchar(50) not null,\u000auser varchar(30) not null,\u000asenha varchar(30) not null\u000a) +CREATE TABLE cliente\u000a(cpf integer primary key not null,\u000arg integer not null,\u000anome varchar(20) not null,\u000asobrenome varchar(50) not null,\u000asexo varchar(10) not null,\u000adatanascimento date not null,\u000adatacadastro date not null,\u000aestadocivil varchar(15) not null,\u000atelefone varchar(13) not null,\u000acelular varchar(13) not null,\u000aemail varchar(50) not null,\u000aendereco varchar(50) not null,\u000alogadouro varchar(50) not null,\u000abairro varchar(50) not null,\u000anumero integer not null,\u000acep integer not null,\u000aestado varchar(2) not null,\u000acomplemento varchar(50) not null,\u000areferencia varchar(100) not null\u000a) diff --git a/LojaInstrumentos/localhost/loja.properties b/LojaInstrumentos/localhost/loja.properties new file mode 100644 index 0000000..c0c5871 --- /dev/null +++ b/LojaInstrumentos/localhost/loja.properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Sun Dec 06 20:42:09 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/loja.script b/LojaInstrumentos/localhost/loja.script new file mode 100644 index 0000000..d51db40 --- /dev/null +++ b/LojaInstrumentos/localhost/loja.script @@ -0,0 +1,44 @@ +SET DATABASE UNIQUE NAME HSQLDB516E300932 +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA +SET SCHEMA SYSTEM_LOBS +INSERT INTO BLOCKS VALUES(0,2147483647,0) diff --git a/LojaInstrumentos/localhost/loja[sa em PUBLIC].log b/LojaInstrumentos/localhost/loja[sa em PUBLIC].log new file mode 100644 index 0000000..e69de29 diff --git a/LojaInstrumentos/localhost/loja[sa em PUBLIC].properties b/LojaInstrumentos/localhost/loja[sa em PUBLIC].properties new file mode 100644 index 0000000..44b41db --- /dev/null +++ b/LojaInstrumentos/localhost/loja[sa em PUBLIC].properties @@ -0,0 +1,5 @@ +#HSQL Database Engine 2.3.3 +#Fri Dec 04 17:06:25 BRST 2015 +version=2.3.3 +modified=yes +tx_timestamp=0 diff --git a/LojaInstrumentos/localhost/loja[sa em PUBLIC].script b/LojaInstrumentos/localhost/loja[sa em PUBLIC].script new file mode 100644 index 0000000..1295921 --- /dev/null +++ b/LojaInstrumentos/localhost/loja[sa em PUBLIC].script @@ -0,0 +1,42 @@ +SET DATABASE UNIQUE NAME HSQLDB516E635F37 +SET DATABASE GC 0 +SET DATABASE DEFAULT RESULT MEMORY ROWS 0 +SET DATABASE EVENT LOG LEVEL 0 +SET DATABASE TRANSACTION CONTROL LOCKS +SET DATABASE DEFAULT ISOLATION LEVEL READ COMMITTED +SET DATABASE TRANSACTION ROLLBACK ON CONFLICT TRUE +SET DATABASE TEXT TABLE DEFAULTS '' +SET DATABASE SQL NAMES FALSE +SET DATABASE SQL REFERENCES FALSE +SET DATABASE SQL SIZE TRUE +SET DATABASE SQL TYPES FALSE +SET DATABASE SQL TDC DELETE TRUE +SET DATABASE SQL TDC UPDATE TRUE +SET DATABASE SQL TRANSLATE TTI TYPES TRUE +SET DATABASE SQL CONCAT NULLS TRUE +SET DATABASE SQL UNIQUE NULLS TRUE +SET DATABASE SQL CONVERT TRUNCATE TRUE +SET DATABASE SQL AVG SCALE 0 +SET DATABASE SQL DOUBLE NAN TRUE +SET FILES WRITE DELAY 500 MILLIS +SET FILES BACKUP INCREMENT TRUE +SET FILES CACHE SIZE 10000 +SET FILES CACHE ROWS 50000 +SET FILES SCALE 32 +SET FILES LOB SCALE 32 +SET FILES DEFRAG 0 +SET FILES NIO TRUE +SET FILES NIO SIZE 256 +SET FILES LOG TRUE +SET FILES LOG SIZE 50 +CREATE USER SA PASSWORD DIGEST 'd41d8cd98f00b204e9800998ecf8427e' +ALTER USER SA SET LOCAL TRUE +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +ALTER SEQUENCE SYSTEM_LOBS.LOB_ID RESTART WITH 1 +SET DATABASE DEFAULT INITIAL SCHEMA PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.SQL_IDENTIFIER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.YES_OR_NO TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.TIME_STAMP TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CARDINAL_NUMBER TO PUBLIC +GRANT USAGE ON DOMAIN INFORMATION_SCHEMA.CHARACTER_DATA TO PUBLIC +GRANT DBA TO SA diff --git a/LojaInstrumentos/manifest.mf b/LojaInstrumentos/manifest.mf index 1574df4..328e8e5 100644 --- a/LojaInstrumentos/manifest.mf +++ b/LojaInstrumentos/manifest.mf @@ -1,3 +1,3 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/LojaInstrumentos/master-application.jnlp b/LojaInstrumentos/master-application.jnlp new file mode 100644 index 0000000..1859df2 --- /dev/null +++ b/LojaInstrumentos/master-application.jnlp @@ -0,0 +1,22 @@ + + + ${APPLICATION.TITLE} + ${APPLICATION.VENDOR} + + ${APPLICATION.DESC} + ${APPLICATION.DESC.SHORT} + + + + + + + + + + + + + + + diff --git a/LojaInstrumentos/nbproject/build-impl.xml b/LojaInstrumentos/nbproject/build-impl.xml index 2002527..d74ba3c 100644 --- a/LojaInstrumentos/nbproject/build-impl.xml +++ b/LojaInstrumentos/nbproject/build-impl.xml @@ -19,7 +19,8 @@ is divided into following sections: - cleanup --> - + + @@ -449,7 +450,7 @@ is divided into following sections: - + @@ -600,7 +601,7 @@ is divided into following sections: - + @@ -892,7 +893,7 @@ is divided into following sections: - + @@ -1024,12 +1025,12 @@ is divided into following sections: - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + javaws "${jnlp.file.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/LojaInstrumentos/nbproject/project.properties b/LojaInstrumentos/nbproject/project.properties index 761bd0e..fc7579b 100644 --- a/LojaInstrumentos/nbproject/project.properties +++ b/LojaInstrumentos/nbproject/project.properties @@ -1,76 +1,103 @@ -annotation.processing.enabled=true -annotation.processing.enabled.in.editor=false -annotation.processing.processors.list= -annotation.processing.run.all.processors=true -annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output -application.title=LojaInstrumentos -application.vendor=Xcution -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -# Uncomment to specify the preferred debugger connection transport: -#debug.transport=dt_socket -debug.classpath=\ - ${run.classpath} -debug.test.classpath=\ - ${run.test.classpath} -# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o -dist.archive.excludes= -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/LojaInstrumentos.jar -dist.javadoc.dir=${dist.dir}/javadoc -endorsed.classpath= -excludes= -includes=** -jar.compress=false -javac.classpath=\ - ${libs.beans-binding.classpath} -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.processorpath=\ - ${javac.classpath} -javac.source=1.8 -javac.target=1.8 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -javac.test.processorpath=\ - ${javac.test.classpath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -main.class=frmLogin -manifest.file=manifest.mf -meta.inf.dir=${src.dir}/META-INF -mkdist.disabled=false -platform.active=default_platform -run.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project. -# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. -# To set system properties for unit tests define test-sys-prop.name=value: -run.jvmargs= -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -source.encoding=UTF-8 -src.dir=src -test.src.dir=test +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +ant.customtasks.libs=JWSAntTasks +application.title=Loja +application.vendor=zero +auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Loja.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath=\ + ${java.home}/lib/javaws.jar +excludes= +file.reference.hsqldb.jar=lib/hsqldb.jar +includes=** +jar.archive.disabled=${jnlp.enabled} +jar.compress=false +jar.index=${jnlp.enabled} +javac.classpath=\ + ${libs.beans-binding.classpath}:\ + ${file.reference.hsqldb.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +jnlp.applet.height=300 +jnlp.applet.width=300 +jnlp.codebase.type=local +jnlp.descriptor=application +jnlp.enabled=true +jnlp.mixed.code=default +jnlp.offline-allowed=true +jnlp.signed=false +jnlp.signing= +jnlp.signing.alias= +jnlp.signing.keystore= +main.class=telas.FrmPrincipal +# Substitui\u00e7\u00e3o opcional do atributo padr\u00e3o Application-Library-Allowable-Codebase que identifica os locais onde se espera que o RIA assinado seja encontrado. +manifest.custom.application.library.allowable.codebase= +# Substitui\u00e7\u00e3o opcional do atributo padr\u00e3o Caller-Allowable-Codebase que identifica os dom\u00ednios dos quais o c\u00f3digo JavaScript pode fazer chamadas para o RIA sem avisos de seguran\u00e7a. +manifest.custom.caller.allowable.codebase= +# Substitui\u00e7\u00e3o opcional do atributo de manifesto da Base de c\u00f3digo; use para impedir que RIAs sejam adaptados +manifest.custom.codebase= +# Substitui\u00e7\u00e3o opcional do atributo de manifesto de Permiss\u00f5es (valores suportados: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/LojaInstrumentos/nbproject/project.xml b/LojaInstrumentos/nbproject/project.xml index 529deb5..e30958e 100644 --- a/LojaInstrumentos/nbproject/project.xml +++ b/LojaInstrumentos/nbproject/project.xml @@ -1,15 +1,21 @@ - - - org.netbeans.modules.java.j2seproject - - - LojaInstrumentos - - - - - - - - - + + + org.netbeans.modules.java.j2seproject + + + + + + + + + Loja + + + + + + + + + diff --git a/LojaInstrumentos/preview-application.html b/LojaInstrumentos/preview-application.html new file mode 100644 index 0000000..4834dd8 --- /dev/null +++ b/LojaInstrumentos/preview-application.html @@ -0,0 +1,17 @@ + + + + Test page for launching the application via JNLP + + +

Test page for launching the application via JNLP

+ + + + + + diff --git a/LojaInstrumentos/runManager.bat b/LojaInstrumentos/runManager.bat new file mode 100644 index 0000000..fdf4024 --- /dev/null +++ b/LojaInstrumentos/runManager.bat @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.util.DatabaseManager \ No newline at end of file diff --git a/LojaInstrumentos/runManager.sh b/LojaInstrumentos/runManager.sh new file mode 100644 index 0000000..fdf4024 --- /dev/null +++ b/LojaInstrumentos/runManager.sh @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.util.DatabaseManager \ No newline at end of file diff --git a/LojaInstrumentos/runManagerSwing.bat b/LojaInstrumentos/runManagerSwing.bat new file mode 100644 index 0000000..ebdbdac --- /dev/null +++ b/LojaInstrumentos/runManagerSwing.bat @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing \ No newline at end of file diff --git a/LojaInstrumentos/runManagerSwing.sh b/LojaInstrumentos/runManagerSwing.sh new file mode 100644 index 0000000..ebdbdac --- /dev/null +++ b/LojaInstrumentos/runManagerSwing.sh @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing \ No newline at end of file diff --git a/LojaInstrumentos/rundb.bat b/LojaInstrumentos/rundb.bat new file mode 100644 index 0000000..0b58a54 --- /dev/null +++ b/LojaInstrumentos/rundb.bat @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.Server -database.0 file:db\agenda -dbname.0 agendadb diff --git a/LojaInstrumentos/rundb.sh b/LojaInstrumentos/rundb.sh new file mode 100644 index 0000000..99494c4 --- /dev/null +++ b/LojaInstrumentos/rundb.sh @@ -0,0 +1 @@ + java -cp lib/hsqldb.jar org.hsqldb.Server -database.0 file:db/agenda -dbname.0 agendadb diff --git a/LojaInstrumentos/src/Acesso.java b/LojaInstrumentos/src/Acesso.java deleted file mode 100644 index ad20168..0000000 --- a/LojaInstrumentos/src/Acesso.java +++ /dev/null @@ -1,37 +0,0 @@ - -import javax.swing.JOptionPane; - -public class Acesso -{ - private String usuario = ""; - private String senha = ""; - - public boolean entrar(String usuario, String senha) - { - this.usuario = usuario; - this.senha = senha; - boolean logado = false; - - if(usuario.equals("admin") && senha.equals("admin")) - { - logado = true; - } - else - { - if(usuario.equals("") && senha.equals("")) - { - JOptionPane.showMessageDialog(null, "É necessário informar o login e a senha para entrar."); - logado = false; - } - else - { - if((!usuario.equals("admin")) && (!senha.equals("admin"))) - { - JOptionPane.showMessageDialog(null, "Login ou senha incorretos."); - logado = false; - } - } - } - return logado; - } -} diff --git a/LojaInstrumentos/src/dao/ClienteDAO.java b/LojaInstrumentos/src/dao/ClienteDAO.java new file mode 100644 index 0000000..12d7001 --- /dev/null +++ b/LojaInstrumentos/src/dao/ClienteDAO.java @@ -0,0 +1,97 @@ + +package dao; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import exception.ExceptionLoja; +import cliente.Cliente; +import database.Conexao; +public class ClienteDAO { + //recebe as variaveis coom dados + public void Inserirdados(int CPF,int RG,String Nome,String Sobrenome,String Sexo, String DataNascimento,String DataCadastro,String EstadoCivil,String Telefone, + String Celular,String Email,String Endereco,String Logadouro,String Bairro,int Numero,String CEP,String Estado,String Complemento,String Referencia)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + conn = Conexao.getConnection(); + String sql = "INSERT INTO cliente () VALUES(" + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + ");"; + ps = conn.prepareStatement(sql); + ps.setInt(1, CPF); + ps.setInt(2, RG); + ps.setString(3, Nome); + ps.setString(4, Sobrenome); + ps.setString(5, Sexo); + ps.setString(6, DataNascimento); + ps.setString(7, DataCadastro); + ps.setString(3, EstadoCivil); + ps.setString(3, Telefone); + ps.setString(3, Celular); + ps.setString(3, Email); + ps.setString(3, Endereco); + ps.setString(3, Logadouro); + ps.setString(3, Bairro); + ps.setInt(3, Numero); + ps.setString(3, CEP); + ps.setString(3, Estado); + ps.setString(3, Complemento); + ps.setString(3, Referencia); + + + + + ps.execute(); + conn.commit(); + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + + } + public void UpdateDados(int CPF,int RG,String Nome,String Sobrenome,String Sexo, String DataNascimento,String DataCadastro,String EstadoCivil,String Telefone, + String Celular,String Email,String Endereco,String Logadouro,String Bairro,int Numero,String CEP,String Estado,String Complemento,String Referencia)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + //nome tabela, qual o coluna ,e qual o valor novo + String sql="update produto set ? = ? "; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + ps.setInt(1, CPF); + ps.setString(2, Nome); + + + + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + } + public void ExcluirDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + } + + +} diff --git a/LojaInstrumentos/src/dao/ProdutoDAO.java b/LojaInstrumentos/src/dao/ProdutoDAO.java new file mode 100644 index 0000000..03c16f0 --- /dev/null +++ b/LojaInstrumentos/src/dao/ProdutoDAO.java @@ -0,0 +1,119 @@ + +package dao; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import exception.ExceptionLoja; +import produtos.Produtos; +import database.Conexao; +import java.math.BigDecimal; +public class ProdutoDAO { + public void Inserirdados(int Codigo,String Nome,String Marca,String Modelo,String Descricao,String Data,int QTD,BigDecimal ValorCusto,BigDecimal ValorUnitario)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + conn = Conexao.getConnection(); + String sql = "INSERT INT produtos () VALUES(" + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + ");"; + ps = conn.prepareStatement(sql); + ps.execute(); + conn.commit(); + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + + } + public void UpdateDados(int Codigo,String Nome,String Marca,String Modelo,String Descricao,String Data,int QTD,BigDecimal ValorCusto,BigDecimal ValorUnitario)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + //nome tabela, qual o coluna ,e qual o valor novo + String sql="update produto set ? = ? "; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + ps.setInt(1, Codigo); + ps.setString(2, Nome); + + + + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + } + public void ExcluirDados(int codigo)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + String sql="delete from produto where = ?"; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + ps.setInt(1, codigo); + ps.execute(); + conn.commit(); + + }catch(SQLException ex){ + if(conn != null){ + try{ + conn.rollback(); + }catch(SQLException e){ + throw new ExceptionLoja(e.getMessage()); + } + } + }finally{ + if(conn != null){ + try{ + conn.close(); + }catch(SQLException e){ + throw new ExceptionLoja(e.getMessage()); + } + } + + if(ps != null){ + try{ + ps.close(); + }catch(SQLException e){ + throw new ExceptionLoja(e.getMessage()); + } + } + } + } + public int Codigo() throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + int codigo; + try{ + String sql="select count(codigo) from produto;"; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + + codigo= ps.executeUpdate(sql); + + + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + + + return codigo+1; + } + public ArrayList ListaDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + ArrayList ResultadoDados = new ArrayList(); + + + + return ResultadoDados; + } +} diff --git a/LojaInstrumentos/src/dao/UsuarioDAO.java b/LojaInstrumentos/src/dao/UsuarioDAO.java new file mode 100644 index 0000000..cecb696 --- /dev/null +++ b/LojaInstrumentos/src/dao/UsuarioDAO.java @@ -0,0 +1,91 @@ + +package dao; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import exception.ExceptionLoja; +import usuario.Usuario; +import database.Conexao; +public class UsuarioDAO { + + + public void Inserirdados(int CPF,int RG,String Nome,String Sobrenome,String Email,String User,String Senha)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + conn = Conexao.getConnection(); + String sql = "INSERT INTO usuario VALUES(" + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + ");"; + ps = conn.prepareStatement(sql); + ps.setInt(1, CPF); + ps.setInt(2, RG); + ps.setString(3, Nome); + ps.setString(4, Sobrenome); + ps.setString(5, Email); + ps.setString(6, User); + ps.setString(7, Senha); + ps.execute(); + conn.commit(); + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + + } + public void UpdateDados(int CPF,int RG,String Nome,String Sobrenome,String Email,String User,String Senha)throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + //nome tabela, qual o coluna ,e qual o valor novo + String sql="update usuario set ? = ? "; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + ps.setInt(1, CPF); + ps.setString(2, Nome); + + + + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + } + public void ExcluirDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + } + + public ArrayList ListaDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + ArrayList ResultadoDados = new ArrayList(); + + + + return ResultadoDados; + } + public void ListaUsusario() throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + try{ + //nome tabela, qual o coluna ,e qual o valor novo + String sql="select usario,senha from usuario ;"; + conn = Conexao.getConnection(); + ps = conn.prepareStatement(sql); + + + + + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + } +} diff --git a/LojaInstrumentos/src/dao/VendasDAO.java b/LojaInstrumentos/src/dao/VendasDAO.java new file mode 100644 index 0000000..389488a --- /dev/null +++ b/LojaInstrumentos/src/dao/VendasDAO.java @@ -0,0 +1,78 @@ + +package dao; +import static com.sun.org.apache.xalan.internal.lib.ExsltDatetime.date; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import exception.ExceptionLoja; +import vendas.Vendas; +import database.Conexao; +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +public class VendasDAO { + public void Inserirdados(int Codigo,String Nome,String Marca,String Modelo,String Descricao,String DataCompra, + int Quantidade,BigDecimal Valorunitario,BigDecimal Valorcompra)throws ExceptionLoja{ + + Connection conn = null; + PreparedStatement ps = null; + try{ + conn = Conexao.getConnection(); + String sql = "INSERT INTO vendas () VALUES(" + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + "?," + + ");"; + ps = conn.prepareStatement(sql); + ps.setInt(1, Codigo); + ps.setString(2, Nome); + ps.setString(3, Marca); + ps.setString(4, Modelo); + ps.setString(5, Descricao); + ps.setString(6,DataCompra); + + ps.setInt(7, Quantidade); + ps.setBigDecimal(8, Valorunitario); + ps.setBigDecimal(8, Valorcompra); + + + ps.execute(); + conn.commit(); + }catch(SQLException ex){ + throw new ExceptionLoja(ex.getMessage()); + } + + } + public void UpdateDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + } + public void ExcluirDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + } + + public ArrayList ListaDados()throws ExceptionLoja{ + Connection conn = null; + PreparedStatement ps = null; + ArrayList ResultadoDados = new ArrayList(); + + + + return ResultadoDados; + } +} diff --git a/LojaInstrumentos/src/database/Conexao.java b/LojaInstrumentos/src/database/Conexao.java new file mode 100644 index 0000000..b17ce3f --- /dev/null +++ b/LojaInstrumentos/src/database/Conexao.java @@ -0,0 +1,22 @@ + +package database; +import exception.ExceptionLoja; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.SQLException; +public class Conexao { + public static Connection getConnection() throws ExceptionLoja{ + Connection conn = null; + try { + Class.forName("org.hsqldb.jdbcDriver"); + //conn = DriverManager.getConnection("jdbc:hsqldb:jdbc:file:/media/zero/01D02D0A2E138B20/FaculdadeProjetos/Java/Loja/", "sa", ""); + conn = DriverManager.getConnection("jdbc:hsqldb:file:localhost/loja", "sa", ""); + } catch (SQLException e) { + throw new ExceptionLoja("Problemas ao conectar no banco de dados"); + } catch (ClassNotFoundException e) { + throw new ExceptionLoja("O driver não foi configurado corretametne"); + } + + return conn; + } +} diff --git a/LojaInstrumentos/src/database/Log.java b/LojaInstrumentos/src/database/Log.java new file mode 100644 index 0000000..323de1c --- /dev/null +++ b/LojaInstrumentos/src/database/Log.java @@ -0,0 +1,96 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package database; + +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import javax.swing.JOptionPane; + +/** + * + * @author Xcution + */ +public class Log { + public String LerLog(){ + String Path="Log.txt"; + FileReader fr = null; + BufferedReader br = null; + try { + fr = new FileReader(Path); + br = new BufferedReader(fr); + StringBuilder sb = new StringBuilder(); + while (br.ready()) { + sb.append(br.readLine()); + sb.append("\n"); + } + + return sb.toString(); + } catch (IOException ex) { + //JOptionPane.showMessageDialog(null, "Erro ao abrir o arquivo" + ex.getMessage()); + } finally { + if (br != null) { + try { + br.close(); + } catch (IOException ex) { + //JOptionPane.showMessageDialog(null, "Erro ao abrir o arquivo" + ex.getMessage()); + } + } + if (fr != null) { + try { + fr.close(); + } catch (IOException ex) { + //JOptionPane.showMessageDialog(null, "Erro ao abrir o arquivo" + ex.getMessage()); + } + } + } + return null; + + } + public void GravarLog(String Usuario,String Erros, String MenuAtual, String Acao){ + FileWriter fw = null; + String fileName="Log"; + String Dados= LerLog(); + SimpleDateFormat Data = new SimpleDateFormat("dd/MM/yyyy"); + SimpleDateFormat Hora = new SimpleDateFormat("hh:mm"); + + + String fileText="\nLog \nData do Acesso: "+Data.format(new Date())+"\nHora do Acesso: "+Hora.format(new Date())+"\nUltimo Usuario Logado:"+Usuario+ + "\nMenu Acessado: "+MenuAtual+"\nAção:"+Acao+"\nErros ocorridos:"+Erros+"\n\n"+Dados; + fileName = fileName + ".txt"; + BufferedWriter bw = null; + try { + fw = new FileWriter(fileName, false); + bw = new BufferedWriter(fw); + bw.write(fileText); + bw.flush(); + } catch (IOException ex) { + JOptionPane.showMessageDialog(null, "Erro ao Gravar o Log" + ex.getMessage()); + } finally { + if (bw != null) { + try { + bw.close(); + } catch (IOException ex) { + JOptionPane.showMessageDialog(null, "Erro ao Gravar o Log" + ex.getMessage()); + } + } + if (fw != null) { + try { + fw.close(); + } catch (IOException ex) { + JOptionPane.showMessageDialog(null, "Erro ao Gravar o Log" + ex.getMessage()); + } + } + + } + + } + +} diff --git a/LojaInstrumentos/src/exception/ExceptionLoja.java b/LojaInstrumentos/src/exception/ExceptionLoja.java new file mode 100644 index 0000000..21741c2 --- /dev/null +++ b/LojaInstrumentos/src/exception/ExceptionLoja.java @@ -0,0 +1,17 @@ + +package exception; + +import java.io.Serializable; + +public class ExceptionLoja extends Exception implements Serializable{ + private static final long serialVersionUID = 1L; + + public ExceptionLoja(){ + super("Ocorreu um erro desconhecido!"); + + } + public ExceptionLoja(String msg){ + super(msg); + + } +} diff --git a/LojaInstrumentos/src/frmLogin.form b/LojaInstrumentos/src/frmLogin.form deleted file mode 100644 index 770e36d..0000000 --- a/LojaInstrumentos/src/frmLogin.form +++ /dev/null @@ -1,155 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/LojaInstrumentos/src/frmLogin.java b/LojaInstrumentos/src/frmLogin.java deleted file mode 100644 index 9b077be..0000000 --- a/LojaInstrumentos/src/frmLogin.java +++ /dev/null @@ -1,192 +0,0 @@ - -import javax.swing.JFrame; -import javax.swing.JInternalFrame; - -public class frmLogin extends javax.swing.JFrame { - - public frmLogin() { - initComponents(); - txtUsuario.requestFocus(); - } - - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - jLabel1 = new javax.swing.JLabel(); - jLabel2 = new javax.swing.JLabel(); - txtUsuario = new javax.swing.JTextField(); - txtSenha = new javax.swing.JPasswordField(); - btnAcessar = new javax.swing.JButton(); - btnCancelar = new javax.swing.JButton(); - jLabel3 = new javax.swing.JLabel(); - jSeparator1 = new javax.swing.JSeparator(); - CHKMemo = new javax.swing.JCheckBox(); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setResizable(false); - - jLabel1.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N - jLabel1.setText("Usuário:"); - - jLabel2.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N - jLabel2.setText("Senha:"); - - txtUsuario.setName("txtUsuario"); // NOI18N - - txtSenha.setName("txtSenha"); // NOI18N - - btnAcessar.setText("Acessar"); - btnAcessar.setName("btnAcessar"); // NOI18N - btnAcessar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - btnAcessarActionPerformed(evt); - } - }); - - btnCancelar.setText("Cancelar"); - btnCancelar.setName("btnCancelar"); // NOI18N - btnCancelar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - btnCancelarActionPerformed(evt); - } - }); - - jLabel3.setFont(new java.awt.Font("Arial", 1, 36)); // NOI18N - jLabel3.setText("Acesso ao sistema"); - - CHKMemo.setText("Memorizar"); - CHKMemo.setName("CHKMemo"); // NOI18N - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addComponent(jLabel3) - .addGap(0, 202, Short.MAX_VALUE)) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addComponent(jSeparator1))) - .addContainerGap()) - .addGroup(layout.createSequentialGroup() - .addGap(104, 104, 104) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jLabel1) - .addComponent(jLabel2)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addComponent(btnAcessar, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(CHKMemo)) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(txtSenha) - .addComponent(txtUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addContainerGap() - .addComponent(jLabel3) - .addGap(18, 18, 18) - .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel1) - .addComponent(txtUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(29, 29, 29) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel2) - .addComponent(txtSenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(btnAcessar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(CHKMemo, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addContainerGap(45, Short.MAX_VALUE)) - ); - - pack(); - }// //GEN-END:initComponents - - private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed - System.exit(0); - }//GEN-LAST:event_btnCancelarActionPerformed - - private void btnAcessarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAcessarActionPerformed - String usuario = txtUsuario.getText(); - String senha = txtSenha.getText(); - boolean logado = false; - - Acesso acesso = new Acesso(); - - logado = acesso.entrar(usuario, senha); - - if(logado == true) - { - frmPrincipal principal = new frmPrincipal(); - - principal.show(); - this.dispose(); - - } - else - { - txtUsuario.setText(""); - txtSenha.setText(""); - txtUsuario.requestFocus(); - } - - }//GEN-LAST:event_btnAcessarActionPerformed - - public static void main(String args[]) { - /* Set the Nimbus look and feel */ - // - /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. - * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html - */ - try { - for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { - if ("Nimbus".equals(info.getName())) { - javax.swing.UIManager.setLookAndFeel(info.getClassName()); - break; - } - } - } catch (ClassNotFoundException ex) { - java.util.logging.Logger.getLogger(frmLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (InstantiationException ex) { - java.util.logging.Logger.getLogger(frmLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (IllegalAccessException ex) { - java.util.logging.Logger.getLogger(frmLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (javax.swing.UnsupportedLookAndFeelException ex) { - java.util.logging.Logger.getLogger(frmLogin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } - // - - /* Create and display the form */ - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - new frmLogin().setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JCheckBox CHKMemo; - private javax.swing.JButton btnAcessar; - private javax.swing.JButton btnCancelar; - private javax.swing.JLabel jLabel1; - private javax.swing.JLabel jLabel2; - private javax.swing.JLabel jLabel3; - private javax.swing.JSeparator jSeparator1; - private javax.swing.JPasswordField txtSenha; - private javax.swing.JTextField txtUsuario; - // End of variables declaration//GEN-END:variables -} diff --git a/LojaInstrumentos/src/frmPrincipal.form b/LojaInstrumentos/src/frmPrincipal.form deleted file mode 100644 index e8b538e..0000000 --- a/LojaInstrumentos/src/frmPrincipal.form +++ /dev/null @@ -1,2188 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title value="Endereço"/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title value="Logadouro"/> - <Editor/> - <Renderer/> - </Column> - </TableColumnModel> - </Property> - <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> - <TableHeader reorderingAllowed="true" resizingAllowed="true"/> - </Property> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JInternalFrame" name="ConsultaCliente"> - <Properties> - <Property name="resizable" type="boolean" value="true"/> - <Property name="visible" type="boolean" value="true"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="630" y="0" width="730" height="290"/> - </Constraint> - </Constraints> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="270" max="-2" attributes="0"/> - <Component id="BAlterarCC" min="-2" pref="80" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - <Component id="BCancelarCC" min="-2" pref="80" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="270" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel11" max="32767" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel11" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="BAlterarCC" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="BCancelarCC" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace min="-2" pref="37" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JButton" name="BCancelarCC"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancelar"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="BAlterarCC"> - <Properties> - <Property name="text" type="java.lang.String" value="Alterar"/> - </Properties> - </Component> - <Container class="javax.swing.JPanel" name="jPanel11"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Consulta Cliente"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="1" attributes="0"> - <Component id="jScrollPane4" alignment="1" max="32767" attributes="0"/> - <Group type="102" alignment="1" attributes="0"> - <Component id="jCheckBox5" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="jCheckBox4" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="jCheckBox6" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="ConsultaClientetxt" pref="555" max="32767" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="ConsultaClieneteC" min="-2" max="-2" attributes="0"/> - </Group> - </Group> - <EmptySpace min="-2" pref="21" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="ConsultaClientetxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="ConsultaClieneteC" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox5" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox4" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jCheckBox6" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Component id="jScrollPane4" min="-2" pref="113" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JTextField" name="ConsultaClientetxt"> - </Component> - <Component class="javax.swing.JToggleButton" name="ConsultaClieneteC"> - <Properties> - <Property name="text" type="java.lang.String" value="Consultar"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox4"> - <Properties> - <Property name="text" type="java.lang.String" value="Nome"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox5"> - <Properties> - <Property name="text" type="java.lang.String" value="Codigo"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="jCheckBox6"> - <Properties> - <Property name="text" type="java.lang.String" value="Sobrenome"/> - </Properties> - </Component> - <Container class="javax.swing.JScrollPane" name="jScrollPane4"> - <AuxValues> - <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTable" name="ConsultaTabela"> - <Properties> - <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> - <Table columnCount="9" rowCount="4"> - <Column editable="true" title="Codigo" type="java.lang.Object"/> - <Column editable="true" title="Nome" type="java.lang.Object"/> - <Column editable="true" title="Sobrenome" type="java.lang.Object"/> - <Column editable="true" title="RG" type="java.lang.Object"/> - <Column editable="true" title="CPF" type="java.lang.Object"/> - <Column editable="true" title="Data Nascimento" type="java.lang.Object"/> - <Column editable="true" title="Telefone" type="java.lang.Object"/> - <Column editable="true" title="Celular" type="java.lang.Object"/> - <Column editable="true" title="E-mail" type="java.lang.Object"/> - </Table> - </Property> - <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> - <TableColumnModel selectionModel="0"> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - </TableColumnModel> - </Property> - <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> - <TableHeader reorderingAllowed="true" resizingAllowed="true"/> - </Property> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JInternalFrame" name="Vendaprodutos"> - <Properties> - <Property name="resizable" type="boolean" value="true"/> - <Property name="visible" type="boolean" value="true"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="100" y="0" width="-1" height="-1"/> - </Constraint> - </Constraints> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace min="-2" pref="17" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jPanel6" min="-2" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Group type="102" attributes="0"> - <Component id="jLabel43" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="32" max="-2" attributes="0"/> - <Component id="jTextField9" min="-2" pref="165" max="-2" attributes="0"/> - </Group> - <Component id="jPanel8" alignment="0" max="32767" attributes="0"/> - <Component id="jPanel7" alignment="0" max="32767" attributes="0"/> - <Component id="jPanel9" alignment="0" pref="586" max="32767" attributes="0"/> - </Group> - </Group> - <EmptySpace min="310" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Component id="jButton1" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - </Group> - </Group> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace min="-2" pref="22" max="-2" attributes="0"/> - <Component id="jPanel7" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="jButton1" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="34" max="32767" attributes="0"/> - <Component id="jPanel8" min="-2" pref="136" max="-2" attributes="0"/> - <EmptySpace type="separate" min="-2" max="-2" attributes="0"/> - <Component id="jPanel9" min="-2" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jTextField9" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel43" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="jPanel6" min="-2" pref="50" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="62" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Container class="javax.swing.JPanel" name="jPanel6"> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="75" max="-2" attributes="0"/> - <Component id="GravarVenda" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace pref="114" max="32767" attributes="0"/> - <Component id="ExcluirVenda" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="101" max="-2" attributes="0"/> - <Component id="jButton9" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace max="32767" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="ExcluirVenda" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jButton9" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="GravarVenda" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JButton" name="ExcluirVenda"> - <Properties> - <Property name="text" type="java.lang.String" value="Excluir"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="jButton9"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancelar"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="GravarVenda"> - <Properties> - <Property name="text" type="java.lang.String" value="Gravar"/> - </Properties> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="jPanel7"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Venda de Mercadoria"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Component id="jLabel36" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="jTextField3" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="6" max="-2" attributes="0"/> - <Component id="jLabel35" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="jTextField2" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Component id="jLabel34" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="jTextField1" min="-2" pref="91" max="-2" attributes="0"/> - </Group> - </Group> - <EmptySpace min="61" pref="119" max="32767" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Group type="102" alignment="1" attributes="0"> - <Component id="jLabel37" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - <Component id="jTextField4" min="-2" pref="134" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <Component id="jLabel38" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - <Component id="jSpinner1" min="-2" pref="69" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <Component id="jLabel39" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="44" max="-2" attributes="0"/> - <Component id="jTextField5" min="-2" pref="150" max="-2" attributes="0"/> - </Group> - </Group> - <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel34" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel39" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jTextField5" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Component id="jLabel35" min="-2" max="-2" attributes="0"/> - <EmptySpace min="0" pref="0" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace min="0" pref="0" max="32767" attributes="0"/> - <Component id="jLabel38" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - </Group> - </Group> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel36" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jTextField3" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jTextField2" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jSpinner1" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jTextField4" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel37" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace pref="24" max="32767" attributes="0"/> - </Group> - </Group> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="jLabel34"> - <Properties> - <Property name="text" type="java.lang.String" value="Codigo Mercadoria:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel35"> - <Properties> - <Property name="text" type="java.lang.String" value="Nome:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel36"> - <Properties> - <Property name="text" type="java.lang.String" value="Preco Venda:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel37"> - <Properties> - <Property name="text" type="java.lang.String" value="Desconto:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel38"> - <Properties> - <Property name="text" type="java.lang.String" value="Quantidade:"/> - </Properties> - </Component> - <Component class="javax.swing.JSpinner" name="jSpinner1"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField1"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField2"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField3"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField4"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField5"> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField5ActionPerformed"/> - </Events> - </Component> - <Component class="javax.swing.JLabel" name="jLabel39"> - <Properties> - <Property name="text" type="java.lang.String" value="Marca:"/> - </Properties> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="jPanel8"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Carrinho de Compras"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jScrollPane2" max="32767" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="1" attributes="0"> - <EmptySpace max="32767" attributes="0"/> - <Component id="jScrollPane2" min="-2" pref="98" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="341" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Container class="javax.swing.JScrollPane" name="jScrollPane2"> - <AuxValues> - <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTable" name="jTable1"> - <Properties> - <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> - <Table columnCount="5" rowCount="4"> - <Column editable="true" title="Codigo Mercadoria" type="java.lang.Object"/> - <Column editable="true" title="Nome" type="java.lang.Object"/> - <Column editable="true" title="Marca" type="java.lang.Object"/> - <Column editable="true" title="Valor" type="java.lang.Object"/> - <Column editable="true" title="Quantidade" type="java.lang.Object"/> - </Table> - </Property> - <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> - <TableColumnModel selectionModel="0"> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - </TableColumnModel> - </Property> - <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> - <TableHeader reorderingAllowed="true" resizingAllowed="true"/> - </Property> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Component class="javax.swing.JLabel" name="jLabel43"> - <Properties> - <Property name="text" type="java.lang.String" value="Valor Final:"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField9"> - <Properties> - <Property name="editable" type="boolean" value="false"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="jButton1"> - <Properties> - <Property name="text" type="java.lang.String" value="Incluir"/> - </Properties> - </Component> - <Container class="javax.swing.JPanel" name="jPanel9"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Dados da Venda"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Group type="102" attributes="0"> - <Component id="jLabel42" min="-2" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="26" max="-2" attributes="0"/> - <Component id="jTextField6" min="-2" pref="125" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel41" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel40" alignment="0" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="32767" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Component id="jTextField7" pref="125" max="32767" attributes="0"/> - <Component id="jTextField8" max="32767" attributes="0"/> - </Group> - </Group> - </Group> - <EmptySpace min="-2" pref="33" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel45" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel44" alignment="0" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="32767" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Component id="jTextField10" max="32767" attributes="0"/> - <Component id="jComboBox1" min="-2" pref="132" max="-2" attributes="0"/> - </Group> - <EmptySpace min="-2" pref="307" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Component id="jLabel42" min="-2" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Component id="jLabel41" min="-2" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Component id="jLabel40" min="-2" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="1" attributes="0"> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jTextField6" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel44" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jTextField10" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="1" attributes="0"> - <Component id="jTextField7" min="-2" max="-2" attributes="0"/> - <Component id="jLabel45" min="-2" max="-2" attributes="0"/> - </Group> - </Group> - <Component id="jComboBox1" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Component id="jTextField8" min="-2" max="-2" attributes="0"/> - </Group> - </Group> - <EmptySpace min="0" pref="14" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="jLabel42"> - <Properties> - <Property name="text" type="java.lang.String" value="Numero de Venda:"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField6"> - <Properties> - <Property name="editable" type="boolean" value="false"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel41"> - <Properties> - <Property name="text" type="java.lang.String" value="Codigo Cliente:"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField7"> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField7ActionPerformed"/> - </Events> - </Component> - <Component class="javax.swing.JLabel" name="jLabel40"> - <Properties> - <Property name="text" type="java.lang.String" value="Nome Cliente:"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField8"> - </Component> - <Component class="javax.swing.JLabel" name="jLabel44"> - <Properties> - <Property name="text" type="java.lang.String" value="Data de Venda:"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField10"> - </Component> - <Component class="javax.swing.JLabel" name="jLabel45"> - <Properties> - <Property name="text" type="java.lang.String" value="Tipo de Pagamento:"/> - </Properties> - </Component> - <Component class="javax.swing.JComboBox" name="jComboBox1"> - <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="5"> - <StringItem index="0" value="Dinheiro"/> - <StringItem index="1" value="Cartao de Credito"/> - <StringItem index="2" value="Cartao de Debito"/> - <StringItem index="3" value="Check"/> - <StringItem index="4" value="Boleto Bancario"/> - </StringArray> - </Property> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JInternalFrame" name="CadastroProdutos"> - <Properties> - <Property name="resizable" type="boolean" value="true"/> - <Property name="visible" type="boolean" value="true"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="200" y="0" width="-1" height="464"/> - </Constraint> - </Constraints> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="1" max="-2" attributes="0"> - <Component id="jPanel5" max="32767" attributes="0"/> - <Component id="jPanel3" max="32767" attributes="0"/> - </Group> - <EmptySpace pref="53" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel3" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel5" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="107" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Container class="javax.swing.JPanel" name="jPanel3"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Cadastro Produtos"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jScrollPane1" max="32767" attributes="0"/> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel31" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel23" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel24" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel30" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel29" alignment="0" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Component id="Marcatxt" pref="207" max="32767" attributes="0"/> - <Component id="NomePtxt" max="32767" attributes="0"/> - <Component id="CodigoPtxt" max="32767" attributes="0"/> - <Component id="CodigoBarratxt" max="32767" attributes="0"/> - </Group> - <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel28" min="-2" max="-2" attributes="0"/> - <Component id="jLabel32" min="-2" max="-2" attributes="0"/> - </Group> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> - <Component id="Unidadetxt" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="Quantidadetxt" min="-2" pref="49" max="-2" attributes="0"/> - <EmptySpace min="0" pref="0" max="32767" attributes="0"/> - </Group> - </Group> - </Group> - <Group type="102" alignment="1" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jLabel27" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel26" alignment="0" min="-2" max="-2" attributes="0"/> - <Component id="jLabel25" alignment="0" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace min="101" max="32767" attributes="0"/> - <Group type="103" groupAlignment="0" max="-2" attributes="0"> - <Component id="ValorUnitxt" pref="144" max="32767" attributes="0"/> - <Component id="ValorCustotxt" max="32767" attributes="0"/> - <Component id="DataCompratxt" max="32767" attributes="0"/> - </Group> - </Group> - </Group> - </Group> - </Group> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel23" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel27" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="DataCompratxt" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> - </Group> - <Group type="102" alignment="1" attributes="0"> - <Component id="CodigoPtxt" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel31" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel26" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="ValorCustotxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="CodigoBarratxt" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel24" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel25" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="ValorUnitxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="NomePtxt" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel28" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="Marcatxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="Quantidadetxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel30" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel29" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="Unidadetxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel32" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="jLabel23"> - <Properties> - <Property name="text" type="java.lang.String" value="Codigo:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel24"> - <Properties> - <Property name="text" type="java.lang.String" value="Nome:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel25"> - <Properties> - <Property name="text" type="java.lang.String" value="Valor Unitario:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel26"> - <Properties> - <Property name="text" type="java.lang.String" value="Valor Custo:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel27"> - <Properties> - <Property name="text" type="java.lang.String" value="Data Compra:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel28"> - <Properties> - <Property name="text" type="java.lang.String" value="Quantidade:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel29"> - <Properties> - <Property name="text" type="java.lang.String" value="Descrição:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel30"> - <Properties> - <Property name="text" type="java.lang.String" value="Marca:"/> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel31"> - <Properties> - <Property name="text" type="java.lang.String" value="Código de barras: "/> - </Properties> - </Component> - <Container class="javax.swing.JScrollPane" name="jScrollPane1"> - <AuxValues> - <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTextArea" name="Descricaotxt"> - <Properties> - <Property name="columns" type="int" value="20"/> - <Property name="rows" type="int" value="5"/> - </Properties> - </Component> - </SubComponents> - </Container> - <Component class="javax.swing.JTextField" name="DataCompratxt"> - </Component> - <Component class="javax.swing.JTextField" name="ValorCustotxt"> - </Component> - <Component class="javax.swing.JTextField" name="ValorUnitxt"> - </Component> - <Component class="javax.swing.JTextField" name="Unidadetxt"> - </Component> - <Component class="javax.swing.JTextField" name="CodigoPtxt"> - <Properties> - <Property name="editable" type="boolean" value="false"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="CodigoBarratxt"> - </Component> - <Component class="javax.swing.JTextField" name="NomePtxt"> - </Component> - <Component class="javax.swing.JTextField" name="Marcatxt"> - </Component> - <Component class="javax.swing.JSpinner" name="Quantidadetxt"> - </Component> - <Component class="javax.swing.JLabel" name="jLabel32"> - <Properties> - <Property name="text" type="java.lang.String" value="Unidade:"/> - </Properties> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="jPanel5"> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="BGravarP" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="69" max="-2" attributes="0"/> - <Component id="BExcluirP" min="-2" pref="88" max="-2" attributes="0"/> - <EmptySpace pref="150" max="32767" attributes="0"/> - <Component id="BAlterarP" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace min="-2" pref="60" max="-2" attributes="0"/> - <Component id="BCancelarP" min="-2" pref="90" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="BGravarP" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="BExcluirP" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="BAlterarP" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="BCancelarP" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace pref="21" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JButton" name="BGravarP"> - <Properties> - <Property name="text" type="java.lang.String" value="Gravar"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="BExcluirP"> - <Properties> - <Property name="text" type="java.lang.String" value="Excluir"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="BAlterarP"> - <Properties> - <Property name="text" type="java.lang.String" value="Alterar"/> - </Properties> - </Component> - <Component class="javax.swing.JButton" name="BCancelarP"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancelar"/> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JInternalFrame" name="ContasReceber"> - <Properties> - <Property name="resizable" type="boolean" value="true"/> - <Property name="visible" type="boolean" value="true"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="700" y="150" width="-1" height="-1"/> - </Constraint> - </Constraints> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel13" max="32767" attributes="0"/> - <EmptySpace min="-2" pref="25" max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Component id="jPanel13" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="79" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Container class="javax.swing.JPanel" name="jPanel13"> - <Properties> - <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> - <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> - <TitledBorder title="Contas a Receber"/> - </Border> - </Property> - </Properties> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jScrollPane5" alignment="0" max="32767" attributes="0"/> - <Group type="102" attributes="0"> - <EmptySpace min="-2" pref="19" max="-2" attributes="0"/> - <Component id="jLabel47" min="-2" max="-2" attributes="0"/> - <EmptySpace type="separate" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <Component id="CodigoContasR" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="NomeContasR" min="-2" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="SobrenomeContasR" min="-2" max="-2" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - <Component id="DataContasR" min="-2" max="-2" attributes="0"/> - <EmptySpace max="32767" attributes="0"/> - <Component id="BCContas" min="-2" pref="80" max="-2" attributes="0"/> - </Group> - <Group type="102" attributes="0"> - <Component id="ContasRecebertxt" min="-2" pref="486" max="-2" attributes="0"/> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="BConsultarCR" min="-2" max="-2" attributes="0"/> - <EmptySpace min="0" pref="0" max="32767" attributes="0"/> - </Group> - </Group> - <EmptySpace max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel47" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="ContasRecebertxt" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="BConsultarCR" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="NomeContasR" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="SobrenomeContasR" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="CodigoContasR" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="DataContasR" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <Component id="BCContas" alignment="0" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace type="unrelated" max="-2" attributes="0"/> - <Component id="jScrollPane5" pref="236" max="32767" attributes="0"/> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Container class="javax.swing.JScrollPane" name="jScrollPane5"> - <AuxValues> - <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTable" name="ContasRecebertabela"> - <Properties> - <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> - <Table columnCount="6" rowCount="13"> - <Column editable="true" title="Codigo" type="java.lang.Object"/> - <Column editable="true" title="Nome" type="java.lang.Object"/> - <Column editable="true" title="Situação" type="java.lang.Object"/> - <Column editable="true" title="Valor a receber" type="java.lang.Object"/> - <Column editable="true" title="Parcelas" type="java.lang.Object"/> - <Column editable="true" title="Valor recebido" type="java.lang.Object"/> - </Table> - </Property> - <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> - <TableColumnModel selectionModel="0"> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> - <Title/> - <Editor/> - <Renderer/> - </Column> - </TableColumnModel> - </Property> - <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> - <TableHeader reorderingAllowed="true" resizingAllowed="true"/> - </Property> - </Properties> - </Component> - </SubComponents> - </Container> - <Component class="javax.swing.JButton" name="BCContas"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancelar"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BCContasActionPerformed"/> - </Events> - </Component> - <Component class="javax.swing.JLabel" name="jLabel47"> - <Properties> - <Property name="text" type="java.lang.String" value="Consultar"/> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="ContasRecebertxt"> - </Component> - <Component class="javax.swing.JButton" name="BConsultarCR"> - <Properties> - <Property name="text" type="java.lang.String" value="Consultar"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="NomeContasR"> - <Properties> - <Property name="text" type="java.lang.String" value="Nome"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="SobrenomeContasR"> - <Properties> - <Property name="text" type="java.lang.String" value="Sobrenome"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="CodigoContasR"> - <Properties> - <Property name="text" type="java.lang.String" value="Codigo"/> - </Properties> - </Component> - <Component class="javax.swing.JCheckBox" name="DataContasR"> - <Properties> - <Property name="text" type="java.lang.String" value="Data"/> - </Properties> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - </SubComponents> - </Container> - </SubComponents> -</Form> diff --git a/LojaInstrumentos/src/frmPrincipal.java b/LojaInstrumentos/src/frmPrincipal.java deleted file mode 100644 index 6db0169..0000000 --- a/LojaInstrumentos/src/frmPrincipal.java +++ /dev/null @@ -1,1727 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ - -/** - * - * @author comp1 - */ -public class frmPrincipal extends javax.swing.JFrame { - - /** - * Creates new form frmPrincipal - */ - public frmPrincipal() { - initComponents(); - - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(false); - ConsultaProduto.setVisible(false); - ConsultaCliente.setVisible(false); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents - private void initComponents() { - bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); - - jMenuItem7 = new javax.swing.JMenuItem(); - jLabel22 = new javax.swing.JLabel(); - JDP_principal = new javax.swing.JDesktopPane(); - CadastroCliente = new javax.swing.JInternalFrame(); - jPanel1 = new javax.swing.JPanel(); - jLabel2 = new javax.swing.JLabel(); - jLabel6 = new javax.swing.JLabel(); - jLabel7 = new javax.swing.JLabel(); - Codigotxt = new javax.swing.JTextField(); - Nometxt = new javax.swing.JTextField(); - Sobrenometxt = new javax.swing.JTextField(); - CPFtxt = new javax.swing.JTextField(); - RGtxt = new javax.swing.JTextField(); - jLabel1 = new javax.swing.JLabel(); - jLabel4 = new javax.swing.JLabel(); - jLabel5 = new javax.swing.JLabel(); - Sexotxt = new javax.swing.JComboBox(); - EstadoCiviltxt = new javax.swing.JComboBox(); - jLabel3 = new javax.swing.JLabel(); - jLabel21 = new javax.swing.JLabel(); - DataNacimentotxt = new javax.swing.JTextField(); - jLabel33 = new javax.swing.JLabel(); - DataCadastrotxt = new javax.swing.JTextField(); - jPanel2 = new javax.swing.JPanel(); - jLabel8 = new javax.swing.JLabel(); - jLabel9 = new javax.swing.JLabel(); - jLabel10 = new javax.swing.JLabel(); - jLabel11 = new javax.swing.JLabel(); - jLabel12 = new javax.swing.JLabel(); - jLabel13 = new javax.swing.JLabel(); - jLabel14 = new javax.swing.JLabel(); - jLabel15 = new javax.swing.JLabel(); - jLabel16 = new javax.swing.JLabel(); - jLabel17 = new javax.swing.JLabel(); - jLabel18 = new javax.swing.JLabel(); - jLabel19 = new javax.swing.JLabel(); - jLabel20 = new javax.swing.JLabel(); - Emailtxt = new javax.swing.JTextField(); - telefonetxt = new javax.swing.JTextField(); - Celulartxt = new javax.swing.JTextField(); - Enderecotxt = new javax.swing.JTextField(); - Bairrotxt = new javax.swing.JTextField(); - Logadourotxt = new javax.swing.JTextField(); - Numerotxt = new javax.swing.JTextField(); - Cidadetxt = new javax.swing.JTextField(); - CEPtxt = new javax.swing.JTextField(); - UFtxt = new javax.swing.JComboBox(); - Complementotxt = new javax.swing.JTextField(); - Paistxt = new javax.swing.JTextField(); - Referenciatxt = new javax.swing.JTextField(); - jPanel4 = new javax.swing.JPanel(); - BGravar = new javax.swing.JButton(); - BExcluir = new javax.swing.JButton(); - BAlterar = new javax.swing.JButton(); - BCancelar = new javax.swing.JButton(); - ConsultaProduto = new javax.swing.JInternalFrame(); - jButton3 = new javax.swing.JButton(); - jButton8 = new javax.swing.JButton(); - jPanel10 = new javax.swing.JPanel(); - jTextField11 = new javax.swing.JTextField(); - jToggleButton1 = new javax.swing.JToggleButton(); - jCheckBox1 = new javax.swing.JCheckBox(); - jCheckBox2 = new javax.swing.JCheckBox(); - jCheckBox3 = new javax.swing.JCheckBox(); - jScrollPane3 = new javax.swing.JScrollPane(); - jTable2 = new javax.swing.JTable(); - ConsultaCliente = new javax.swing.JInternalFrame(); - BCancelarCC = new javax.swing.JButton(); - BAlterarCC = new javax.swing.JButton(); - jPanel11 = new javax.swing.JPanel(); - ConsultaClientetxt = new javax.swing.JTextField(); - ConsultaClieneteC = new javax.swing.JToggleButton(); - jCheckBox4 = new javax.swing.JCheckBox(); - jCheckBox5 = new javax.swing.JCheckBox(); - jCheckBox6 = new javax.swing.JCheckBox(); - jScrollPane4 = new javax.swing.JScrollPane(); - ConsultaTabela = new javax.swing.JTable(); - Vendaprodutos = new javax.swing.JInternalFrame(); - jPanel6 = new javax.swing.JPanel(); - ExcluirVenda = new javax.swing.JButton(); - jButton9 = new javax.swing.JButton(); - GravarVenda = new javax.swing.JButton(); - jPanel7 = new javax.swing.JPanel(); - jLabel34 = new javax.swing.JLabel(); - jLabel35 = new javax.swing.JLabel(); - jLabel36 = new javax.swing.JLabel(); - jLabel37 = new javax.swing.JLabel(); - jLabel38 = new javax.swing.JLabel(); - jSpinner1 = new javax.swing.JSpinner(); - jTextField1 = new javax.swing.JTextField(); - jTextField2 = new javax.swing.JTextField(); - jTextField3 = new javax.swing.JTextField(); - jTextField4 = new javax.swing.JTextField(); - jTextField5 = new javax.swing.JTextField(); - jLabel39 = new javax.swing.JLabel(); - jPanel8 = new javax.swing.JPanel(); - jScrollPane2 = new javax.swing.JScrollPane(); - jTable1 = new javax.swing.JTable(); - jLabel43 = new javax.swing.JLabel(); - jTextField9 = new javax.swing.JTextField(); - jButton1 = new javax.swing.JButton(); - jPanel9 = new javax.swing.JPanel(); - jLabel42 = new javax.swing.JLabel(); - jTextField6 = new javax.swing.JTextField(); - jLabel41 = new javax.swing.JLabel(); - jTextField7 = new javax.swing.JTextField(); - jLabel40 = new javax.swing.JLabel(); - jTextField8 = new javax.swing.JTextField(); - jLabel44 = new javax.swing.JLabel(); - jTextField10 = new javax.swing.JTextField(); - jLabel45 = new javax.swing.JLabel(); - jComboBox1 = new javax.swing.JComboBox(); - CadastroProdutos = new javax.swing.JInternalFrame(); - jPanel3 = new javax.swing.JPanel(); - jLabel23 = new javax.swing.JLabel(); - jLabel24 = new javax.swing.JLabel(); - jLabel25 = new javax.swing.JLabel(); - jLabel26 = new javax.swing.JLabel(); - jLabel27 = new javax.swing.JLabel(); - jLabel28 = new javax.swing.JLabel(); - jLabel29 = new javax.swing.JLabel(); - jLabel30 = new javax.swing.JLabel(); - jLabel31 = new javax.swing.JLabel(); - jScrollPane1 = new javax.swing.JScrollPane(); - Descricaotxt = new javax.swing.JTextArea(); - DataCompratxt = new javax.swing.JTextField(); - ValorCustotxt = new javax.swing.JTextField(); - ValorUnitxt = new javax.swing.JTextField(); - Unidadetxt = new javax.swing.JTextField(); - CodigoPtxt = new javax.swing.JTextField(); - CodigoBarratxt = new javax.swing.JTextField(); - NomePtxt = new javax.swing.JTextField(); - Marcatxt = new javax.swing.JTextField(); - Quantidadetxt = new javax.swing.JSpinner(); - jLabel32 = new javax.swing.JLabel(); - jPanel5 = new javax.swing.JPanel(); - BGravarP = new javax.swing.JButton(); - BExcluirP = new javax.swing.JButton(); - BAlterarP = new javax.swing.JButton(); - BCancelarP = new javax.swing.JButton(); - ContasReceber = new javax.swing.JInternalFrame(); - jPanel13 = new javax.swing.JPanel(); - jScrollPane5 = new javax.swing.JScrollPane(); - ContasRecebertabela = new javax.swing.JTable(); - BCContas = new javax.swing.JButton(); - jLabel47 = new javax.swing.JLabel(); - ContasRecebertxt = new javax.swing.JTextField(); - BConsultarCR = new javax.swing.JButton(); - NomeContasR = new javax.swing.JCheckBox(); - SobrenomeContasR = new javax.swing.JCheckBox(); - CodigoContasR = new javax.swing.JCheckBox(); - DataContasR = new javax.swing.JCheckBox(); - jMenuBar_TOP = new javax.swing.JMenuBar(); - CadastroMenu = new javax.swing.JMenu(); - CadastrarClienteMenu = new javax.swing.JMenuItem(); - CadProduto = new javax.swing.JMenuItem(); - jMenu2 = new javax.swing.JMenu(); - ConCliente = new javax.swing.JMenuItem(); - ConProdutoM = new javax.swing.JMenuItem(); - MVendas = new javax.swing.JMenu(); - VendaMercadoriaaM = new javax.swing.JMenuItem(); - jMenu3 = new javax.swing.JMenu(); - FinContasReceber = new javax.swing.JMenuItem(); - jMenu4 = new javax.swing.JMenu(); - jMenuItem8 = new javax.swing.JMenuItem(); - jMenuItem9 = new javax.swing.JMenuItem(); - - jMenuItem7.setText("jMenuItem7"); - - jLabel22.setText("jLabel22"); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setTitle("Loja De Instrumentos"); - setPreferredSize(new java.awt.Dimension(1280, 720)); - - org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, JDP_principal, org.jdesktop.beansbinding.ELProperty.create("${maximumSize}"), this, org.jdesktop.beansbinding.BeanProperty.create("minimumSize")); - bindingGroup.addBinding(binding); - - getContentPane().setLayout(null); - - JDP_principal.setBackground(new java.awt.Color(255, 255, 255)); - JDP_principal.setPreferredSize(new java.awt.Dimension(1920, 1080)); - - binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, CadastroCliente, org.jdesktop.beansbinding.ELProperty.create("${maximumSize}"), JDP_principal, org.jdesktop.beansbinding.BeanProperty.create("maximumSize")); - bindingGroup.addBinding(binding); - - CadastroCliente.setVisible(true); - - binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, CadastroCliente, org.jdesktop.beansbinding.ELProperty.create("${maximumSize}"), CadastroCliente, org.jdesktop.beansbinding.BeanProperty.create("minimumSize")); - bindingGroup.addBinding(binding); - - jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Informações do Cliente")); - - jLabel2.setText("Nome:"); - - jLabel6.setText("Sexo:"); - - jLabel7.setText("Estado Civil"); - - Codigotxt.setEditable(false); - - jLabel1.setText("Codigo:"); - - jLabel4.setText("CPF:"); - - jLabel5.setText("RG:"); - - Sexotxt.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Masculino", "Feminino" })); - Sexotxt.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SexotxtActionPerformed(evt); - } - }); - - EstadoCiviltxt.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Solteiro(a)", "Casado(a)", "Divorciado(a)", "Viuvo(a)" })); - - jLabel3.setText("Sobrenome:"); - - jLabel21.setText("Data Nascimento:"); - - jLabel33.setText("Data Cadastro:"); - - javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); - jPanel1.setLayout(jPanel1Layout); - jPanel1Layout.setHorizontalGroup( - jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(20, 20, 20) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel6) - .addComponent(jLabel4)) - .addGap(40, 40, 40) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(CPFtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Sexotxt, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel7) - .addComponent(jLabel5)) - .addGap(18, 18, 18) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) - .addComponent(RGtxt) - .addComponent(EstadoCiviltxt, 0, 136, Short.MAX_VALUE))) - .addGroup(jPanel1Layout.createSequentialGroup() - .addComponent(jLabel3) - .addGap(10, 10, 10) - .addComponent(Sobrenometxt)) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel1) - .addComponent(jLabel2)) - .addGap(31, 31, 31) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(Nometxt, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE) - .addComponent(Codigotxt)) - .addGap(79, 79, 79) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel21) - .addComponent(jLabel33)) - .addGap(18, 18, 18) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(DataCadastrotxt, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE) - .addComponent(DataNacimentotxt)) - .addGap(0, 0, Short.MAX_VALUE))) - .addContainerGap()) - ); - jPanel1Layout.setVerticalGroup( - jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel1) - .addComponent(Codigotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel21) - .addComponent(DataNacimentotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(21, 21, 21) - .addComponent(jLabel2)) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(18, 18, 18) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel33) - .addComponent(DataCadastrotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(18, 18, 18) - .addComponent(Nometxt, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGap(9, 9, 9) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(3, 3, 3) - .addComponent(jLabel3)) - .addComponent(Sobrenometxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(3, 3, 3) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(3, 3, 3) - .addComponent(jLabel6)) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel7) - .addComponent(EstadoCiviltxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(RGtxt, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel5))) - .addGroup(jPanel1Layout.createSequentialGroup() - .addGap(4, 4, 4) - .addComponent(Sexotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel4) - .addComponent(CPFtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) - .addContainerGap()) - ); - - jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Endereço")); - - jLabel8.setText("Telefone:"); - - jLabel9.setText("Celular:"); - - jLabel10.setText("E-mail:"); - - jLabel11.setText("Endereço:"); - - jLabel12.setText("Bairro:"); - - jLabel13.setText("Numero:"); - - jLabel14.setText("Cidade:"); - - jLabel15.setText("UF:"); - - jLabel16.setText("Pais:"); - - jLabel17.setText("CEP:"); - - jLabel18.setText("Logadouro:"); - - jLabel19.setText("Complemento:"); - - jLabel20.setText("Referencia:"); - - UFtxt.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Acre (AC)", "Alagoas (AL)", "Amapá (AP)", "Amazonas (AM)", "Bahia (BA)", "Ceará (CE)", "Distrito Federal (DF)", "Espírito Santo (ES)", "Goiás (GO)", "Maranhão (MA)", "Mato Grosso (MT)", "Mato Grosso do Sul (MS)", "Minas Gerais (MG)", "Pará (PA)", "Paraíba (PB)", "Paraná (PR)", "Pernanbuco (PE)", "Piauí (PI)", "Rio Grande do Norte (RN)", "Rio Grande do Sul (RS)", "Rondônia (RO)", "Roraima (RR)", "Santa Catarina (SC)", "São Paulo (SP)", "Sergipe (SE)", "Tocantins(TO)" })); - - javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); - jPanel2.setLayout(jPanel2Layout); - jPanel2Layout.setHorizontalGroup( - jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() - .addComponent(jLabel16) - .addGap(50, 50, 50)) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel14) - .addComponent(jLabel19)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(Paistxt, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Cidadetxt, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE) - .addComponent(Complementotxt))) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(Emailtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel11) - .addComponent(jLabel18)) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGap(18, 18, 18) - .addComponent(Enderecotxt, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGap(18, 18, 18) - .addComponent(Logadourotxt))))) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addComponent(jLabel10) - .addGap(282, 282, 282)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() - .addComponent(jLabel8) - .addGap(24, 24, 24) - .addComponent(telefonetxt, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(32, 32, 32) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel12) - .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel13) - .addComponent(jLabel17) - .addComponent(jLabel15) - .addComponent(jLabel20))))) - .addGap(18, 21, Short.MAX_VALUE) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(Bairrotxt, javax.swing.GroupLayout.Alignment.TRAILING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addComponent(Numerotxt, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(0, 0, Short.MAX_VALUE)) - .addComponent(CEPtxt, javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(UFtxt, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(Referenciatxt) - .addComponent(Celulartxt)) - .addContainerGap()) - ); - jPanel2Layout.setVerticalGroup( - jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGap(2, 2, 2) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel8) - .addComponent(jLabel9) - .addComponent(telefonetxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Celulartxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel10) - .addComponent(Emailtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel11) - .addComponent(jLabel12) - .addComponent(Enderecotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Bairrotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel18) - .addComponent(jLabel13) - .addComponent(Logadourotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Numerotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel14) - .addComponent(jLabel17) - .addComponent(Cidadetxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(CEPtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel2Layout.createSequentialGroup() - .addComponent(UFtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(0, 0, Short.MAX_VALUE)) - .addGroup(jPanel2Layout.createSequentialGroup() - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel19) - .addComponent(Complementotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel15)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE))) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel16) - .addComponent(Paistxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(Referenciatxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel20)))) - ); - - BGravar.setText("Gravar"); - BGravar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - BGravarActionPerformed(evt); - } - }); - - BExcluir.setText("Excluir"); - - BAlterar.setText("Alterar"); - - BCancelar.setText("Cancelar"); - - javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); - jPanel4.setLayout(jPanel4Layout); - jPanel4Layout.setHorizontalGroup( - jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel4Layout.createSequentialGroup() - .addContainerGap() - .addComponent(BGravar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE) - .addComponent(BExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(48, 48, 48) - .addComponent(BAlterar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(60, 60, 60) - .addComponent(BCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)) - ); - jPanel4Layout.setVerticalGroup( - jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel4Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(BGravar) - .addComponent(BExcluir) - .addComponent(BAlterar) - .addComponent(BCancelar)) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - - javax.swing.GroupLayout CadastroClienteLayout = new javax.swing.GroupLayout(CadastroCliente.getContentPane()); - CadastroCliente.getContentPane().setLayout(CadastroClienteLayout); - CadastroClienteLayout.setHorizontalGroup( - CadastroClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(CadastroClienteLayout.createSequentialGroup() - .addContainerGap() - .addGroup(CadastroClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGroup(CadastroClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) - .addContainerGap(63, Short.MAX_VALUE)) - ); - CadastroClienteLayout.setVerticalGroup( - CadastroClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(CadastroClienteLayout.createSequentialGroup() - .addGap(6, 6, 6) - .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(12, 12, 12) - .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(164, Short.MAX_VALUE)) - ); - - JDP_principal.add(CadastroCliente); - CadastroCliente.setBounds(0, 0, 630, 650); - - ConsultaProduto.setResizable(true); - ConsultaProduto.setVisible(true); - - jButton3.setText("Cancelar"); - - jButton8.setText("Alterar"); - - jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Consulta Mercadoria")); - - jToggleButton1.setText("Consultar"); - - jCheckBox1.setText("Nome"); - - jCheckBox2.setText("Codigo"); - - jCheckBox3.setText("Marca"); - - jTable2.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - {null, null, null, null, null}, - {null, null, null, null, null}, - {null, null, null, null, null}, - {null, null, null, null, null} - }, - new String [] { - "Codigo", "Nome", "Marca", "Preco Unitario", "Quantidade" - } - )); - jScrollPane3.setViewportView(jTable2); - if (jTable2.getColumnModel().getColumnCount() > 0) { - jTable2.getColumnModel().getColumn(3).setHeaderValue("Endereço"); - jTable2.getColumnModel().getColumn(4).setHeaderValue("Logadouro"); - } - - javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); - jPanel10.setLayout(jPanel10Layout); - jPanel10Layout.setHorizontalGroup( - jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jScrollPane3) - .addGroup(jPanel10Layout.createSequentialGroup() - .addComponent(jCheckBox2) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jCheckBox1) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jCheckBox3) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jTextField11, javax.swing.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jToggleButton1))) - .addGap(21, 21, 21)) - ); - jPanel10Layout.setVerticalGroup( - jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel10Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jToggleButton1) - .addComponent(jCheckBox2) - .addComponent(jCheckBox1) - .addComponent(jCheckBox3)) - .addGap(18, 18, 18) - .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - - javax.swing.GroupLayout ConsultaProdutoLayout = new javax.swing.GroupLayout(ConsultaProduto.getContentPane()); - ConsultaProduto.getContentPane().setLayout(ConsultaProdutoLayout); - ConsultaProdutoLayout.setHorizontalGroup( - ConsultaProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(ConsultaProdutoLayout.createSequentialGroup() - .addGap(195, 195, 195) - .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(152, 152, 152) - .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addGroup(ConsultaProdutoLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addContainerGap()) - ); - ConsultaProdutoLayout.setVerticalGroup( - ConsultaProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ConsultaProdutoLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(ConsultaProdutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jButton8) - .addComponent(jButton3)) - .addGap(37, 37, 37)) - ); - - JDP_principal.add(ConsultaProduto); - ConsultaProduto.setBounds(630, 0, 730, 290); - - ConsultaCliente.setResizable(true); - ConsultaCliente.setVisible(true); - - BCancelarCC.setText("Cancelar"); - - BAlterarCC.setText("Alterar"); - - jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder("Consulta Cliente")); - - ConsultaClieneteC.setText("Consultar"); - - jCheckBox4.setText("Nome"); - - jCheckBox5.setText("Codigo"); - - jCheckBox6.setText("Sobrenome"); - - ConsultaTabela.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - {null, null, null, null, null, null, null, null, null}, - {null, null, null, null, null, null, null, null, null}, - {null, null, null, null, null, null, null, null, null}, - {null, null, null, null, null, null, null, null, null} - }, - new String [] { - "Codigo", "Nome", "Sobrenome", "RG", "CPF", "Data Nascimento", "Telefone", "Celular", "E-mail" - } - )); - jScrollPane4.setViewportView(ConsultaTabela); - - javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); - jPanel11.setLayout(jPanel11Layout); - jPanel11Layout.setHorizontalGroup( - jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jScrollPane4) - .addGroup(jPanel11Layout.createSequentialGroup() - .addComponent(jCheckBox5) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jCheckBox4) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jCheckBox6) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(ConsultaClientetxt, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(ConsultaClieneteC))) - .addGap(21, 21, 21)) - ); - jPanel11Layout.setVerticalGroup( - jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel11Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(ConsultaClientetxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(ConsultaClieneteC) - .addComponent(jCheckBox5) - .addComponent(jCheckBox4) - .addComponent(jCheckBox6)) - .addGap(18, 18, 18) - .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - - javax.swing.GroupLayout ConsultaClienteLayout = new javax.swing.GroupLayout(ConsultaCliente.getContentPane()); - ConsultaCliente.getContentPane().setLayout(ConsultaClienteLayout); - ConsultaClienteLayout.setHorizontalGroup( - ConsultaClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(ConsultaClienteLayout.createSequentialGroup() - .addGap(270, 270, 270) - .addComponent(BAlterarCC, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(BCancelarCC, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(270, 270, 270)) - .addGroup(ConsultaClienteLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addContainerGap()) - ); - ConsultaClienteLayout.setVerticalGroup( - ConsultaClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ConsultaClienteLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(ConsultaClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(BAlterarCC) - .addComponent(BCancelarCC)) - .addGap(37, 37, 37)) - ); - - JDP_principal.add(ConsultaCliente); - ConsultaCliente.setBounds(630, 0, 730, 290); - - Vendaprodutos.setResizable(true); - Vendaprodutos.setVisible(true); - - ExcluirVenda.setText("Excluir"); - - jButton9.setText("Cancelar"); - - GravarVenda.setText("Gravar"); - - javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); - jPanel6.setLayout(jPanel6Layout); - jPanel6Layout.setHorizontalGroup( - jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel6Layout.createSequentialGroup() - .addGap(75, 75, 75) - .addComponent(GravarVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 114, Short.MAX_VALUE) - .addComponent(ExcluirVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(101, 101, 101) - .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(36, 36, 36)) - ); - jPanel6Layout.setVerticalGroup( - jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel6Layout.createSequentialGroup() - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(ExcluirVenda) - .addComponent(jButton9) - .addComponent(GravarVenda)) - .addGap(23, 23, 23)) - ); - - jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Venda de Mercadoria")); - - jLabel34.setText("Codigo Mercadoria:"); - - jLabel35.setText("Nome:"); - - jLabel36.setText("Preco Venda:"); - - jLabel37.setText("Desconto:"); - - jLabel38.setText("Quantidade:"); - - jTextField5.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jTextField5ActionPerformed(evt); - } - }); - - jLabel39.setText("Marca:"); - - javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); - jPanel7.setLayout(jPanel7Layout); - jPanel7Layout.setHorizontalGroup( - jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel7Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(jPanel7Layout.createSequentialGroup() - .addComponent(jLabel36) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jTextField3)) - .addGroup(jPanel7Layout.createSequentialGroup() - .addGap(6, 6, 6) - .addComponent(jLabel35) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jTextField2)) - .addGroup(jPanel7Layout.createSequentialGroup() - .addComponent(jLabel34) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGap(61, 119, Short.MAX_VALUE) - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() - .addComponent(jLabel37) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() - .addComponent(jLabel38) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() - .addComponent(jLabel39) - .addGap(44, 44, 44) - .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGap(30, 30, 30)) - ); - jPanel7Layout.setVerticalGroup( - jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel7Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel34) - .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel39) - .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel7Layout.createSequentialGroup() - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel7Layout.createSequentialGroup() - .addComponent(jLabel35) - .addGap(0, 0, Short.MAX_VALUE)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() - .addGap(0, 0, Short.MAX_VALUE) - .addComponent(jLabel38) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))) - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel36) - .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addGroup(jPanel7Layout.createSequentialGroup() - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel37)) - .addContainerGap(24, Short.MAX_VALUE)))) - ); - - jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Carrinho de Compras")); - - jTable1.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - {null, null, null, null, null}, - {null, null, null, null, null}, - {null, null, null, null, null}, - {null, null, null, null, null} - }, - new String [] { - "Codigo Mercadoria", "Nome", "Marca", "Valor", "Quantidade" - } - )); - jScrollPane2.setViewportView(jTable1); - - javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); - jPanel8.setLayout(jPanel8Layout); - jPanel8Layout.setHorizontalGroup( - jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel8Layout.createSequentialGroup() - .addContainerGap() - .addComponent(jScrollPane2) - .addContainerGap()) - ); - jPanel8Layout.setVerticalGroup( - jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup() - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(341, 341, 341)) - ); - - jLabel43.setText("Valor Final:"); - - jTextField9.setEditable(false); - - jButton1.setText("Incluir"); - - jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados da Venda")); - - jLabel42.setText("Numero de Venda:"); - - jTextField6.setEditable(false); - - jLabel41.setText("Codigo Cliente:"); - - jTextField7.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jTextField7ActionPerformed(evt); - } - }); - - jLabel40.setText("Nome Cliente:"); - - jLabel44.setText("Data de Venda:"); - - jLabel45.setText("Tipo de Pagamento:"); - - jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dinheiro", "Cartao de Credito", "Cartao de Debito", "Check", "Boleto Bancario" })); - - javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); - jPanel9.setLayout(jPanel9Layout); - jPanel9Layout.setHorizontalGroup( - jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel9Layout.createSequentialGroup() - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(jPanel9Layout.createSequentialGroup() - .addComponent(jLabel42) - .addGap(26, 26, 26) - .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup() - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel41) - .addComponent(jLabel40)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE) - .addComponent(jTextField8)))) - .addGap(33, 33, 33) - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel45) - .addComponent(jLabel44)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(jTextField10) - .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(307, 307, 307)) - ); - jPanel9Layout.setVerticalGroup( - jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel9Layout.createSequentialGroup() - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel9Layout.createSequentialGroup() - .addComponent(jLabel42) - .addGap(18, 18, 18) - .addComponent(jLabel41) - .addGap(18, 18, 18) - .addComponent(jLabel40)) - .addGroup(jPanel9Layout.createSequentialGroup() - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addGroup(jPanel9Layout.createSequentialGroup() - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel44) - .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) - .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel45))) - .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) - .addGap(0, 14, Short.MAX_VALUE)) - ); - - javax.swing.GroupLayout VendaprodutosLayout = new javax.swing.GroupLayout(Vendaprodutos.getContentPane()); - Vendaprodutos.getContentPane().setLayout(VendaprodutosLayout); - VendaprodutosLayout.setHorizontalGroup( - VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(VendaprodutosLayout.createSequentialGroup() - .addGap(17, 17, 17) - .addGroup(VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(VendaprodutosLayout.createSequentialGroup() - .addGroup(VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGroup(VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(VendaprodutosLayout.createSequentialGroup() - .addComponent(jLabel43) - .addGap(32, 32, 32) - .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE))) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addGroup(VendaprodutosLayout.createSequentialGroup() - .addComponent(jButton1) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) - ); - VendaprodutosLayout.setVerticalGroup( - VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VendaprodutosLayout.createSequentialGroup() - .addGap(22, 22, 22) - .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jButton1) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE) - .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addGroup(VendaprodutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel43)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(62, 62, 62)) - ); - - JDP_principal.add(Vendaprodutos); - Vendaprodutos.setBounds(100, 0, 639, 683); - - CadastroProdutos.setResizable(true); - CadastroProdutos.setVisible(true); - - jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Cadastro Produtos")); - - jLabel23.setText("Codigo:"); - - jLabel24.setText("Nome:"); - - jLabel25.setText("Valor Unitario:"); - - jLabel26.setText("Valor Custo:"); - - jLabel27.setText("Data Compra:"); - - jLabel28.setText("Quantidade:"); - - jLabel29.setText("Descrição:"); - - jLabel30.setText("Marca:"); - - jLabel31.setText("Código de barras: "); - - Descricaotxt.setColumns(20); - Descricaotxt.setRows(5); - jScrollPane1.setViewportView(Descricaotxt); - - CodigoPtxt.setEditable(false); - - jLabel32.setText("Unidade:"); - - javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); - jPanel3.setLayout(jPanel3Layout); - jPanel3Layout.setHorizontalGroup( - jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel3Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jScrollPane1) - .addGroup(jPanel3Layout.createSequentialGroup() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel31) - .addComponent(jLabel23) - .addComponent(jLabel24) - .addComponent(jLabel30) - .addComponent(jLabel29)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(Marcatxt, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE) - .addComponent(NomePtxt) - .addComponent(CodigoPtxt) - .addComponent(CodigoBarratxt)) - .addGap(29, 29, 29) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel3Layout.createSequentialGroup() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel28) - .addComponent(jLabel32)) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel3Layout.createSequentialGroup() - .addGap(12, 12, 12) - .addComponent(Unidadetxt)) - .addGroup(jPanel3Layout.createSequentialGroup() - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(Quantidadetxt, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(0, 0, Short.MAX_VALUE)))) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jLabel27) - .addComponent(jLabel26) - .addComponent(jLabel25)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(ValorUnitxt, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE) - .addComponent(ValorCustotxt) - .addComponent(DataCompratxt)))))) - .addContainerGap()) - ); - jPanel3Layout.setVerticalGroup( - jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel3Layout.createSequentialGroup() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel3Layout.createSequentialGroup() - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel23) - .addComponent(jLabel27) - .addComponent(DataCompratxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGap(1, 1, 1)) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() - .addComponent(CodigoPtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel31) - .addComponent(jLabel26) - .addComponent(ValorCustotxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(CodigoBarratxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel24) - .addComponent(jLabel25) - .addComponent(ValorUnitxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(NomePtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel28) - .addComponent(Marcatxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(Quantidadetxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel30)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel29) - .addComponent(Unidadetxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(jLabel32)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - - BGravarP.setText("Gravar"); - - BExcluirP.setText("Excluir"); - - BAlterarP.setText("Alterar"); - - BCancelarP.setText("Cancelar"); - - javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); - jPanel5.setLayout(jPanel5Layout); - jPanel5Layout.setHorizontalGroup( - jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel5Layout.createSequentialGroup() - .addContainerGap() - .addComponent(BGravarP, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(69, 69, 69) - .addComponent(BExcluirP, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 150, Short.MAX_VALUE) - .addComponent(BAlterarP, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(60, 60, 60) - .addComponent(BCancelarP, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap()) - ); - jPanel5Layout.setVerticalGroup( - jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel5Layout.createSequentialGroup() - .addContainerGap() - .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(BGravarP) - .addComponent(BExcluirP) - .addComponent(BAlterarP) - .addComponent(BCancelarP)) - .addContainerGap(21, Short.MAX_VALUE)) - ); - - javax.swing.GroupLayout CadastroProdutosLayout = new javax.swing.GroupLayout(CadastroProdutos.getContentPane()); - CadastroProdutos.getContentPane().setLayout(CadastroProdutosLayout); - CadastroProdutosLayout.setHorizontalGroup( - CadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(CadastroProdutosLayout.createSequentialGroup() - .addContainerGap() - .addGroup(CadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) - .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addContainerGap(53, Short.MAX_VALUE)) - ); - CadastroProdutosLayout.setVerticalGroup( - CadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(CadastroProdutosLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(107, Short.MAX_VALUE)) - ); - - JDP_principal.add(CadastroProdutos); - CadastroProdutos.setBounds(200, 0, 736, 464); - - ContasReceber.setResizable(true); - ContasReceber.setVisible(true); - - jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder("Contas a Receber")); - - ContasRecebertabela.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null}, - {null, null, null, null, null, null} - }, - new String [] { - "Codigo", "Nome", "Situação", "Valor a receber", "Parcelas", "Valor recebido" - } - )); - jScrollPane5.setViewportView(ContasRecebertabela); - - BCContas.setText("Cancelar"); - BCContas.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - BCContasActionPerformed(evt); - } - }); - - jLabel47.setText("Consultar"); - - BConsultarCR.setText("Consultar"); - - NomeContasR.setText("Nome"); - - SobrenomeContasR.setText("Sobrenome"); - - CodigoContasR.setText("Codigo"); - - DataContasR.setText("Data"); - - javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); - jPanel13.setLayout(jPanel13Layout); - jPanel13Layout.setHorizontalGroup( - jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jScrollPane5) - .addGroup(jPanel13Layout.createSequentialGroup() - .addGap(19, 19, 19) - .addComponent(jLabel47) - .addGap(18, 18, 18) - .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel13Layout.createSequentialGroup() - .addComponent(CodigoContasR) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(NomeContasR) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(SobrenomeContasR) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(DataContasR) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(BCContas, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addGroup(jPanel13Layout.createSequentialGroup() - .addComponent(ContasRecebertxt, javax.swing.GroupLayout.PREFERRED_SIZE, 486, javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(BConsultarCR) - .addGap(0, 0, Short.MAX_VALUE))) - .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - ); - jPanel13Layout.setVerticalGroup( - jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel13Layout.createSequentialGroup() - .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(jLabel47) - .addComponent(ContasRecebertxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(BConsultarCR)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) - .addComponent(NomeContasR) - .addComponent(SobrenomeContasR) - .addComponent(CodigoContasR) - .addComponent(DataContasR)) - .addComponent(BCContas)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE) - .addContainerGap()) - ); - - javax.swing.GroupLayout ContasReceberLayout = new javax.swing.GroupLayout(ContasReceber.getContentPane()); - ContasReceber.getContentPane().setLayout(ContasReceberLayout); - ContasReceberLayout.setHorizontalGroup( - ContasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(ContasReceberLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGap(25, 25, 25)) - ); - ContasReceberLayout.setVerticalGroup( - ContasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(ContasReceberLayout.createSequentialGroup() - .addContainerGap() - .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addContainerGap(79, Short.MAX_VALUE)) - ); - - JDP_principal.add(ContasReceber); - ContasReceber.setBounds(700, 150, 731, 461); - - getContentPane().add(JDP_principal); - JDP_principal.setBounds(0, 0, 3170, 1080); - - CadastroMenu.setText("Cadastro"); - CadastroMenu.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - CadastroMenuActionPerformed(evt); - } - }); - - CadastrarClienteMenu.setText("Cadastrar cliente"); - CadastrarClienteMenu.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - CadastrarClienteMenuActionPerformed(evt); - } - }); - CadastroMenu.add(CadastrarClienteMenu); - - CadProduto.setText("Cadastrar produto"); - CadProduto.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - CadProdutoActionPerformed(evt); - } - }); - CadastroMenu.add(CadProduto); - - jMenuBar_TOP.add(CadastroMenu); - - jMenu2.setText("Consultar"); - - ConCliente.setText("Consultar cliente"); - ConCliente.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - ConClienteActionPerformed(evt); - } - }); - jMenu2.add(ConCliente); - - ConProdutoM.setText("Consultar produto"); - ConProdutoM.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - ConProdutoMActionPerformed(evt); - } - }); - jMenu2.add(ConProdutoM); - - jMenuBar_TOP.add(jMenu2); - - MVendas.setText("Vendas"); - MVendas.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - MVendasActionPerformed(evt); - } - }); - - VendaMercadoriaaM.setText("Venda de Mercadoria"); - VendaMercadoriaaM.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - VendaMercadoriaaMActionPerformed(evt); - } - }); - MVendas.add(VendaMercadoriaaM); - - jMenuBar_TOP.add(MVendas); - - jMenu3.setText("Financeiro"); - - FinContasReceber.setText("Contas a receber"); - FinContasReceber.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - FinContasReceberActionPerformed(evt); - } - }); - jMenu3.add(FinContasReceber); - - jMenuBar_TOP.add(jMenu3); - - jMenu4.setText("Ajuda"); - - jMenuItem8.setText("Sobre"); - jMenu4.add(jMenuItem8); - - jMenuItem9.setText("Suporte"); - jMenu4.add(jMenuItem9); - - jMenuBar_TOP.add(jMenu4); - - setJMenuBar(jMenuBar_TOP); - - bindingGroup.bind(); - - pack(); - }// </editor-fold>//GEN-END:initComponents - - private void BCContasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BCContasActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_BCContasActionPerformed - - private void CadastrarClienteMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastrarClienteMenuActionPerformed - CadastroCliente.setVisible(true); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(false); - ConsultaCliente.setVisible(false); - ConsultaProduto.setVisible(false); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - }//GEN-LAST:event_CadastrarClienteMenuActionPerformed - - private void SexotxtActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SexotxtActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_SexotxtActionPerformed - - private void BGravarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BGravarActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_BGravarActionPerformed - - private void CadastroMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastroMenuActionPerformed - - - - }//GEN-LAST:event_CadastroMenuActionPerformed - - private void CadProdutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadProdutoActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(true); - Vendaprodutos.setVisible(false); - ConsultaCliente.setVisible(false); - ConsultaProduto.setVisible(false); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - }//GEN-LAST:event_CadProdutoActionPerformed - - private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField5ActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jTextField5ActionPerformed - - private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField7ActionPerformed - // TODO add your handling code here: - }//GEN-LAST:event_jTextField7ActionPerformed - - private void MVendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MVendasActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(true); - ConsultaCliente.setVisible(false); - ConsultaProduto.setVisible(false); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - }//GEN-LAST:event_MVendasActionPerformed - - private void ConProdutoMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConProdutoMActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(false); - ConsultaCliente.setVisible(false); - ConsultaProduto.setVisible(true); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - }//GEN-LAST:event_ConProdutoMActionPerformed - - private void VendaMercadoriaaMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VendaMercadoriaaMActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(true); - ConsultaCliente.setVisible(false); - ConsultaProduto.setVisible(false); - ContasReceber.setVisible(false); - ContasReceber.setVisible(false); - }//GEN-LAST:event_VendaMercadoriaaMActionPerformed - - private void ConClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConClienteActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(false); - ConsultaProduto.setVisible(false); - ConsultaCliente.setVisible(true); - ContasReceber.setVisible(false); - }//GEN-LAST:event_ConClienteActionPerformed - - private void FinContasReceberActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FinContasReceberActionPerformed - CadastroCliente.setVisible(false); - CadastroProdutos.setVisible(false); - Vendaprodutos.setVisible(false); - ConsultaProduto.setVisible(false); - ConsultaCliente.setVisible(false); - ContasReceber.setVisible(true); - }//GEN-LAST:event_FinContasReceberActionPerformed - - /** - * @param args the command line arguments - */ - public static void main(String args[]) { - /* Set the Nimbus look and feel */ - //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> - /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. - * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html - */ - try { - for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { - if ("Nimbus".equals(info.getName())) { - javax.swing.UIManager.setLookAndFeel(info.getClassName()); - break; - } - } - } catch (ClassNotFoundException ex) { - java.util.logging.Logger.getLogger(frmPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (InstantiationException ex) { - java.util.logging.Logger.getLogger(frmPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (IllegalAccessException ex) { - java.util.logging.Logger.getLogger(frmPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } catch (javax.swing.UnsupportedLookAndFeelException ex) { - java.util.logging.Logger.getLogger(frmPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); - } - //</editor-fold> - - /* Create and display the form */ - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - new frmPrincipal().setVisible(true); - } - }); - } - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JButton BAlterar; - private javax.swing.JButton BAlterarCC; - private javax.swing.JButton BAlterarP; - private javax.swing.JButton BCContas; - private javax.swing.JButton BCancelar; - private javax.swing.JButton BCancelarCC; - private javax.swing.JButton BCancelarP; - private javax.swing.JButton BConsultarCR; - private javax.swing.JButton BExcluir; - private javax.swing.JButton BExcluirP; - private javax.swing.JButton BGravar; - private javax.swing.JButton BGravarP; - private javax.swing.JTextField Bairrotxt; - private javax.swing.JTextField CEPtxt; - private javax.swing.JTextField CPFtxt; - private javax.swing.JMenuItem CadProduto; - private javax.swing.JMenuItem CadastrarClienteMenu; - private javax.swing.JInternalFrame CadastroCliente; - private javax.swing.JMenu CadastroMenu; - private javax.swing.JInternalFrame CadastroProdutos; - private javax.swing.JTextField Celulartxt; - private javax.swing.JTextField Cidadetxt; - private javax.swing.JTextField CodigoBarratxt; - private javax.swing.JCheckBox CodigoContasR; - private javax.swing.JTextField CodigoPtxt; - private javax.swing.JTextField Codigotxt; - private javax.swing.JTextField Complementotxt; - private javax.swing.JMenuItem ConCliente; - private javax.swing.JMenuItem ConProdutoM; - private javax.swing.JToggleButton ConsultaClieneteC; - private javax.swing.JInternalFrame ConsultaCliente; - private javax.swing.JTextField ConsultaClientetxt; - private javax.swing.JInternalFrame ConsultaProduto; - private javax.swing.JTable ConsultaTabela; - private javax.swing.JInternalFrame ContasReceber; - private javax.swing.JTable ContasRecebertabela; - private javax.swing.JTextField ContasRecebertxt; - private javax.swing.JTextField DataCadastrotxt; - private javax.swing.JTextField DataCompratxt; - private javax.swing.JCheckBox DataContasR; - private javax.swing.JTextField DataNacimentotxt; - private javax.swing.JTextArea Descricaotxt; - private javax.swing.JTextField Emailtxt; - private javax.swing.JTextField Enderecotxt; - private javax.swing.JComboBox EstadoCiviltxt; - private javax.swing.JButton ExcluirVenda; - private javax.swing.JMenuItem FinContasReceber; - private javax.swing.JButton GravarVenda; - private javax.swing.JDesktopPane JDP_principal; - private javax.swing.JTextField Logadourotxt; - private javax.swing.JMenu MVendas; - private javax.swing.JTextField Marcatxt; - private javax.swing.JCheckBox NomeContasR; - private javax.swing.JTextField NomePtxt; - private javax.swing.JTextField Nometxt; - private javax.swing.JTextField Numerotxt; - private javax.swing.JTextField Paistxt; - private javax.swing.JSpinner Quantidadetxt; - private javax.swing.JTextField RGtxt; - private javax.swing.JTextField Referenciatxt; - private javax.swing.JComboBox Sexotxt; - private javax.swing.JCheckBox SobrenomeContasR; - private javax.swing.JTextField Sobrenometxt; - private javax.swing.JComboBox UFtxt; - private javax.swing.JTextField Unidadetxt; - private javax.swing.JTextField ValorCustotxt; - private javax.swing.JTextField ValorUnitxt; - private javax.swing.JMenuItem VendaMercadoriaaM; - private javax.swing.JInternalFrame Vendaprodutos; - private javax.swing.JButton jButton1; - private javax.swing.JButton jButton3; - private javax.swing.JButton jButton8; - private javax.swing.JButton jButton9; - private javax.swing.JCheckBox jCheckBox1; - private javax.swing.JCheckBox jCheckBox2; - private javax.swing.JCheckBox jCheckBox3; - private javax.swing.JCheckBox jCheckBox4; - private javax.swing.JCheckBox jCheckBox5; - private javax.swing.JCheckBox jCheckBox6; - private javax.swing.JComboBox jComboBox1; - private javax.swing.JLabel jLabel1; - private javax.swing.JLabel jLabel10; - private javax.swing.JLabel jLabel11; - private javax.swing.JLabel jLabel12; - private javax.swing.JLabel jLabel13; - private javax.swing.JLabel jLabel14; - private javax.swing.JLabel jLabel15; - private javax.swing.JLabel jLabel16; - private javax.swing.JLabel jLabel17; - private javax.swing.JLabel jLabel18; - private javax.swing.JLabel jLabel19; - private javax.swing.JLabel jLabel2; - private javax.swing.JLabel jLabel20; - private javax.swing.JLabel jLabel21; - private javax.swing.JLabel jLabel22; - private javax.swing.JLabel jLabel23; - private javax.swing.JLabel jLabel24; - private javax.swing.JLabel jLabel25; - private javax.swing.JLabel jLabel26; - private javax.swing.JLabel jLabel27; - private javax.swing.JLabel jLabel28; - private javax.swing.JLabel jLabel29; - private javax.swing.JLabel jLabel3; - private javax.swing.JLabel jLabel30; - private javax.swing.JLabel jLabel31; - private javax.swing.JLabel jLabel32; - private javax.swing.JLabel jLabel33; - private javax.swing.JLabel jLabel34; - private javax.swing.JLabel jLabel35; - private javax.swing.JLabel jLabel36; - private javax.swing.JLabel jLabel37; - private javax.swing.JLabel jLabel38; - private javax.swing.JLabel jLabel39; - private javax.swing.JLabel jLabel4; - private javax.swing.JLabel jLabel40; - private javax.swing.JLabel jLabel41; - private javax.swing.JLabel jLabel42; - private javax.swing.JLabel jLabel43; - private javax.swing.JLabel jLabel44; - private javax.swing.JLabel jLabel45; - private javax.swing.JLabel jLabel47; - private javax.swing.JLabel jLabel5; - private javax.swing.JLabel jLabel6; - private javax.swing.JLabel jLabel7; - private javax.swing.JLabel jLabel8; - private javax.swing.JLabel jLabel9; - private javax.swing.JMenu jMenu2; - private javax.swing.JMenu jMenu3; - private javax.swing.JMenu jMenu4; - private javax.swing.JMenuBar jMenuBar_TOP; - private javax.swing.JMenuItem jMenuItem7; - private javax.swing.JMenuItem jMenuItem8; - private javax.swing.JMenuItem jMenuItem9; - private javax.swing.JPanel jPanel1; - private javax.swing.JPanel jPanel10; - private javax.swing.JPanel jPanel11; - private javax.swing.JPanel jPanel13; - private javax.swing.JPanel jPanel2; - private javax.swing.JPanel jPanel3; - private javax.swing.JPanel jPanel4; - private javax.swing.JPanel jPanel5; - private javax.swing.JPanel jPanel6; - private javax.swing.JPanel jPanel7; - private javax.swing.JPanel jPanel8; - private javax.swing.JPanel jPanel9; - private javax.swing.JScrollPane jScrollPane1; - private javax.swing.JScrollPane jScrollPane2; - private javax.swing.JScrollPane jScrollPane3; - private javax.swing.JScrollPane jScrollPane4; - private javax.swing.JScrollPane jScrollPane5; - private javax.swing.JSpinner jSpinner1; - private javax.swing.JTable jTable1; - private javax.swing.JTable jTable2; - private javax.swing.JTextField jTextField1; - private javax.swing.JTextField jTextField10; - private javax.swing.JTextField jTextField11; - private javax.swing.JTextField jTextField2; - private javax.swing.JTextField jTextField3; - private javax.swing.JTextField jTextField4; - private javax.swing.JTextField jTextField5; - private javax.swing.JTextField jTextField6; - private javax.swing.JTextField jTextField7; - private javax.swing.JTextField jTextField8; - private javax.swing.JTextField jTextField9; - private javax.swing.JToggleButton jToggleButton1; - private javax.swing.JTextField telefonetxt; - private org.jdesktop.beansbinding.BindingGroup bindingGroup; - // End of variables declaration//GEN-END:variables -} diff --git a/LojaInstrumentos/src/listener/AlteraClienteListener.java b/LojaInstrumentos/src/listener/AlteraClienteListener.java index 1c0786f..a2e63a7 100644 --- a/LojaInstrumentos/src/listener/AlteraClienteListener.java +++ b/LojaInstrumentos/src/listener/AlteraClienteListener.java @@ -21,35 +21,35 @@ public class AlteraClienteListener extends javax.swing.JFrame implements ActionL private AlteraCliente frame; private LojaUltimo LU; private Log LLog; - public AlteraClienteListener(AlteraCliente frame) throws IOException { + public AlteraClienteListener(AlteraCliente frame) { this.frame=frame; - this.LU.Ultimo(); - this.LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", ""); + + } @Override public void actionPerformed(ActionEvent e) { if("gravar".equals(e.getActionCommand())){ try { - this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); + LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); } catch (IOException ex) { Logger.getLogger(AlteraClienteListener.class.getName()).log(Level.SEVERE, null, ex); } }else if("cancelar".equals(e.getActionCommand())){ try { - this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); + LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); } catch (IOException ex) { Logger.getLogger(AlteraClienteListener.class.getName()).log(Level.SEVERE, null, ex); } }else if("excluir".equals(e.getActionCommand())){ try { - this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); + LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); } catch (IOException ex) { Logger.getLogger(AlteraClienteListener.class.getName()).log(Level.SEVERE, null, ex); } }else if("localizar".equals(e.getActionCommand())){ try { - this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); + LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); } catch (IOException ex) { Logger.getLogger(AlteraClienteListener.class.getName()).log(Level.SEVERE, null, ex); } diff --git a/LojaInstrumentos/src/listener/AlteraProdutoListener.java b/LojaInstrumentos/src/listener/AlteraProdutoListener.java new file mode 100644 index 0000000..0e4494b --- /dev/null +++ b/LojaInstrumentos/src/listener/AlteraProdutoListener.java @@ -0,0 +1,58 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package listener; + +import autentica.LojaUltimo; +import database.Log; +import exception.ExceptionLoja; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import telas.jinternalframe.AlteraProduto; + + +public class AlteraProdutoListener extends javax.swing.JFrame implements ActionListener{ + private AlteraProduto frame; + private LojaUltimo LU; + private Log LLog; + public AlteraProdutoListener(AlteraProduto frame) { + this.frame=frame; + + } + + @Override + public void actionPerformed(ActionEvent e) { + if("gravar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Gravar Dados"); + } catch (IOException ex) { + Logger.getLogger(AlteraProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("cancelar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Cancelar"); + } catch (IOException ex) { + Logger.getLogger(AlteraProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("excluir".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Exluir"); + } catch (IOException ex) { + Logger.getLogger(AlteraProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("localizar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Localizar"); + } catch (IOException ex) { + Logger.getLogger(AlteraProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + } + } + + +} diff --git a/LojaInstrumentos/src/listener/AlteraUsuarioListener.java b/LojaInstrumentos/src/listener/AlteraUsuarioListener.java index 0e102a1..75ce055 100644 --- a/LojaInstrumentos/src/listener/AlteraUsuarioListener.java +++ b/LojaInstrumentos/src/listener/AlteraUsuarioListener.java @@ -16,10 +16,9 @@ public class AlteraUsuarioListener extends javax.swing.JFrame implements ActionL private AlteraUsuario frame; private LojaUltimo LU; private Log LLog; - public AlteraUsuarioListener(AlteraUsuario frame) throws IOException { + public AlteraUsuarioListener(AlteraUsuario frame) { this.frame=frame; - this.LU.Ultimo(); - this.LLog.GravarLog(LU.Ultimo(), "", "Alterar Usuario", ""); + } @Override diff --git a/LojaInstrumentos/src/listener/ClienteListener.java b/LojaInstrumentos/src/listener/ClienteListener.java index 35706ea..f908173 100644 --- a/LojaInstrumentos/src/listener/ClienteListener.java +++ b/LojaInstrumentos/src/listener/ClienteListener.java @@ -43,10 +43,9 @@ public class ClienteListener extends javax.swing.JFrame implements ActionListene private String Referencia ; private LojaUltimo LU; private Log LLog; - public ClienteListener(CadastroCliente frame) throws IOException { + public ClienteListener(CadastroCliente frame) { this.frame = frame; - this.LU.Ultimo(); - this.LLog.GravarLog(LU.Ultimo(), "", "Cadastro de Cliente", ""); + } diff --git a/LojaInstrumentos/src/listener/ConsultaClienteListener.java b/LojaInstrumentos/src/listener/ConsultaClienteListener.java new file mode 100644 index 0000000..91cb256 --- /dev/null +++ b/LojaInstrumentos/src/listener/ConsultaClienteListener.java @@ -0,0 +1,52 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package listener; + +import autentica.LojaUltimo; +import database.Log; +import exception.ExceptionLoja; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import telas.jinternalframe.ConsultaCliente; + + +public class ConsultaClienteListener extends javax.swing.JFrame implements ActionListener{ + private ConsultaCliente frame; + private LojaUltimo LU; + private Log LLog; + public ConsultaClienteListener(ConsultaCliente frame) { + this.frame=frame; + + } + + @Override + public void actionPerformed(ActionEvent e) { + if("consultar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Consulta Cliente", "Consultar Dados"); + } catch (IOException ex) { + Logger.getLogger(ConsultaClienteListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("cancelar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Cancelar"); + } catch (IOException ex) { + Logger.getLogger(ConsultaClienteListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("alterar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Alterar Usuario", "Alterar Dados"); + } catch (IOException ex) { + Logger.getLogger(ConsultaClienteListener.class.getName()).log(Level.SEVERE, null, ex); + } + } + } + public void GetCliente()throws ExceptionLoja{} + public void SetTelas()throws ExceptionLoja{} +} diff --git a/LojaInstrumentos/src/listener/ConsultaProdutoListener.java b/LojaInstrumentos/src/listener/ConsultaProdutoListener.java new file mode 100644 index 0000000..77ee004 --- /dev/null +++ b/LojaInstrumentos/src/listener/ConsultaProdutoListener.java @@ -0,0 +1,52 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package listener; + +import autentica.LojaUltimo; +import database.Log; +import exception.ExceptionLoja; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import telas.jinternalframe.ConsultaProduto; + + +public class ConsultaProdutoListener extends javax.swing.JFrame implements ActionListener{ + private ConsultaProduto frame; + private LojaUltimo LU; + private Log LLog; + public ConsultaProdutoListener(ConsultaProduto frame) { + this.frame=frame; + + } + + @Override + public void actionPerformed(ActionEvent e) { + if("consultar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Consulta Produtos", "Gravar Dados"); + } catch (IOException ex) { + Logger.getLogger(ConsultaProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("cancelar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Consulta Produtos", "Cancelar"); + } catch (IOException ex) { + Logger.getLogger(ConsultaProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + }else if("alterar".equals(e.getActionCommand())){ + try { + this.LLog.GravarLog(this.LU.Ultimo(), "", "Consulta Produtos", "Alterar Dados"); + } catch (IOException ex) { + Logger.getLogger(ConsultaProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + } + } + public void GetProduto()throws ExceptionLoja{} + public void SetTela()throws ExceptionLoja{} +} diff --git a/LojaInstrumentos/src/listener/ConsultaVendasListener.java b/LojaInstrumentos/src/listener/ConsultaVendasListener.java index cff7532..08d4363 100644 --- a/LojaInstrumentos/src/listener/ConsultaVendasListener.java +++ b/LojaInstrumentos/src/listener/ConsultaVendasListener.java @@ -20,10 +20,9 @@ public class ConsultaVendasListener extends javax.swing.JFrame implements Action private ConsultaVendas frame; private LojaUltimo LU; private Log LLog; - public ConsultaVendasListener(ConsultaVendas frame) throws IOException { + public ConsultaVendasListener(ConsultaVendas frame) { this.frame=frame; - this.LU.Ultimo(); - this.LLog.GravarLog(LU.Ultimo(), "", "Consulta Vendas", ""); + } @Override diff --git a/LojaInstrumentos/src/listener/FrmPrincipalListener.java b/LojaInstrumentos/src/listener/FrmPrincipalListener.java new file mode 100644 index 0000000..3c118fb --- /dev/null +++ b/LojaInstrumentos/src/listener/FrmPrincipalListener.java @@ -0,0 +1,88 @@ + +package listener; +import autentica.LojaUltimo; +import database.Log; +import exception.ExceptionLoja; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import javax.swing.JOptionPane; +import telas.FrmPrincipal; +import telas.jinternalframe.*; +public class FrmPrincipalListener extends javax.swing.JFrame implements ActionListener{ + private CadastroCliente CADCliente = new CadastroCliente(); + private CadastroProduto CADProduto = new CadastroProduto(); + private CadastroUsuario CADUsuario = new CadastroUsuario(); + private FrmPrincipal frame; + private LojaUltimo LU; + private Log LLog; + + public FrmPrincipalListener(FrmPrincipal frame){ + //adicionar exception + this.frame=frame; + + } + + + + @Override + public void actionPerformed(ActionEvent e) { + //adicionar exception + + if ("sobre".equals(e.getActionCommand())){ + JOptionPane.showMessageDialog(frame, "Desenvolvido por \nDioni Machado Ferreira\nMauricio Citadini Biléssimo\nSilvio Polli Ghedin"); + }else if("cadastrarcliente".equals(e.getActionCommand())){ + this.frame.getJDP_principal().remove(CADUsuario); + this.frame.getJDP_principal().remove(CADCliente); + this.frame.getJDP_principal().remove(CADProduto); + this.frame.getJDP_principal().updateUI(); + this.frame.getJDP_principal().add(CADCliente); + this.frame.getJDP_principal().remove(this); + CADCliente.setVisible(true); + CADUsuario.setVisible(false); + CADProduto.setVisible(false); + //fazer funcao pra setar osdemais frames com visibilidade como false + }else if("cadastrarusuario".equals(e.getActionCommand())){ + this.frame.getJDP_principal().remove(CADUsuario); + this.frame.getJDP_principal().remove(CADCliente); + this.frame.getJDP_principal().remove(CADProduto); + this.frame.getJDP_principal().updateUI(); + this.frame.getJDP_principal().add(CADUsuario); + CADUsuario.setVisible(true); + CADCliente.setVisible(false); + CADProduto.setVisible(false); + //fazer funcao pra setar osdemais frames com visibilidade como false + }else if("cadastrarproduto".equals(e.getActionCommand())){ + this.frame.getJDP_principal().remove(CADUsuario); + this.frame.getJDP_principal().remove(CADCliente); + this.frame.getJDP_principal().remove(CADProduto); + this.frame.getJDP_principal().updateUI(); + this.frame.getJDP_principal().add(CADProduto); + CADProduto.setVisible(true); + CADCliente.setVisible(false); + CADUsuario.setVisible(false); + //fazer funcao pra setar osdemais frames com visibilidade como false + + }else if("alterarcliente".equals(e.getActionCommand())){ + + }else if("alterarusuariosenha".equals(e.getActionCommand())){ + + }else if("alterarproduto".equals(e.getActionCommand())){ + + }else if("consultarcliente".equals(e.getActionCommand())){ + + }else if("consultarproduto".equals(e.getActionCommand())){ + + }else if("consultarvendas".equals(e.getActionCommand())){ + + }else if("vendamercadoria".equals(e.getActionCommand())){ + + }else if("contasreceber".equals(e.getActionCommand())){ + + } + + } + + + + +} diff --git a/LojaInstrumentos/src/listener/ProdutoListener.java b/LojaInstrumentos/src/listener/ProdutoListener.java new file mode 100644 index 0000000..1d8a5f7 --- /dev/null +++ b/LojaInstrumentos/src/listener/ProdutoListener.java @@ -0,0 +1,240 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package listener; +import autentica.LojaUltimo; +import database.Log; +import exception.ExceptionLoja; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.logging.Level; +import java.util.logging.Logger; +import telas.jinternalframe.CadastroProduto; +import javax.swing.JOptionPane; + +public class ProdutoListener extends javax.swing.JFrame implements ActionListener { + + private CadastroProduto frame; + private int Codigo ; + private String Nome ; + private String Marca ; + private String Modelo ; + private String DataCompra ; + private String Descricao ; + private int QTD ; + private BigDecimal ValorCusto ; + private BigDecimal ValorUnitario ; +private LojaUltimo LU; + private Log LLog; + public ProdutoListener(CadastroProduto frame) { + //adicionar exception + this.frame = frame; + + } + + @Override + public void actionPerformed(ActionEvent e) { + //adicionar exception + if ("gravar".equals(e.getActionCommand())) { + try { + SetCampos(); + } catch (ExceptionLoja ex) { + Logger.getLogger(ProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + try { + if (GravarBanco()==true){ + JOptionPane.showMessageDialog(this, "Gravado com sucesso"); + + }else{ + JOptionPane.showMessageDialog(this, "Erro ao gravar no banco"); + } + } catch (ExceptionLoja ex) { + Logger.getLogger(ProdutoListener.class.getName()).log(Level.SEVERE, null, ex); + } + } else if ("cancelar".equals(e.getActionCommand())) { + + } + } + + public boolean GravarBanco() throws ExceptionLoja{ + //adicionar exception + System.out.println("\nProdutos\n"); + System.out.println(this.getCodigo()); + System.out.println(this.getNome()); + System.out.println(this.getMarca()); + System.out.println(this.getModelo()); + System.out.println(this.getDataCompra()); + System.out.println(this.getDescricao()); + System.out.println(this.getQTD()); + System.out.println(this.getValorCusto()); + System.out.println(this.getValorUnitario()+"\n\n"); + return true; + } + public void SetCampos()throws ExceptionLoja{ + //adicionar exception + this.setCodigo(123); + this.setNome(this.frame.getTXTNome().getText()); + this.setMarca(this.frame.getTXTMarca().getText()); + this.setModelo(this.frame.getTXTModelo().getText()); + this.setDataCompra(new SimpleDateFormat("yyyy/MM/dd").toString()); + this.setDescricao(this.frame.getTXTDescricao().getText()); + this.setQTD((int) this.frame.getTXTQuantidade().getValue()); + this.setValorCusto(new BigDecimal(this.frame.getTXTValorCusto().getText())); + this.setValorUnitario(new BigDecimal(this.frame.getTXTValorUnitario().getText())); + /* + + private int Codigo = Integer.valueOf(this.frame.getTXTCodigo().getText()); + private String Nome = this.frame.getTXTNome().getText().toString(); + private String Marca = this.frame.getTXTMarca().getText().toString(); + private String Modelo = this.frame.getTXTModelo().getText().toString(); + private String DataCompra = this.frame.getTXTDataCompra().getText().toString(); + private String Descricao = this.frame.getTXTDescricao().getText().toString(); + private int QTD = (int) this.frame.getTXTQuantidade().getValue(); + private BigDecimal ValorCusto = new BigDecimal(this.frame.getTXTValorCusto().getText().toString()); + private BigDecimal ValorUnitario = new BigDecimal(this.frame.getTXTValorUnitario().getText().toString()); + */ + } + /** + * @return the frame + */ + public CadastroProduto getFrame() { + return frame; + } + + /** + * @param frame the frame to set + */ + public void setFrame(CadastroProduto frame) { + this.frame = frame; + } + + /** + * @return the Codigo + */ + public int getCodigo() { + return Codigo; + } + + /** + * @param Codigo the Codigo to set + */ + public void setCodigo(int Codigo) { + this.Codigo = Codigo; + } + + /** + * @return the Nome + */ + public String getNome() { + return Nome; + } + + /** + * @param Nome the Nome to set + */ + public void setNome(String Nome) { + this.Nome = Nome; + } + + /** + * @return the Marca + */ + public String getMarca() { + return Marca; + } + + /** + * @param Marca the Marca to set + */ + public void setMarca(String Marca) { + this.Marca = Marca; + } + + /** + * @return the Modelo + */ + public String getModelo() { + return Modelo; + } + + /** + * @param Modelo the Modelo to set + */ + public void setModelo(String Modelo) { + this.Modelo = Modelo; + } + + /** + * @return the DataCompra + */ + public String getDataCompra() { + return DataCompra; + } + + /** + * @param DataCompra the DataCompra to set + */ + public void setDataCompra(String DataCompra) { + this.DataCompra = DataCompra; + } + + /** + * @return the Descricao + */ + public String getDescricao() { + return Descricao; + } + + /** + * @param Descricao the Descricao to set + */ + public void setDescricao(String Descricao) { + this.Descricao = Descricao; + } + + /** + * @return the QTD + */ + public int getQTD() { + return QTD; + } + + /** + * @param QTD the QTD to set + */ + public void setQTD(int QTD) { + this.QTD = QTD; + } + + /** + * @return the ValorCusto + */ + public BigDecimal getValorCusto() { + return ValorCusto; + } + + /** + * @param ValorCusto the ValorCusto to set + */ + public void setValorCusto(BigDecimal ValorCusto) { + this.ValorCusto = ValorCusto; + } + + /** + * @return the ValorUnitario + */ + public BigDecimal getValorUnitario() { + return ValorUnitario; + } + + /** + * @param ValorUnitario the ValorUnitario to set + */ + public void setValorUnitario(BigDecimal ValorUnitario) { + this.ValorUnitario = ValorUnitario; + } +} diff --git a/LojaInstrumentos/src/produtos/Produtos.java b/LojaInstrumentos/src/produtos/Produtos.java new file mode 100644 index 0000000..805728e --- /dev/null +++ b/LojaInstrumentos/src/produtos/Produtos.java @@ -0,0 +1,179 @@ + +package produtos; +import java.util.Objects; +import java.math.BigDecimal; + +public class Produtos implements Comparable<Produtos>{ + private int Codigo; + private int QTD; + private BigDecimal ValorCusto; + private BigDecimal ValorUnitario; + private String Nome; + private String Marca; + private String Modelo; + private String Descricao; + private String DataCompra; + + public Produtos(){ + + } + public Produtos(int Codigo,int QTD,BigDecimal ValorCusto, BigDecimal ValorUnitario, + String Nome, String Marca, String Modelo, String Descricao, String DataCompra){ + + this.Codigo=Codigo; + this.DataCompra=DataCompra; + this.Descricao=Descricao; + this.Marca=Marca; + this.Modelo=Modelo; + this.Nome=Nome; + this.QTD=QTD; + this.ValorCusto=ValorCusto; + this.ValorUnitario=ValorUnitario; + } + + /** + * @return the Codigo + */ + public int getCodigo() { + return Codigo; + } + + /** + * @param Codigo the Codigo to set + */ + public void setCodigo(int Codigo) { + this.Codigo = Codigo; + } + + /** + * @return the QTD + */ + public int getQTD() { + return QTD; + } + + /** + * @param QTD the QTD to set + */ + public void setQTD(int QTD) { + this.QTD = QTD; + } + + /** + * @return the ValorCusto + */ + public BigDecimal getValorCusto() { + return ValorCusto; + } + + /** + * @param ValorCusto the ValorCusto to set + */ + public void setValorCusto(BigDecimal ValorCusto) { + this.ValorCusto = ValorCusto; + } + + /** + * @return the ValorUnitario + */ + public BigDecimal getValorUnitario() { + return ValorUnitario; + } + + /** + * @param ValorUnitario the ValorUnitario to set + */ + public void setValorUnitario(BigDecimal ValorUnitario) { + this.ValorUnitario = ValorUnitario; + } + + /** + * @return the Nome + */ + public String getNome() { + return Nome; + } + + /** + * @param Nome the Nome to set + */ + public void setNome(String Nome) { + this.Nome = Nome; + } + + /** + * @return the Marca + */ + public String getMarca() { + return Marca; + } + + /** + * @param Marca the Marca to set + */ + public void setMarca(String Marca) { + this.Marca = Marca; + } + + /** + * @return the Modelo + */ + public String getModelo() { + return Modelo; + } + + /** + * @param Modelo the Modelo to set + */ + public void setModelo(String Modelo) { + this.Modelo = Modelo; + } + + /** + * @return the Descricao + */ + public String getDescricao() { + return Descricao; + } + + /** + * @param Descricao the Descricao to set + */ + public void setDescricao(String Descricao) { + this.Descricao = Descricao; + } + + /** + * @return the DataCompra + */ + public String getDataCompra() { + return DataCompra; + } + + /** + * @param DataCompra the DataCompra to set + */ + public void setDataCompra(String DataCompra) { + this.DataCompra = DataCompra; + } + + public boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final Produtos other = (Produtos) obj; + if (this.Codigo != other.Codigo) { + return false; + } + return true; + } + + + @Override + public int compareTo(Produtos o) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } +} \ No newline at end of file diff --git a/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.form b/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.form new file mode 100644 index 0000000..04845df --- /dev/null +++ b/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.form @@ -0,0 +1,589 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JInternalFrameFormInfo"> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + </AuxValues> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="PainelCadastroProdutos" min="-2" max="-2" attributes="0"/> + <EmptySpace min="0" pref="14" max="32767" attributes="0"/> + </Group> + <Component id="PainelLocalizar" alignment="0" pref="667" max="32767" attributes="0"/> + <Component id="PainelTabela" alignment="0" max="32767" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="PainelLocalizar" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" max="-2" attributes="0"/> + <Component id="PainelTabela" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="PainelCadastroProdutos" min="-2" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="PainelCadastroProdutos"> + <Properties> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> + <TitledBorder title="Alterar Produtos"> + <ResourceString PropertyName="titleX" bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.PainelCadastroProdutos.border.title" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </TitledBorder> + </Border> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Component id="PainelBotoes" min="-2" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Component id="PTXTDescricao" alignment="0" max="32767" attributes="0"/> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Component id="LDescricao" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="227" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="LCodigo" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="LNome" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="LMarca" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="LModelo" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="32767" attributes="0"/> + <Component id="PainelCamposdados1" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="PainelCamposdados2" max="32767" attributes="0"/> + </Group> + </Group> + <EmptySpace min="-2" pref="14" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <Group type="103" groupAlignment="0" max="-2" attributes="0"> + <Group type="102" attributes="0"> + <Component id="LCodigo" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="LNome" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="LMarca" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="LModelo" min="-2" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="LDescricao" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="PainelCamposdados2" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="PainelCamposdados1" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="PTXTDescricao" min="-2" pref="108" max="-2" attributes="0"/> + <EmptySpace type="unrelated" pref="18" max="32767" attributes="0"/> + <Component id="PainelBotoes" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="PainelBotoes"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="126" max="-2" attributes="0"/> + <Component id="BotaoGravar" min="-2" pref="83" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="50" max="-2" attributes="0"/> + <Component id="BotaoExcluir" min="-2" pref="83" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="50" max="-2" attributes="0"/> + <Component id="BotaoCancelar" min="-2" pref="83" max="-2" attributes="0"/> + <EmptySpace pref="24" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="BotaoGravar" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="BotaoExcluir" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="BotaoCancelar" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JButton" name="BotaoGravar"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.BotaoGravar.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="BotaoExcluir"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.BotaoExcluir.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="BotaoCancelar"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.BotaoCancelar.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="PainelCamposdados1"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="1" max="-2" attributes="0"> + <Component id="TXTCodigo" pref="150" max="32767" attributes="0"/> + <Component id="TXTNome" alignment="1" max="32767" attributes="0"/> + <Component id="TXTMarca" alignment="1" max="32767" attributes="0"/> + <Component id="TXTModelo" alignment="1" max="32767" attributes="0"/> + </Group> + <EmptySpace pref="29" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Component id="TXTCodigo" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="TXTNome" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="TXTMarca" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="TXTModelo" min="-2" max="-2" attributes="0"/> + <EmptySpace min="0" pref="18" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JTextField" name="TXTCodigo"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTCodigo.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTNome"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTNome.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTMarca"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTMarca.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTModelo"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTModelo.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="PainelCamposdados2"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="LValorCusto" min="-2" max="-2" attributes="0"/> + <Component id="LValorUnitario" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="LQuantidade" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="40" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" max="-2" attributes="0"> + <Component id="TXTQuantidade" alignment="0" max="32767" attributes="0"/> + <Component id="TXTValorUnitario" alignment="0" max="32767" attributes="0"/> + <Component id="TXTValorCusto" alignment="0" min="-2" pref="150" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="TXTValorCusto" min="-2" max="-2" attributes="0"/> + <Component id="LValorCusto" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="TXTValorUnitario" min="-2" max="-2" attributes="0"/> + <Component id="LValorUnitario" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="TXTQuantidade" min="-2" max="-2" attributes="0"/> + <Component id="LQuantidade" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="0" pref="46" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="LValorCusto"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LValorCusto.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LValorUnitario"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LValorUnitario.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LQuantidade"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LQuantidade.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTValorCusto"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTValorCusto.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTValorUnitario"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTValorUnitario.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + <Component class="javax.swing.JSpinner" name="TXTQuantidade"> + <Properties> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="LCodigo"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LCodigo.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LNome"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LNome.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LMarca"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LMarca.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LModelo"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LModelo.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="LDescricao"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.LDescricao.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Container class="javax.swing.JScrollPane" name="PTXTDescricao"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextArea" name="TXTDescricao"> + <Properties> + <Property name="columns" type="int" value="20"/> + <Property name="rows" type="int" value="5"/> + <Property name="enabled" type="boolean" value="false"/> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="PainelLocalizar"> + <Properties> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> + <TitledBorder title="Localizar Produto"> + <ResourceString PropertyName="titleX" bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.PainelLocalizar.border.title" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </TitledBorder> + </Border> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="TXTCodigoB" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="TXTNomeB" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="TXTSobrenomeB" min="-2" max="-2" attributes="0"/> + <EmptySpace type="unrelated" max="-2" attributes="0"/> + <Component id="TXTModeloB" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="24" max="-2" attributes="0"/> + <Component id="TXTBusca" min="-2" pref="190" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="BotaoLocalizar" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="32" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="103" alignment="0" groupAlignment="3" attributes="0"> + <Component id="TXTCodigoB" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="TXTNomeB" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="TXTSobrenomeB" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="BotaoLocalizar" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" alignment="0" groupAlignment="3" attributes="0"> + <Component id="TXTModeloB" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="TXTBusca" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace pref="16" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JCheckBox" name="TXTCodigoB"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTCodigoB.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="TXTNomeB"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTNomeB.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="TXTSobrenomeB"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTSobrenomeB.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JCheckBox" name="TXTModeloB"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTModeloB.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="TXTBusca"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TXTBusca.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="BotaoLocalizar"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.BotaoLocalizar.text" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="PainelTabela"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> + <Component id="SPTabela" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="19" max="-2" attributes="0"/> + <Component id="SPTabela" min="-2" pref="97" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JScrollPane" name="SPTabela"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTable" name="TabelaResultado"> + <Properties> + <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> + <Table columnCount="6" rowCount="4"> + <Column editable="true" title="Codigo" type="java.lang.Object"/> + <Column editable="true" title="Nome" type="java.lang.Object"/> + <Column editable="true" title="Marca" type="java.lang.Object"/> + <Column editable="true" title="Modelo" type="java.lang.Object"/> + <Column editable="true" title="Valor Unitario" type="java.lang.Object"/> + <Column editable="true" title="QTD" type="java.lang.Object"/> + </Table> + </Property> + <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> + <TableColumnModel selectionModel="0"> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title0" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title1" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title2" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title3" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title4" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + <ResourceString bundle="telas/jinternalframe/Bundle.properties" key="AlteraProduto.TabelaResultado.columnModel.title5" replaceFormat="java.util.ResourceBundle.getBundle("{bundleNameSlashes}").getString("{key}")"/> + + + + + + + + + + +
+
+
+
+
+
+
+ diff --git a/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.java b/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.java new file mode 100644 index 0000000..17d3a98 --- /dev/null +++ b/LojaInstrumentos/src/telas/jinternalframe/AlteraProduto.java @@ -0,0 +1,619 @@ + +package telas.jinternalframe; +import listener.AlteraProdutoListener; + +public class AlteraProduto extends javax.swing.JInternalFrame { + //private FrmPrincipalListener listener = new FrmPrincipalListener(this); + private AlteraProdutoListener listener = new AlteraProdutoListener(this); + /** + * Creates new form LojaCadastroProduto + */ + public AlteraProduto() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + PainelCadastroProdutos = new javax.swing.JPanel(); + PainelBotoes = new javax.swing.JPanel(); + BotaoGravar = new javax.swing.JButton(); + BotaoExcluir = new javax.swing.JButton(); + BotaoCancelar = new javax.swing.JButton(); + PainelCamposdados1 = new javax.swing.JPanel(); + TXTCodigo = new javax.swing.JTextField(); + TXTNome = new javax.swing.JTextField(); + TXTMarca = new javax.swing.JTextField(); + TXTModelo = new javax.swing.JTextField(); + PainelCamposdados2 = new javax.swing.JPanel(); + LValorCusto = new javax.swing.JLabel(); + LValorUnitario = new javax.swing.JLabel(); + LQuantidade = new javax.swing.JLabel(); + TXTValorCusto = new javax.swing.JTextField(); + TXTValorUnitario = new javax.swing.JTextField(); + TXTQuantidade = new javax.swing.JSpinner(); + LCodigo = new javax.swing.JLabel(); + LNome = new javax.swing.JLabel(); + LMarca = new javax.swing.JLabel(); + LModelo = new javax.swing.JLabel(); + LDescricao = new javax.swing.JLabel(); + PTXTDescricao = new javax.swing.JScrollPane(); + TXTDescricao = new javax.swing.JTextArea(); + PainelLocalizar = new javax.swing.JPanel(); + TXTCodigoB = new javax.swing.JCheckBox(); + TXTNomeB = new javax.swing.JCheckBox(); + TXTSobrenomeB = new javax.swing.JCheckBox(); + TXTModeloB = new javax.swing.JCheckBox(); + TXTBusca = new javax.swing.JTextField(); + BotaoLocalizar = new javax.swing.JButton(); + PainelTabela = new javax.swing.JPanel(); + SPTabela = new javax.swing.JScrollPane(); + TabelaResultado = new javax.swing.JTable(); + + java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("telas/jinternalframe/Bundle"); // NOI18N + PainelCadastroProdutos.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("AlteraProduto.PainelCadastroProdutos.border.title"))); // NOI18N + + BotaoGravar.setText(bundle.getString("AlteraProduto.BotaoGravar.text")); // NOI18N + BotaoGravar.addActionListener(listener); + BotaoGravar.setActionCommand("gravar"); + BotaoExcluir.setText(bundle.getString("AlteraProduto.BotaoExcluir.text")); // NOI18N + BotaoExcluir.addActionListener(listener); + BotaoExcluir.setActionCommand("excluir"); + BotaoCancelar.setText(bundle.getString("AlteraProduto.BotaoCancelar.text")); // NOI18N + BotaoCancelar.addActionListener(listener); + BotaoCancelar.setActionCommand("cancelar"); + javax.swing.GroupLayout PainelBotoesLayout = new javax.swing.GroupLayout(PainelBotoes); + PainelBotoes.setLayout(PainelBotoesLayout); + PainelBotoesLayout.setHorizontalGroup( + PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelBotoesLayout.createSequentialGroup() + .addGap(126, 126, 126) + .addComponent(BotaoGravar, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(50, 50, 50) + .addComponent(BotaoExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(50, 50, 50) + .addComponent(BotaoCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(24, Short.MAX_VALUE)) + ); + PainelBotoesLayout.setVerticalGroup( + PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelBotoesLayout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(BotaoGravar) + .addComponent(BotaoExcluir) + .addComponent(BotaoCancelar)) + .addContainerGap()) + ); + + TXTCodigo.setText(bundle.getString("AlteraProduto.TXTCodigo.text")); // NOI18N + TXTCodigo.setEnabled(false); + + TXTNome.setText(bundle.getString("AlteraProduto.TXTNome.text")); // NOI18N + TXTNome.setEnabled(false); + + TXTMarca.setText(bundle.getString("AlteraProduto.TXTMarca.text")); // NOI18N + TXTMarca.setEnabled(false); + + TXTModelo.setText(bundle.getString("AlteraProduto.TXTModelo.text")); // NOI18N + TXTModelo.setEnabled(false); + + javax.swing.GroupLayout PainelCamposdados1Layout = new javax.swing.GroupLayout(PainelCamposdados1); + PainelCamposdados1.setLayout(PainelCamposdados1Layout); + PainelCamposdados1Layout.setHorizontalGroup( + PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addComponent(TXTCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) + .addComponent(TXTNome) + .addComponent(TXTMarca) + .addComponent(TXTModelo)) + .addContainerGap(29, Short.MAX_VALUE)) + ); + PainelCamposdados1Layout.setVerticalGroup( + PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados1Layout.createSequentialGroup() + .addComponent(TXTCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 18, Short.MAX_VALUE)) + ); + + LValorCusto.setText(bundle.getString("AlteraProduto.LValorCusto.text")); // NOI18N + + LValorUnitario.setText(bundle.getString("AlteraProduto.LValorUnitario.text")); // NOI18N + + LQuantidade.setText(bundle.getString("AlteraProduto.LQuantidade.text")); // NOI18N + + TXTValorCusto.setText(bundle.getString("AlteraProduto.TXTValorCusto.text")); // NOI18N + TXTValorCusto.setEnabled(false); + + TXTValorUnitario.setText(bundle.getString("AlteraProduto.TXTValorUnitario.text")); // NOI18N + TXTValorUnitario.setEnabled(false); + + TXTQuantidade.setEnabled(false); + + javax.swing.GroupLayout PainelCamposdados2Layout = new javax.swing.GroupLayout(PainelCamposdados2); + PainelCamposdados2.setLayout(PainelCamposdados2Layout); + PainelCamposdados2Layout.setHorizontalGroup( + PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelCamposdados2Layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(LValorCusto) + .addComponent(LValorUnitario) + .addComponent(LQuantidade)) + .addGap(40, 40, 40) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(TXTQuantidade) + .addComponent(TXTValorUnitario) + .addComponent(TXTValorCusto, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap()) + ); + PainelCamposdados2Layout.setVerticalGroup( + PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados2Layout.createSequentialGroup() + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(TXTValorCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(LValorCusto)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(TXTValorUnitario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(LValorUnitario)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(TXTQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(LQuantidade)) + .addGap(0, 46, Short.MAX_VALUE)) + ); + + LCodigo.setText(bundle.getString("AlteraProduto.LCodigo.text")); // NOI18N + + LNome.setText(bundle.getString("AlteraProduto.LNome.text")); // NOI18N + + LMarca.setText(bundle.getString("AlteraProduto.LMarca.text")); // NOI18N + + LModelo.setText(bundle.getString("AlteraProduto.LModelo.text")); // NOI18N + + LDescricao.setText(bundle.getString("AlteraProduto.LDescricao.text")); // NOI18N + + TXTDescricao.setColumns(20); + TXTDescricao.setRows(5); + TXTDescricao.setEnabled(false); + PTXTDescricao.setViewportView(TXTDescricao); + + javax.swing.GroupLayout PainelCadastroProdutosLayout = new javax.swing.GroupLayout(PainelCadastroProdutos); + PainelCadastroProdutos.setLayout(PainelCadastroProdutosLayout); + PainelCadastroProdutosLayout.setHorizontalGroup( + PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(PainelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(PTXTDescricao, javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(LDescricao) + .addGap(227, 227, 227)) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(LCodigo) + .addComponent(LNome) + .addComponent(LMarca) + .addComponent(LModelo)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(PainelCamposdados1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(PainelCamposdados2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addGap(14, 14, 14)))) + ); + PainelCadastroProdutosLayout.setVerticalGroup( + PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(LCodigo) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LNome) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LMarca) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LModelo) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(LDescricao)) + .addComponent(PainelCamposdados2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(PainelCamposdados1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(PTXTDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 18, Short.MAX_VALUE) + .addComponent(PainelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + + PainelLocalizar.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("AlteraProduto.PainelLocalizar.border.title"))); // NOI18N + + TXTCodigoB.setText(bundle.getString("AlteraProduto.TXTCodigoB.text")); // NOI18N + + TXTNomeB.setText(bundle.getString("AlteraProduto.TXTNomeB.text")); // NOI18N + + TXTSobrenomeB.setText(bundle.getString("AlteraProduto.TXTSobrenomeB.text")); // NOI18N + + TXTModeloB.setText(bundle.getString("AlteraProduto.TXTModeloB.text")); // NOI18N + + TXTBusca.setText(bundle.getString("AlteraProduto.TXTBusca.text")); // NOI18N + + BotaoLocalizar.setText(bundle.getString("AlteraProduto.BotaoLocalizar.text")); // NOI18N + + javax.swing.GroupLayout PainelLocalizarLayout = new javax.swing.GroupLayout(PainelLocalizar); + PainelLocalizar.setLayout(PainelLocalizarLayout); + PainelLocalizarLayout.setHorizontalGroup( + PainelLocalizarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelLocalizarLayout.createSequentialGroup() + .addContainerGap() + .addComponent(TXTCodigoB) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTNomeB) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(TXTSobrenomeB) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(TXTModeloB) + .addGap(24, 24, 24) + .addComponent(TXTBusca, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(BotaoLocalizar) + .addGap(32, 32, 32)) + ); + PainelLocalizarLayout.setVerticalGroup( + PainelLocalizarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelLocalizarLayout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelLocalizarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelLocalizarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(TXTCodigoB) + .addComponent(TXTNomeB) + .addComponent(TXTSobrenomeB) + .addComponent(BotaoLocalizar)) + .addGroup(PainelLocalizarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(TXTModeloB) + .addComponent(TXTBusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(16, Short.MAX_VALUE)) + ); + + TabelaResultado.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null, null, null}, + {null, null, null, null, null, null}, + {null, null, null, null, null, null}, + {null, null, null, null, null, null} + }, + new String [] { + "Codigo", "Nome", "Marca", "Modelo", "Valor Unitario", "QTD" + } + )); + TabelaResultado.setEnabled(false); + SPTabela.setViewportView(TabelaResultado); + if (TabelaResultado.getColumnModel().getColumnCount() > 0) { + TabelaResultado.getColumnModel().getColumn(0).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title0")); // NOI18N + TabelaResultado.getColumnModel().getColumn(1).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title1")); // NOI18N + TabelaResultado.getColumnModel().getColumn(2).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title2")); // NOI18N + TabelaResultado.getColumnModel().getColumn(3).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title3")); // NOI18N + TabelaResultado.getColumnModel().getColumn(4).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title4")); // NOI18N + TabelaResultado.getColumnModel().getColumn(5).setHeaderValue(bundle.getString("AlteraProduto.TabelaResultado.columnModel.title5")); // NOI18N + } + + javax.swing.GroupLayout PainelTabelaLayout = new javax.swing.GroupLayout(PainelTabela); + PainelTabela.setLayout(PainelTabelaLayout); + PainelTabelaLayout.setHorizontalGroup( + PainelTabelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelTabelaLayout.createSequentialGroup() + .addGap(12, 12, 12) + .addComponent(SPTabela) + .addContainerGap()) + ); + PainelTabelaLayout.setVerticalGroup( + PainelTabelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelTabelaLayout.createSequentialGroup() + .addGap(19, 19, 19) + .addComponent(SPTabela, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(PainelCadastroProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 14, Short.MAX_VALUE)) + .addComponent(PainelLocalizar, javax.swing.GroupLayout.PREFERRED_SIZE, 667, Short.MAX_VALUE) + .addComponent(PainelTabela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(PainelLocalizar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(PainelTabela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(PainelCadastroProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + + + + + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton BotaoCancelar; + private javax.swing.JButton BotaoExcluir; + private javax.swing.JButton BotaoGravar; + private javax.swing.JButton BotaoLocalizar; + private javax.swing.JLabel LCodigo; + private javax.swing.JLabel LDescricao; + private javax.swing.JLabel LMarca; + private javax.swing.JLabel LModelo; + private javax.swing.JLabel LNome; + private javax.swing.JLabel LQuantidade; + private javax.swing.JLabel LValorCusto; + private javax.swing.JLabel LValorUnitario; + private javax.swing.JScrollPane PTXTDescricao; + private javax.swing.JPanel PainelBotoes; + private javax.swing.JPanel PainelCadastroProdutos; + private javax.swing.JPanel PainelCamposdados1; + private javax.swing.JPanel PainelCamposdados2; + private javax.swing.JPanel PainelLocalizar; + private javax.swing.JPanel PainelTabela; + private javax.swing.JScrollPane SPTabela; + private javax.swing.JTextField TXTBusca; + private javax.swing.JTextField TXTCodigo; + private javax.swing.JCheckBox TXTCodigoB; + private javax.swing.JTextArea TXTDescricao; + private javax.swing.JTextField TXTMarca; + private javax.swing.JTextField TXTModelo; + private javax.swing.JCheckBox TXTModeloB; + private javax.swing.JTextField TXTNome; + private javax.swing.JCheckBox TXTNomeB; + private javax.swing.JSpinner TXTQuantidade; + private javax.swing.JCheckBox TXTSobrenomeB; + private javax.swing.JTextField TXTValorCusto; + private javax.swing.JTextField TXTValorUnitario; + private javax.swing.JTable TabelaResultado; + // End of variables declaration//GEN-END:variables + + /** + * @return the PTXTDescricao + */ + public javax.swing.JScrollPane getPTXTDescricao() { + return PTXTDescricao; + } + + /** + * @param PTXTDescricao the PTXTDescricao to set + */ + public void setPTXTDescricao(javax.swing.JScrollPane PTXTDescricao) { + this.PTXTDescricao = PTXTDescricao; + } + + /** + * @return the TXTBusca + */ + public javax.swing.JTextField getTXTBusca() { + return TXTBusca; + } + + /** + * @param TXTBusca the TXTBusca to set + */ + public void setTXTBusca(javax.swing.JTextField TXTBusca) { + this.TXTBusca = TXTBusca; + } + + /** + * @return the TXTCodigo + */ + public javax.swing.JTextField getTXTCodigo() { + return TXTCodigo; + } + + /** + * @param TXTCodigo the TXTCodigo to set + */ + public void setTXTCodigo(javax.swing.JTextField TXTCodigo) { + this.TXTCodigo = TXTCodigo; + } + + /** + * @return the TXTCodigoB + */ + public javax.swing.JCheckBox getTXTCodigoB() { + return TXTCodigoB; + } + + /** + * @param TXTCodigoB the TXTCodigoB to set + */ + public void setTXTCodigoB(javax.swing.JCheckBox TXTCodigoB) { + this.TXTCodigoB = TXTCodigoB; + } + + + + /** + * @return the TXTDescricao + */ + public javax.swing.JTextArea getTXTDescricao() { + return TXTDescricao; + } + + /** + * @param TXTDescricao the TXTDescricao to set + */ + public void setTXTDescricao(javax.swing.JTextArea TXTDescricao) { + this.TXTDescricao = TXTDescricao; + } + + /** + * @return the TXTMarca + */ + public javax.swing.JTextField getTXTMarca() { + return TXTMarca; + } + + /** + * @param TXTMarca the TXTMarca to set + */ + public void setTXTMarca(javax.swing.JTextField TXTMarca) { + this.TXTMarca = TXTMarca; + } + + /** + * @return the TXTModelo + */ + public javax.swing.JTextField getTXTModelo() { + return TXTModelo; + } + + /** + * @param TXTModelo the TXTModelo to set + */ + public void setTXTModelo(javax.swing.JTextField TXTModelo) { + this.TXTModelo = TXTModelo; + } + + /** + * @return the TXTModeloB + */ + public javax.swing.JCheckBox getTXTModeloB() { + return TXTModeloB; + } + + /** + * @param TXTModeloB the TXTModeloB to set + */ + public void setTXTModeloB(javax.swing.JCheckBox TXTModeloB) { + this.TXTModeloB = TXTModeloB; + } + + /** + * @return the TXTNome + */ + public javax.swing.JTextField getTXTNome() { + return TXTNome; + } + + /** + * @param TXTNome the TXTNome to set + */ + public void setTXTNome(javax.swing.JTextField TXTNome) { + this.TXTNome = TXTNome; + } + + /** + * @return the TXTNomeB + */ + public javax.swing.JCheckBox getTXTNomeB() { + return TXTNomeB; + } + + /** + * @param TXTNomeB the TXTNomeB to set + */ + public void setTXTNomeB(javax.swing.JCheckBox TXTNomeB) { + this.TXTNomeB = TXTNomeB; + } + + /** + * @return the TXTQuantidade + */ + public javax.swing.JSpinner getTXTQuantidade() { + return TXTQuantidade; + } + + /** + * @param TXTQuantidade the TXTQuantidade to set + */ + public void setTXTQuantidade(javax.swing.JSpinner TXTQuantidade) { + this.TXTQuantidade = TXTQuantidade; + } + + /** + * @return the TXTSobrenomeB + */ + public javax.swing.JCheckBox getTXTSobrenomeB() { + return TXTSobrenomeB; + } + + /** + * @param TXTSobrenomeB the TXTSobrenomeB to set + */ + public void setTXTSobrenomeB(javax.swing.JCheckBox TXTSobrenomeB) { + this.TXTSobrenomeB = TXTSobrenomeB; + } + + /** + * @return the TXTValorCusto + */ + public javax.swing.JTextField getTXTValorCusto() { + return TXTValorCusto; + } + + /** + * @param TXTValorCusto the TXTValorCusto to set + */ + public void setTXTValorCusto(javax.swing.JTextField TXTValorCusto) { + this.TXTValorCusto = TXTValorCusto; + } + + /** + * @return the TXTValorUnitario + */ + public javax.swing.JTextField getTXTValorUnitario() { + return TXTValorUnitario; + } + + /** + * @param TXTValorUnitario the TXTValorUnitario to set + */ + public void setTXTValorUnitario(javax.swing.JTextField TXTValorUnitario) { + this.TXTValorUnitario = TXTValorUnitario; + } + + /** + * @return the TabelaResultado + */ + public javax.swing.JTable getTabelaResultado() { + return TabelaResultado; + } + + /** + * @param TabelaResultado the TabelaResultado to set + */ + public void setTabelaResultado(javax.swing.JTable TabelaResultado) { + this.TabelaResultado = TabelaResultado; + } +} diff --git a/LojaInstrumentos/src/telas/jinternalframe/Bundle.properties b/LojaInstrumentos/src/telas/jinternalframe/Bundle.properties index 9e7ff9f..d1bcb31 100644 --- a/LojaInstrumentos/src/telas/jinternalframe/Bundle.properties +++ b/LojaInstrumentos/src/telas/jinternalframe/Bundle.properties @@ -317,3 +317,237 @@ LojaAlteraCliente.TabelaResultado.columnModel.title3=CPF LojaAlteraCliente.TabelaResultado.columnModel.title2=Sobrenome LojaAlteraCliente.TabelaResultado.columnModel.title1=Nome LojaAlteraCliente.TabelaResultado.columnModel.title0=Codigo +ConsultaCliente.TXTConsulta.text= +ConsultaCliente.TXTSobrenome.text=Sobrenome +ConsultaCliente.BotaoConsulta.text=Consulta +ConsultaCliente.TXTNome.text=Nome +ConsultaCliente.TXTCodigo.text=CPF +ConsultaCliente.TXTRG.text=RG +ConsultaCliente.BotaoCancelar.text=Cancelar +ConsultaCliente.BotaoAlterar.text=Alterar +ConsultaCliente.PainelConsultaCliente.border.title=Consulta Cliente +AlteraCliente.TXTNome.text= +AlteraCliente.TXTSobrenome.text= +AlteraCliente.TXTCPF.text= +AlteraCliente.TXTDataNascimento.text= +AlteraCliente.TXTRG.text= +AlteraCliente.TXTBusca.text= +AlteraCliente.PainelCADCliente.border.title=Alterar Cadatro de Cliente +AlteraCliente.LNome.text=Nome +AlteraCliente.LSobrenome.text=Sobrenome +AlteraCliente.LSexo.text=Sexo +AlteraCliente.LCPF.text=CPF +AlteraCliente.LRG.text=RG +AlteraCliente.LEstadocivil.text=Estado Civil +AlteraCliente.LDatanascimento.text=Data Nascimento +AlteraCliente.jLabel12.text=Bairro +AlteraCliente.jLabel13.text=Numero +AlteraCliente.jLabel15.text=Estado +AlteraCliente.jLabel17.text=CEP +AlteraCliente.jLabel20.text=Referencia +AlteraCliente.jLabel9.text=Celular +AlteraCliente.PainelInfCADCliente.border.title=Informa\u00e7\u00f5es do Cliente +AlteraCliente.PainelEndCADCliente.border.title=Informa\u00e7\u00f5es complementares do Cliente +AlteraCliente.jLabel8.text=Telefone +AlteraCliente.jLabel10.text=Email +AlteraCliente.jLabel11.text=Endere\u00e7o +AlteraCliente.jLabel18.text=Logadouro +AlteraCliente.jLabel14.text=Cidade +AlteraCliente.jLabel19.text=Complemento +AlteraCliente.JBCancelar.text=Cancelar +AlteraCliente.JBExcluir.text=Excluir +AlteraCliente.JBGravar.text=Gravar +AlteraCliente.TXTSobrenomeB.text=Sobrenome +AlteraCliente.TXTNomeB.text=Nome +AlteraCliente.TXTCodigoB.text=CPF +AlteraCliente.BotaoLocalizar.text=Localizar +AlteraCliente.PainelLocalizar.border.title=Localizar Cadastro +AlteraProduto.TXTBusca.text= +AlteraProduto.TXTModeloB.text=Modelo +AlteraProduto.TXTCodigoB.text=Codigo +AlteraProduto.TXTNomeB.text=Nome +AlteraProduto.TXTSobrenomeB.text=Marca +AlteraProduto.BotaoLocalizar.text=Localizar +AlteraProduto.TXTCodigo.text= +AlteraProduto.TXTNome.text= +AlteraProduto.TXTMarca.text= +AlteraProduto.TXTModelo.text= +AlteraProduto.LDescricao.text=Descri\u00e7\u00e3o +AlteraProduto.LModelo.text=Modelo +AlteraProduto.LMarca.text=Marca +AlteraProduto.LNome.text=Nome +AlteraProduto.LCodigo.text=Codigo +AlteraProduto.LValorCusto.text=Valor Custo +AlteraProduto.LValorUnitario.text=Valor Unitario +AlteraProduto.LQuantidade.text=Quantidade +AlteraProduto.TXTValorCusto.text= +AlteraProduto.TXTValorUnitario.text= +AlteraProduto.PainelCadastroProdutos.border.title=Alterar Produtos +AlteraProduto.BotaoCancelar.text=Cancelar +AlteraProduto.BotaoExcluir.text=Excluir +AlteraProduto.BotaoGravar.text=Gravar +AlteraProduto.PainelLocalizar.border.title=Localizar Produto +AlteraUsuario.TXTUsuarioBusca.text= +AlteraUsuario.TXTSenhaAtual.text= +AlteraUsuario.BotaoLocalizar.text=Localizar +AlteraUsuario.LSenhaAtual.text=Senha +AlteraUsuario.PainelLocalizarUsuario.border.title=Localizar Usuario +AlteraUsuario.PainelCadastroUsuario.border.title=Alterar Dados Usuario +AlteraUsuario.TXTUsuario.text= +AlteraUsuario.TXTSenha.text= +AlteraUsuario.TXTRSenha.text= +AlteraUsuario.LNome.text=Usuario +AlteraUsuario.LSenha.text=Senha +AlteraUsuario.LRSenha.text=Repetir Senha +AlteraUsuario.BotaoExcluir.text=Excluir +AlteraUsuario.BotaoGravar.text=Gravar +AlteraUsuario.LEmail.text=Email +AlteraUsuario.TXTEmail.text= +CadastroCliente.TXTNome.text= +CadastroCliente.TXTSobrenome.text= +CadastroCliente.TXTCPF.text= +CadastroCliente.TXTDataNascimento.text= +CadastroCliente.TXTRG.text= +CadastroCliente.LNome.text=Nome +CadastroCliente.LSobrenome.text=Sobrenome +CadastroCliente.LSexo.text=Sexo +CadastroCliente.LCPF.text=CPF +CadastroCliente.LRG.text=RG +CadastroCliente.LEstadocivil.text=Estado Civil +CadastroCliente.LDatanascimento.text=Data Nascimento +CadastroCliente.PainelInfCADCliente.border.title=Dados Cliente +CadastroCliente.PainelEndCADCliente.border.title=Informa\u00e7\u00f5es Complementares do Cliente +CadastroCliente.jLabel15.text=Estado +CadastroCliente.jLabel8.text=Telefone +CadastroCliente.jLabel10.text=Email +CadastroCliente.jLabel14.text=Cidade +CadastroCliente.jLabel19.text=Complemento +CadastroCliente.jLabel20.text=Referencia +CadastroCliente.jLabel17.text=CEP +CadastroCliente.jLabel11.text=Endere\u00e7o +CadastroCliente.jLabel18.text=Logadouro +CadastroCliente.jLabel9.text=Celular +CadastroCliente.jLabel12.text=Bairro +CadastroCliente.jLabel13.text=Numero +CadastroCliente.PainelCADCliente.border.title=Dados do CLiente +CadastroCliente.JBCancelar.text=Cancelar +CadastroCliente.JBGravar.text=Gravar +CadastroProduto.TXTCodigo.text= +CadastroProduto.TXTNome.text= +CadastroProduto.TXTMarca.text= +CadastroProduto.TXTModelo.text= +CadastroProduto.LCodigo.text=Codigo +CadastroProduto.LNome.text=Nome +CadastroProduto.LMarca.text=Marca +CadastroProduto.LModelo.text=Modelo +CadastroProduto.LDescricao.text=Descri\u00e7\u00e3o +CadastroProduto.LValorCusto.text=Valor Custo +CadastroProduto.LValorUnitario.text=Valor Unitario +CadastroProduto.LQuantidade.text=Quantidade +CadastroProduto.TXTValorCusto.text= +CadastroProduto.TXTValorUnitario.text= +CadastroProduto.PainelCadastroProdutos.border.title=Cadastro de Produtos +CadastroProduto.BotaoCancelar.text=Cancelar +CadastroProduto.BotaoGravar.text=Gravar +CadastroUsuario.TXTUsuario.text= +CadastroUsuario.TXTSenha.text= +CadastroUsuario.TXTRSenha.text= +CadastroUsuario.LSenha.text=Senha +CadastroUsuario.LRSenha.text=Repetir Senha +CadastroUsuario.BotaoGravar.text=Gravar +CadastroUsuario.BotaoCancelar.text=Cancelar +CadastroUsuario.jLabel1.text=Email +CadastroUsuario.PainelCadastroUsuario.border.title=Cadastro Usuarios +CadastroUsuario.TXTRG.text= +CadastroUsuario.TXTCPF.text= +CadastroUsuario.TXTSobrenome.text= +CadastroUsuario.TXTNome.text= +CadastroUsuario.LUsuario.text=Usuario +CadastroUsuario.LNome.text=Nome +CadastroUsuario.LSobrenome.text=Sobrenome +CadastroUsuario.LCPF.text=CPF +CadastroUsuario.LRG.text=RG +AlteraUsuario.LSobrenome.text=Sobrenome +AlteraUsuario.LNome1.text=Nome +AlteraUsuario.TXTRG.text= +AlteraUsuario.TXTCPF.text= +AlteraUsuario.TXTSobrenome.text= +AlteraUsuario.TXTNome.text= +AlteraUsuario.LRG.text=RG +AlteraUsuario.LCPF.text=CPF +ConsultaProduto.PanelConsultaProduto.border.title=Consulta Produtos +ConsultaProduto.TXTCodigo.text=Codigo +ConsultaProduto.TXTNome.text=Nome +ConsultaProduto.TXTMarca.text=Marca +ConsultaProduto.TXTConsulta.text= +ConsultaProduto.BotaoCancelar.text=Cancelar +ConsultaProduto.BotaoAlterar.text=Alterar +ConsultaVendas.PainelConsultaVendas.border.title=Consulta Vendas +ConsultaVendas.BotaoCancelar.text=Cancelar +ConsultaVendas.TXTCodigo.text=Codigo +ConsultaVendas.TXTNome.text=Nome +ConsultaVendas.TXTSobrenome.text=Sobrenome +ConsultaVendas.TXTData.text=Data Vendas +ConsultaVendas.TXTConsuta.text= +MovimentoCaixa.BotaoCancelar.text=Cancelar +MovimentoCaixa.BotaoOK.text=OK +MovimentoCaixa.LUltimasVendas.text=Ultimas Vendas +MovimentoCaixa.PainelMovimentoCaixa.border.title=Movimento Caixa +Relatorio.PainelRelatorioP.border.title=Relatorio +Relatorio.TXTVendas.text=Vendas +Relatorio.TXTContasReceber.text=Contas Receber +Relatorio.TXTCliente.text=Clientes +Relatorio.LDataI.text=Data Inicial +Relatorio.TXTDataI.text= +Relatorio.LDataF.text=Data Final +Relatorio.TXTDataF.text= +Relatorio.jCheckBox1.text=Produtos +Relatorio.BotaoCancelar.text=Cancelar +RelatorioClientes.PainelResultado.border.title=Relatorio Clientes +RelatorioContasReceber.PainelRelatorioContasReceber.border.title=Relatorio Contas Receber +RelatorioProdutos.PainelRelatorioProdutos.border.title=Relatorio Produtos +RelatorioVendas.PainelRelatorioVendas.border.title=Relatorio Vendas +Venda.TXTCodigoP.text= +Venda.TXTPrecoVenda.text= +Venda.TXTDesconto.text= +Venda.PainelItem.border.title=Item de Venda +Venda.PainelVenda.border.title=Venda de Mercadorias +Venda.LMarca.text=Marca +Venda.LQTD.text=Quantidade +Venda.LDesconto.text=Desconto +Venda.LCodigo.text=Codigo +Venda.LPrecoVenda.text=Pre\u00e7o de Venda +Venda.LNomeP.text=Nome +Venda.BotaoIncluir.text=Incluir +Venda.PainelCarrinhoCompras.border.title=Carrinho de Compras +Venda.LFormaPagamento.text=Forma de Pagamento +Venda.LNCheck.text=N\u00ba Check +Venda.LNDOC.text=N\u00ba DOC +Venda.TXTNCheck.text= +Venda.TXTNDOC.text= +Venda.LValorTotal.text=Valor Total +Venda.LSobrenome.text=Sobrenome +Venda.LNome.text=Nome +Venda.LCODCliente.text=CPF +Venda.TXTCODCliente.text= +Venda.TXTNome.text= +Venda.TXTSobrenome.text= +Venda.TXTValorTotal.text= +Venda.TXTCODVenda.text= +Venda.LCODVenda.text=Codigo Venda +Venda.PainelDadosVenda.border.title=Dados Venda +Venda.BotaoCancelar.text=Cancelar +Venda.BotaoGravar.text=Gravar +AlteraUsuario.BotaoCancelar.text=Cancelar +ConsultaVendas.BotaoAlterar.text=Alterar +ConsultaVendas.BotaoConsultar.text=Consultar +ConsultaProduto.BotaoConsultar.text=Consultar +RelatorioVendas.BotaoOK.text=OK +RelatorioProdutos.BotaoOK.text=OK +RelatorioProdutos.BotaoCancelar.text=Cancelar +RelatorioContasReceber.BotaoCancelar.text=Cancelar +RelatorioContasReceber.BotaoOK.text=OK +RelatorioClientes.BotaoOK.text=OK +RelatorioClientes.BotaoCancelar.text=Cancelar +Relatorio.BotaoGerar.text=Gerar +CadastroUsuario.TXTEmail.text= diff --git a/LojaInstrumentos/src/telas/jinternalframe/Bundle_pt_BR.properties b/LojaInstrumentos/src/telas/jinternalframe/Bundle_pt_BR.properties new file mode 100644 index 0000000..69900d5 --- /dev/null +++ b/LojaInstrumentos/src/telas/jinternalframe/Bundle_pt_BR.properties @@ -0,0 +1,545 @@ + +LojaCadastroCliente.PainelInfCADCliente.border.title=Informacoes do Cliente +LojaCadastroCliente.PainelEndCADCliente.border.title=Endereco +LojaCadastroCliente.JBCancelar.text=Cancelar +LojaCadastroCliente.JBExcluir.text=Excluir +LojaCadastroCliente.JBGravar.text=Gravar +LojaCadastroCliente.jLabel9.text=Celular: +LojaCadastroCliente.jLabel12.text=Bairro: +LojaCadastroCliente.jLabel13.text=Numero: +LojaCadastroCliente.jLabel17.text=CEP: +LojaCadastroCliente.jLabel15.text=UF: +LojaCadastroCliente.jLabel20.text=Referencia: +LojaCadastroCliente.jLabel16.text=Pais: +LojaCadastroCliente.jLabel19.text=Complemento: +LojaCadastroCliente.jLabel14.text=Cidade: +LojaCadastroCliente.jLabel18.text=Logadouro: +LojaCadastroCliente.jLabel11.text=Endere\u00e7o: +LojaCadastroCliente.jLabel10.text=E-mail: +LojaCadastroCliente.jLabel8.text=Telefone: +LojaCadastroCliente.JBNovo.text=Novo +LojaCadastroCliente.PainelCADCliente.border.title= +LojaCadastroCliente.LCodigo.text=Codigo: +LojaCadastroCliente.LNome.text=Nome: +LojaCadastroCliente.LSobrenome.text=Sobrenome: +LojaCadastroCliente.LSexo.text=Sexo: +LojaCadastroCliente.LCPF.text=CPF: +LojaCadastroCliente.LRG.text=RG: +LojaCadastroCliente.LEstadocivil.text=Estado Civil: +LojaCadastroCliente.LDatacadastro.text=Data Cadastro: +LojaCadastroCliente.LDatanascimento.text=Data Nascimento: +LojaCadastroCliente.TXTDataNascimento.text= +LojaCadastroCliente.TXTDataCadastro.text= +LojaCadastroCliente.TXTRG.text= +LojaCadastroCliente.TXTCodigo.text= +LojaCadastroCliente.TXTNome.text= +LojaCadastroCliente.TXTSobrenome.text= +LojaCadastroCliente.TXTCPF.text= +LojaConsultaProduto.PanelConsultaProduto.border.title=Consulta Produto +LojaConsultaProduto.BotaoConsultar.text=Consultar +LojaConsultaProduto.BotaoCancelar.text=Cancelar +LojaConsultaProduto.BotaoAlterar.text=Alterar +LojaConsultaProduto.RetornoConsulta.columnModel.title5=QTD +LojaConsultaProduto.RetornoConsulta.columnModel.title4=Valor +LojaConsultaProduto.RetornoConsulta.columnModel.title3=Modelo +LojaConsultaProduto.RetornoConsulta.columnModel.title2=Marca +LojaConsultaProduto.RetornoConsulta.columnModel.title1=Nome +LojaConsultaProduto.RetornoConsulta.columnModel.title0=Codigo +LojaConsultaProduto.TXTConsulta.text= +LojaConsultaProduto.TXTMarca.text=Marca +LojaConsultaProduto.TXTNome.text=Nome +LojaConsultaProduto.TXTCodigo.text=Codigo +LojaConsultaCliente.TXTConsulta.text= +LojaConsultaCliente.BotaoConsulta.text=Consultar +LojaConsultaCliente.TXTCodigo.text=Codigo +LojaConsultaCliente.TXTNome.text=Nome +LojaConsultaCliente.TXTSobrenome.text=Sobrenome +LojaConsultaCliente.ResultadoConsulta.columnModel.title9=Saldo +LojaConsultaCliente.ResultadoConsulta.columnModel.title8=Email +LojaConsultaCliente.ResultadoConsulta.columnModel.title7=Celular +LojaConsultaCliente.ResultadoConsulta.columnModel.title6=Telefone +LojaConsultaCliente.ResultadoConsulta.columnModel.title5=Data Nascimento +LojaConsultaCliente.ResultadoConsulta.columnModel.title4=RG +LojaConsultaCliente.ResultadoConsulta.columnModel.title3=CPF +LojaConsultaCliente.ResultadoConsulta.columnModel.title2=Sobrenome +LojaConsultaCliente.ResultadoConsulta.columnModel.title1=Nome +LojaConsultaCliente.ResultadoConsulta.columnModel.title0=Codigo +LojaConsultaCliente.BotaoAlterar.text=Alterar +LojaConsultaCliente.BotaoCancelar.text=Cancelar +LojaConsultaCliente.PainelConsultaCliente.border.title=Consulta Cliente +LojaCadastroProduto.TXTCodigo.text= +LojaCadastroProduto.PainelCadastroProdutos.border.title=Cadastro Produtos +LojaCadastroProduto.TXTNome.text= +LojaCadastroProduto.TXTMarca.text= +LojaCadastroProduto.TXTModelo.text= +LojaCadastroProduto.BotaoCancelar.text=Cancelar +LojaCadastroProduto.BotaoExcluir.text=Excluir +LojaCadastroProduto.BotaoGravar.text=Gravar +LojaCadastroProduto.BotaoNovo.text=Novo +LojaCadastroProduto.LValorCusto.text=Valor Custo +LojaCadastroProduto.LDataCompra.text=Data Compra: +LojaCadastroProduto.LValorUnitario.text=Valor Unitario: +LojaCadastroProduto.LQuantidade.text=Quantidade: +LojaCadastroProduto.TXTDataCompra.text= +LojaCadastroProduto.TXTValorCusto.text= +LojaCadastroProduto.TXTValorUnitario.text= +LojaCadastroProduto.LCodigo.text=Codigo: +LojaCadastroProduto.LNome.text=Nome: +LojaCadastroProduto.LMarca.text=Marca: +LojaCadastroProduto.LModelo.text=Modelo: +LojaCadastroProduto.LDescricao.text=Descricao: +LojaCadastroUsuario.PainelCadastroUsuario.border.title=Cadastro Usuario +LojaCadastroUsuario.LNome.text=Nome de Usuario: +LojaCadastroUsuario.LSenha.text=Senha: +LojaCadastroUsuario.LRSenha.text=Repetir a senha: +LojaCadastroUsuario.TXTUsuario.text= +LojaCadastroUsuario.TXTSenha.text= +LojaCadastroUsuario.TXTRSenha.text= +LojaCadastroUsuario.BotaoNovo.text=Novo +LojaCadastroUsuario.BotaoGravar.text=Gravar +LojaCadastroUsuario.BotaoExcluir.text=Excluir +LojaRelatorio.BotaoCancelar.text=Cancelar +LojaRelatorio.BotaoOK.text=OK +LojaRelatorio.TXTCliente.text=Clientes +LojaRelatorio.TXTContasReceber.text=Contas a Receber +LojaRelatorio.TXTVendas.text=Vendas +LojaRelatorio.LDataI.text=Data Inicial: +LojaRelatorio.LDataF.text=Data Final: +LojaRelatorio.TXTDataF.text= +LojaRelatorio.TXTDataI.text= +LojaRelatorio.PainelRelatorioP.border.title=Relatorio +LojaRelatorioClientes.PainelResultado.border.title=Relatorio Clientes +LojaRelatorioClientes.TabelaResultado.columnModel.title8=Celular +LojaRelatorioClientes.TabelaResultado.columnModel.title7=Telefone +LojaRelatorioClientes.TabelaResultado.columnModel.title6=Data Cadastro +LojaRelatorioClientes.TabelaResultado.columnModel.title5=Data Nascimento +LojaRelatorioClientes.TabelaResultado.columnModel.title4=RG +LojaRelatorioClientes.TabelaResultado.columnModel.title3=CPF +LojaRelatorioClientes.TabelaResultado.columnModel.title2=Sobrenome +LojaRelatorioClientes.TabelaResultado.columnModel.title1=Nome +LojaRelatorioClientes.TabelaResultado.columnModel.title0=Codigo +LojaRelatorioClientes.BotaoCancelar.text=Cancelar +LojaRelatorioClientes.BotaoOK.text=Ok +LojaRelatorio.jCheckBox1.text=Produtos +LojaRelatorioProdutos.jTable1.columnModel.title7= +LojaRelatorioProdutos.PainelRelatorioProdutos.border.title=Relatorio Produtos +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title6=Data Inserido no Estoque +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title5=QTD +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title4=Preco Unitario +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title3=Modelo +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title2=Marca +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title1=Nome +LojaRelatorioProdutos.TabelaRelatorio.columnModel.title0=Codigo +LojaRelatorioProdutos.BotaoOK.text=OK +LojaRelatorioProdutos.BotaoCancelar.text=Cancelar +LojaRelatorioVendas.jTable1.columnModel.title4= +LojaRelatorioVendas.BotaoCancelar.text=Cancelar +LojaRelatorioVendas.BotaoOK.text=OK +LojaRelatorioVendas.TabelaResultado.columnModel.title3=Valor Total +LojaRelatorioVendas.TabelaResultado.columnModel.title4_1=Tipo de Venda +LojaRelatorioVendas.TabelaResultado.columnModel.title2=Data Venda +LojaRelatorioVendas.TabelaResultado.columnModel.title1=Nome +LojaRelatorioVendas.TabelaResultado.columnModel.title0=Codigo +LojaRelatorioVendas.PainelRelatorioVendas.border.title=Relatorio Vendas +LojaMovimentoCaixa.PainelMovimentoCaixa.border.title=Movimento Caixa +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title5=Valor Total +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title4=Hora +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title3=Data +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title2=Sobrenome +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title1=Nome +LojaMovimentoCaixa.TabelMovimentoCaixa.columnModel.title0=Codigo +LojaMovimentoCaixa.LUltimasVendas.text=Ultimas Vendas +LojaMovimentoCaixa.BotaoOK.text=OK +LojaMovimentoCaixa.BotaoCancelar.text=Cancelar +LojaRelatorioVendas.TabelaResultado.columnModel.title5=Hora +LojaRelatorioContasReceber.jTable1.columnModel.title6=Telefone +LojaRelatorioContasReceber.jTable1.columnModel.title7=Celular +LojaRelatorioContasReceber.PainelRelatorioContasReceber.border.title=Relatorio Contas Receber +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title5=Valor Total +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title4=Data para Receber +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title3=Data de compra +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title2=Sobrenome +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title1=Nome +LojaRelatorioContasReceber.TabelaRelatorio.columnModel.title0=Codigo +LojaRelatorioContasReceber.BotaoOK.text=OK +LojaRelatorioContasReceber.BotaoCancelar.text=Cancelar +LojaConsultaVendas.PainelConsultaVendas.border.title=Consulta Vendas +LojaConsultaVendas.BotaoOK.text=OK +LojaConsultaVendas.BotaoCancelar.text=Cancelar +LojaConsultaVendas.BotaoConsultar.text=Consultar +LojaConsultaVendas.TXTConsuta.text= +LojaConsultaVendas.TXTData.text=Data +LojaConsultaVendas.TXTSobrenome.text=Sobrenome +LojaConsultaVendas.TXTNome.text=Nome +LojaConsultaVendas.TXTCodigo.text=Codigo +LojaConsultaVendas.TabelaResultado.columnModel.title7=Valor Total +LojaConsultaVendas.TabelaResultado.columnModel.title6=Hora +LojaConsultaVendas.TabelaResultado.columnModel.title5=Data +LojaConsultaVendas.TabelaResultado.columnModel.title4=RG +LojaConsultaVendas.TabelaResultado.columnModel.title3=CPF +LojaConsultaVendas.TabelaResultado.columnModel.title2=Sobrenome +LojaConsultaVendas.TabelaResultado.columnModel.title1=Nome +LojaConsultaVendas.TabelaResultado.columnModel.title0=Codigo +LojaVenda.PainelVenda.border.title=Venda Produtos +LojaVenda.BotaoNovo.text=Novo +LojaVenda.BotaoGravar.text=Gravar +LojaVenda.BotaoExcluir.text=Excluir +LojaVenda.BotaoCancelar.text=Cancelar +LojaVenda.PainelDadosVenda.border.title=Dados Venda +LojaVenda.LCODVenda.text=Codigo Venda: +LojaVenda.LCODCliente.text=Codigo Cliente: +LojaVenda.LNome.text=Nome: +LojaVenda.LSobrenome.text=Sobrenome: +LojaVenda.TXTCODVenda.text= +LojaVenda.TXTCODCliente.text= +LojaVenda.TXTNome.text= +LojaVenda.TXTSobrenome.text= +LojaVenda.LDataVenda.text=Data Venda: +LojaVenda.LHoraVenda.text=Hora Venda: +LojaVenda.LFormaPagamento.text=Tipo Pagamento +LojaVenda.TXTNCheck.text= +LojaVenda.TXTHoraVenda.text= +LojaVenda.LValorTotal.text=Valor Total: +LojaVenda.TXTValorTotal.text= +LojaVenda.LNCheck.text=N\u00ba Check: +LojaVenda.TXTDataVenda.text= +LojaVenda.LNDOC.text=N\u00ba DOC: +LojaVenda.TXTNDOC.text= +LojaVenda.PainelCarrinhoCompras.border.title=Carrinho de Compras +LojaVenda.TabelaCarrinhoCompras.columnModel.title4=Preco +LojaVenda.TabelaCarrinhoCompras.columnModel.title3=QTD +LojaVenda.TabelaCarrinhoCompras.columnModel.title2=Marca +LojaVenda.TabelaCarrinhoCompras.columnModel.title1=Nome +LojaVenda.TabelaCarrinhoCompras.columnModel.title0=Codigo +LojaVenda.PainelItem.border.title=Item +LojaVenda.LCodigo.text=Codigo: +LojaVenda.LNomeP.text=Nome: +LojaVenda.TXTCodigoP.text= +LojaVenda.LPrecoVenda.text=Preco Venda: +LojaVenda.TXTPrecoVenda.text= +LojaVenda.LMarca.text=Marca: +LojaVenda.LQTD.text=Quantidade: +LojaVenda.LDesconto.text=Desconto: +LojaVenda.TXTDesconto.text= +LojaVenda.BotaoIncluir.text=Incluir +LojaAlteraUsuario.TXTRSenha.text= +LojaAlteraUsuario.TXTSenha.text= +LojaAlteraUsuario.TXTUsuario.text= +LojaAlteraUsuario.LRSenha.text=Repetir a senha: +LojaAlteraUsuario.LSenha.text=Senha: +LojaAlteraUsuario.LNome.text=Nome de Usuario: +LojaAlteraUsuario.BotaoExcluir.text=Excluir +LojaAlteraUsuario.PainelCadastroUsuario.border.title=Alterar Usuario/Senha +LojaAlteraUsuario.BotaoGravar.text=Gravar +LojaAlteraCliente.jLabel20.text=Referencia: +LojaAlteraCliente.jLabel16.text=Pais: +LojaAlteraCliente.jLabel19.text=Complemento: +LojaAlteraCliente.jLabel14.text=Cidade: +LojaAlteraCliente.jLabel18.text=Logadouro: +LojaAlteraCliente.JBCancelar.text=Cancelar +LojaAlteraCliente.JBExcluir.text=Excluir +LojaAlteraCliente.JBGravar.text=Gravar +LojaAlteraCliente.jLabel11.text=Endereco: +LojaAlteraCliente.jLabel10.text=E-mail: +LojaAlteraCliente.jLabel8.text=Telefone: +LojaAlteraCliente.PainelEndCADCliente.border.title=Endereco +LojaAlteraCliente.LRG.text=RG: +LojaAlteraCliente.TXTRG.text= +LojaAlteraCliente.LEstadocivil.text=Estado Civil: +LojaAlteraCliente.TXTDataCadastro.text= +LojaAlteraCliente.LDatacadastro.text=Data Cadastro: +LojaAlteraCliente.TXTDataNascimento.text= +LojaAlteraCliente.LDatanascimento.text=Data Nascimento: +LojaAlteraCliente.TXTCPF.text= +LojaAlteraCliente.LCPF.text=CPF: +LojaAlteraCliente.LSexo.text=Sexo: +LojaAlteraCliente.TXTSobrenome.text= +LojaAlteraCliente.LSobrenome.text=Sobrenome: +LojaAlteraCliente.TXTNome.text= +LojaAlteraCliente.LNome.text=Nome: +LojaAlteraCliente.jLabel9.text=Celular: +LojaAlteraCliente.TXTCodigo.text= +LojaAlteraCliente.LCodigo.text=Codigo: +LojaAlteraCliente.jLabel12.text=Bairro: +LojaAlteraCliente.PainelInfCADCliente.border.title=Informacoes do Cliente +LojaAlteraCliente.jLabel13.text=Numero: +LojaAlteraCliente.PainelCADCliente.border.title= +LojaAlteraCliente.jLabel17.text=CEP: +LojaAlteraCliente.jLabel15.text=UF: +LojaAlteraProduto.LDescricao.text=Descricao: +LojaAlteraProduto.BotaoGravar.text=Gravar +LojaAlteraProduto.LModelo.text=Modelo: +LojaAlteraProduto.LMarca.text=Marca: +LojaAlteraProduto.PainelCadastroProdutos.border.title=Altera Produtos +LojaAlteraProduto.LNome.text=Nome: +LojaAlteraProduto.LCodigo.text=Codigo: +LojaAlteraProduto.TXTValorUnitario.text= +LojaAlteraProduto.TXTValorCusto.text= +LojaAlteraProduto.TXTDataCompra.text= +LojaAlteraProduto.LQuantidade.text=Quantidade: +LojaAlteraProduto.LValorUnitario.text=Valor Unitario: +LojaAlteraProduto.LValorCusto.text=Valor Custo +LojaAlteraProduto.LDataCompra.text=Data Compra: +LojaAlteraProduto.TXTModelo.text= +LojaAlteraProduto.TXTMarca.text= +LojaAlteraProduto.TXTNome.text= +LojaAlteraProduto.TXTCodigo.text= +LojaAlteraProduto.BotaoCancelar.text=Cancelar +LojaAlteraProduto.BotaoExcluir.text=Excluir +LojaAlteraUsuario.BotaoLocalizar.text=Localizar +LojaAlteraUsuario.PainelLocalizarUsuario.border.title=Localizar Usuario +LojaAlteraUsuario.LUsuario.text=Usuario: +LojaAlteraUsuario.LSenhaAtual.text=Senha Atual: +LojaAlteraUsuario.TXTUsuarioBusca.text= +LojaAlteraUsuario.TXTSenhaAtual.text= +LojaAlteraCliente.PainelLocalizar.border.title=Localizar Cliente +LojaAlteraCliente.TXTCodigoB.text=Codigo +LojaAlteraCliente.TXTNomeB.text=Nome +LojaAlteraCliente.TXTSobrenomeB.text=Sobrenome +LojaAlteraCliente.TXTBusca.text= +LojaAlteraCliente.BotaoLocalizar.text=Localizar +LojaAlteraProduto.TXTCodigoB.text=Codigo +LojaAlteraProduto.PainelLocalizar.border.title=Localizar Produto +LojaAlteraProduto.BotaoLocalizar.text=Localizar +LojaAlteraProduto.TXTBusca.text= +LojaAlteraProduto.TXTSobrenomeB.text=Marca +LojaAlteraProduto.TXTNomeB.text=Nome +LojaAlteraProduto.TabelaResultado.columnModel.title5=QTD +LojaAlteraProduto.TabelaResultado.columnModel.title4=Valor Unitario +LojaAlteraProduto.TabelaResultado.columnModel.title3=Modelo +LojaAlteraProduto.TabelaResultado.columnModel.title2=Marca +LojaAlteraProduto.TabelaResultado.columnModel.title1=Nome +LojaAlteraProduto.TabelaResultado.columnModel.title0=Codigo +LojaAlteraProduto.TXTModeloB.text=Modelo +LojaAlteraCliente.TabelaResultado.columnModel.title5=QTD +LojaAlteraCliente.TabelaResultado.columnModel.title4=RG +LojaAlteraCliente.TabelaResultado.columnModel.title3=CPF +LojaAlteraCliente.TabelaResultado.columnModel.title2=Sobrenome +LojaAlteraCliente.TabelaResultado.columnModel.title1=Nome +LojaAlteraCliente.TabelaResultado.columnModel.title0=Codigo +ConsultaCliente.TXTConsulta.text= +ConsultaCliente.TXTSobrenome.text=Sobrenome +ConsultaCliente.BotaoConsulta.text=Consulta +ConsultaCliente.TXTNome.text=Nome +ConsultaCliente.TXTCodigo.text=CPF +ConsultaCliente.TXTRG.text=RG +ConsultaCliente.BotaoCancelar.text=Consulta +ConsultaCliente.BotaoAlterar.text=Alterar +ConsultaCliente.PainelConsultaCliente.border.title=Consulta Cliente +AlteraCliente.TXTNome.text= +AlteraCliente.TXTSobrenome.text= +AlteraCliente.TXTCPF.text= +AlteraCliente.TXTDataNascimento.text= +AlteraCliente.TXTRG.text= +AlteraCliente.TXTBusca.text= +AlteraCliente.PainelCADCliente.border.title=Alterar Cadatro de Cliente +AlteraCliente.LNome.text=Nome +AlteraCliente.LSobrenome.text=Sobrenome +AlteraCliente.LSexo.text=Sexo +AlteraCliente.LCPF.text=CPF +AlteraCliente.LRG.text=RG +AlteraCliente.LEstadocivil.text=Estado Civil +AlteraCliente.LDatanascimento.text=Data Nascimento +AlteraCliente.jLabel12.text=Bairro +AlteraCliente.jLabel13.text=Numero +AlteraCliente.jLabel15.text=Estado +AlteraCliente.jLabel17.text=CEP +AlteraCliente.jLabel20.text=Referencia +AlteraCliente.jLabel9.text=Celular +AlteraCliente.PainelInfCADCliente.border.title=Informa\u00e7\u00f5es do Cliente +AlteraCliente.PainelEndCADCliente.border.title=Informa\u00e7\u00f5es complementares do Cliente +AlteraCliente.jLabel8.text=Telefone +AlteraCliente.jLabel10.text=Email +AlteraCliente.jLabel11.text=Endere\u00e7o +AlteraCliente.jLabel18.text=Logadouro +AlteraCliente.jLabel14.text=Cidade +AlteraCliente.jLabel19.text=Complemento +AlteraCliente.JBCancelar.text=Cancelar +AlteraCliente.JBExcluir.text=Excluir +AlteraCliente.JBGravar.text=Gravar +AlteraCliente.TXTSobrenomeB.text=Sobrenome +AlteraCliente.TXTNomeB.text=Nome +AlteraCliente.TXTCodigoB.text=CPF +AlteraCliente.BotaoLocalizar.text=Localizar +AlteraCliente.PainelLocalizar.border.title=Localizar Cadastro +AlteraProduto.TXTBusca.text= +AlteraProduto.TXTModeloB.text=Modelo +AlteraProduto.TXTCodigoB.text=Codigo +AlteraProduto.TXTNomeB.text=Nome +AlteraProduto.TXTSobrenomeB.text=Marca +AlteraProduto.BotaoLocalizar.text=Localizar +AlteraProduto.TXTCodigo.text= +AlteraProduto.TXTNome.text= +AlteraProduto.TXTMarca.text= +AlteraProduto.TXTModelo.text= +AlteraProduto.LDescricao.text=Descri\u00e7\u00e3o +AlteraProduto.LModelo.text=Modelo +AlteraProduto.LMarca.text=Marca +AlteraProduto.LNome.text=Nome +AlteraProduto.LCodigo.text=Codigo +AlteraProduto.LValorCusto.text=Valor Custo +AlteraProduto.LValorUnitario.text=Valor Unitario +AlteraProduto.LQuantidade.text=Quantidade +AlteraProduto.TXTValorCusto.text= +AlteraProduto.TXTValorUnitario.text= +AlteraProduto.PainelCadastroProdutos.border.title=Alterar Produtos +AlteraProduto.BotaoCancelar.text=Cancelar +AlteraProduto.BotaoExcluir.text=Excluir +AlteraProduto.BotaoGravar.text=Gravar +AlteraProduto.PainelLocalizar.border.title=Localizar Produto +AlteraUsuario.TXTUsuarioBusca.text= +AlteraUsuario.TXTSenhaAtual.text= +AlteraUsuario.BotaoLocalizar.text=Localizar +AlteraUsuario.LSenhaAtual.text=Senha +AlteraUsuario.PainelLocalizarUsuario.border.title=Localizar Usuario +AlteraUsuario.PainelCadastroUsuario.border.title=Alterar Dados Usuario +AlteraUsuario.TXTUsuario.text= +AlteraUsuario.TXTSenha.text= +AlteraUsuario.TXTRSenha.text= +AlteraUsuario.LNome.text=Usuario +AlteraUsuario.LSenha.text=Senha +AlteraUsuario.LRSenha.text=Repetir Senha +AlteraUsuario.BotaoExcluir.text=Excluir +AlteraUsuario.BotaoGravar.text=Gravar +AlteraUsuario.LEmail.text=Email +AlteraUsuario.TXTEmail.text= +CadastroCliente.TXTNome.text= +CadastroCliente.TXTSobrenome.text= +CadastroCliente.TXTCPF.text= +CadastroCliente.TXTDataNascimento.text= +CadastroCliente.TXTRG.text= +CadastroCliente.LNome.text=Nome +CadastroCliente.LSobrenome.text=Sobrenome +CadastroCliente.LSexo.text=Sexo +CadastroCliente.LCPF.text=CPF +CadastroCliente.LRG.text=RG +CadastroCliente.LEstadocivil.text=Estado Civil +CadastroCliente.LDatanascimento.text=Data Nascimento +CadastroCliente.PainelInfCADCliente.border.title=Dados Cliente +CadastroCliente.PainelEndCADCliente.border.title=Informa\u00e7\u00f5es Complementares do Cliente +CadastroCliente.jLabel15.text=Estado +CadastroCliente.jLabel8.text=Telefone +CadastroCliente.jLabel10.text=Email +CadastroCliente.jLabel14.text=Cidade +CadastroCliente.jLabel19.text=Complemento +CadastroCliente.jLabel20.text=Referencia +CadastroCliente.jLabel17.text=CEP +CadastroCliente.jLabel11.text=Endere\u00e7o +CadastroCliente.jLabel18.text=Logadouro +CadastroCliente.jLabel9.text=Celular +CadastroCliente.jLabel12.text=Bairro +CadastroCliente.jLabel13.text=Numero +CadastroCliente.PainelCADCliente.border.title=Dados do CLiente +CadastroCliente.JBCancelar.text=Cancelar +CadastroCliente.JBGravar.text=Gravar +CadastroProduto.TXTCodigo.text= +CadastroProduto.TXTNome.text= +CadastroProduto.TXTMarca.text= +CadastroProduto.TXTModelo.text= +CadastroProduto.LCodigo.text=Codigo +CadastroProduto.LNome.text=Nome +CadastroProduto.LMarca.text=Marca +CadastroProduto.LModelo.text=Modelo +CadastroProduto.LDescricao.text=Descri\u00e7\u00e3o +CadastroProduto.LValorCusto.text=Valor Custo +CadastroProduto.LValorUnitario.text=Valor Unitario +CadastroProduto.LQuantidade.text=Quantidade +CadastroProduto.TXTValorCusto.text= +CadastroProduto.TXTValorUnitario.text= +CadastroProduto.PainelCadastroProdutos.border.title=Cadastro de Produtos +CadastroProduto.BotaoCancelar.text=Cancelar +CadastroProduto.BotaoGravar.text=Gravar +CadastroUsuario.TXTUsuario.text= +CadastroUsuario.TXTSenha.text= +CadastroUsuario.TXTRSenha.text= +CadastroUsuario.LSenha.text=Senha +CadastroUsuario.LRSenha.text=Repetir Senha +CadastroUsuario.BotaoGravar.text=Gravar +CadastroUsuario.BotaoCancelar.text=Cancelar +CadastroUsuario.jLabel1.text=Email +CadastroUsuario.PainelCadastroUsuario.border.title=Cadastro Usuarios +CadastroUsuario.TXTRG.text= +CadastroUsuario.TXTCPF.text= +CadastroUsuario.TXTSobrenome.text= +CadastroUsuario.TXTNome.text= +CadastroUsuario.LUsuario.text=Usuario +CadastroUsuario.LNome.text=Nome +CadastroUsuario.LSobrenome.text=Sobrenome +CadastroUsuario.LCPF.text=CPF +CadastroUsuario.LRG.text=RG +AlteraUsuario.LSobrenome.text=Sobrenome +AlteraUsuario.LNome1.text=Nome +AlteraUsuario.TXTRG.text= +AlteraUsuario.TXTCPF.text= +AlteraUsuario.TXTSobrenome.text= +AlteraUsuario.TXTNome.text= +AlteraUsuario.LRG.text=RG +AlteraUsuario.LCPF.text=CPF +ConsultaProduto.PanelConsultaProduto.border.title=Consulta Produtos +ConsultaProduto.TXTCodigo.text=Codigo +ConsultaProduto.TXTNome.text=Nome +ConsultaProduto.TXTMarca.text=Marca +ConsultaProduto.TXTConsulta.text= +ConsultaProduto.BotaoCancelar.text=Cancelar +ConsultaProduto.BotaoAlterar.text=Consultar +ConsultaVendas.PainelConsultaVendas.border.title=Consulta Vendas +ConsultaVendas.BotaoCancelar.text=Cancelar +ConsultaVendas.TXTCodigo.text=Codigo +ConsultaVendas.TXTNome.text=Nome +ConsultaVendas.TXTSobrenome.text=Sobrenome +ConsultaVendas.TXTData.text=Data Vendas +ConsultaVendas.TXTConsuta.text= +MovimentoCaixa.BotaoCancelar.text=Cancelar +MovimentoCaixa.BotaoOK.text=Gravar +MovimentoCaixa.LUltimasVendas.text=Ultimas Vendas +MovimentoCaixa.PainelMovimentoCaixa.border.title=Movimento Caixa +Relatorio.PainelRelatorioP.border.title=Relatorio +Relatorio.TXTVendas.text=Vendas +Relatorio.TXTContasReceber.text=Contas Receber +Relatorio.TXTCliente.text=Clientes +Relatorio.LDataI.text=Data Inicial +Relatorio.TXTDataI.text= +Relatorio.LDataF.text=Data Final +Relatorio.TXTDataF.text= +Relatorio.jCheckBox1.text=Produtos +Relatorio.BotaoCancelar.text=Cancelar +RelatorioClientes.PainelResultado.border.title=Relatorio Clientes +RelatorioContasReceber.PainelRelatorioContasReceber.border.title=Relatorio Contas Receber +RelatorioProdutos.PainelRelatorioProdutos.border.title=Relatorio Produtos +RelatorioVendas.PainelRelatorioVendas.border.title=Relatorio Vendas +Venda.TXTCodigoP.text= +Venda.TXTPrecoVenda.text= +Venda.TXTDesconto.text= +Venda.PainelItem.border.title=Item de Venda +Venda.PainelVenda.border.title=Venda de Mercadorias +Venda.LMarca.text=Marca +Venda.LQTD.text=Quantidade +Venda.LDesconto.text=Desconto +Venda.LCodigo.text=Codigo +Venda.LPrecoVenda.text=Pre\u00e7o de Venda +Venda.LNomeP.text=Nome +Venda.BotaoIncluir.text=Incluir +Venda.PainelCarrinhoCompras.border.title=Carrinho de Compras +Venda.LFormaPagamento.text=Forma de Pagamento +Venda.LNCheck.text=N\u00ba Check +Venda.LNDOC.text=N\u00ba DOC +Venda.TXTNCheck.text= +Venda.TXTNDOC.text= +Venda.LValorTotal.text=Valor Total +Venda.LSobrenome.text=Sobrenome +Venda.LNome.text=Nome +Venda.LCODCliente.text=CPF +Venda.TXTCODCliente.text= +Venda.TXTNome.text= +Venda.TXTSobrenome.text= +Venda.TXTValorTotal.text= +Venda.TXTCODVenda.text= +Venda.LCODVenda.text=Codigo Venda +Venda.PainelDadosVenda.border.title=Dados Venda +Venda.BotaoCancelar.text=Cancelar +Venda.BotaoGravar.text=Gravar +ConsultaVendas.BotaoAlterar.text=Consultar +ConsultaVendas.BotaoConsultar.text=Listar +ConsultaProduto.BotaoConsultar.text=Consultar +Relatorio.BotaoGerar.text=Gerar +CadastroUsuario.TXTEmail.text= diff --git a/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.form b/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.form new file mode 100644 index 0000000..ca456b9 --- /dev/null +++ b/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.form @@ -0,0 +1,361 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.java b/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.java new file mode 100644 index 0000000..4b2f77f --- /dev/null +++ b/LojaInstrumentos/src/telas/jinternalframe/CadastroProduto.java @@ -0,0 +1,396 @@ + +package telas.jinternalframe; +import listener.ProdutoListener; + +public class CadastroProduto extends javax.swing.JInternalFrame { + private ProdutoListener listener = new ProdutoListener (this); + /** + * Creates new form LojaCadastroProduto + */ + public CadastroProduto() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + PainelCadastroProdutos = new javax.swing.JPanel(); + PainelBotoes = new javax.swing.JPanel(); + BotaoGravar = new javax.swing.JButton(); + BotaoCancelar = new javax.swing.JButton(); + PainelCamposdados1 = new javax.swing.JPanel(); + TXTCodigo = new javax.swing.JTextField(); + TXTNome = new javax.swing.JTextField(); + TXTMarca = new javax.swing.JTextField(); + TXTModelo = new javax.swing.JTextField(); + PainelCamposdados2 = new javax.swing.JPanel(); + LValorCusto = new javax.swing.JLabel(); + LValorUnitario = new javax.swing.JLabel(); + LQuantidade = new javax.swing.JLabel(); + TXTValorCusto = new javax.swing.JTextField(); + TXTValorUnitario = new javax.swing.JTextField(); + TXTQuantidade = new javax.swing.JSpinner(); + LCodigo = new javax.swing.JLabel(); + LNome = new javax.swing.JLabel(); + LMarca = new javax.swing.JLabel(); + LModelo = new javax.swing.JLabel(); + LDescricao = new javax.swing.JLabel(); + PTXTDescricao = new javax.swing.JScrollPane(); + TXTDescricao = new javax.swing.JTextArea(); + + java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("telas/jinternalframe/Bundle"); // NOI18N + PainelCadastroProdutos.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("CadastroProduto.PainelCadastroProdutos.border.title"))); // NOI18N + + BotaoGravar.setText(bundle.getString("CadastroProduto.BotaoGravar.text")); // NOI18N + BotaoGravar.addActionListener(listener); + BotaoGravar.setActionCommand("gravar"); + BotaoCancelar.setText(bundle.getString("CadastroProduto.BotaoCancelar.text")); // NOI18N + BotaoCancelar.addActionListener(listener); + BotaoCancelar.setActionCommand("cancelar"); + javax.swing.GroupLayout PainelBotoesLayout = new javax.swing.GroupLayout(PainelBotoes); + PainelBotoes.setLayout(PainelBotoesLayout); + PainelBotoesLayout.setHorizontalGroup( + PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelBotoesLayout.createSequentialGroup() + .addGap(180, 180, 180) + .addComponent(BotaoGravar, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(165, 165, 165) + .addComponent(BotaoCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(24, Short.MAX_VALUE)) + ); + PainelBotoesLayout.setVerticalGroup( + PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelBotoesLayout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(BotaoGravar) + .addComponent(BotaoCancelar)) + .addContainerGap()) + ); + + TXTCodigo.setEditable(false); + TXTCodigo.setText(bundle.getString("CadastroProduto.TXTCodigo.text")); // NOI18N + TXTCodigo.setEnabled(false); + + TXTNome.setText(bundle.getString("CadastroProduto.TXTNome.text")); // NOI18N + + TXTMarca.setText(bundle.getString("CadastroProduto.TXTMarca.text")); // NOI18N + + TXTModelo.setText(bundle.getString("CadastroProduto.TXTModelo.text")); // NOI18N + + javax.swing.GroupLayout PainelCamposdados1Layout = new javax.swing.GroupLayout(PainelCamposdados1); + PainelCamposdados1.setLayout(PainelCamposdados1Layout); + PainelCamposdados1Layout.setHorizontalGroup( + PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addComponent(TXTMarca, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) + .addComponent(TXTModelo, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(TXTCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE) + .addComponent(TXTNome)) + .addContainerGap(29, Short.MAX_VALUE)) + ); + PainelCamposdados1Layout.setVerticalGroup( + PainelCamposdados1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados1Layout.createSequentialGroup() + .addComponent(TXTCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(TXTModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 18, Short.MAX_VALUE)) + ); + + LValorCusto.setText(bundle.getString("CadastroProduto.LValorCusto.text")); // NOI18N + + LValorUnitario.setText(bundle.getString("CadastroProduto.LValorUnitario.text")); // NOI18N + + LQuantidade.setText(bundle.getString("CadastroProduto.LQuantidade.text")); // NOI18N + + TXTValorCusto.setText(bundle.getString("CadastroProduto.TXTValorCusto.text")); // NOI18N + + TXTValorUnitario.setText(bundle.getString("CadastroProduto.TXTValorUnitario.text")); // NOI18N + + javax.swing.GroupLayout PainelCamposdados2Layout = new javax.swing.GroupLayout(PainelCamposdados2); + PainelCamposdados2.setLayout(PainelCamposdados2Layout); + PainelCamposdados2Layout.setHorizontalGroup( + PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados2Layout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(LValorCusto) + .addComponent(LValorUnitario) + .addComponent(LQuantidade)) + .addGap(40, 40, 40) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(TXTQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(TXTValorUnitario, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE) + .addComponent(TXTValorCusto)) + .addContainerGap(15, Short.MAX_VALUE)) + ); + PainelCamposdados2Layout.setVerticalGroup( + PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCamposdados2Layout.createSequentialGroup() + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(TXTValorCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(LValorCusto)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(TXTValorUnitario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(LValorUnitario)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(PainelCamposdados2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(LQuantidade) + .addComponent(TXTQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(0, 46, Short.MAX_VALUE)) + ); + + LCodigo.setText(bundle.getString("CadastroProduto.LCodigo.text")); // NOI18N + + LNome.setText(bundle.getString("CadastroProduto.LNome.text")); // NOI18N + + LMarca.setText(bundle.getString("CadastroProduto.LMarca.text")); // NOI18N + + LModelo.setText(bundle.getString("CadastroProduto.LModelo.text")); // NOI18N + + LDescricao.setText(bundle.getString("CadastroProduto.LDescricao.text")); // NOI18N + + TXTDescricao.setColumns(20); + TXTDescricao.setRows(5); + PTXTDescricao.setViewportView(TXTDescricao); + + javax.swing.GroupLayout PainelCadastroProdutosLayout = new javax.swing.GroupLayout(PainelCadastroProdutos); + PainelCadastroProdutos.setLayout(PainelCadastroProdutosLayout); + PainelCadastroProdutosLayout.setHorizontalGroup( + PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addContainerGap() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(PainelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(PTXTDescricao, javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(LDescricao) + .addGap(227, 227, 227)) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(LCodigo) + .addComponent(LNome) + .addComponent(LMarca) + .addComponent(LModelo)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE) + .addComponent(PainelCamposdados1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(PainelCamposdados2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addGap(17, 17, 17)))) + ); + PainelCadastroProdutosLayout.setVerticalGroup( + PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelCadastroProdutosLayout.createSequentialGroup() + .addGroup(PainelCadastroProdutosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addGroup(PainelCadastroProdutosLayout.createSequentialGroup() + .addComponent(LCodigo) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LNome) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LMarca) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(LModelo) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(LDescricao)) + .addComponent(PainelCamposdados2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(PainelCamposdados1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(PTXTDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(PainelBotoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(PainelCadastroProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(PainelCadastroProdutos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + ); + + pack(); + }// //GEN-END:initComponents + + + + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton BotaoCancelar; + private javax.swing.JButton BotaoGravar; + private javax.swing.JLabel LCodigo; + private javax.swing.JLabel LDescricao; + private javax.swing.JLabel LMarca; + private javax.swing.JLabel LModelo; + private javax.swing.JLabel LNome; + private javax.swing.JLabel LQuantidade; + private javax.swing.JLabel LValorCusto; + private javax.swing.JLabel LValorUnitario; + private javax.swing.JScrollPane PTXTDescricao; + private javax.swing.JPanel PainelBotoes; + private javax.swing.JPanel PainelCadastroProdutos; + private javax.swing.JPanel PainelCamposdados1; + private javax.swing.JPanel PainelCamposdados2; + private javax.swing.JTextField TXTCodigo; + private javax.swing.JTextArea TXTDescricao; + private javax.swing.JTextField TXTMarca; + private javax.swing.JTextField TXTModelo; + private javax.swing.JTextField TXTNome; + private javax.swing.JSpinner TXTQuantidade; + private javax.swing.JTextField TXTValorCusto; + private javax.swing.JTextField TXTValorUnitario; + // End of variables declaration//GEN-END:variables + + /** + * @return the PTXTDescricao + */ + public javax.swing.JScrollPane getPTXTDescricao() { + return PTXTDescricao; + } + + /** + * @param PTXTDescricao the PTXTDescricao to set + */ + public void setPTXTDescricao(javax.swing.JScrollPane PTXTDescricao) { + this.PTXTDescricao = PTXTDescricao; + } + + /** + * @return the TXTCodigo + */ + public javax.swing.JTextField getTXTCodigo() { + return TXTCodigo; + } + + /** + * @param TXTCodigo the TXTCodigo to set + */ + public void setTXTCodigo(javax.swing.JTextField TXTCodigo) { + this.TXTCodigo = TXTCodigo; + } + + + /** + * @return the TXTDescricao + */ + public javax.swing.JTextArea getTXTDescricao() { + return TXTDescricao; + } + + /** + * @param TXTDescricao the TXTDescricao to set + */ + public void setTXTDescricao(javax.swing.JTextArea TXTDescricao) { + this.TXTDescricao = TXTDescricao; + } + + /** + * @return the TXTMarca + */ + public javax.swing.JTextField getTXTMarca() { + return TXTMarca; + } + + /** + * @param TXTMarca the TXTMarca to set + */ + public void setTXTMarca(javax.swing.JTextField TXTMarca) { + this.TXTMarca = TXTMarca; + } + + /** + * @return the TXTModelo + */ + public javax.swing.JTextField getTXTModelo() { + return TXTModelo; + } + + /** + * @param TXTModelo the TXTModelo to set + */ + public void setTXTModelo(javax.swing.JTextField TXTModelo) { + this.TXTModelo = TXTModelo; + } + + /** + * @return the TXTNome + */ + public javax.swing.JTextField getTXTNome() { + return TXTNome; + } + + /** + * @param TXTNome the TXTNome to set + */ + public void setTXTNome(javax.swing.JTextField TXTNome) { + this.TXTNome = TXTNome; + } + + /** + * @return the TXTQuantidade + */ + public javax.swing.JSpinner getTXTQuantidade() { + return TXTQuantidade; + } + + /** + * @param TXTQuantidade the TXTQuantidade to set + */ + public void setTXTQuantidade(javax.swing.JSpinner TXTQuantidade) { + this.TXTQuantidade = TXTQuantidade; + } + + /** + * @return the TXTValorCusto + */ + public javax.swing.JTextField getTXTValorCusto() { + return TXTValorCusto; + } + + /** + * @param TXTValorCusto the TXTValorCusto to set + */ + public void setTXTValorCusto(javax.swing.JTextField TXTValorCusto) { + this.TXTValorCusto = TXTValorCusto; + } + + /** + * @return the TXTValorUnitario + */ + public javax.swing.JTextField getTXTValorUnitario() { + return TXTValorUnitario; + } + + /** + * @param TXTValorUnitario the TXTValorUnitario to set + */ + public void setTXTValorUnitario(javax.swing.JTextField TXTValorUnitario) { + this.TXTValorUnitario = TXTValorUnitario; + } +}