This repository has been archived by the owner on Aug 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtelausuariouser.pas
118 lines (91 loc) · 2.34 KB
/
telausuariouser.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
unit telaUsuarioUser;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ExtCtrls;
type
{ TFrUsuario }
TFrUsuario = class(TForm)
btUsuarioTransferencia: TButton;
btUsuarioSaque: TButton;
btExtratoUsuario: TButton;
btSaldo: TButton;
Image2: TImage;
Image3: TImage;
Image4: TImage;
Image5: TImage;
procedure btExtratoUsuarioClick(Sender: TObject);
procedure btSaldoClick(Sender: TObject);
procedure btUsuarioDepositoClick(Sender: TObject);
procedure btUsuarioSaqueClick(Sender: TObject);
procedure btUsuarioTransferenciaClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: char);
procedure FormShow(Sender: TObject);
// procedure Image2Click(Sender: TObject);
procedure stSaque();
private
{ private declarations }
public
{ public declarations }
end;
var
FrUsuario: TFrUsuario;
implementation
{$R *.lfm}
uses telaSaqueUsuario, funcoes, telaTransferencia, telaDeposito, telaStatusOperacao, LimparForms;
{ TFrUsuario }
procedure TFrUsuario.FormCreate(Sender: TObject);
begin
end;
procedure TFrUsuario.FormKeyPress(Sender: TObject; var Key: char);
begin
if (Key = #65) OR (Key = #97) then
btUsuarioTransferenciaClick(self);
if (Key = #100) OR (Key = #68) then
btUsuarioSaqueClick(self);
if (Key = #83) OR (Key = #115) then
btSaldoClick(self);
if (Key = #102) OR (Key = #70) then
btExtratoUsuarioClick(self);
end;
procedure TFrUsuario.FormShow(Sender: TObject);
begin
stSaque();
end;
procedure TFrUsuario.btUsuarioSaqueClick(Sender: TObject);
begin
frSaqueUsuario.Show;
FrUsuario.Close;
end;
procedure TFrUsuario.btUsuarioTransferenciaClick(Sender: TObject);
begin
frTransferencia.Show;
FrUsuario.Close;
end;
procedure TFrUsuario.btUsuarioDepositoClick(Sender: TObject);
begin
frDeposito.Show;
FrUsuario.Close;
end;
procedure TFrUsuario.btSaldoClick(Sender: TObject);
begin
tela:=4;
exibirTela(4);
frStausOperacao.Show;
FrUsuario.Close;
end;
procedure TFrUsuario.btExtratoUsuarioClick(Sender: TObject);
begin
tela:=5;
exibirTela(5);
frStausOperacao.Show;
FrUsuario.Close;
end;
procedure TFrUsuario.stSaque();
begin
if statusSaque = 1 then
btUsuarioSaque.Hide;
end;
end.