-
-
Notifications
You must be signed in to change notification settings - Fork 563
Expand file tree
/
Copy pathloaddata.dfm
More file actions
406 lines (406 loc) · 9.07 KB
/
loaddata.dfm
File metadata and controls
406 lines (406 loc) · 9.07 KB
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
object loaddataform: Tloaddataform
Left = 212
Top = 111
Caption = 'Import text file'
ClientHeight = 548
ClientWidth = 513
Color = clBtnFace
Constraints.MinHeight = 550
Constraints.MinWidth = 525
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
Position = poMainFormCenter
OnClose = FormClose
OnCreate = FormCreate
OnResize = FormResize
OnShow = FormShow
DesignSize = (
513
548)
TextHeight = 14
object btnImport: TButton
Left = 345
Top = 515
Width = 75
Height = 25
Anchors = [akRight, akBottom]
Caption = 'Import!'
Default = True
Enabled = False
ModalResult = 1
TabOrder = 6
OnClick = btnImportClick
end
object btnCancel: TButton
Left = 426
Top = 515
Width = 75
Height = 25
Anchors = [akRight, akBottom]
Cancel = True
Caption = 'Cancel'
ModalResult = 2
TabOrder = 7
end
object grpFilename: TGroupBox
Left = 8
Top = 8
Width = 493
Height = 84
Anchors = [akLeft, akTop, akRight]
Caption = 'Input file'
TabOrder = 0
DesignSize = (
493
84)
object lblFilename: TLabel
Left = 10
Top = 27
Width = 51
Height = 14
Caption = 'Filename:'
FocusControl = editFilename
end
object lblEncoding: TLabel
Left = 10
Top = 54
Width = 54
Height = 14
Caption = 'Encoding:'
end
object editFilename: TButtonedEdit
Left = 88
Top = 24
Width = 395
Height = 22
Anchors = [akLeft, akTop, akRight]
Images = MainForm.VirtualImageListMain
RightButton.ImageIndex = 51
RightButton.Visible = True
TabOrder = 0
Text = 'editFilename'
OnChange = editFilenameChange
OnDblClick = btnOpenFileClick
OnRightButtonClick = btnOpenFileClick
end
object comboEncoding: TComboBox
Left = 88
Top = 51
Width = 395
Height = 22
Style = csDropDownList
Anchors = [akLeft, akTop, akRight]
DropDownCount = 16
Sorted = True
TabOrder = 1
end
end
object grpChars: TGroupBox
Left = 223
Top = 98
Width = 278
Height = 135
Anchors = [akTop, akRight]
Caption = 'Control characters'
TabOrder = 2
DesignSize = (
278
135)
object lblFieldTerminater: TLabel
Left = 10
Top = 26
Width = 110
Height = 14
Caption = 'Fields terminated by'
end
object lblFieldEncloser: TLabel
Left = 10
Top = 51
Width = 98
Height = 14
Caption = 'Fields enclosed by'
end
object lblFieldEscaper: TLabel
Left = 10
Top = 75
Width = 95
Height = 14
Caption = 'Fields escaped by'
end
object lblLineTerminator: TLabel
Left = 10
Top = 100
Width = 108
Height = 14
Caption = 'Lines terminated by'
end
object editFieldEscaper: TEdit
Left = 145
Top = 72
Width = 49
Height = 22
TabOrder = 3
Text = '"'
end
object editFieldEncloser: TEdit
Left = 145
Top = 48
Width = 49
Height = 22
TabOrder = 1
Text = '"'
end
object editFieldTerminator: TEdit
Left = 145
Top = 23
Width = 49
Height = 22
TabOrder = 0
Text = ';'
end
object chkFieldsEnclosedOptionally: TCheckBox
Left = 200
Top = 50
Width = 75
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = 'optionally'
Checked = True
State = cbChecked
TabOrder = 2
end
object editLineTerminator: TEdit
Left = 145
Top = 97
Width = 49
Height = 22
TabOrder = 4
Text = '\r\n'
end
end
object grpOptions: TGroupBox
Left = 8
Top = 98
Width = 209
Height = 175
Anchors = [akLeft, akTop, akRight]
Caption = 'Options'
TabOrder = 1
DesignSize = (
209
175)
object lblIgnoreLinesCount: TLabel
Left = 143
Top = 26
Width = 23
Height = 14
Caption = 'lines'
end
object lblIgnoreLines: TLabel
Left = 10
Top = 26
Width = 60
Height = 14
Caption = 'Ignore first'
end
object updownIgnoreLines: TUpDown
Left = 121
Top = 23
Width = 16
Height = 22
Associate = editIgnoreLines
Max = 32767
Position = 1
TabOrder = 1
end
object editIgnoreLines: TEdit
Left = 88
Top = 23
Width = 33
Height = 22
TabOrder = 0
Text = '1'
end
object chkLowPriority: TCheckBox
Left = 10
Top = 51
Width = 196
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = 'Low priority, avoid high server load'
Checked = True
State = cbChecked
TabOrder = 2
WordWrap = True
end
object chkLocalNumbers: TCheckBox
Left = 10
Top = 70
Width = 196
Height = 35
Anchors = [akLeft, akTop, akRight]
Caption =
'Input file contains local formatted numbers, e.g. 1.234,56 in Ge' +
'rmany'
TabOrder = 3
WordWrap = True
end
object chkTruncateTable: TCheckBox
Left = 10
Top = 108
Width = 196
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = 'Truncate destination table before import'
TabOrder = 4
end
object chkKeepDialogOpen: TCheckBox
Left = 10
Top = 138
Width = 196
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = 'Keep dialog open after import'
TabOrder = 5
end
end
object grpDuplicates: TRadioGroup
Left = 8
Top = 279
Width = 209
Height = 123
Anchors = [akLeft, akTop, akRight]
Caption = 'Handling of duplicate rows'
ItemIndex = 2
Items.Strings = (
'INSERT (may throw errors)'
'INSERT IGNORE (duplicates)'
'REPLACE (duplicates)')
TabOrder = 3
end
object grpParseMethod: TRadioGroup
Left = 8
Top = 408
Width = 209
Height = 101
Anchors = [akLeft, akTop, akRight, akBottom]
Caption = 'Method'
ItemIndex = 0
Items.Strings = (
'Server parses file contents (LOAD DATA)'
'Client parses file contents')
TabOrder = 4
WordWrap = True
OnClick = grpParseMethodClick
end
object grpDestination: TGroupBox
Left = 223
Top = 239
Width = 278
Height = 270
Anchors = [akTop, akRight, akBottom]
Caption = 'Destination'
TabOrder = 5
DesignSize = (
278
270)
object lblDatabase: TLabel
Left = 10
Top = 24
Width = 54
Height = 14
Caption = 'Database:'
end
object lblTable: TLabel
Left = 10
Top = 48
Width = 34
Height = 14
Caption = 'Table:'
end
object lblColumns: TLabel
Left = 10
Top = 72
Width = 49
Height = 14
Caption = 'Columns:'
end
object comboDatabase: TComboBox
Left = 112
Top = 21
Width = 156
Height = 22
Style = csDropDownList
Anchors = [akLeft, akTop, akRight]
TabOrder = 0
OnChange = comboDatabaseChange
end
object comboTable: TComboBox
Left = 112
Top = 45
Width = 156
Height = 22
Style = csDropDownList
Anchors = [akLeft, akTop, akRight]
TabOrder = 1
OnChange = comboTableChange
end
object chklistColumns: TCheckListBox
Left = 112
Top = 72
Width = 153
Height = 183
Anchors = [akLeft, akTop, akRight, akBottom]
ItemHeight = 14
TabOrder = 2
OnClick = chklistColumnsClick
end
object ToolBarColMove: TToolBar
Left = 10
Top = 91
Width = 87
Height = 66
Align = alNone
ButtonWidth = 59
Caption = 'ToolBarColMove'
Images = MainForm.VirtualImageListMain
List = True
ParentShowHint = False
ShowCaptions = True
ShowHint = True
TabOrder = 3
object btnColUp: TToolButton
Left = 0
Top = 0
Hint = 'Move up'
Caption = 'Up'
ImageIndex = 74
ImageName = 'icons8-sort-up'
Wrap = True
OnClick = btnColMoveClick
end
object btnColDown: TToolButton
Left = 0
Top = 22
Hint = 'Move down'
Caption = 'Down'
ImageIndex = 75
ImageName = 'icons8-caret-arrowhead-facing-down'
Wrap = True
OnClick = btnColMoveClick
end
object btnCheckAll: TToolButton
Left = 0
Top = 44
Hint = 'Select / Deselect all'
Caption = 'All'
ImageIndex = 128
ImageName = 'icons8-checked-checkbox-other'
OnClick = btnCheckAllClick
end
end
end
end