-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdmform.dfm
498 lines (498 loc) · 10.9 KB
/
dmform.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
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
object DM: TDM
OldCreateOrder = False
Left = 406
Top = 383
Height = 298
Width = 639
object dsoLookup: TDataSource
DataSet = dsLookup
Left = 376
Top = 16
end
object dsoOtdel: TDataSource
DataSet = dsOtdel
Left = 176
Top = 8
end
object trsOtdel: TpFIBTransaction
Active = True
DefaultDatabase = dbOtdel
TimeoutAction = TARollback
Left = 88
Top = 8
end
object truOtdel: TpFIBTransaction
DefaultDatabase = dbOtdel
TimeoutAction = TARollback
Left = 128
Top = 8
end
object dsOtdel: TpFIBDataSet
UpdateSQL.Strings = (
'UPDATE OTDEL'
'SET '
' TVUZ = :TVUZ,'
' N_OTDEL = :N_OTDEL'
'WHERE'
' KOD = :OLD_KOD'
' ')
DeleteSQL.Strings = (
'DELETE FROM'
' OTDEL'
'WHERE'
' KOD = :OLD_KOD'
' ')
InsertSQL.Strings = (
'INSERT INTO OTDEL('
' KOD,'
' TVUZ,'
' N_OTDEL'
')'
'VALUES('
' :KOD,'
' :TVUZ,'
' :N_OTDEL'
')')
RefreshSQL.Strings = (
'SELECT'
' O.KOD, '
' O.TVUZ,'
' O.N_OTDEL'
'FROM'
' OTDEL O'
''
' WHERE '
' O.KOD = :OLD_KOD'
' ')
SelectSQL.Strings = (
'SELECT'
' O.KOD, '
' O.TVUZ,'
' O.N_OTDEL'
'FROM'
' OTDEL O')
AutoUpdateOptions.UpdateTableName = 'OTDEL'
AutoUpdateOptions.KeyFields = 'KOD'
AutoUpdateOptions.GeneratorName = 'OTD_NO_GEN'
AutoUpdateOptions.WhenGetGenID = wgBeforePost
Active = True
AfterPost = dsOtdelAfterPost
BeforeEdit = dsOtdelBeforeEdit
BeforePost = dsOtdelBeforePost
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
AutoCommit = True
Left = 48
Top = 8
object dsOtdelvuz: TStringField
FieldKind = fkLookup
FieldName = 'vuz'
LookupDataSet = dsLookup
LookupKeyFields = 'ID'
LookupResultField = 'VUZ'
KeyFields = 'TVUZ'
Lookup = True
end
object dsOtdelKOD: TFIBIntegerField
FieldName = 'KOD'
end
object dsOtdelTVUZ: TFIBIntegerField
DefaultExpression = '1'
FieldName = 'TVUZ'
end
object dsOtdelN_OTDEL: TFIBStringField
FieldName = 'N_OTDEL'
Size = 75
EmptyStrToNull = True
end
end
object dbOtdel: TpFIBDatabase
Connected = True
DBName = 'library/3050:librarydb'
DBParams.Strings = (
'user_name=SYSDBA'
'password=S0jkijzxc')
DefaultTransaction = trsOtdel
DefaultUpdateTransaction = truOtdel
SQLDialect = 3
Timeout = 0
LibraryName = 'fbclient.dll'
WaitForRestoreConnect = 0
Left = 8
Top = 8
end
object dsPred: TpFIBDataSet
UpdateSQL.Strings = (
'UPDATE PREDMET'
'SET '
' N_PREDMET = :N_PREDMET'
'WHERE'
' KOD = :OLD_KOD'
' ')
DeleteSQL.Strings = (
'DELETE FROM'
' PREDMET'
'WHERE'
' KOD = :OLD_KOD'
' ')
InsertSQL.Strings = (
'INSERT INTO PREDMET('
' KOD,'
' N_PREDMET'
')'
'VALUES('
' :KOD,'
' :N_PREDMET'
')')
RefreshSQL.Strings = (
'SELECT'
' P.KOD,'
' P.N_PREDMET'
'FROM'
' PREDMET P'
''
' WHERE '
' P.KOD = :OLD_KOD'
' ')
SelectSQL.Strings = (
'SELECT'
' P.KOD,'
' P.N_PREDMET'
'FROM'
' PREDMET P'
'ORDER BY N_PREDMET')
AutoUpdateOptions.UpdateTableName = 'PREDMET'
AutoUpdateOptions.KeyFields = 'KOD'
AutoUpdateOptions.GeneratorName = 'PRED_NO_GEN'
AutoUpdateOptions.WhenGetGenID = wgBeforePost
Active = True
AfterPost = dsPredAfterPost
BeforeEdit = dsOtdelBeforeEdit
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
AutoCommit = True
Left = 48
Top = 64
end
object dsoPred: TDataSource
DataSet = dsPred
Left = 176
Top = 64
end
object dsBook: TpFIBDataSet
UpdateSQL.Strings = (
'UPDATE BOOKS'
'SET '
' F_AUTHOR = :F_AUTHOR,'
' N_AUTHOR = :N_AUTHOR,'
' T_AUTHOR = :T_AUTHOR,'
' BOOKNAME = :BOOKNAME,'
' TYPEBOOK = :TYPEBOOK,'
' BOOK = :BOOK,'
' ABOUT = :ABOUT'
'WHERE'
' KOD = :OLD_KOD'
' ')
DeleteSQL.Strings = (
'DELETE FROM'
' BOOKS'
'WHERE'
' KOD = :OLD_KOD'
' ')
InsertSQL.Strings = (
'INSERT INTO BOOKS('
' KOD,'
' F_AUTHOR,'
' N_AUTHOR,'
' T_AUTHOR,'
' BOOKNAME,'
' TYPEBOOK,'
' BOOK,'
' ABOUT'
')'
'VALUES('
' :KOD,'
' :F_AUTHOR,'
' :N_AUTHOR,'
' :T_AUTHOR,'
' :BOOKNAME,'
' :TYPEBOOK,'
' :BOOK,'
' :ABOUT'
')')
RefreshSQL.Strings = (
'SELECT'
' B.KOD,'
' B.F_AUTHOR,'
' B.N_AUTHOR,'
' B.T_AUTHOR,'
' B.FULL_AUTHOR,'
' B.BOOKNAME,'
' B.TYPEBOOK,'
' B.BOOK,'
' B.ABOUT'
'FROM'
' BOOKS B'
''
' WHERE '
' B.KOD = :OLD_KOD'
' ')
SelectSQL.Strings = (
'SELECT'
' B.KOD,'
' B.F_AUTHOR,'
' B.N_AUTHOR,'
' B.T_AUTHOR,'
' B.FULL_AUTHOR,'
' B.BOOKNAME,'
' B.TYPEBOOK,'
' B.BOOK,'
' B.ABOUT'
'FROM'
' BOOKS B'
'ORDER BY'
' B.F_AUTHOR')
FilterOptions = [foCaseInsensitive]
AutoUpdateOptions.UpdateTableName = 'BOOKS'
AutoUpdateOptions.KeyFields = 'KOD'
AutoUpdateOptions.GeneratorName = 'BOOK_NO_GEN'
AutoUpdateOptions.WhenGetGenID = wgBeforePost
Active = True
AfterPost = dsBookAfterPost
BeforeEdit = dsOtdelBeforeEdit
BeforePost = dsBookBeforePost
OnPostError = dsBookPostError
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
AutoCommit = True
Filtered = True
Left = 48
Top = 112
object dsBookKOD: TFIBIntegerField
FieldName = 'KOD'
end
object dsBookF_AUTHOR: TFIBStringField
FieldName = 'F_AUTHOR'
Size = 15
EmptyStrToNull = True
end
object dsBookN_AUTHOR: TFIBStringField
FieldName = 'N_AUTHOR'
Size = 1
EmptyStrToNull = True
end
object dsBookT_AUTHOR: TFIBStringField
FieldName = 'T_AUTHOR'
Size = 1
EmptyStrToNull = True
end
object dsBookFULL_AUTHOR: TFIBStringField
FieldName = 'FULL_AUTHOR'
EmptyStrToNull = True
end
object dsBookBOOKNAME: TFIBStringField
FieldName = 'BOOKNAME'
Size = 50
EmptyStrToNull = True
end
object dsBookTYPEBOOK: TFIBIntegerField
DefaultExpression = '1'
FieldName = 'TYPEBOOK'
end
object dsBookBOOK: TFIBBlobField
FieldName = 'BOOK'
Size = 8
end
object dsBookABOUT: TFIBBlobField
FieldName = 'ABOUT'
Size = 8
end
end
object dsoBook: TDataSource
DataSet = dsBook
Left = 176
Top = 112
end
object dsoTree: TDataSource
DataSet = dsTree
Left = 176
Top = 160
end
object dsTree: TpFIBDataSet
UpdateSQL.Strings = (
''
' ')
DeleteSQL.Strings = (
'')
InsertSQL.Strings = (
'')
RefreshSQL.Strings = (
''
' ')
SelectSQL.Strings = (
'select'
' s.id,'
' sp.kbook,'
' b.bookname,'
' b.full_author,'
' b.typebook,'
' b.about,'
' l.login'
'from'
' spis2 s join spisbook sp on sp.id=s.id'
' join books b on sp.kbook=b.kod'
' join login l on sp.iduser=l.id'
'ORDER BY'
' b.bookname')
Filter = 'id=9999'
Active = True
BeforeEdit = dsOtdelBeforeEdit
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
Filtered = True
Left = 48
Top = 160
object dsTreeID: TFIBIntegerField
FieldName = 'ID'
end
object dsTreeBOOKNAME: TFIBStringField
FieldName = 'BOOKNAME'
Size = 50
EmptyStrToNull = True
end
object dsTreeFULL_AUTHOR: TFIBStringField
FieldName = 'FULL_AUTHOR'
EmptyStrToNull = True
end
object dsTreeTYPEBOOK: TFIBIntegerField
DefaultExpression = '1'
FieldName = 'TYPEBOOK'
end
object dsTreeKBOOK: TFIBIntegerField
FieldName = 'KBOOK'
end
object dsTreeABOUT: TFIBBlobField
FieldName = 'ABOUT'
Size = 8
end
object dsTreeLOGIN: TFIBStringField
FieldName = 'LOGIN'
Size = 10
EmptyStrToNull = True
end
end
object dsLookup: TpFIBDataSet
SelectSQL.Strings = (
'SELECT *'
'FROM'
' VUZ V')
Active = True
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
Left = 320
Top = 16
end
object dsoLookOtdel: TDataSource
DataSet = dsLookOtdel
Left = 376
Top = 64
end
object dsLookOtdel: TpFIBDataSet
SelectSQL.Strings = (
'SELECT *'
'FROM'
' otdel')
Active = True
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
Left = 320
Top = 64
end
object qInsert: TpFIBQuery
Transaction = truOtdel
Database = dbOtdel
BeforeExecute = qInsertBeforeExecute
Left = 320
Top = 112
qoAutoCommit = True
qoStartTransaction = True
end
object BookDlg: TOpenDialog
Left = 576
Top = 208
end
object dsSpis: TpFIBDataSet
SelectSQL.Strings = (
'select'
' s.id, '
' p.n_predmet,'
' s.kpred,'
' s.kotd,'
' s.kurs,'
' s.fobuch'
'from'
' spis2 s join predmet p on s.kpred=p.kod'
'ORDER BY'
' p.n_predmet')
Active = True
Transaction = trsOtdel
Database = dbOtdel
UpdateTransaction = truOtdel
Filtered = True
Left = 320
Top = 160
object dsSpisID: TFIBIntegerField
FieldName = 'ID'
end
object dsSpisN_PREDMET: TFIBStringField
FieldName = 'N_PREDMET'
Size = 70
EmptyStrToNull = True
end
object dsSpisKOTD: TFIBIntegerField
FieldName = 'KOTD'
end
object dsSpisKURS: TFIBIntegerField
FieldName = 'KURS'
end
object dsSpisFOBUCH: TFIBSmallIntField
DefaultExpression = '1'
FieldName = 'FOBUCH'
end
object dsSpisKPRED: TFIBIntegerField
FieldName = 'KPRED'
end
end
object DataSource1: TDataSource
DataSet = dsSpis
Left = 376
Top = 160
end
object IBEvents1: TIBEvents
AutoRegister = False
Registered = False
Left = 472
Top = 40
end
object dsoLogin: TDataSource
DataSet = dsLogin
Left = 376
Top = 216
end
object dsLogin: TpFIBDataSet
SelectSQL.Strings = (
'select *'
'from login')
Active = True
Transaction = trsOtdel
Database = dbOtdel
Left = 320
Top = 216
end
end