forked from layerfsd/Roomer-PMS-1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathufrmRoomPrices.dfm
660 lines (660 loc) · 19.2 KB
/
ufrmRoomPrices.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
inherited frmRoomPrices: TfrmRoomPrices
Caption = 'Room Rates'
ClientHeight = 585
ClientWidth = 1128
OnShow = FormShow
ExplicitWidth = 1144
ExplicitHeight = 624
PixelsPerInch = 96
TextHeight = 13
inherited sbStatusBar: TsStatusBar
Top = 565
Width = 1128
ExplicitTop = 565
ExplicitWidth = 1128
end
object pnlTopRoomRates: TsPanel [1]
Left = 0
Top = 0
Width = 1128
Height = 89
Align = alTop
TabOrder = 1
SkinData.SkinSection = 'PANEL'
object cxGroupBox4: TsGroupBox
AlignWithMargins = True
Left = 230
Top = 4
Width = 220
Height = 81
Align = alLeft
Caption = 'Selected room'
TabOrder = 0
SkinData.SkinSection = 'GROUPBOX'
object btnRatePerDate: TsButton
AlignWithMargins = True
Left = 5
Top = 16
Width = 210
Height = 20
Margins.Top = 1
Margins.Bottom = 0
Align = alTop
Caption = 'Change rate per date'
TabOrder = 0
OnClick = btnRatePerDateClick
SkinData.SkinSection = 'BUTTON'
end
object btnApplyAllRoomtypes: TsButton
AlignWithMargins = True
Left = 5
Top = 37
Width = 210
Height = 20
Margins.Top = 1
Margins.Bottom = 0
Align = alTop
Caption = 'Apply to all roomtypes'
TabOrder = 1
OnClick = btnApplyAllRoomtypesClick
SkinData.SkinSection = 'BUTTON'
end
object btnApplySameRoomType: TsButton
AlignWithMargins = True
Left = 5
Top = 58
Width = 210
Height = 20
Margins.Top = 1
Margins.Bottom = 0
Align = alTop
Caption = 'Apply to same roomtype'
TabOrder = 2
OnClick = btnApplySameRoomTypeClick
SkinData.SkinSection = 'BUTTON'
end
end
object sGroupBox2: TsGroupBox
AlignWithMargins = True
Left = 456
Top = 4
Width = 268
Height = 81
Align = alLeft
Caption = 'Other properties'
TabOrder = 1
SkinData.SkinSection = 'GROUPBOX'
object chkAutoUpdateNullPrice: TsCheckBox
AlignWithMargins = True
Left = 5
Top = 18
Width = 258
Height = 17
Caption = 'Auto update Null Price'
Align = alTop
Checked = True
State = cbChecked
TabOrder = 0
SkinData.SkinSection = 'CHECKBOX'
ImgChecked = 0
ImgUnchecked = 0
end
end
object pnlButtons: TsPanel
AlignWithMargins = True
Left = 4
Top = 4
Width = 220
Height = 81
Align = alLeft
BevelOuter = bvNone
TabOrder = 2
SkinData.SkinSection = 'GROUPBOX'
DesignSize = (
220
81)
object btnCancel: TsButton
Left = 111
Top = 10
Width = 100
Height = 55
Anchors = [akTop, akRight]
Cancel = True
Caption = 'Cancel'
ImageIndex = 10
Images = DImages.cxLargeImagesFlat
TabOrder = 0
OnClick = btnCancelClick
SkinData.SkinSection = 'BUTTON'
end
object btnApply: TsButton
Left = 5
Top = 10
Width = 100
Height = 55
Caption = 'Apply'
ImageIndex = 82
Images = DImages.cxLargeImagesFlat
ModalResult = 1
TabOrder = 1
OnClick = btnApplyClick
SkinData.SkinSection = 'BUTTON'
end
end
object gbxCurrency: TsGroupBox
AlignWithMargins = True
Left = 730
Top = 4
Width = 185
Height = 81
Align = alLeft
Caption = 'Currency'
TabOrder = 3
object lblCurrency: TsLabel
AlignWithMargins = True
Left = 5
Top = 18
Width = 175
Height = 13
Align = alTop
Alignment = taCenter
Caption = '<autofilled>'
ExplicitWidth = 60
end
end
end
object grRoomRes: TcxGrid [2]
Left = 0
Top = 89
Width = 1128
Height = 476
Align = alClient
TabOrder = 2
LookAndFeel.NativeStyle = False
object tvRoomRes: TcxGridDBTableView
Navigator.Buttons.CustomButtons = <>
DataController.DataSource = mRoomResDS
DataController.DetailKeyFieldNames = 'RoomReservation'
DataController.KeyFieldNames = 'RoomReservation'
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
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
OnGetText = tvRoomResTcxGridDBDataControllerTcxDataSummaryFooterSummaryItems3GetText
FieldName = 'AveragePrice'
Column = tvRoomResAveragePriceDisplay
end
item
Format = '###0.00;###0.00'
Kind = skAverage
OnGetText = tvRoomResTcxGridDBDataControllerTcxDataSummaryFooterSummaryItems4GetText
FieldName = 'AveragePrice'
Column = tvRoomResAveragePriceDisplay
end>
DataController.Summary.SummaryGroups = <>
Images = DImages.PngImageList1
OptionsBehavior.FocusCellOnTab = True
OptionsData.Deleting = False
OptionsData.DeletingConfirmation = False
OptionsData.Inserting = False
OptionsView.ColumnAutoWidth = True
OptionsView.Footer = True
OptionsView.FooterAutoHeight = True
OptionsView.FooterMultiSummaries = True
OptionsView.GroupByBox = False
object tvRoomResEditButton: TcxGridDBColumn
Caption = 'Edit'
PropertiesClassName = 'TcxButtonEditProperties'
Properties.Buttons = <
item
Caption = 'Edit...'
Default = True
ImageIndex = 25
Kind = bkGlyph
end>
Properties.Images = DImages.PngImageList1
Properties.ViewStyle = vsButtonsOnly
Properties.OnButtonClick = tvRoomResEditColumnButtonClick
Options.ShowEditButtons = isebAlways
Width = 39
end
object tvRoomResRoom: TcxGridDBColumn
DataBinding.FieldName = 'Room'
Options.Editing = False
end
object tvRoomResRoomDescription: TcxGridDBColumn
Caption = 'Description'
DataBinding.FieldName = 'RoomDescription'
Options.Editing = False
Width = 95
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 tvRoomResGuestName: TcxGridDBColumn
Caption = 'Guest name'
DataBinding.FieldName = 'GuestName'
Options.Editing = False
Width = 172
end
object tvRoomResArrival: TcxGridDBColumn
DataBinding.FieldName = 'Arrival'
Options.Editing = False
Width = 80
end
object tvRoomResDeparture: TcxGridDBColumn
DataBinding.FieldName = 'Departure'
Options.Editing = False
Width = 80
end
object tvRoomResGuests: TcxGridDBColumn
DataBinding.FieldName = 'Guests'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.CanEdit = False
Properties.MaxValue = 100.000000000000000000
Properties.MinValue = 1.000000000000000000
Options.Editing = False
Width = 45
end
object tvRoomResChildrenCount: TcxGridDBColumn
Caption = 'Children'
DataBinding.FieldName = 'ChildrenCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.CanEdit = False
Properties.MaxValue = 10.000000000000000000
Options.Editing = False
Width = 45
end
object tvRoomResinfantCount: TcxGridDBColumn
Caption = 'Infants'
DataBinding.FieldName = 'infantCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.CanEdit = False
Properties.MaxValue = 10.000000000000000000
Options.Editing = False
Width = 45
end
object tvRoomResAveragePriceDB: TcxGridDBColumn
DataBinding.FieldName = 'AveragePrice'
PropertiesClassName = 'TcxCurrencyEditProperties'
Visible = False
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
end
object tvRoomResAveragePriceDisplay: TcxGridDBColumn
Caption = 'Average Rate'
DataBinding.FieldName = 'AveragePriceDisplay'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetDisplayText = tvRoomResAveragepriceDisplayGetDisplayText
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
Width = 100
end
object tvRoomResPackage: TcxGridDBColumn
DataBinding.FieldName = 'Package'
Options.Editing = False
Width = 89
end
object tvRoomResRateCount: TcxGridDBColumn
DataBinding.FieldName = 'RateCount'
PropertiesClassName = 'TcxSpinEditProperties'
Properties.DisplayFormat = '###0.;###0.'
Properties.ReadOnly = True
Options.Editing = False
end
object tvRoomResPriceCode: TcxGridDBColumn
DataBinding.FieldName = 'PriceCode'
Options.Editing = False
end
object tvRoomResAverageDiscount: TcxGridDBColumn
DataBinding.FieldName = 'AverageDiscount'
PropertiesClassName = 'TcxCurrencyEditProperties'
Properties.ReadOnly = False
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
Options.Editing = False
end
object tvRoomResroomreservation: TcxGridDBColumn
DataBinding.FieldName = 'roomreservation'
Visible = False
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 = <>
OptionsBehavior.FocusCellOnTab = True
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'
end
object tvRoomRatesPriceCode: TcxGridDBColumn
Caption = 'Price code'
DataBinding.FieldName = 'PriceCode'
end
object tvRoomRatesRate: TcxGridDBColumn
Caption = 'Room Rate'
DataBinding.FieldName = 'Rate'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
Width = 70
end
object tvRoomRatesDiscount: TcxGridDBColumn
DataBinding.FieldName = 'Discount'
PropertiesClassName = 'TcxCalcEditProperties'
Properties.DisplayFormat = '0.0 %'
OnGetProperties = tvRoomRatesDiscountGetProperties
Width = 70
end
object tvRoomRatesisPercentage: TcxGridDBColumn
Caption = 'is %'
DataBinding.FieldName = 'isPercentage'
PropertiesClassName = 'TcxCheckBoxProperties'
end
object tvRoomRatesShowDiscount: TcxGridDBColumn
Caption = 'Show Discount'
DataBinding.FieldName = 'ShowDiscount'
PropertiesClassName = 'TcxCheckBoxProperties'
Visible = False
end
object tvRoomRatesisPaid: TcxGridDBColumn
Caption = 'Paid'
DataBinding.FieldName = 'isPaid'
PropertiesClassName = 'TcxCheckBoxProperties'
Visible = False
end
object tvRoomRatesDiscountAmount: TcxGridDBColumn
Caption = 'Total discount'
DataBinding.FieldName = 'DiscountAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
Options.Editing = False
Width = 80
end
object tvRoomRatesRentAmount: TcxGridDBColumn
Caption = 'Total Rent'
DataBinding.FieldName = 'RentAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomResAveragePriceDisplayGetProperties
Width = 70
end
object tvRoomRatesNativeAmount: TcxGridDBColumn
Caption = 'Native'
DataBinding.FieldName = 'NativeAmount'
PropertiesClassName = 'TcxCurrencyEditProperties'
OnGetProperties = tvRoomRatesNativeAmountGetProperties
Width = 70
end
end
object lvRoomRes: TcxGridLevel
GridView = tvRoomRes
object lvRoomRates: TcxGridLevel
GridView = tvRoomRates
end
end
end
inherited psRoomerBase: TcxPropertiesStore
Components = <
item
Component = chkAutoUpdateNullPrice
Properties.Strings = (
'Checked')
end>
Left = 928
Top = 144
end
inherited cxsrRoomerStyleRepository: TcxStyleRepository
Left = 824
Top = 152
PixelsPerInch = 96
inherited dxssRoomerGridReportLink: TdxGridReportLinkStyleSheet
BuiltIn = True
end
inherited cxssRoomerGridTableView: TcxGridTableViewStyleSheet
BuiltIn = True
end
end
object mRoomRes: TdxMemData
Indexes = <>
SortOptions = []
SortedField = 'Room'
AfterPost = mRoomResAfterPost
OnCalcFields = mRoomResCalcFields
Left = 64
Top = 392
object mRoomResReservation: TIntegerField
FieldName = 'Reservation'
end
object mRoomResroomreservation: TIntegerField
FieldName = 'roomreservation'
end
object mRoomResRoom: TWideStringField
FieldName = 'Room'
Size = 10
end
object mRoomResRoomType: TWideStringField
FieldName = 'RoomType'
Size = 10
end
object mRoomResGuests: TIntegerField
FieldName = 'Guests'
end
object mRoomResAveragePrice: TFloatField
FieldKind = fkCalculated
FieldName = 'AveragePrice'
Calculated = True
end
object mRoomResRateCount: TIntegerField
FieldKind = fkCalculated
FieldName = 'RateCount'
Calculated = True
end
object mRoomResRoomDescription: TWideStringField
FieldName = 'RoomDescription'
Size = 30
end
object mRoomResRoomTypeDescription: TWideStringField
FieldName = 'RoomTypeDescription'
Size = 30
end
object mRoomResArrival: TDateField
FieldName = 'Arrival'
end
object mRoomResDeparture: TDateField
FieldName = 'Departure'
end
object mRoomResChildrenCount: TIntegerField
FieldName = 'ChildrenCount'
end
object mRoomResinfantCount: TIntegerField
FieldName = 'infantCount'
end
object mRoomResPriceCode: TWideStringField
FieldName = 'PriceCode'
Size = 10
end
object mRoomResPackage: TWideStringField
FieldName = 'Package'
end
object mRoomResInvoiceIndex: TIntegerField
FieldName = 'InvoiceIndex'
end
object mRoomResGroupAccount: TBooleanField
FieldName = 'GroupAccount'
end
object mRoomResGuestName: TWideStringField
FieldName = 'GuestName'
Size = 60
end
object mRoomResAverageDiscount: TFloatField
FieldKind = fkCalculated
FieldName = 'AverageDiscount'
Calculated = True
end
object mRoomResAveragePriceDisplay: TFloatField
FieldName = 'AveragePriceDisplay'
end
end
object mRoomResDS: TDataSource
DataSet = mRoomRes
Left = 64
Top = 440
end
object mRoomRates: TdxMemData
Indexes = <>
SortOptions = []
SortedField = 'roomreservation;ratedate'
OnCalcFields = mRoomRatesCalcFields
Left = 152
Top = 400
object mRoomRatesReservation: TIntegerField
FieldName = 'Reservation'
end
object mRoomRatesroomreservation: TIntegerField
FieldName = 'roomreservation'
end
object mRoomRatesRoomNumber: TWideStringField
FieldName = 'RoomNumber'
Size = 10
end
object mRoomRatesRateDate: TDateField
FieldName = 'RateDate'
end
object mRoomRatesPriceCode: TWideStringField
FieldName = 'PriceCode'
Size = 10
end
object mRoomRatesRate: TFloatField
FieldName = 'Rate'
end
object mRoomRatesDiscount: TFloatField
FieldName = 'Discount'
end
object mRoomRatesisPercentage: TBooleanField
FieldName = 'isPercentage'
end
object mRoomRatesShowDiscount: TBooleanField
FieldName = 'ShowDiscount'
end
object mRoomRatesisPaid: TBooleanField
FieldName = 'isPaid'
end
object mRoomRatesDiscountAmount: TFloatField
FieldKind = fkCalculated
FieldName = 'DiscountAmount'
Calculated = True
end
object mRoomRatesRentAmount: TFloatField
FieldKind = fkCalculated
FieldName = 'RentAmount'
Calculated = True
end
object mRoomRatesNativeAmount: TFloatField
FieldKind = fkCalculated
FieldName = 'NativeAmount'
Calculated = True
end
end
object kbmRoomRatesDS: TDataSource
DataSet = mRoomRates
Left = 192
Top = 448
end
object mRR_: TdxMemData
Indexes = <>
SortOptions = []
Left = 80
Top = 199
object mRR_Reservation: TIntegerField
FieldName = 'Reservation'
end
object mRR_RoomReservation: TIntegerField
FieldName = 'roomreservation'
end
object mRR_Roomnumber: TWideStringField
FieldName = 'RoomNumber'
Size = 10
end
object mRR_Ratedate: TDateField
FieldName = 'RateDate'
end
object mRR_Pricecode: TWideStringField
FieldName = 'PriceCode'
Size = 10
end
object mRR_Rate: TFloatField
FieldName = 'Rate'
end
object mRR_Discount: TFloatField
FieldName = 'Discount'
end
object mRR_IsPercentage: TBooleanField
FieldName = 'isPercentage'
end
object mRR_ShowDiscount: TBooleanField
FieldName = 'ShowDiscount'
end
object mRR_IsPaid: TBooleanField
FieldName = 'isPaid'
end
object mRR_DiscountAmount: TFloatField
FieldName = 'DiscountAmount'
end
object mRR_RentAmount: TFloatField
FieldName = 'RentAmount'
end
object mRR_NativeAmount: TFloatField
FieldName = 'NativeAmount'
end
end
end