-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlgHouse.dfm
734 lines (734 loc) · 20 KB
/
dlgHouse.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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
object House: THouse
Left = 0
Top = 0
BorderStyle = bsDialog
Caption = 'SwimClubMeet house pereferences and reports.'
ClientHeight = 789
ClientWidth = 875
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Segoe UI'
Font.Style = []
KeyPreview = True
OldCreateOrder = False
Position = poOwnerFormCenter
ShowHint = True
OnCreate = FormCreate
OnKeyDown = FormKeyDown
PixelsPerInch = 96
TextHeight = 21
object Panel1: TPanel
Left = 0
Top = 0
Width = 875
Height = 728
Align = alClient
BevelOuter = bvNone
TabOrder = 0
object PageControl1: TPageControl
Left = 0
Top = 0
Width = 875
Height = 728
ActivePage = TabSheet1
Align = alClient
TabOrder = 0
object TabSheet1: TTabSheet
Caption = 'House Details'
object Label1: TLabel
Left = 152
Top = 351
Width = 83
Height = 21
Caption = 'House Logo'
end
object Label2: TLabel
Left = 384
Top = 24
Width = 90
Height = 21
Caption = 'House Name'
end
object Label3: TLabel
Left = 384
Top = 84
Width = 90
Height = 21
Caption = 'House Motto'
end
object Label4: TLabel
Left = 384
Top = 152
Width = 86
Height = 21
Caption = 'House Color'
end
object Label5: TLabel
Left = 384
Top = 224
Width = 114
Height = 21
Caption = 'House Members'
end
object Label6: TLabel
Left = 619
Top = 219
Width = 47
Height = 21
Alignment = taRightJustify
Caption = 'Search'
end
object shapeHouseColor: TShape
Left = 384
Top = 175
Width = 86
Height = 34
OnMouseUp = shapeHouseColorMouseUp
end
object LogoImage: TImage
Left = 32
Top = 24
Width = 306
Height = 306
Center = True
Proportional = True
Stretch = True
end
object Label7: TLabel
Left = 32
Top = 424
Width = 306
Height = 21
Alignment = taCenter
AutoSize = False
Caption = '(PNG, BMP, JPG - min 400x400 pixels,)'
end
object DBEdit1: TDBEdit
Left = 384
Top = 47
Width = 457
Height = 29
DataField = 'Caption'
DataSource = dsHouse
TabOrder = 0
end
object DBGrid2: TDBGrid
Left = 384
Top = 251
Width = 457
Height = 350
DataSource = dsHouseMember
Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit, dgTitleClick, dgTitleHotTrack]
ReadOnly = True
TabOrder = 3
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -16
TitleFont.Name = 'Segoe UI'
TitleFont.Style = []
end
object edtSearchHouseMember: TEdit
Left = 672
Top = 216
Width = 169
Height = 29
TabOrder = 2
OnChange = edtSearchHouseMemberChange
end
object DBEdit2: TDBEdit
Left = 384
Top = 107
Width = 457
Height = 29
DataField = 'Motto'
DataSource = dsHouse
TabOrder = 1
end
object btnLoadHouseLogo: TButton
Left = 148
Top = 374
Width = 86
Height = 33
Caption = 'Load'
TabOrder = 4
OnClick = btnLoadHouseLogoClick
end
object DBNavigator1: TDBNavigator
Left = 32
Top = 630
Width = 801
Height = 51
DataSource = dsHouse
VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbPost, nbCancel, nbRefresh]
TabOrder = 5
end
end
object TabSheet4: TTabSheet
Caption = 'Leader Board'
ImageIndex = 3
TabVisible = False
object Label8: TLabel
Left = 107
Top = 58
Width = 669
Height = 21
Caption =
'House leaderboard tallies shown here are the results of Points a' +
'nd Divisions settings set in Score.'
end
object btnUpdate: TButton
Left = 107
Top = 27
Width = 88
Height = 25
Caption = 'Update'
TabOrder = 0
end
object Edit2: TEdit
Left = 201
Top = 26
Width = 271
Height = 29
Alignment = taCenter
DoubleBuffered = False
ParentDoubleBuffered = False
ReadOnly = True
TabOrder = 1
Text = 'Date of last update : never.'
end
object DBGrid3: TDBGrid
Left = 201
Top = 96
Width = 271
Height = 473
TabOrder = 2
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -16
TitleFont.Name = 'Segoe UI'
TitleFont.Style = []
end
end
object TabSheet3: TTabSheet
Caption = 'Report'
ImageIndex = 2
object Label10: TLabel
Left = 167
Top = 11
Width = 266
Height = 21
Caption = 'Print a list of members for each house.'
end
object btnHouseMemberRpt: TButton
Left = 3
Top = 3
Width = 158
Height = 39
Caption = 'House Members'
TabOrder = 0
OnClick = btnHouseMemberRptClick
end
end
end
end
object Panel2: TPanel
Left = 0
Top = 728
Width = 875
Height = 61
Align = alBottom
BevelOuter = bvNone
TabOrder = 1
object btnClose: TButton
Left = 722
Top = 6
Width = 123
Height = 51
Caption = 'Close'
TabOrder = 0
OnClick = btnCloseClick
end
end
object qryHouse: TFDQuery
ActiveStoredUsage = [auDesignTime]
AfterScroll = qryHouseAfterScroll
IndexFieldNames = 'HouseID'
Connection = SCM.scmConnection
UpdateOptions.UpdateTableName = 'SwimClubMeet..House'
UpdateOptions.KeyFields = 'HouseID'
SQL.Strings = (
'USE [SwimClubMeet]'
';'
''
'SELECT [HouseID]'
' ,[Caption]'
' ,[Motto]'
' ,[Color]'
' ,[LogoDir]'
',[LogoImg]'
' FROM [dbo].[House]'
';')
Left = 72
Top = 168
object qryHouseHouseID: TFDAutoIncField
FieldName = 'HouseID'
Origin = 'HouseID'
ProviderFlags = [pfInWhere, pfInKey]
ReadOnly = True
end
object qryHouseCaption: TWideStringField
FieldName = 'Caption'
Origin = 'Caption'
Size = 128
end
object qryHouseMotto: TWideStringField
FieldName = 'Motto'
Origin = 'Motto'
Size = 128
end
object qryHouseColor: TIntegerField
FieldName = 'Color'
Origin = 'Color'
OnGetText = qryHouseColorGetText
end
object qryHouseLogoDir: TMemoField
FieldName = 'LogoDir'
Origin = 'LogoDir'
OnGetText = qryHouseLogoDirGetText
BlobType = ftMemo
Size = 2147483647
end
object qryHouseLogoImg: TBlobField
FieldName = 'LogoImg'
Origin = 'LogoImg'
end
end
object dsHouse: TDataSource
DataSet = qryHouse
Left = 176
Top = 168
end
object ColorDialog1: TColorDialog
Left = 424
Top = 120
end
object OpenPictureDialog1: TOpenPictureDialog
Filter =
'All (*.gif;*.jpg;*.jpeg;*.png;*.bmp;*.ico;*.emf;*.wmf;*.tif;*.ti' +
'ff)|*.gif;*.jpg;*.jpeg;*.png;*.bmp;*.ico;*.emf;*.wmf;*.tif;*.tif' +
'f|GIF Image (*.gif)|*.gif|JPEG Image File (*.jpg)|*.jpg|JPEG Ima' +
'ge File (*.jpeg)|*.jpeg|Portable Network Graphics (*.png)|*.png|' +
'Bitmaps (*.bmp)|*.bmp|Icons (*.ico)|*.ico|Enhanced Metafiles (*.' +
'emf)|*.emf|Metafiles (*.wmf)|*.wmf|TIFF Images (*.tif)|*.tif|TIF' +
'F Images (*.tiff)|*.tiff'
Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Title = 'Load SCM House Logo'
Left = 317
Top = 117
end
object qryHouseMember: TFDQuery
ActiveStoredUsage = [auDesignTime]
FilterOptions = [foCaseInsensitive]
IndexFieldNames = 'HouseID'
MasterSource = dsHouse
MasterFields = 'HouseID'
Connection = SCM.scmConnection
UpdateOptions.AssignedValues = [uvEDelete, uvEInsert, uvEUpdate]
UpdateOptions.EnableDelete = False
UpdateOptions.EnableInsert = False
UpdateOptions.EnableUpdate = False
UpdateOptions.UpdateTableName = 'SwimClubMeet..Member'
UpdateOptions.KeyFields = 'MemberID'
SQL.Strings = (
'USE [SwimClubMeet]'
';'
''
'SELECT [MemberID]'
#9',[MembershipNum]'
#9',SubString(CONCAT ('
#9#9#9'Upper(Member.LastName)'
#9#9#9','#39', '#39
#9#9#9',Member.FirstName'
#9#9#9'), 0, 60) AS FName'
#9',[HouseID]'
#9',dbo.SwimmerAge(GETDATE(), DOB) AS AGE'
'FROM [dbo].[Member]'
'WHERE Member.IsActive = 1'
'ORDER BY Member.LastName'
';')
Left = 72
Top = 120
object qryHouseMemberHouseID: TIntegerField
FieldName = 'HouseID'
Origin = 'HouseID'
Visible = False
end
object qryHouseMemberMemberID: TFDAutoIncField
Alignment = taCenter
DisplayLabel = ' ID'
DisplayWidth = 6
FieldName = 'MemberID'
Origin = 'MemberID'
ProviderFlags = [pfInWhere, pfInKey]
ReadOnly = True
DisplayFormat = '0000'
end
object qryHouseMemberMembershipNum: TIntegerField
DisplayLabel = 'Num#'
DisplayWidth = 6
FieldName = 'MembershipNum'
Origin = 'MembershipNum'
DisplayFormat = '0000'
end
object qryHouseMemberFName: TWideStringField
DisplayLabel = 'Member'#39's Name'
DisplayWidth = 34
FieldName = 'FName'
Origin = 'FName'
ReadOnly = True
Size = 60
end
object qryHouseMemberAGE: TIntegerField
Alignment = taCenter
DisplayLabel = ' AGE'
DisplayWidth = 5
FieldName = 'AGE'
Origin = 'AGE'
ReadOnly = True
DisplayFormat = '#0'
end
end
object dsHouseMember: TDataSource
DataSet = qryHouseMember
Left = 176
Top = 120
end
object frxHouseRpt: TfrxReport
Version = '6.6.11'
DotMatrixReport = False
IniFile = '\Software\Fast Reports'
PreviewOptions.AllowEdit = False
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
PreviewOptions.Zoom = 1.000000000000000000
PrintOptions.Printer = 'Default'
PrintOptions.PrintOnSheet = 0
ReportOptions.CreateDate = 43428.811813125000000000
ReportOptions.LastChange = 43434.512179675900000000
ScriptLanguage = 'PascalScript'
ScriptText.Strings = (
'begin'
''
'end.')
Left = 280
Top = 232
Datasets = <
item
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
end>
Variables = <>
Style = <>
object Data: TfrxDataPage
Height = 1000.000000000000000000
Width = 1000.000000000000000000
end
object Page1: TfrxReportPage
PaperWidth = 210.000000000000000000
PaperHeight = 297.000000000000000000
PaperSize = 9
LeftMargin = 10.000000000000000000
RightMargin = 10.000000000000000000
TopMargin = 10.000000000000000000
BottomMargin = 10.000000000000000000
Columns = 4
ColumnWidth = 47.500000000000000000
ColumnPositions.Strings = (
'0'
'47.5'
'95'
'142.5')
Frame.Typ = []
MirrorMode = []
object GroupHeader1: TfrxGroupHeader
FillType = ftBrush
Frame.Typ = []
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Height = 64.252010000000000000
ParentFont = False
Top = 124.724490000000000000
Width = 179.527675000000000000
Condition = 'frxDS."HouseID"'
KeepTogether = True
object Shape1: TfrxShapeView
AllowVectorExport = True
Left = 3.779530000000000000
Width = 170.162956670000000000
Height = 30.236240000000000000
Frame.Typ = []
end
object frxDSHouseStr: TfrxMemoView
AllowVectorExport = True
Left = 7.559060000000000000
Top = 3.779530000000000000
Width = 161.270563330000000000
Height = 18.897650000000000000
DataField = 'HouseStr'
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -16
Font.Name = 'Arial'
Font.Style = [fsBold]
Frame.Typ = []
HAlign = haCenter
Memo.UTF8W = (
'[frxDS."HouseStr"]')
ParentFont = False
end
object Memo1: TfrxMemoView
AllowVectorExport = True
Left = 3.779530000000000000
Top = 33.349103330000000000
Width = 27.354360000000000000
Height = 18.897650000000000000
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Frame.Typ = []
Memo.UTF8W = (
'ID')
ParentFont = False
end
object Memo2: TfrxMemoView
AllowVectorExport = True
Left = 38.692950000000000000
Top = 34.015770000000000000
Width = 138.803340000000000000
Height = 18.897650000000000000
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Frame.Typ = []
Memo.UTF8W = (
'Member'#39's Name')
ParentFont = False
end
end
object PageHeader1: TfrxPageHeader
FillType = ftBrush
Frame.Typ = []
Height = 45.354360000000000000
Top = 18.897650000000000000
Width = 718.110700000000000000
object FDQuery1NickName: TfrxMemoView
AllowVectorExport = True
Top = 22.677180000000000000
Width = 400.630180000000000000
Height = 18.897650000000000000
DataField = 'NickName'
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
Frame.Typ = []
Memo.UTF8W = (
'[frxDS."NickName"]')
end
object frxDSClubName: TfrxMemoView
AllowVectorExport = True
Width = 400.630180000000000000
Height = 18.897650000000000000
DataField = 'ClubName'
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -16
Font.Name = 'Arial'
Font.Style = [fsBold]
Frame.Typ = []
Memo.UTF8W = (
'[frxDS."ClubName"]')
ParentFont = False
end
end
object MasterData1: TfrxMasterData
FillType = ftBrush
Frame.Typ = []
Height = 18.897650000000000000
Top = 211.653680000000000000
Width = 179.527675000000000000
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
RowCount = 0
object frxDSMemberID: TfrxMemoView
AllowVectorExport = True
Left = 1.279530000000000000
Width = 36.354360000000000000
Height = 18.897650000000000000
DataField = 'MemberID'
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Frame.Typ = []
Memo.UTF8W = (
'[frxDS."MemberID"]')
ParentFont = False
end
object frxDSFNAME: TfrxMemoView
AllowVectorExport = True
Left = 38.192950000000000000
Width = 138.082870000000000000
Height = 18.897650000000000000
DataField = 'FNAME'
DataSet = frxDSHouseRpt
DataSetName = 'frxDS'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Frame.Typ = []
Memo.UTF8W = (
'[frxDS."FNAME"]')
ParentFont = False
end
end
object PageFooter1: TfrxPageFooter
FillType = ftBrush
Frame.Typ = []
Height = 22.677180000000000000
Top = 325.039580000000000000
Width = 718.110700000000000000
object TotalPages: TfrxMemoView
AllowVectorExport = True
Left = 266.456865000000000000
Top = 1.889765000000010000
Width = 185.196970000000000000
Height = 18.897650000000000000
AutoWidth = True
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = 'Arial'
Font.Style = []
Frame.Typ = []
Memo.UTF8W = (
'Page [Page#] of [TotalPages#]')
ParentFont = False
Formats = <
item
end
item
end>
end
object Date: TfrxMemoView
AllowVectorExport = True
Top = 1.889765000000010000
Width = 264.567100000000000000
Height = 18.897650000000000000
Frame.Typ = []
Memo.UTF8W = (
'Printed On: [Date]')
end
end
object GroupFooter1: TfrxGroupFooter
FillType = ftBrush
Frame.Typ = []
Height = 11.338590000000000000
Top = 253.228510000000000000
Width = 179.527675000000000000
end
end
end
object qryHouseRpt: TFDQuery
ActiveStoredUsage = [auDesignTime]
IndexFieldNames = 'HouseID'
Connection = SCM.scmConnection
UpdateOptions.KeyFields = 'HouseID'
SQL.Strings = (
'USE SwimClubMeet;'
''
'SELECT House.HouseID'
#9',Member.MemberID'
#9',House.Caption AS HouseStr'
#9',CONCAT ('
#9#9'Member.FirstName'
#9#9','#39' '#39
#9#9',UPPER(Member.LastName)'
#9#9') AS FNAME'
#9',SwimClub.Caption AS ClubName'
#9',SwimClub.NickName'
'FROM House'
'INNER JOIN Member ON House.HouseID = Member.HouseID'
'INNER JOIN SwimClub ON Member.SwimClubID = SwimClub.SwimClubID'
'ORDER BY House.HouseID'
#9',Member.LastName;'
'')
Left = 72
Top = 232
end
object frxXLSExport1: TfrxXLSExport
UseFileCache = True
ShowProgress = True
OverwritePrompt = False
DataOnly = False
ExportEMF = True
AsText = False
Background = True
FastExport = True
PageBreaks = True
EmptyLines = True
SuppressPageHeadersFooters = False
Left = 72
Top = 296
end
object frxPDFExport1: TfrxPDFExport
UseFileCache = True
ShowProgress = True
OverwritePrompt = False
DataOnly = False
OpenAfterExport = False
PrintOptimized = False
Outline = False
Background = False
HTMLTags = True
Quality = 95
Transparency = False
Author = 'FastReport'
Subject = 'FastReport PDF export'
ProtectionFlags = [ePrint, eModify, eCopy, eAnnot]
HideToolbar = False
HideMenubar = False
HideWindowUI = False
FitWindow = False
CenterWindow = False
PrintScaling = False
PdfA = False
PDFStandard = psNone
PDFVersion = pv17
Left = 176
Top = 296
end
object frxDSHouseRpt: TfrxDBDataset
UserName = 'frxDS'
CloseDataSource = False
DataSet = qryHouseRpt
BCDToCurrency = False
Left = 176
Top = 232
end
end