-
Notifications
You must be signed in to change notification settings - Fork 2
/
Unit1.fmx
214 lines (213 loc) · 5.53 KB
/
Unit1.fmx
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 570
ClientWidth = 380
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop]
OnShow = FormShow
DesignerMasterStyle = 3
object ToolBar1: TToolBar
Size.Width = 380.000000000000000000
Size.Height = 48.000000000000000000
Size.PlatformDefault = False
TabOrder = 8
object Button1: TButton
Align = Center
Size.Width = 297.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
Text = 'Listar Contatos'
end
end
object ListView1: TListView
ItemAppearanceClassName = 'TImageListItemBottomDetailAppearance'
ItemEditAppearanceClassName = 'TImageListItemBottomDetailShowCheckAppearance'
HeaderAppearanceClassName = 'TListHeaderObjects'
FooterAppearanceClassName = 'TListHeaderObjects'
Align = Top
Position.Y = 48.000000000000000000
Size.Width = 380.000000000000000000
Size.Height = 209.000000000000000000
Size.PlatformDefault = False
TabOrder = 9
end
object Label1: TLabel
Align = Top
Margins.Left = 4.000000000000000000
Margins.Top = 4.000000000000000000
Margins.Right = 4.000000000000000000
Margins.Bottom = 4.000000000000000000
Position.X = 4.000000000000000000
Position.Y = 261.000000000000000000
Size.Width = 372.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'toollabel'
Text = 'Emails'
TabOrder = 10
end
object ListView2: TListView
ItemAppearanceClassName = 'TImageListItemBottomDetailAppearance'
ItemEditAppearanceClassName = 'TListItemShowCheckAppearance'
HeaderAppearanceClassName = 'TListHeaderObjects'
FooterAppearanceClassName = 'TListHeaderObjects'
Align = Client
Size.Width = 380.000000000000000000
Size.Height = 282.000000000000000000
Size.PlatformDefault = False
TabOrder = 11
end
object AddressBook1: TAddressBook
OnPermissionRequest = AddressBook1PermissionRequest
Left = 312
Top = 496
end
object FDConn: TFDConnection
Params.Strings = (
'Database=D:\GitHub TDevRocks\addressbook\infra\TAddressBook.sqli' +
'te'
'OpenMode=ReadWrite'
'DriverID=SQLite')
LoginPrompt = False
BeforeConnect = FDConnBeforeConnect
Left = 208
Top = 296
end
object QryContatos: TFDQuery
Connection = FDConn
SQL.Strings = (
'SELECT * FROM CONTATOS')
Left = 208
Top = 368
object QryContatosID: TIntegerField
FieldName = 'ID'
Origin = 'ID'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object QryContatosFIRSTNAME: TStringField
FieldName = 'FIRSTNAME'
Origin = 'FIRSTNAME'
Size = 100
end
object QryContatosLASTNAME: TStringField
FieldName = 'LASTNAME'
Origin = 'LASTNAME'
Size = 100
end
end
object dtsContatos: TDataSource
DataSet = QryContatos
Left = 208
Top = 432
end
object QryEmails: TFDQuery
IndexFieldNames = 'ID_CONTATO'
MasterSource = dtsContatos
MasterFields = 'ID'
DetailFields = 'ID_CONTATO'
Connection = FDConn
SQL.Strings = (
'SELECT * FROM EMAILS WHERE ID_CONTATO = :ID')
Left = 208
Top = 496
ParamData = <
item
Name = 'ID'
DataType = ftInteger
ParamType = ptInput
Value = Null
end>
object QryEmailsID: TFDAutoIncField
FieldName = 'ID'
Origin = 'ID'
ProviderFlags = [pfInWhere, pfInKey]
end
object QryEmailsID_CONTATO: TIntegerField
FieldName = 'ID_CONTATO'
Origin = 'ID_CONTATO'
end
object QryEmailsEMAIL_WORK: TStringField
FieldName = 'EMAIL_WORK'
Origin = 'EMAIL_WORK'
Size = 100
end
object QryEmailsEMAIL_HOME: TStringField
FieldName = 'EMAIL_HOME'
Origin = 'EMAIL_HOME'
Size = 100
end
object QryEmailsEMAIL_OTHER: TStringField
FieldName = 'EMAIL_OTHER'
Origin = 'EMAIL_OTHER'
Size = 100
end
object QryEmailsTIPO_EMAIL: TStringField
FieldName = 'TIPO_EMAIL'
Origin = 'TIPO_EMAIL'
Size = 10
end
end
object FDPhysSQLiteDriverLink1: TFDPhysSQLiteDriverLink
Left = 312
Top = 296
end
object QryAux1: TFDQuery
Connection = FDConn
Left = 312
Top = 368
end
object QryAux2: TFDQuery
Connection = FDConn
Left = 312
Top = 432
end
object BindSourceDB1: TBindSourceDB
DataSet = QryContatos
ScopeMappings = <>
Left = 48
Top = 368
end
object BindingsList1: TBindingsList
Methods = <>
OutputConverters = <>
Left = 44
Top = 309
object LinkListControlToField1: TLinkListControlToField
Category = 'Quick Bindings'
DataSource = BindSourceDB1
FieldName = 'FIRSTNAME'
Control = ListView1
FillExpressions = <
item
SourceMemberName = 'LASTNAME'
ControlMemberName = 'Detail'
end>
FillHeaderExpressions = <>
FillBreakGroups = <>
end
object LinkListControlToField2: TLinkListControlToField
Category = 'Quick Bindings'
DataSource = BindSourceDB2
FieldName = 'EMAIL_WORK'
Control = ListView2
FillExpressions = <
item
SourceMemberName = 'TIPO_EMAIL'
ControlMemberName = 'Detail'
end>
FillHeaderExpressions = <>
FillBreakGroups = <>
end
end
object BindSourceDB2: TBindSourceDB
DataSet = QryEmails
ScopeMappings = <>
Left = 48
Top = 432
end
end