Skip to content

Commit 5d7b2db

Browse files
committed
Merge branch 'Athaua-master't push origin master
2 parents 9aeda85 + 9f0ceab commit 5d7b2db

16 files changed

+142
-1293
lines changed

Projeto/Clientes.xls

0 Bytes
Binary file not shown.
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
object dmConexao: TdmConexao
2-
OldCreateOrder = False
3-
OnCreate = DataModuleCreate
4-
Height = 285
5-
Width = 350
6-
object FDConnection1: TFDConnection
7-
Params.Strings = (
8-
'LockingMode=Normal'
9-
'Database=database.db3'
10-
'DriverID=SQLite')
11-
ConnectedStoredUsage = []
12-
LoginPrompt = False
13-
BeforeConnect = FDConnection1BeforeConnect
14-
Left = 60
15-
Top = 44
16-
end
17-
object FDGUIxWaitCursor1: TFDGUIxWaitCursor
18-
Provider = 'Forms'
19-
Left = 228
20-
Top = 48
21-
end
22-
object FDPhysSQLiteDriverLink1: TFDPhysSQLiteDriverLink
23-
Left = 60
24-
Top = 152
25-
end
26-
end
1+
object dmConexao: TdmConexao
2+
OldCreateOrder = False
3+
OnCreate = DataModuleCreate
4+
Height = 285
5+
Width = 350
6+
object FDConnection1: TFDConnection
7+
Params.Strings = (
8+
'LockingMode=Normal'
9+
'Database=database.db3'
10+
'DriverID=SQLite')
11+
ConnectedStoredUsage = []
12+
LoginPrompt = False
13+
BeforeConnect = FDConnection1BeforeConnect
14+
Left = 60
15+
Top = 44
16+
end
17+
object FDGUIxWaitCursor1: TFDGUIxWaitCursor
18+
Provider = 'Forms'
19+
Left = 228
20+
Top = 48
21+
end
22+
object FDPhysSQLiteDriverLink1: TFDPhysSQLiteDriverLink
23+
Left = 60
24+
Top = 152
25+
end
26+
end

Projeto/Model/Entity/entity.pessoa.pas

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface
2727
type
2828
[Enumeration(etChar,'M,F')]
2929
TSexo = (Masculino, Feminino);
30-
[Enumeration(etString,'A,I,M')] {Ativo, Inativo, Matrículado}
30+
[Enumeration(etChar,'A,I,M')] {Ativo, Inativo, Matrículado}
3131
TStatus = (Ativo, Inativo, Matriculado);
3232

3333
[ Entity ]
@@ -44,6 +44,7 @@ TPessoa = class
4444
Ftelefone : string;
4545
fsexo : TSexo;
4646
fdatanascimento: TDate;
47+
fsenha : string;
4748
fStatus : TStatus;
4849
public
4950
[ Restrictions([ NoUpdate, NotNull ]) ]
@@ -80,6 +81,10 @@ TPessoa = class
8081
[ Dictionary('Nascimento', 'Mensagem validação', '', '', '', tacenter) ]
8182
property datanascimento: TDate read fdatanascimento write fdatanascimento;
8283

84+
[ Column('senha', ftString) ]
85+
[ Dictionary('Senha', 'Mensagem validação', '', '', '', tacenter) ]
86+
property senha: string read fsenha write fsenha;
87+
8388
[ Column('status', ftString,1) ]
8489
[ Dictionary('Status', 'Mensagem validação', '', '', '', tacenter) ]
8590
property status: TStatus read fStatus write fStatus;
@@ -94,19 +99,20 @@ implementation
9499

95100
function TPessoa.Clonar: TPessoa;
96101
var
97-
ClonePessoa: TPessoa;
102+
Albieri: TPessoa;
98103
begin
99-
ClonePessoa := TPessoa.Create;
100-
101-
ClonePessoa.Id := Self.Id;
102-
ClonePessoa.Nome := Self.Nome;
103-
ClonePessoa.Matricula := Self.Matricula;
104-
ClonePessoa.sobrenome := Self.sobrenome;
105-
ClonePessoa.email := Self.email;
106-
ClonePessoa.telefone := Self.telefone;
107-
ClonePessoa.sexo := Self.sexo;
108-
ClonePessoa.datanascimento := Self.datanascimento;
109-
result := ClonePessoa;
104+
Albieri := TPessoa.Create;
105+
106+
Albieri.Id := Self.Id;
107+
Albieri.Nome := Self.Nome;
108+
Albieri.Matricula := Self.Matricula;
109+
Albieri.sobrenome := Self.sobrenome;
110+
Albieri.email := Self.email;
111+
Albieri.telefone := Self.telefone;
112+
Albieri.sexo := Self.sexo;
113+
Albieri.datanascimento := Self.datanascimento;
114+
Albieri.status := Self.status;
115+
result := Albieri;
110116
end;
111117

112118
initialization

Projeto/PosDelphi.dpr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ begin
110110
Application.Initialize;
111111
Application.MainFormOnTaskbar := True;
112112
if TFLogin.SolicitarLogin then
113-
begin
113+
begin
114114
Application.CreateForm(TPrincipal, Principal);
115+
115116
Application.CreateForm(TdmConexao, dmConexao);
116117
Application.CreateForm(TfrmTelaDeInicio, frmTelaDeInicio);
117118
Application.CreateForm(Tfrm_ModelState, frm_ModelState);

0 commit comments

Comments
 (0)