-
Notifications
You must be signed in to change notification settings - Fork 2
/
DataUnit.dfm
executable file
·455 lines (455 loc) · 9.75 KB
/
DataUnit.dfm
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
object Data: TData
OldCreateOrder = False
Left = 463
Top = 172
Height = 634
Width = 771
object HoldSource: TDataSource
DataSet = hold
Left = 128
Top = 168
end
object BasketSource: TDataSource
DataSet = basket
Left = 128
Top = 16
end
object hold: TMyTable
TableName = 'hold'
OrderFields = 'aa'
MasterFields = 'recno'
DetailFields = 'recno'
MasterSource = SecureBasketSource
Connection = MyConnection1
FetchAll = True
Left = 40
Top = 168
end
object Query1: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'')
FilterOptions = [foCaseInsensitive]
Left = 40
Top = 456
end
object moves: TMyTable
TableName = 'moves'
Connection = MyConnection1
Filtered = True
FilterOptions = [foCaseInsensitive]
FetchAll = True
Left = 224
Top = 72
end
object users: TMyTable
TableName = 'users'
Connection = MyConnection1
FetchAll = True
Left = 224
Top = 16
end
object UsersSource: TDataSource
DataSet = users
Left = 304
Top = 16
end
object MyConnection1: TMyConnection
Database = 'pleiades'
Options.UseUnicode = True
Options.LocalFailover = True
Username = 'pleiades'
Password = 'pleiades'
Server = '192.168.1.68'
OnConnectionLost = MyConnection1ConnectionLost
ConnectDialog = MyConnectDialog1
LoginPrompt = False
Left = 40
Top = 400
end
object basket: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'SELECT * FROM basket'
'ORDER BY recno DESC'
'LIMIT 0,50')
FetchRows = 500
BeforeScroll = basketBeforeScroll
FetchAll = False
Left = 40
Top = 16
end
object MovesSource: TDataSource
DataSet = moves
Left = 304
Top = 72
end
object marcdisplay: TMyTable
TableName = 'marcdisplay'
OrderFields = 'Name,Lang'
Connection = MyConnection1
FilterOptions = [foCaseInsensitive]
AfterScroll = marcdisplayAfterScroll
FetchAll = True
IndexFieldNames = 'Name'
Left = 224
Top = 120
end
object marcdisplaySource: TDataSource
DataSet = marcdisplay
Left = 304
Top = 120
end
object vocabulary: TMyTable
TableName = 'vocabulary'
Connection = MyConnection1
FilterOptions = [foCaseInsensitive]
FetchAll = True
Left = 224
Top = 168
end
object vocabularySource: TDataSource
DataSet = vocabulary
Left = 304
Top = 168
end
object MSWord: TWordApplication
AutoConnect = False
ConnectKind = ckRunningOrNew
AutoQuit = False
Left = 424
Top = 408
end
object Document: TWordDocument
AutoConnect = False
ConnectKind = ckRunningOrNew
Left = 488
Top = 408
end
object OpenDialog1: TTntOpenDialog
Left = 368
Top = 408
end
object SaveDialog1: TTntSaveDialog
Left = 296
Top = 408
end
object MyDump1: TMyDump
Connection = MyConnection1
Left = 224
Top = 456
end
object MyScript1: TMyScript
Connection = MyConnection1
Left = 304
Top = 456
end
object Languages: TMyTable
TableName = 'languages'
MasterFields = 'Spcode'
DetailFields = 'VocSpcode'
MasterSource = vocabularySource
Connection = MyConnection1
FilterOptions = [foCaseInsensitive]
FetchAll = True
Left = 224
Top = 224
end
object LanguagesSource: TDataSource
DataSet = Languages
Left = 304
Top = 224
end
object Tools: TMyTable
TableName = 'tools'
Connection = MyConnection1
FilterOptions = [foCaseInsensitive]
FetchAll = True
Left = 400
Top = 16
end
object ToolsSource: TDataSource
DataSet = Tools
Left = 480
Top = 16
end
object ItemsSource: TDataSource
DataSet = Items
Left = 128
Top = 224
end
object Items: TMyTable
TableName = 'items'
MasterFields = 'holdon'
DetailFields = 'holdon'
MasterSource = HoldSource
Connection = MyConnection1
FetchAll = True
Left = 40
Top = 224
end
object HoldQuery: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'select * from hold'
'where recno = :recno'
'ORDER BY aa;')
Left = 40
Top = 288
ParamData = <
item
DataType = ftUnknown
Name = 'recno'
end>
end
object ItemsQuery: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'select * from items'
'where holdon = :holdon')
Left = 128
Top = 288
ParamData = <
item
DataType = ftUnknown
Name = 'holdon'
end>
end
object SecureBasket: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'select * from basket'
'where recno = :recno')
FetchRows = 1
Left = 40
Top = 72
ParamData = <
item
DataType = ftString
Name = 'recno'
Value = ''
end>
end
object SecureBasketSource: TDataSource
DataSet = SecureBasket
Left = 128
Top = 72
end
object MyCommand1: TMyCommand
Connection = MyConnection1
Left = 128
Top = 456
end
object MyConnectDialog1: TMyConnectDialog
ShowPort = False
DatabaseLabel = 'Database'
PortLabel = 'Port'
Caption = 'Connect'
UsernameLabel = 'User Name'
PasswordLabel = 'Password'
ServerLabel = 'Server'
ConnectButton = 'Connect'
CancelButton = 'Cancel'
Left = 128
Top = 400
end
object InsertSecureBasket: TMyCommand
Connection = MyConnection1
SQL.Strings = (
'INSERT INTO basket'
' (format, level, creator, created )'
'VALUES'
' (:format, :level, :creator, :created)')
Left = 40
Top = 120
ParamData = <
item
DataType = ftString
Name = 'format'
Value = ''
end
item
DataType = ftString
Name = 'level'
Value = ''
end
item
DataType = ftString
Name = 'creator'
Value = ''
end
item
DataType = ftString
Name = 'created'
Value = ''
end>
end
object loancatSource: TDataSource
DataSet = loancat
Left = 480
Top = 72
end
object branch: TMyTable
TableName = 'branch'
OrderFields = 'code'
Connection = MyConnection1
FetchAll = True
Left = 400
Top = 120
end
object branchsource: TDataSource
DataSet = branch
Left = 480
Top = 120
end
object collection: TMyTable
TableName = 'collection'
OrderFields = 'branchcode,code'
Connection = MyConnection1
FetchAll = True
Left = 400
Top = 168
end
object collectionsource: TDataSource
DataSet = collection
Left = 480
Top = 168
end
object PrintDialog1: TPrintDialog
Left = 224
Top = 408
end
object Query2: TMyQuery
Connection = MyConnection1
Left = 400
Top = 456
end
object DataSource1: TDataSource
DataSet = Query2
Left = 488
Top = 456
end
object LastDataFromBasket: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'SELECT * FROM basket'
'WHERE recno = :recno')
Left = 128
Top = 120
ParamData = <
item
DataType = ftUnknown
Name = 'recno'
end>
end
object CollectionQuery: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'SELECT * FROM collection'
'WHERE branchcode = :branchcode')
Left = 400
Top = 224
ParamData = <
item
DataType = ftUnknown
Name = 'branchcode'
end>
end
object digital: TMyTable
TableName = 'digital'
MasterFields = 'recno'
DetailFields = 'recno'
MasterSource = SecureBasketSource
Connection = MyConnection1
FetchAll = True
Left = 400
Top = 288
end
object digitalSource: TDataSource
DataSet = digital
Left = 480
Top = 288
end
object patroncat: TMyTable
TableName = 'patroncat'
Connection = MyConnection1
FetchAll = True
Left = 224
Top = 288
end
object patroncatSource: TDataSource
DataSet = patroncat
Left = 304
Top = 288
end
object processstatus: TMyTable
TableName = 'processstatus'
OrderFields = 'code'
Connection = MyConnection1
FetchAll = True
Left = 224
Top = 344
end
object processstatusSource: TDataSource
DataSet = processstatus
Left = 304
Top = 344
end
object loancat: TMyTable
TableName = 'loancat'
OrderFields = 'description'
Connection = MyConnection1
Filtered = True
Filter = 'patroncatid=0'
FetchAll = True
Left = 400
Top = 72
end
object loancategory: TMyTable
TableName = 'loancategory'
OrderFields = 'code'
Connection = MyConnection1
FetchAll = True
IndexFieldNames = 'code'
Left = 40
Top = 344
end
object loancategorysource: TDataSource
DataSet = loancategory
Left = 128
Top = 344
end
object AuthSource: TDataSource
DataSet = Auth
Left = 128
Top = 536
end
object Auth: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'select * from auth'
'where recno = :recno')
FetchRows = 1
Left = 40
Top = 536
ParamData = <
item
DataType = ftString
Name = 'recno'
Value = ''
end>
end
object LastDataFromAuth: TMyQuery
Connection = MyConnection1
SQL.Strings = (
'SELECT * FROM auth'
'WHERE recno = :recno')
Left = 216
Top = 544
ParamData = <
item
DataType = ftUnknown
Name = 'recno'
end>
end
end