forked from layerfsd/Roomer-PMS-1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uAllotmentToRes.dfm
1865 lines (1865 loc) · 48.5 KB
/
uAllotmentToRes.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
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
object frmAllotmentToRes: TfrmAllotmentToRes
Left = 0
Top = 0
Caption = 'Provide allotment'
ClientHeight = 616
ClientWidth = 1149
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
KeyPreview = True
OldCreateOrder = False
OnCreate = FormCreate
OnDestroy = FormDestroy
OnKeyDown = FormKeyDown
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object sSplitter1: TsSplitter
Left = 569
Top = 0
Height = 583
Align = alRight
SkinData.SkinSection = 'SPLITTER'
ExplicitLeft = 676
ExplicitHeight = 614
end
object sPanel2: TsPanel
Left = 0
Top = 583
Width = 1149
Height = 33
Align = alBottom
TabOrder = 0
SkinData.SkinSection = 'PANEL'
DesignSize = (
1149
33)
object btnHideShowAllotment: TsButton
Left = 8
Top = 4
Width = 130
Height = 25
Caption = 'Hide Allotment'
ImageIndex = 17
Images = DImages.PngImageList1
TabOrder = 0
OnClick = btnHideShowAllotmentClick
SkinData.SkinSection = 'BUTTON'
end
object sButton5: TsButton
Left = 986
Top = 5
Width = 78
Height = 25
Anchors = [akTop, akRight]
Caption = 'OK'
ImageIndex = 82
Images = DImages.PngImageList1
ModalResult = 1
TabOrder = 1
OnClick = sButton5Click
SkinData.SkinSection = 'BUTTON'
end
object sButton6: TsButton
Left = 1070
Top = 5
Width = 75
Height = 25
Anchors = [akTop, akRight]
Cancel = True
Caption = 'Cancel'
ImageIndex = 4
Images = DImages.PngImageList1
ModalResult = 2
TabOrder = 2
SkinData.SkinSection = 'BUTTON'
end
end
object panLeft: TsPanel
Left = 0
Top = 0
Width = 569
Height = 583
Align = alClient
TabOrder = 1
SkinData.SkinSection = 'PANEL'
object sPanel1: TsPanel
Left = 1
Top = 1
Width = 567
Height = 248
Align = alTop
TabOrder = 0
SkinData.SkinSection = 'PANEL'
object sPanel8: TsPanel
Left = 1
Top = 1
Width = 565
Height = 32
Hint = 'Double click to maximize allotment panel'
Align = alTop
Caption = 'Allotment'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
OnDblClick = sPanel8DblClick
SkinData.SkinSection = 'MENUCAPTION'
end
object sGroupBox2: TsGroupBox
AlignWithMargins = True
Left = 4
Top = 36
Width = 210
Height = 166
Align = alLeft
Caption = 'Show in cells'
TabOrder = 1
SkinData.SkinSection = 'GROUPBOX'
object chkRoomCount: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 18
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Number of Rooms'
Align = alTop
Checked = True
State = cbChecked
TabOrder = 0
OnClick = chkRoomCountClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object chkGuestName: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 38
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Guest name'
Align = alTop
Checked = True
State = cbChecked
TabOrder = 2
OnClick = chkGuestNameClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object chkPrice: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 78
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Price info (Code - Price - Discount)'
Align = alTop
TabOrder = 3
OnClick = chkPriceClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object chkNumGuests: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 58
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Number of guests'
Align = alTop
TabOrder = 1
OnClick = chkNumGuestsClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object chkShowRoomdescription: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 98
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Show room description'
Align = alTop
Checked = True
State = cbChecked
TabOrder = 4
OnClick = chkShowRoomdescriptionClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object chkFitColumns: TsCheckBox
AlignWithMargins = True
Left = 17
Top = 118
Width = 188
Height = 17
Margins.Left = 15
Margins.Bottom = 0
Caption = 'Fit columns'
Align = alTop
TabOrder = 5
OnClick = chkFitColumnsClick
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
end
object sPanel6: TsPanel
Left = 1
Top = 205
Width = 565
Height = 42
Align = alBottom
TabOrder = 2
SkinData.SkinSection = 'PANEL'
object sButton4: TsButton
AlignWithMargins = True
Left = 357
Top = 6
Width = 204
Height = 30
Margins.Top = 5
Margins.Bottom = 5
Align = alRight
Caption = 'Add Allotment to Reservation'
ImageAlignment = iaRight
ImageIndex = 107
Images = DImages.PngImageList1
TabOrder = 0
OnClick = sButton4Click
SkinData.SkinSection = 'BUTTON'
end
end
object sGroupBox1: TsGroupBox
AlignWithMargins = True
Left = 220
Top = 36
Width = 248
Height = 166
Align = alLeft
Caption = 'Allotment'
TabOrder = 3
SkinData.SkinSection = 'GROUPBOX'
object clabFirstDate: TsLabel
Left = 8
Top = 22
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'First date :'
end
object clabLastDate: TsLabel
Left = 8
Top = 39
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Last date :'
end
object clabRoomCount: TsLabel
Left = 8
Top = 72
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Res Rooms :'
end
object clabDayCount: TsLabel
Left = 8
Top = 55
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Days :'
end
object labFirstDate: TsLabel
Left = 110
Top = 22
Width = 4
Height = 13
Caption = '-'
end
object labLastDate: TsLabel
Left = 110
Top = 39
Width = 4
Height = 13
Caption = '-'
end
object labDays: TsLabel
Left = 110
Top = 53
Width = 4
Height = 13
Caption = '-'
end
object labRooms: TsLabel
Left = 110
Top = 90
Width = 4
Height = 13
Caption = '-'
end
object sLabel1: TsLabel
Left = 8
Top = 90
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Rooms :'
end
object labResRooms: TsLabel
Left = 110
Top = 72
Width = 4
Height = 13
Caption = '-'
end
end
end
object grProvide: TAdvStringGrid
Tag = 1
Left = 1
Top = 249
Width = 567
Height = 333
Cursor = crDefault
Align = alClient
BevelInner = bvNone
BevelOuter = bvNone
Color = clWhite
ColCount = 1
Ctl3D = False
DefaultRowHeight = 18
DoubleBuffered = True
DragKind = dkDock
DrawingStyle = gdsClassic
FixedColor = clSkyBlue
Font.Charset = ANSI_CHARSET
Font.Color = clWhite
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goDrawFocusSelected, goRowSizing, goColSizing]
ParentCtl3D = False
ParentDoubleBuffered = False
ParentFont = False
ParentShowHint = False
ScrollBars = ssBoth
ShowHint = True
TabOrder = 1
StyleElements = [seClient, seBorder]
GridLineColor = 15527152
GridFixedLineColor = 13947601
HoverRowCells = [hcNormal, hcSelected]
OnGetCellColor = grProvideGetCellColor
OnGridHint = grProvideGridHint
OnDblClickCell = grProvideDblClickCell
OnSelectionChanged = grProvideSelectionChanged
DragDropSettings.ShowCells = False
DragDropSettings.OleAcceptFiles = False
DragDropSettings.OleAcceptText = False
DragDropSettings.OleAcceptURLs = False
ActiveCellShow = True
ActiveCellFont.Charset = DEFAULT_CHARSET
ActiveCellFont.Color = clWindowText
ActiveCellFont.Height = -11
ActiveCellFont.Name = 'Tahoma'
ActiveCellFont.Style = [fsBold]
ActiveCellColor = 16575452
ActiveCellColorTo = 16571329
BackGround.Color = clWhite
CellNode.NodeType = cnFlat
ControlLook.FixedGradientMirrorFrom = 16049884
ControlLook.FixedGradientMirrorTo = 16247261
ControlLook.FixedGradientHoverFrom = 16710648
ControlLook.FixedGradientHoverTo = 16446189
ControlLook.FixedGradientHoverMirrorFrom = 16049367
ControlLook.FixedGradientHoverMirrorTo = 15258305
ControlLook.FixedGradientDownFrom = 15853789
ControlLook.FixedGradientDownTo = 15852760
ControlLook.FixedGradientDownMirrorFrom = 15522767
ControlLook.FixedGradientDownMirrorTo = 15588559
ControlLook.FixedGradientDownBorder = 14007466
ControlLook.DropDownHeader.Font.Charset = DEFAULT_CHARSET
ControlLook.DropDownHeader.Font.Color = clWindowText
ControlLook.DropDownHeader.Font.Height = -11
ControlLook.DropDownHeader.Font.Name = 'Tahoma'
ControlLook.DropDownHeader.Font.Style = []
ControlLook.DropDownHeader.Visible = True
ControlLook.DropDownHeader.Buttons = <>
ControlLook.DropDownFooter.Font.Charset = DEFAULT_CHARSET
ControlLook.DropDownFooter.Font.Color = clWindowText
ControlLook.DropDownFooter.Font.Height = -11
ControlLook.DropDownFooter.Font.Name = 'Tahoma'
ControlLook.DropDownFooter.Font.Style = []
ControlLook.DropDownFooter.Visible = True
ControlLook.DropDownFooter.Buttons = <>
Filter = <>
FilterDropDown.Font.Charset = DEFAULT_CHARSET
FilterDropDown.Font.Color = clWindowText
FilterDropDown.Font.Height = -11
FilterDropDown.Font.Name = 'Tahoma'
FilterDropDown.Font.Style = []
FilterDropDownClear = '(All)'
FilterEdit.TypeNames.Strings = (
'Starts with'
'Ends with'
'Contains'
'Not contains'
'Equal'
'Not equal'
'Larger than'
'Smaller than'
'Clear')
FixedColWidth = 132
FixedRowHeight = 18
FixedColAlways = True
FixedFont.Charset = DEFAULT_CHARSET
FixedFont.Color = clBlack
FixedFont.Height = -11
FixedFont.Name = 'Tahoma'
FixedFont.Style = [fsBold]
Flat = True
FloatFormat = '%.2f'
HoverButtons.Buttons = <>
HoverButtons.Position = hbLeftFromColumnLeft
HTMLSettings.ImageFolder = 'images'
HTMLSettings.ImageBaseName = 'img'
Look = glWin7
MouseActions.AllColumnSize = True
MouseActions.AllRowSize = True
MouseActions.DisjunctCellSelect = True
Multilinecells = True
PrintSettings.DateFormat = 'dd/mm/yyyy'
PrintSettings.Font.Charset = DEFAULT_CHARSET
PrintSettings.Font.Color = clWindowText
PrintSettings.Font.Height = -11
PrintSettings.Font.Name = 'Tahoma'
PrintSettings.Font.Style = []
PrintSettings.FixedFont.Charset = DEFAULT_CHARSET
PrintSettings.FixedFont.Color = clWindowText
PrintSettings.FixedFont.Height = -11
PrintSettings.FixedFont.Name = 'Tahoma'
PrintSettings.FixedFont.Style = []
PrintSettings.HeaderFont.Charset = DEFAULT_CHARSET
PrintSettings.HeaderFont.Color = clWindowText
PrintSettings.HeaderFont.Height = -11
PrintSettings.HeaderFont.Name = 'Tahoma'
PrintSettings.HeaderFont.Style = []
PrintSettings.FooterFont.Charset = DEFAULT_CHARSET
PrintSettings.FooterFont.Color = clWindowText
PrintSettings.FooterFont.Height = -11
PrintSettings.FooterFont.Name = 'Tahoma'
PrintSettings.FooterFont.Style = []
PrintSettings.PageNumSep = '/'
ScrollWidth = 21
SearchFooter.Color = 16645370
SearchFooter.ColorTo = 16247261
SearchFooter.FindNextCaption = 'Find next'
SearchFooter.FindPrevCaption = 'Find previous'
SearchFooter.Font.Charset = DEFAULT_CHARSET
SearchFooter.Font.Color = clWindowText
SearchFooter.Font.Height = -11
SearchFooter.Font.Name = 'Tahoma'
SearchFooter.Font.Style = []
SearchFooter.HighLightCaption = 'Highlight'
SearchFooter.HintClose = 'Close'
SearchFooter.HintFindNext = 'Find next occurence'
SearchFooter.HintFindPrev = 'Find previous occurence'
SearchFooter.HintHighlight = 'Highlight occurences'
SearchFooter.MatchCaseCaption = 'Match case'
SearchFooter.ResultFormat = '(%d of %d)'
SizeWhileTyping.Height = True
SortSettings.DefaultFormat = ssAutomatic
SortSettings.HeaderColor = 16579058
SortSettings.HeaderColorTo = 16579058
SortSettings.HeaderMirrorColor = 16380385
SortSettings.HeaderMirrorColorTo = 16182488
Version = '8.2.4.1'
ColWidths = (
132)
RowHeights = (
18
18
18
18
18
18
18
18
18
18)
end
end
object sPanel4: TsPanel
Left = 575
Top = 0
Width = 574
Height = 583
Align = alRight
TabOrder = 2
SkinData.SkinSection = 'PANEL'
object sLabel2: TsLabel
Left = 240
Top = 48
Width = 3
Height = 13
end
object sPanel5: TsPanel
Left = 1
Top = 1
Width = 572
Height = 248
Align = alTop
TabOrder = 0
SkinData.SkinSection = 'PANEL'
object sPanel7: TsPanel
Left = 1
Top = 1
Width = 570
Height = 32
Hint = 'Double click to maximize reservation panel'
Align = alTop
Caption = 'Reservation'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
OnDblClick = sPanel7DblClick
SkinData.SkinSection = 'MENUCAPTION'
end
object sGroupBox3: TsGroupBox
AlignWithMargins = True
Left = 4
Top = 36
Width = 280
Height = 166
Align = alLeft
Caption = 'Reservation'
TabOrder = 1
SkinData.SkinSection = 'GROUPBOX'
object cLabCountry: TsLabel
Left = 19
Top = 72
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Country :'
end
object clabReservationName: TsLabel
Left = 19
Top = 91
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'ReservationName :'
end
object labRefrence: TsLabel
Left = 119
Top = 53
Width = 4
Height = 13
Caption = '-'
end
object labCountry: TsLabel
Left = 121
Top = 74
Width = 4
Height = 13
Caption = '-'
end
object labReservationName: TsLabel
Left = 121
Top = 91
Width = 4
Height = 13
Caption = '-'
end
object sLabel18: TsLabel
Left = 3
Top = 147
Width = 112
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Reservation status :'
end
object labResStatus: TsLabel
Left = 121
Top = 147
Width = 4
Height = 13
Caption = '-'
end
object labPriceCode: TsLabel
Left = 121
Top = 113
Width = 4
Height = 13
Caption = '-'
end
object clabRefrence: TsLabel
Left = 19
Top = 54
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Refrence :'
end
object labCurrency: TsLabel
Left = 121
Top = 131
Width = 4
Height = 13
Caption = '-'
end
object sLabel3: TsLabel
Left = 19
Top = 18
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Customer :'
end
object clabCustomerName: TsLabel
Left = 19
Top = 36
Width = 94
Height = 13
Alignment = taRightJustify
AutoSize = False
Caption = 'Customer name :'
end
object labCustomerName: TsLabel
Left = 121
Top = 36
Width = 4
Height = 13
Caption = '-'
end
object labCustomer: TsLabel
Left = 121
Top = 18
Width = 4
Height = 13
Caption = '-'
end
end
object chkIsGroupInvoice: TsCheckBox
Left = 287
Top = 180
Width = 100
Height = 17
Caption = 'is Groupinvoice'
TabOrder = 2
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
object sPanel3: TsPanel
Left = 1
Top = 205
Width = 570
Height = 42
Align = alBottom
TabOrder = 3
SkinData.SkinSection = 'PANEL'
object sButton2: TsButton
AlignWithMargins = True
Left = 4
Top = 6
Width = 204
Height = 30
Margins.Top = 5
Margins.Bottom = 5
Align = alLeft
Caption = 'Add Room to Allotment'
ImageIndex = 106
Images = DImages.PngImageList1
TabOrder = 0
OnClick = sButton2Click
SkinData.SkinSection = 'BUTTON'
end
end
object sGroupBox4: TsGroupBox
Left = 295
Top = 36
Width = 185
Height = 98
Caption = 'Recalculate Roomprices'
TabOrder = 4
SkinData.SkinSection = 'GROUPBOX'
object btnReCalc: TsButton
Left = 12
Top = 23
Width = 137
Height = 25
Caption = 'Selected room'
TabOrder = 0
OnClick = btnReCalcClick
SkinData.SkinSection = 'BUTTON'
end
object btnReclacAllPrices: TsButton
Left = 12
Top = 55
Width = 137
Height = 25
Caption = 'All rooms'
TabOrder = 1
OnClick = btnReclacAllPricesClick
SkinData.SkinSection = 'BUTTON'
end
end
end
object grRoomRes: TcxGrid
Left = 1
Top = 249
Width = 572
Height = 333
Align = alClient
TabOrder = 1
LookAndFeel.NativeStyle = False
object tvRoomRes: TcxGridDBTableView
Navigator.Buttons.CustomButtons = <>
DataController.DataSource = mRoomResDS
DataController.DetailKeyFieldNames = 'RoomReservation'
DataController.KeyFieldNames = 'RoomReservation'
DataController.Summary.DefaultGroupSummaryItems = <>
DataController.Summary.FooterSummaryItems = <
item
Format = '###0.;###0.'
Kind = skSum
FieldName = 'Guests'
Column = tvRoomResGuests
end
item
Format = '###0.;###0.'
Kind = skSum
FieldName = 'ChildrenCount'
Column = tvRoomResChildrenCount
end
item
Format = '###0.;###0.'
Kind = skSum
FieldName = 'infantCount'
Column = tvRoomResinfantCount
end
item
Format = '###0.00;###0.00'
Kind = skSum
FieldName = 'AvragePrice'
Column = tvRoomResAvragePrice
end
item
Format = '###0.00;###0.00'
Kind = skAverage
FieldName = 'AvragePrice'
Column = tvRoomResAvragePrice
end>
DataController.Summary.SummaryGroups = <>
OptionsData.Deleting = False
OptionsData.DeletingConfirmation = False
OptionsData.Inserting = False
OptionsView.CellAutoHeight = True
OptionsView.Footer = True
OptionsView.FooterAutoHeight = True
OptionsView.FooterMultiSummaries = True
OptionsView.GroupByBox = False
object tvRoomResRoom: TcxGridDBColumn
DataBinding.FieldName = 'Room'
OnGetDisplayText = tvRoomResRoomGetDisplayText
Options.Editing = False
end
object tvRoomResRoomDescription: TcxGridDBColumn
Caption = 'Description'
DataBinding.FieldName = 'RoomDescription'
Options.Editing = False
Width = 118
end
object tvRoomResRoomType: TcxGridDBColumn
Caption = 'Type'
DataBinding.FieldName = 'RoomType'
Options.Editing = False
end
object tvRoomResRoomTypeDescription: TcxGridDBColumn
Caption = 'Description'
DataBinding.FieldName = 'RoomTypeDescription'
Visible = False
Options.Editing = False
Width = 111
end
object tvRoomResArrival: TcxGridDBColumn
DataBinding.FieldName = 'Arrival'
Options.Editing = False
Width = 88
end
object tvRoomResDeparture: TcxGridDBColumn
DataBinding.FieldName = 'Departure'
Options.Editing = False
Width = 79
end
object tvRoomResGuests: TcxGridDBColumn
DataBinding.FieldName = 'Guests'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.MaxValue = 100.000000000000000000
Properties.MinValue = 1.000000000000000000
Width = 45
end
object tvRoomResChildrenCount: TcxGridDBColumn
Caption = 'Children'
DataBinding.FieldName = 'ChildrenCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.MaxValue = 10.000000000000000000
Width = 45
end
object tvRoomResinfantCount: TcxGridDBColumn
Caption = 'infants'
DataBinding.FieldName = 'infantCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.MaxValue = 10.000000000000000000
Width = 45
end
object tvRoomResMainGuest: TcxGridDBColumn
DataBinding.FieldName = 'MainGuest'
PropertiesClassName = 'TcxTextEditProperties'
Width = 150
end
object tvRoomResAvragePrice: TcxGridDBColumn
Caption = 'Netto Rate'
DataBinding.FieldName = 'AvragePrice'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
Options.Editing = False
Width = 73
end
object tvRoomResRateCount: TcxGridDBColumn
DataBinding.FieldName = 'RateCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.DisplayFormat = '###0.;###0.'
Options.Editing = False
end
object tvRoomResRoomReservation: TcxGridDBColumn
DataBinding.FieldName = 'RoomReservation'
Visible = False
end
object tvRoomResAvrageDiscount: TcxGridDBColumn
DataBinding.FieldName = 'AvrageDiscount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
Options.Editing = False
end
object tvRoomResPriceCode: TcxGridDBColumn
DataBinding.FieldName = 'PriceCode'
Options.Editing = False
Width = 74
end
end
object tvRoomRates: TcxGridDBTableView
Navigator.Buttons.CustomButtons = <>
DataController.DataModeController.SyncMode = False
DataController.DataSource = kbmRoomRatesDS
DataController.DetailKeyFieldNames = 'RoomReservation'
DataController.KeyFieldNames = 'RoomReservation'
DataController.MasterKeyFieldNames = 'RoomReservation'
DataController.Summary.DefaultGroupSummaryItems = <>
DataController.Summary.FooterSummaryItems = <>
DataController.Summary.SummaryGroups = <>
OptionsData.CancelOnExit = False
OptionsData.Deleting = False
OptionsData.DeletingConfirmation = False
OptionsData.Inserting = False
OptionsView.GroupByBox = False
object tvRoomRatesReservation: TcxGridDBColumn
DataBinding.FieldName = 'Reservation'
Visible = False
end
object tvRoomRatesRoomReservation: TcxGridDBColumn
DataBinding.FieldName = 'RoomReservation'
Visible = False
end
object tvRoomRatesRoomNumber: TcxGridDBColumn
Caption = 'Room'
DataBinding.FieldName = 'RoomNumber'
Visible = False
end
object tvRoomRatesRateDate: TcxGridDBColumn
Caption = 'Date'
DataBinding.FieldName = 'RateDate'
PropertiesClassName = 'TcxDateEditProperties'
end
object tvRoomRatesPriceCode: TcxGridDBColumn
Caption = 'Price code'
DataBinding.FieldName = 'PriceCode'
end
object tvRoomRatesRate: TcxGridDBColumn
Caption = 'Room Rate'
DataBinding.FieldName = 'Rate'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
end
object tvRoomRatesDiscount: TcxGridDBColumn
DataBinding.FieldName = 'Discount'
PropertiesClassName = 'TcxCalcEditProperties'
Properties.DisplayFormat = '0.0 %'
OnGetProperties = tvRoomRatesDiscountGetProperties
end
object tvRoomRatesisPercentage: TcxGridDBColumn
Caption = 'is %'
DataBinding.FieldName = 'isPercentage'
PropertiesClassName = 'TcxCheckBoxProperties'
end
object tvRoomRatesShowDiscount: TcxGridDBColumn
Caption = 'Show Discount'
DataBinding.FieldName = 'ShowDiscount'
Visible = False
end
object tvRoomRatesisPaid: TcxGridDBColumn
Caption = 'Paid'
DataBinding.FieldName = 'isPaid'
Visible = False
end
object tvRoomRatesDiscountAmount: TcxGridDBColumn
Caption = 'Total discount'
DataBinding.FieldName = 'DiscountAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
end
object tvRoomRatesRentAmount: TcxGridDBColumn
Caption = 'Total Rent'
DataBinding.FieldName = 'RentAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
end
object tvRoomRatesNativeAmount: TcxGridDBColumn
Caption = 'Native'
DataBinding.FieldName = 'NativeAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResGetCurrencyProperties
end
end
object lvRoomRes: TcxGridLevel
GridView = tvRoomRes
object lvRoomRates: TcxGridLevel
GridView = tvRoomRates
end
end
end
end
object mRRDateInfo: TkbmMemTable
Active = True
DesignActivation = True
AttachedAutoRefresh = True
AttachMaxCount = 1
FieldDefs = <
item
Name = 'rdID'
DataType = ftInteger
end
item
Name = 'RoomReservation'
DataType = ftInteger
end
item
Name = 'Reservation'
DataType = ftInteger
end