-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnitZachetka.dfm
More file actions
514 lines (512 loc) · 12.5 KB
/
Copy pathUnitZachetka.dfm
File metadata and controls
514 lines (512 loc) · 12.5 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
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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
object FormZachetka: TFormZachetka
Left = 338
Top = 139
Align = alClient
BorderStyle = bsNone
Caption = #1047#1072#1095#1105#1090#1082#1072
ClientHeight = 526
ClientWidth = 761
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object pgcZach: TPageControl
Left = 0
Top = 0
Width = 761
Height = 345
ActivePage = ts1
TabOrder = 0
object ts1: TTabSheet
Caption = #1057#1090#1091#1076#1077#1085#1090
object dbtxt1: TDBText
Left = 120
Top = 32
Width = 49
Height = 18
AutoSize = True
DataField = 'name'
DataSource = dsQueryUser
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object dbtxt2: TDBText
Left = 8
Top = 32
Width = 49
Height = 18
AutoSize = True
DataField = 'surname'
DataSource = dsQueryUser
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object dbtxt3: TDBText
Left = 216
Top = 32
Width = 49
Height = 18
AutoSize = True
DataField = 'patronymic'
DataSource = dsQueryUser
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object dbtxt4: TDBText
Left = 304
Top = 32
Width = 65
Height = 17
DataField = 'klass'
DataSource = dsQueryUser
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object Label1: TLabel
Left = 256
Top = 72
Width = 178
Height = 19
Caption = #1047#1072#1095#1105#1090' '#1087#1086' '#1087#1088#1072#1082#1090#1080#1095#1077#1089#1082#1080#1084':'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object Label2: TLabel
Left = 432
Top = 32
Width = 42
Height = 18
Caption = #1050#1091#1088#1089':'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object dbtxt5: TDBText
Left = 200
Top = 8
Width = 65
Height = 17
DataField = 'role'
DataSource = dsQueryUser
Visible = False
end
object Label11: TLabel
Left = 16
Top = 72
Width = 168
Height = 19
Caption = #1054#1094#1077#1085#1082#1080' '#1087#1086' '#1087#1088#1077#1076#1084#1077#1090#1072#1084':'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object dbgrd1: TDBGrid
Left = 16
Top = 96
Width = 167
Height = 217
TabOrder = 0
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'Tahoma'
TitleFont.Style = []
end
object dbgrd2: TDBGrid
Left = 264
Top = 96
Width = 167
Height = 217
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'Tahoma'
TitleFont.Style = []
end
object ComboBox1: TComboBox
Left = 480
Top = 32
Width = 145
Height = 21
ItemHeight = 13
TabOrder = 2
OnSelect = ComboBox1Select
Items.Strings = (
'1 '#1082#1091#1088#1089
'2 '#1082#1091#1088#1089
'3 '#1082#1091#1088#1089
'4 '#1082#1091#1088#1089)
end
end
object ts2: TTabSheet
Caption = #1057#1090#1072#1088#1086#1089#1090#1072
ImageIndex = 1
object grp1: TGroupBox
Left = 16
Top = 8
Width = 193
Height = 121
Caption = #1057#1087#1080#1089#1086#1082' '#1087#1088#1077#1076#1084#1077#1090#1086#1074
TabOrder = 0
object Edit1: TEdit
Left = 8
Top = 32
Width = 97
Height = 21
TabOrder = 0
end
object btn1: TButton
Left = 112
Top = 32
Width = 75
Height = 25
Caption = #1044#1086#1073#1072#1074#1080#1090#1100
TabOrder = 1
OnClick = btn1Click
end
object DBLookupComboBox1: TDBLookupComboBox
Left = 8
Top = 72
Width = 97
Height = 21
KeyField = 'items'
ListSource = DM.dsItems
TabOrder = 2
end
object btn2: TButton
Left = 112
Top = 72
Width = 75
Height = 25
Caption = #1059#1076#1072#1083#1080#1090#1100
TabOrder = 3
OnClick = btn2Click
end
end
object grp2: TGroupBox
Left = 216
Top = 8
Width = 249
Height = 121
Caption = #1054#1094#1077#1085#1082#1080
TabOrder = 1
object Label3: TLabel
Left = 8
Top = 24
Width = 44
Height = 13
Caption = #1057#1090#1091#1076#1077#1085#1090
end
object Label4: TLabel
Left = 8
Top = 48
Width = 44
Height = 13
Caption = #1055#1088#1077#1076#1084#1077#1090
end
object Label5: TLabel
Left = 8
Top = 72
Width = 24
Height = 13
Caption = #1050#1091#1088#1089
end
object Label6: TLabel
Left = 8
Top = 96
Width = 38
Height = 13
Caption = #1054#1094#1077#1085#1082#1072
end
object DBLookupComboBox2: TDBLookupComboBox
Left = 56
Top = 16
Width = 145
Height = 21
KeyField = 'surname'
ListSource = DM.dsUser
TabOrder = 0
end
object DBLookupComboBox3: TDBLookupComboBox
Left = 56
Top = 40
Width = 105
Height = 21
KeyField = 'items'
ListSource = DM.dsItems
TabOrder = 1
end
object Edit2: TEdit
Left = 56
Top = 88
Width = 105
Height = 21
TabOrder = 2
end
object btn3: TButton
Left = 168
Top = 88
Width = 75
Height = 25
Caption = #1044#1086#1073#1072#1074#1080#1090#1100
TabOrder = 3
OnClick = btn3Click
end
object ComboBox2: TComboBox
Left = 56
Top = 64
Width = 105
Height = 21
ItemHeight = 13
TabOrder = 4
Items.Strings = (
'1 '#1082#1091#1088#1089
'2 '#1082#1091#1088#1089
'3 '#1082#1091#1088#1089
'4 '#1082#1091#1088#1089)
end
end
object DBEdit1: TDBEdit
Left = 296
Top = 120
Width = 121
Height = 21
DataField = 'id'
DataSource = DM.dsUser
TabOrder = 2
Visible = False
end
object dbedtid: TDBEdit
Left = 424
Top = 120
Width = 121
Height = 21
DataField = 'id'
DataSource = DM.dsItems
TabOrder = 3
Visible = False
end
object grp3: TGroupBox
Left = 472
Top = 8
Width = 249
Height = 121
Caption = #1047#1072#1095#1105#1090#1099
TabOrder = 4
object Label7: TLabel
Left = 8
Top = 24
Width = 44
Height = 13
Caption = #1057#1090#1091#1076#1077#1085#1090
end
object Label8: TLabel
Left = 8
Top = 48
Width = 44
Height = 13
Caption = #1055#1088#1077#1076#1084#1077#1090
end
object Label9: TLabel
Left = 8
Top = 72
Width = 24
Height = 13
Caption = #1050#1091#1088#1089
end
object Label10: TLabel
Left = 8
Top = 96
Width = 30
Height = 13
Caption = #1047#1072#1095#1105#1090
end
object DBLookupComboBox4: TDBLookupComboBox
Left = 64
Top = 16
Width = 145
Height = 21
KeyField = 'surname'
ListSource = DM.dsUser
TabOrder = 0
end
object DBLookupComboBox5: TDBLookupComboBox
Left = 64
Top = 40
Width = 97
Height = 21
KeyField = 'items'
ListSource = DM.dsItems
TabOrder = 1
end
object ComboBox3: TComboBox
Left = 64
Top = 64
Width = 97
Height = 21
ItemHeight = 13
TabOrder = 2
Items.Strings = (
'1 '#1082#1091#1088#1089
'2 '#1082#1091#1088#1089
'3 '#1082#1091#1088#1089
'4 '#1082#1091#1088#1089)
end
object ComboBox4: TComboBox
Left = 64
Top = 88
Width = 97
Height = 21
ItemHeight = 13
TabOrder = 3
Items.Strings = (
#1047#1072#1095#1105#1090
#1053#1077#1079#1072#1095#1105#1090)
end
object Button1: TButton
Left = 168
Top = 88
Width = 75
Height = 25
Caption = #1044#1086#1073#1072#1074#1080#1090#1100
TabOrder = 4
OnClick = Button1Click
end
end
end
end
object QueryUser: TZReadOnlyQuery
Connection = DM.conDB
SQL.Strings = (
'Select *'
'From Users'
'Where users.id=:curuser;')
Params = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end>
Left = 52
Top = 352
ParamData = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end>
end
object dsQueryUser: TDataSource
DataSet = QueryUser
Left = 52
Top = 400
end
object dsQueryRating: TDataSource
DataSet = QueryRating
Left = 116
Top = 400
end
object QueryRating: TZReadOnlyQuery
Connection = DM.conDB
SQL.Strings = (
'SELECT list_of_items.items, rating.rating'
'from rating join list_of_items on rating.id_items = list_of_item' +
's.id'
'WHERE rating.id_users=:curuser and rating.kurs=:kurs;')
Params = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end
item
DataType = ftUnknown
Name = 'kurs'
ParamType = ptUnknown
end>
Left = 116
Top = 352
ParamData = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end
item
DataType = ftUnknown
Name = 'kurs'
ParamType = ptUnknown
end>
end
object dsQueryPractik: TDataSource
DataSet = QueryPractik
Left = 380
Top = 408
end
object QueryPractik: TZReadOnlyQuery
Connection = DM.conDB
SQL.Strings = (
'SELECT list_of_items.items,practik.zachet'
'from practik join list_of_items on practik.id_items = list_of_it' +
'ems.id'
'WHERE practik.id_users=:curuser and practik.kurs=:kurs;')
Params = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end
item
DataType = ftUnknown
Name = 'kurs'
ParamType = ptUnknown
end>
Left = 380
Top = 360
ParamData = <
item
DataType = ftUnknown
Name = 'curuser'
ParamType = ptUnknown
end
item
DataType = ftUnknown
Name = 'kurs'
ParamType = ptUnknown
end>
end
end