-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52b3e27
commit 69e4996
Showing
29 changed files
with
8,121 additions
and
1,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ALTER TABLE "Selecionar Perfil" ADD GestaoPcent BOOLEAN DEFAULT 0; | ||
CREATE TABLE "ConfigPrograma" ( | ||
"ExibirTelaBoasVindas" BOOLEAN DEFAULT 1 | ||
); | ||
|
||
UPDATE ControleVersao SET Versao = 16; | ||
UPDATE ControleVersao SET Versao = 17; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
unit untBoasVindas; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
Classes, SysUtils, SQLDB, IBConnection, PQConnection, MSSQLConn, SQLite3Conn, | ||
DB, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls, DBGrids, DBCtrls, | ||
Menus, ActnList, Buttons, ExtCtrls, TAGraph, TARadialSeries, TASeries, TADbSource, | ||
TACustomSeries, TAMultiSeries, DateUtils, contnrs, fgl, untMain; | ||
|
||
type | ||
|
||
{ TformBoasVindas } | ||
|
||
TformBoasVindas = class(TForm) | ||
btnGitHub: TBitBtn; | ||
btnDoacao: TBitBtn; | ||
chbExibirNovamente: TDBCheckBox; | ||
dsExibirJanela: TDataSource; | ||
Image1: TImage; | ||
lbAtencao: TLabel; | ||
lbBemVindo: TLabel; | ||
mmIntro: TMemo; | ||
mmAtencao: TMemo; | ||
qrExibirJanela: TSQLQuery; | ||
qrExibirJanelaExibirTelaBoasVindas: TBooleanField; | ||
procedure btnDoacaoClick(Sender: TObject); | ||
procedure btnGitHubClick(Sender: TObject); | ||
procedure chbExibirNovamenteClick(Sender: TObject); | ||
procedure FormShow(Sender: TObject); | ||
private | ||
|
||
public | ||
|
||
end; | ||
|
||
var | ||
formBoasVindas: TformBoasVindas; | ||
LocalArquivo: string; | ||
Arquivo: TStringList; | ||
|
||
implementation | ||
uses | ||
fpjson, HTTPDefs, fphttpclient, jsonparser, LCLIntf; | ||
|
||
{$R *.lfm} | ||
|
||
{ TformBoasVindas } | ||
|
||
procedure TformBoasVindas.FormShow(Sender: TObject); | ||
begin | ||
writeln('Exibindo tela de boas-vindas'); | ||
with qrExibirJanela do | ||
if not Active then Open; | ||
end; | ||
|
||
procedure TformBoasVindas.chbExibirNovamenteClick(Sender: TObject); | ||
begin | ||
with formPrincipal do | ||
with qrExibirJanela do | ||
with transactionBancoDados do | ||
with chbExibirNovamente do | ||
try | ||
if not Active then Open; | ||
Edit; | ||
if FieldByName('ExibirTelaBoasVindas').AsBoolean = true then | ||
Checked := true | ||
else Checked := false; | ||
Post; | ||
ApplyUpdates; | ||
CommitRetaining; | ||
except | ||
on E: Exception do | ||
begin | ||
Cancel; | ||
RollbackRetaining; | ||
raise Exception.Create('Não foi possível salvar configurações da tela ' + | ||
'de boas-vindas, ' + E.Message); | ||
end; | ||
end; | ||
end; | ||
|
||
procedure TformBoasVindas.btnGitHubClick(Sender: TObject); | ||
begin | ||
OpenURL('https://github.com/FeroxGraxaim/graxaimgestaodebanca'); | ||
end; | ||
|
||
procedure TformBoasVindas.btnDoacaoClick(Sender: TObject); | ||
begin | ||
openurl('https://link.mercadopago.com.br/graxaimgestaodebanca'); | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.