-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfclients.lfm
193 lines (193 loc) · 4.36 KB
/
fclients.lfm
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
object foClients: TfoClients
Left = 316
Height = 600
Top = 161
Width = 800
Caption = 'Clients'
ClientHeight = 600
ClientWidth = 800
OnClose = FormClose
OnShow = FormShow
Position = poScreenCenter
LCLVersion = '2.0.12.0'
object DBGrid: TDBGrid
Left = 0
Height = 550
Top = 0
Width = 800
Align = alClient
Color = clWindow
Columns = <
item
Title.Alignment = taCenter
Title.Caption = 'ID'
Width = 50
FieldName = 'ID'
end
item
Title.Alignment = taCenter
Title.Font.Style = [fsBold]
Title.Caption = 'Name'
Width = 218
FieldName = 'NAME'
end
item
Title.Alignment = taCenter
Title.Font.Style = [fsBold]
Title.Caption = 'E-mail'
Width = 150
FieldName = 'EMAIL'
end
item
Title.Alignment = taCenter
Title.Font.Style = [fsBold]
Title.Caption = 'Address'
Width = 250
FieldName = 'ADDRESS'
end
item
Title.Alignment = taCenter
Title.Font.Style = [fsBold]
Title.Caption = 'Phone'
Width = 100
FieldName = 'PHONE'
end>
DataSource = DataSource
TabOrder = 0
OnColEnter = DBGridColEnter
end
object Panel1: TPanel
Left = 0
Height = 50
Top = 550
Width = 800
Align = alBottom
BevelOuter = bvNone
ClientHeight = 50
ClientWidth = 800
TabOrder = 1
object Button6: TButton
Left = 700
Height = 25
Top = 10
Width = 75
Anchors = [akTop, akRight]
Cancel = True
Caption = 'Close'
ModalResult = 2
TabOrder = 0
end
end
object DataSource: TDataSource
DataSet = Query
OnStateChange = DataSourceStateChange
Left = 32
Top = 96
end
object Query: TSQLQuery
PacketRecords = -1
MaxIndexesCount = 4
FieldDefs = <
item
Name = 'ID'
DataType = ftInteger
Precision = -1
end
item
Name = 'NAME'
DataType = ftMemo
Precision = -1
end
item
Name = 'EMAIL'
DataType = ftMemo
Precision = -1
end
item
Name = 'ADDRESS'
DataType = ftMemo
Precision = -1
end
item
Name = 'PHONE'
DataType = ftMemo
Precision = -1
end>
BeforePost = QueryBeforePost
Database = dm.dbDM
Transaction = dm.SQLTransaction1
SQL.Strings = (
'select * from CLIENTS'
)
Options = [sqoKeepOpenOnCommit, sqoAutoApplyUpdates, sqoAutoCommit]
Params = <>
Macros = <>
Left = 32
Top = 32
object QueryID: TAutoIncField
FieldKind = fkData
FieldName = 'ID'
Index = 0
LookupCache = False
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
ReadOnly = True
Required = False
end
object QueryNAME: TMemoField
DisplayLabel = 'Name'
FieldKind = fkData
FieldName = 'NAME'
Index = 1
LookupCache = False
ProviderFlags = [pfInUpdate, pfInWhere]
ReadOnly = False
Required = True
OnGetText = QueryMemoGetText
OnSetText = QueryMemoSetText
BlobType = ftMemo
Transliterate = False
end
object QueryEMAIL: TMemoField
DisplayLabel = 'E-mail'
FieldKind = fkData
FieldName = 'EMAIL'
Index = 2
LookupCache = False
ProviderFlags = [pfInUpdate, pfInWhere]
ReadOnly = False
Required = True
OnGetText = QueryMemoGetText
OnSetText = QueryEMAILSetText
BlobType = ftMemo
Transliterate = False
end
object QueryADDRESS: TMemoField
DisplayLabel = 'Address'
FieldKind = fkData
FieldName = 'ADDRESS'
Index = 3
LookupCache = False
ProviderFlags = [pfInUpdate, pfInWhere]
ReadOnly = False
Required = True
OnGetText = QueryMemoGetText
OnSetText = QueryMemoSetText
BlobType = ftMemo
Transliterate = False
end
object QueryPHONE: TMemoField
DisplayLabel = 'Phone'
FieldKind = fkData
FieldName = 'PHONE'
Index = 4
LookupCache = False
ProviderFlags = [pfInUpdate, pfInWhere]
ReadOnly = False
Required = True
OnGetText = QueryPHONEGetText
OnSetText = QueryPHONESetText
BlobType = ftMemo
Transliterate = False
end
end
end