ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/local-employeedb/unit1.lfm
Revision: 272
Committed: Mon Feb 4 13:34:37 2019 UTC (5 years, 2 months ago) by tony
File size: 28188 byte(s)
Log Message:
Fixes merged

File Contents

# Content
1 object Form1: TForm1
2 Left = 632
3 Height = 482
4 Top = 351
5 Width = 1043
6 Caption = 'Employee List'
7 ClientHeight = 462
8 ClientWidth = 1043
9 DefaultMonitor = dmPrimary
10 Menu = MainMenu1
11 OnClose = FormClose
12 OnShow = FormShow
13 Position = poScreenCenter
14 LCLVersion = '2.0.0.3'
15 object Button1: TButton
16 Left = 956
17 Height = 25
18 Top = 48
19 Width = 75
20 Action = AddEmployee
21 Anchors = [akTop, akRight]
22 TabOrder = 0
23 end
24 object Button2: TButton
25 Left = 956
26 Height = 25
27 Top = 86
28 Width = 75
29 Action = EditEmployee
30 Anchors = [akTop, akRight]
31 TabOrder = 1
32 end
33 object Button3: TButton
34 Left = 956
35 Height = 25
36 Top = 125
37 Width = 75
38 Action = DeleteEmployee
39 Anchors = [akTop, akRight]
40 TabOrder = 2
41 end
42 object Label1: TLabel
43 Left = 17
44 Height = 14
45 Top = 14
46 Width = 87
47 Caption = 'Started Before'
48 ParentColor = False
49 end
50 object BeforeDate: TDateEdit
51 Left = 112
52 Height = 24
53 Top = 8
54 Width = 80
55 CalendarDisplaySettings = [dsShowHeadings, dsShowDayNames]
56 DateOrder = doNone
57 ButtonWidth = 23
58 NumGlyphs = 1
59 MaxLength = 0
60 OnChange = BeforeDateChange
61 TabOrder = 3
62 end
63 object Label2: TLabel
64 Left = 241
65 Height = 14
66 Top = 14
67 Width = 78
68 Caption = 'Started After'
69 ParentColor = False
70 end
71 object AfterDate: TDateEdit
72 Left = 333
73 Height = 24
74 Top = 8
75 Width = 80
76 CalendarDisplaySettings = [dsShowHeadings, dsShowDayNames]
77 DateOrder = doNone
78 ButtonWidth = 23
79 NumGlyphs = 1
80 MaxLength = 0
81 OnChange = BeforeDateChange
82 TabOrder = 4
83 end
84 object Panel1: TPanel
85 Left = 0
86 Height = 414
87 Top = 42
88 Width = 921
89 Anchors = [akTop, akLeft, akRight, akBottom]
90 BevelOuter = bvNone
91 ClientHeight = 414
92 ClientWidth = 921
93 Color = clBackground
94 ParentColor = False
95 TabOrder = 5
96 object IBDynamicGrid1: TIBDynamicGrid
97 Left = 0
98 Height = 364
99 Top = 0
100 Width = 921
101 Align = alClient
102 Color = clWindow
103 Columns = <
104 item
105 Title.Alignment = taCenter
106 Title.Caption = 'Last Name'
107 Width = 100
108 FieldName = 'LAST_NAME'
109 AutoSizeColumn = False
110 InitialSortColumn = False
111 DBLookupProperties.ItemHeight = 0
112 DBLookupProperties.ItemWidth = 0
113 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
114 end
115 item
116 Title.Alignment = taCenter
117 Title.Caption = 'First Name'
118 Width = 100
119 FieldName = 'FIRST_NAME'
120 AutoSizeColumn = False
121 InitialSortColumn = False
122 DBLookupProperties.ItemHeight = 0
123 DBLookupProperties.ItemWidth = 0
124 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
125 end
126 item
127 Alignment = taCenter
128 Title.Alignment = taCenter
129 Title.Caption = 'Emp No.'
130 Width = 60
131 FieldName = 'EMP_NO'
132 AutoSizeColumn = False
133 InitialSortColumn = False
134 DBLookupProperties.ItemHeight = 0
135 DBLookupProperties.ItemWidth = 0
136 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
137 end
138 item
139 ReadOnly = True
140 Title.Alignment = taCenter
141 Title.Caption = 'Dept'
142 Width = 200
143 FieldName = 'DEPT_PATH'
144 AutoSizeColumn = True
145 InitialSortColumn = False
146 DBLookupProperties.ItemHeight = 0
147 DBLookupProperties.ItemWidth = 0
148 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
149 end
150 item
151 ButtonStyle = cbsPickList
152 Title.Alignment = taCenter
153 Title.Caption = 'Located'
154 Width = 100
155 FieldName = 'JOB_COUNTRY'
156 AutoSizeColumn = False
157 InitialSortColumn = False
158 DBLookupProperties.ItemHeight = 0
159 DBLookupProperties.ItemWidth = 0
160 DBLookupProperties.ListSource = CountrySource
161 DBLookupProperties.ListField = 'COUNTRY'
162 DBLookupProperties.AutoInsert = False
163 DBLookupProperties.AutoComplete = False
164 end
165 item
166 Title.Alignment = taCenter
167 Title.Caption = 'Started'
168 Width = 80
169 FieldName = 'HIRE_DATE'
170 AutoSizeColumn = False
171 InitialSortColumn = False
172 DBLookupProperties.ItemHeight = 0
173 DBLookupProperties.ItemWidth = 0
174 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
175 end
176 item
177 Title.Alignment = taCenter
178 Title.Caption = 'Salary'
179 Width = 120
180 FieldName = 'SALARY'
181 ColumnTotalsControl = DBText1
182 AutoSizeColumn = False
183 InitialSortColumn = False
184 DBLookupProperties.ItemHeight = 0
185 DBLookupProperties.ItemWidth = 0
186 DBLookupProperties.AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
187 end>
188 DataSource = EmployeeSource
189 Scrollbars = ssAutoBoth
190 TabOrder = 0
191 EditorPanel = EmployeeEditorPanel
192 ExpandEditorPanelBelowRow = False
193 Descending = False
194 EditorBorderStyle = bsSingle
195 DefaultPositionAtEnd = False
196 IndexFieldNames = 'EMP_NO'
197 end
198 object Panel2: TPanel
199 Left = 0
200 Height = 50
201 Top = 364
202 Width = 921
203 Align = alBottom
204 BevelOuter = bvNone
205 ClientHeight = 50
206 ClientWidth = 921
207 ParentColor = False
208 TabOrder = 1
209 object Button5: TButton
210 Left = 80
211 Height = 25
212 Top = 16
213 Width = 75
214 Action = CancelChanges
215 Anchors = [akLeft, akBottom]
216 TabOrder = 0
217 end
218 object Button4: TButton
219 Left = 1
220 Height = 25
221 Top = 16
222 Width = 75
223 Action = SaveChanges
224 Anchors = [akLeft, akBottom]
225 TabOrder = 1
226 end
227 object DBText1: TDBText
228 Left = 688
229 Height = 27
230 Top = 16
231 Width = 49
232 Alignment = taRightJustify
233 Anchors = [akTop, akLeft, akBottom]
234 DataField = 'TOTALSALARIES'
235 DataSource = TotalsSource
236 ParentColor = False
237 end
238 end
239 object EmployeeEditorPanel: TPanel
240 Left = 8
241 Height = 80
242 Top = 40
243 Width = 832
244 BevelOuter = bvNone
245 BorderWidth = 2
246 BorderStyle = bsSingle
247 ClientHeight = 78
248 ClientWidth = 830
249 Color = clWindow
250 ParentColor = False
251 TabOrder = 2
252 Visible = False
253 object Label3: TLabel
254 Left = 0
255 Height = 14
256 Top = 7
257 Width = 83
258 Caption = 'Employee No.'
259 ParentColor = False
260 end
261 object DBEdit1: TDBEdit
262 Left = 90
263 Height = 24
264 Top = 2
265 Width = 120
266 DataField = 'EMP_NO'
267 DataSource = EmployeeSource
268 CharCase = ecNormal
269 MaxLength = 0
270 TabOrder = 0
271 end
272 object Label4: TLabel
273 Left = 12
274 Height = 14
275 Top = 32
276 Width = 64
277 Caption = 'First Name'
278 ParentColor = False
279 end
280 object DBEdit2: TDBEdit
281 Left = 90
282 Height = 24
283 Top = 24
284 Width = 120
285 DataField = 'FIRST_NAME'
286 DataSource = EmployeeSource
287 CharCase = ecNormal
288 MaxLength = 0
289 TabOrder = 1
290 end
291 object Label5: TLabel
292 Left = 12
293 Height = 14
294 Top = 56
295 Width = 64
296 Caption = 'Last Name'
297 ParentColor = False
298 end
299 object DBEdit3: TDBEdit
300 Left = 90
301 Height = 24
302 Top = 46
303 Width = 120
304 DataField = 'LAST_NAME'
305 DataSource = EmployeeSource
306 CharCase = ecNormal
307 MaxLength = 0
308 TabOrder = 2
309 end
310 object Label6: TLabel
311 Left = 216
312 Height = 14
313 Top = 7
314 Width = 77
315 Caption = 'Date Started'
316 ParentColor = False
317 end
318 object IBDateEdit1: TDBDateEdit
319 Left = 300
320 Height = 24
321 Top = 2
322 Width = 80
323 CalendarDisplaySettings = [dsShowHeadings, dsShowDayNames]
324 DateOrder = doNone
325 ButtonWidth = 23
326 AutoSelect = False
327 NumGlyphs = 1
328 MaxLength = 0
329 TabOrder = 3
330 DataField = 'HIRE_DATE'
331 DataSource = EmployeeSource
332 end
333 object Label7: TLabel
334 Left = 252
335 Height = 14
336 Top = 32
337 Width = 37
338 Caption = 'Salary'
339 ParentColor = False
340 end
341 object DBEdit4: TDBEdit
342 Left = 300
343 Height = 24
344 Top = 24
345 Width = 104
346 DataField = 'SALARY'
347 DataSource = EmployeeSource
348 CharCase = ecNormal
349 MaxLength = 0
350 TabOrder = 5
351 end
352 object Label8: TLabel
353 Left = 696
354 Height = 14
355 Top = 54
356 Width = 24
357 Anchors = [akTop, akRight]
358 Caption = 'Ext.'
359 ParentColor = False
360 end
361 object DBEdit5: TDBEdit
362 Left = 720
363 Height = 24
364 Top = 48
365 Width = 40
366 DataField = 'PHONE_EXT'
367 DataSource = EmployeeSource
368 Anchors = [akTop, akRight]
369 CharCase = ecNormal
370 MaxLength = 0
371 TabOrder = 4
372 end
373 object Label9: TLabel
374 Left = 536
375 Height = 14
376 Top = 7
377 Width = 51
378 Caption = 'Location'
379 ParentColor = False
380 end
381 object Label10: TLabel
382 Left = 413
383 Height = 14
384 Top = 9
385 Width = 59
386 Caption = 'Job Grade'
387 ParentColor = False
388 end
389 object JobGradeDBComboBox: TDBComboBox
390 Left = 480
391 Height = 23
392 Top = 2
393 Width = 48
394 AutoSize = False
395 DataField = 'JOB_GRADE'
396 DataSource = EmployeeSource
397 ItemHeight = 0
398 Items.Strings = (
399 '1'
400 '2'
401 '3'
402 '4'
403 '5'
404 )
405 MaxLength = 0
406 OnCloseUp = JobGradeDBComboBoxCloseUp
407 Style = csDropDownList
408 TabOrder = 6
409 end
410 object Label11: TLabel
411 Left = 536
412 Height = 14
413 Top = 32
414 Width = 48
415 Caption = 'Job Title'
416 ParentColor = False
417 end
418 object Label12: TLabel
419 Left = 256
420 Height = 14
421 Top = 54
422 Width = 33
423 Caption = 'Dept.'
424 ParentColor = False
425 end
426 object SpeedButton1: TSpeedButton
427 Left = 664
428 Height = 25
429 Top = 48
430 Width = 23
431 Action = SelectDept
432 Anchors = [akTop, akRight]
433 end
434 object DBEdit6: TDBEdit
435 Left = 300
436 Height = 24
437 Top = 48
438 Width = 356
439 DataField = 'DEPT_PATH'
440 DataSource = EmployeeSource
441 ReadOnly = True
442 Anchors = [akTop, akLeft, akRight]
443 CharCase = ecNormal
444 MaxLength = 0
445 TabOrder = 7
446 end
447 object IBLookupComboEditBox2: TIBLookupComboEditBox
448 Left = 600
449 Height = 23
450 Top = 0
451 Width = 160
452 Anchors = [akTop, akLeft, akRight]
453 AutoSize = False
454 DataField = 'JOB_COUNTRY'
455 DataSource = EmployeeSource
456 KeyField = 'COUNTRY'
457 ListField = 'COUNTRY'
458 ListFieldIndex = 0
459 ListSource = CountrySource
460 LookupCache = False
461 Style = csDropDownList
462 TabOrder = 8
463 AutoInsert = False
464 AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
465 ItemHeight = 0
466 end
467 object IBLookupComboEditBox1: TIBLookupComboEditBox
468 Left = 600
469 Height = 23
470 Top = 24
471 Width = 160
472 Anchors = [akTop, akLeft, akRight]
473 AutoSize = False
474 DataField = 'JOB_CODE'
475 DataSource = EmployeeSource
476 KeyField = 'JOB_CODE'
477 ListField = 'JOB_TITLE'
478 ListFieldIndex = 0
479 ListSource = JobCodeSource
480 LookupCache = False
481 Style = csDropDownList
482 TabOrder = 9
483 AutoInsert = False
484 AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
485 ItemHeight = 0
486 end
487 object Panel3: TPanel
488 Left = 768
489 Height = 67
490 Top = 3
491 Width = 56
492 Anchors = [akTop, akRight]
493 Caption = 'No Image'
494 ClientHeight = 67
495 ClientWidth = 56
496 Font.Height = -10
497 ParentFont = False
498 TabOrder = 10
499 object DBImage1: TDBImage
500 Left = 1
501 Height = 65
502 Top = 1
503 Width = 54
504 Align = alClient
505 Center = True
506 DataField = 'PHOTO'
507 DataSource = EmployeeSource
508 OnDBImageRead = DBImage1DBImageRead
509 Proportional = True
510 end
511 end
512 end
513 end
514 object Label13: TLabel
515 Left = 456
516 Height = 14
517 Top = 14
518 Width = 79
519 Caption = 'Salary Range'
520 ParentColor = False
521 end
522 object SalaryRange: TComboBox
523 Left = 544
524 Height = 25
525 Top = 8
526 Width = 272
527 ItemHeight = 0
528 ItemIndex = 0
529 Items.Strings = (
530 'None Specified'
531 'Below $40,000'
532 'Between $40,000 and $100,000'
533 'Above $100,000'
534 )
535 OnCloseUp = BeforeDateChange
536 Style = csDropDownList
537 TabOrder = 6
538 Text = 'None Specified'
539 end
540 object IBDatabase1: TIBDatabase
541 Connected = False
542 LoginPrompt = False
543 AfterConnect = IBDatabase1AfterConnect
544 CreateIfNotExists = False
545 AllowStreamedConnected = False
546 DatabaseName = 'employee'
547 Params.Strings = (
548 'lc_ctype=UTF8'
549 'user_name=SYSDBA'
550 )
551 DefaultTransaction = IBTransaction1
552 IdleTimer = 0
553 TraceFlags = []
554 UseDefaultSystemCodePage = False
555 left = 832
556 top = 168
557 end
558 object IBTransaction1: TIBTransaction
559 Active = False
560 DefaultDatabase = IBDatabase1
561 Params.Strings = (
562 'read_committed'
563 'rec_version'
564 'nowait'
565 )
566 left = 872
567 top = 168
568 end
569 object EmployeeSource: TDataSource
570 DataSet = Employees
571 left = 832
572 top = 336
573 end
574 object ActionList1: TActionList
575 left = 832
576 top = 416
577 object AddEmployee: TAction
578 Caption = 'Add'
579 OnExecute = AddEmployeeExecute
580 end
581 object EditEmployee: TAction
582 Caption = 'Edit'
583 OnExecute = EditEmployeeExecute
584 OnUpdate = EditEmployeeUpdate
585 end
586 object DeleteEmployee: TAction
587 Caption = 'Delete'
588 OnExecute = DeleteEmployeeExecute
589 OnUpdate = EditEmployeeUpdate
590 end
591 object SaveChanges: TAction
592 Caption = 'Save'
593 OnExecute = SaveChangesExecute
594 OnUpdate = SaveChangesUpdate
595 end
596 object CancelChanges: TAction
597 Caption = 'Cancel'
598 OnExecute = CancelChangesExecute
599 OnUpdate = SaveChangesUpdate
600 end
601 object SelectDept: TAction
602 Caption = '...'
603 OnExecute = SelectDeptExecute
604 end
605 object NewDatabase: TAction
606 Category = 'LocalDB'
607 Caption = 'Reinitialise Database'
608 OnExecute = NewDatabaseExecute
609 end
610 object SaveDatabase: TAction
611 Category = 'LocalDB'
612 Caption = 'Save Database to Archive'
613 OnExecute = SaveDatabaseExecute
614 end
615 object RestoreDatabase: TAction
616 Category = 'LocalDB'
617 Caption = 'Restore Database From Archive'
618 OnExecute = RestoreDatabaseExecute
619 end
620 object Quit: TAction
621 Caption = 'Quit'
622 OnExecute = QuitExecute
623 end
624 end
625 object CountrySource: TDataSource
626 DataSet = Countries
627 left = 832
628 top = 296
629 end
630 object TotalsQuery: TIBQuery
631 AllowAutoActivateTransaction = False
632 Database = IBDatabase1
633 Transaction = IBTransaction1
634 BeforeOpen = EmployeesBeforeOpen
635 BufferChunks = 1000
636 CachedUpdates = False
637 CaseSensitiveParameterNames = False
638 EnableStatistics = False
639 GenerateParamNames = False
640 GeneratorField.ApplyOnEvent = gaeOnNewRecord
641 MasterDetailDelay = 0
642 SQL.Strings = (
643 'Select sum(Salary) as TotalSalaries'
644 'From EMPLOYEE'
645 )
646 Params = <>
647 DataSetCloseAction = dcDiscardChanges
648 left = 872
649 top = 376
650 object TotalsQueryTOTALSALARIES: TIBBCDField
651 DisplayWidth = 18
652 FieldKind = fkData
653 FieldName = 'TOTALSALARIES'
654 Index = 0
655 LookupCache = False
656 ProviderFlags = [pfInUpdate, pfInWhere]
657 ReadOnly = False
658 Required = False
659 OnGetText = EmployeesSALARYGetText
660 Precision = 18
661 Currency = False
662 MaxValue = 0
663 MinValue = 0
664 Size = 2
665 end
666 end
667 object TotalsSource: TDataSource
668 DataSet = TotalsQuery
669 left = 832
670 top = 376
671 end
672 object Employees: TIBDataSet
673 AllowAutoActivateTransaction = False
674 Database = IBDatabase1
675 Transaction = IBTransaction1
676 ForcedRefresh = True
677 AfterDelete = EmployeesAfterDelete
678 AfterEdit = EmployeesAfterDelete
679 AfterInsert = EmployeesAfterInsert
680 AfterOpen = EmployeesAfterOpen
681 AfterScroll = EmployeesAfterScroll
682 BeforeClose = EmployeesBeforeClose
683 BeforeOpen = EmployeesBeforeOpen
684 BufferChunks = 1000
685 CachedUpdates = False
686 CaseSensitiveParameterNames = False
687 EnableStatistics = False
688 DeleteSQL.Strings = (
689 'Delete From EMPLOYEE A'
690 'Where A.EMP_NO = :EMP_NO'
691 )
692 InsertSQL.Strings = (
693 'Insert Into EMPLOYEE(EMP_NO, FIRST_NAME, LAST_NAME, PHONE_EXT, HIRE_DATE, DEPT_NO, JOB_CODE, JOB_GRADE, JOB_COUNTRY, SALARY)'
694 'Values(:EMP_NO, :FIRST_NAME, :LAST_NAME, :PHONE_EXT, :HIRE_DATE, :DEPT_NO, :JOB_CODE, :JOB_GRADE, :JOB_COUNTRY, :SALARY)'
695 )
696 RefreshSQL.Strings = (
697 'Select A.EMP_NO, A.FIRST_NAME, A.LAST_NAME, A.PHONE_EXT, A.HIRE_DATE, A.DEPT_NO, A.JOB_CODE, '
698 'A.JOB_GRADE, A.JOB_COUNTRY, A.SALARY, A.FULL_NAME, A.DEPT_PATH, A.DEPT_KEY_PATH, A.PHOTO'
699 'From DEPTLIST A'
700 'Where A.EMP_NO = :EMP_NO'
701 )
702 SelectSQL.Strings = (
703 'Select A.EMP_NO, A.FIRST_NAME, A.LAST_NAME, A.PHONE_EXT, A.HIRE_DATE, A.DEPT_NO, A.JOB_CODE, '
704 'A.JOB_GRADE, A.JOB_COUNTRY, A.SALARY, A.FULL_NAME, A.DEPT_PATH, A.DEPT_KEY_PATH, A.PHOTO'
705 'From DEPTLIST A'
706 ''
707 )
708 ModifySQL.Strings = (
709 'Update EMPLOYEE A Set '#13#10' A.DEPT_NO = :DEPT_NO,'#13#10' A.FIRST_NAME = :FIRST_NAME,'#13#10' A.HIRE_DATE = :HIRE_DATE,'#13#10' A.JOB_CODE = :JOB_CODE,'#13#10' A.JOB_COUNTRY = :JOB_COUNTRY,'#13#10' A.JOB_GRADE = :JOB_GRADE,'#13#10' A.LAST_NAME = :LAST_NAME,'#13#10' A.PHONE_EXT = :PHONE_EXT,'#13#10' A.SALARY = :SALARY'
710 'Where A.EMP_NO = :OLD_EMP_NO'
711 )
712 GeneratorField.Generator = 'EMP_NO_GEN'
713 GeneratorField.Field = 'EMP_NO'
714 GeneratorField.ApplyOnEvent = gaeOnNewRecord
715 GenerateParamNames = False
716 MasterDetailDelay = 0
717 DataSetCloseAction = dcSaveChanges
718 AfterTransactionEnd = EmployeesAfterTransactionEnd
719 OnValidatePost = EmployeesValidatePost
720 left = 872
721 top = 336
722 object EmployeesEMP_NO: TSmallintField
723 DisplayWidth = 10
724 FieldKind = fkData
725 FieldName = 'EMP_NO'
726 Index = 0
727 LookupCache = False
728 ProviderFlags = [pfInUpdate, pfInWhere]
729 ReadOnly = False
730 Required = True
731 end
732 object EmployeesFIRST_NAME: TIBStringField
733 DisplayWidth = 15
734 FieldKind = fkData
735 FieldName = 'FIRST_NAME'
736 Index = 1
737 LookupCache = False
738 ProviderFlags = [pfInUpdate, pfInWhere]
739 ReadOnly = False
740 Required = True
741 Size = 15
742 end
743 object EmployeesLAST_NAME: TIBStringField
744 DisplayWidth = 20
745 FieldKind = fkData
746 FieldName = 'LAST_NAME'
747 Index = 2
748 LookupCache = False
749 ProviderFlags = [pfInUpdate, pfInWhere]
750 ReadOnly = False
751 Required = True
752 end
753 object EmployeesPHONE_EXT: TIBStringField
754 Alignment = taRightJustify
755 DisplayWidth = 4
756 FieldKind = fkData
757 FieldName = 'PHONE_EXT'
758 Index = 3
759 LookupCache = False
760 ProviderFlags = [pfInUpdate, pfInWhere]
761 ReadOnly = False
762 Required = False
763 Size = 4
764 end
765 object EmployeesHIRE_DATE: TDateTimeField
766 DisplayWidth = 10
767 FieldKind = fkData
768 FieldName = 'HIRE_DATE'
769 Index = 4
770 LookupCache = False
771 ProviderFlags = [pfInUpdate, pfInWhere]
772 ReadOnly = False
773 Required = True
774 end
775 object EmployeesDEPT_NO: TIBStringField
776 DisplayWidth = 3
777 FieldKind = fkData
778 FieldName = 'DEPT_NO'
779 Index = 5
780 LookupCache = False
781 ProviderFlags = [pfInUpdate, pfInWhere]
782 ReadOnly = False
783 Required = True
784 Size = 3
785 end
786 object EmployeesJOB_CODE: TIBStringField
787 DisplayWidth = 5
788 FieldKind = fkData
789 FieldName = 'JOB_CODE'
790 Index = 6
791 LookupCache = False
792 ProviderFlags = [pfInUpdate, pfInWhere]
793 ReadOnly = False
794 Required = True
795 OnChange = EmployeesJOB_CODEChange
796 Size = 5
797 end
798 object EmployeesJOB_GRADE: TSmallintField
799 DisplayWidth = 10
800 FieldKind = fkData
801 FieldName = 'JOB_GRADE'
802 Index = 7
803 LookupCache = False
804 ProviderFlags = [pfInUpdate, pfInWhere]
805 ReadOnly = False
806 Required = True
807 OnChange = EmployeesJOB_GRADEChange
808 end
809 object EmployeesJOB_COUNTRY: TIBStringField
810 DisplayWidth = 15
811 FieldKind = fkData
812 FieldName = 'JOB_COUNTRY'
813 Index = 8
814 LookupCache = False
815 ProviderFlags = [pfInUpdate, pfInWhere]
816 ReadOnly = False
817 Required = True
818 Size = 15
819 end
820 object EmployeesSALARY: TIBBCDField
821 DisplayWidth = 18
822 FieldKind = fkData
823 FieldName = 'SALARY'
824 Index = 9
825 LookupCache = False
826 ProviderFlags = [pfInUpdate, pfInWhere]
827 ReadOnly = False
828 Required = True
829 OnGetText = EmployeesSALARYGetText
830 Precision = 18
831 Currency = False
832 MaxValue = 0
833 MinValue = 0
834 Size = 2
835 end
836 object EmployeesFULL_NAME: TIBStringField
837 DisplayWidth = 37
838 FieldKind = fkData
839 FieldName = 'FULL_NAME'
840 Index = 10
841 LookupCache = False
842 ProviderFlags = [pfInUpdate, pfInWhere]
843 ReadOnly = True
844 Required = False
845 Size = 37
846 end
847 object EmployeesDEPT_PATH: TIBStringField
848 DisplayWidth = 256
849 FieldKind = fkData
850 FieldName = 'DEPT_PATH'
851 Index = 11
852 LookupCache = False
853 ProviderFlags = [pfInUpdate, pfInWhere]
854 ReadOnly = False
855 Required = True
856 Size = 256
857 end
858 object EmployeesDEPT_KEY_PATH: TIBStringField
859 DisplayWidth = 64
860 FieldKind = fkData
861 FieldName = 'DEPT_KEY_PATH'
862 Index = 12
863 LookupCache = False
864 ProviderFlags = [pfInUpdate, pfInWhere]
865 ReadOnly = False
866 Required = True
867 Size = 64
868 end
869 object EmployeesPHOTO1: TBlobField
870 DisplayWidth = 10
871 FieldKind = fkData
872 FieldName = 'PHOTO'
873 Index = 13
874 LookupCache = False
875 ProviderFlags = [pfInUpdate, pfInWhere]
876 ReadOnly = False
877 Required = False
878 end
879 end
880 object Countries: TIBQuery
881 AllowAutoActivateTransaction = False
882 Database = IBDatabase1
883 Transaction = IBTransaction1
884 BeforeOpen = CountriesBeforeOpen
885 BufferChunks = 1000
886 CachedUpdates = False
887 CaseSensitiveParameterNames = False
888 EnableStatistics = False
889 GenerateParamNames = False
890 GeneratorField.ApplyOnEvent = gaeOnNewRecord
891 MasterDetailDelay = 0
892 SQL.Strings = (
893 'Select A.COUNTRY, A.CURRENCY From COUNTRY A'
894 'JOIN JOB J On J.JOB_COUNTRY = A.COUNTRY'
895 'Where J.JOB_CODE = :JOB_CODE and J.JOB_GRADE = :JOB_GRADE'
896 'Order by 1'
897 )
898 Params = <
899 item
900 DataType = ftUnknown
901 Name = 'JOB_CODE'
902 ParamType = ptInput
903 end
904 item
905 DataType = ftUnknown
906 Name = 'JOB_GRADE'
907 ParamType = ptInput
908 end>
909 DataSetCloseAction = dcDiscardChanges
910 left = 872
911 top = 296
912 ParamData = <
913 item
914 DataType = ftUnknown
915 Name = 'JOB_CODE'
916 ParamType = ptInput
917 end
918 item
919 DataType = ftUnknown
920 Name = 'JOB_GRADE'
921 ParamType = ptInput
922 end>
923 end
924 object JobCodeSource: TDataSource
925 DataSet = JobCodes
926 left = 832
927 top = 256
928 end
929 object JobCodes: TIBQuery
930 AllowAutoActivateTransaction = False
931 Database = IBDatabase1
932 Transaction = IBTransaction1
933 BeforeOpen = JobCodesBeforeOpen
934 BufferChunks = 1000
935 CachedUpdates = False
936 CaseSensitiveParameterNames = False
937 EnableStatistics = False
938 GenerateParamNames = False
939 GeneratorField.ApplyOnEvent = gaeOnNewRecord
940 MasterDetailDelay = 0
941 SQL.Strings = (
942 'Select A.JOB_CODE, A.JOB_TITLE From JOB A'
943 'Where JOB_COUNTRY = :JOB_COUNTRY and JOB_GRADE = :JOB_GRADE'
944 'Order by Upper(JOB_TITLE)'
945 )
946 Params = <
947 item
948 DataType = ftUnknown
949 Name = 'JOB_COUNTRY'
950 ParamType = ptInput
951 end
952 item
953 DataType = ftUnknown
954 Name = 'JOB_GRADE'
955 ParamType = ptInput
956 end>
957 DataSetCloseAction = dcDiscardChanges
958 left = 872
959 top = 256
960 ParamData = <
961 item
962 DataType = ftUnknown
963 Name = 'JOB_COUNTRY'
964 ParamType = ptInput
965 end
966 item
967 DataType = ftUnknown
968 Name = 'JOB_GRADE'
969 ParamType = ptInput
970 end>
971 end
972 object Depts: TIBQuery
973 AllowAutoActivateTransaction = False
974 Database = IBDatabase1
975 Transaction = IBTransaction1
976 BufferChunks = 1000
977 CachedUpdates = False
978 CaseSensitiveParameterNames = False
979 EnableStatistics = False
980 GenerateParamNames = False
981 GeneratorField.ApplyOnEvent = gaeOnNewRecord
982 MasterDetailDelay = 0
983 SQL.Strings = (
984 'Select A.DEPT_NO, A.DEPARTMENT From DEPARTMENT A'
985 ''
986 'Order by Upper(Department)'
987 )
988 Params = <>
989 DataSetCloseAction = dcDiscardChanges
990 left = 872
991 top = 208
992 end
993 object DeptsSource: TDataSource
994 DataSet = Depts
995 left = 832
996 top = 208
997 end
998 object JobGradeChangeTimer: TTimer
999 Interval = 0
1000 OnTimer = JobGradeChangeTimerTimer
1001 left = 928
1002 top = 175
1003 end
1004 object JobCodeChangeTimer: TTimer
1005 Interval = 0
1006 OnTimer = JobCodeChangeTimerTimer
1007 left = 927
1008 top = 224
1009 end
1010 object IBLocalDBSupport1: TIBLocalDBSupport
1011 Database = IBDatabase1
1012 DatabaseName = 'employee.fdb'
1013 EmptyDBArchive = 'employee.gbk'
1014 Options = [iblAutoUpgrade, iblAllowDowngrade]
1015 RequiredVersionNo = 2
1016 UpgradeConfFile = 'upgrade.conf'
1017 VendorName = 'MWA Software'
1018 OnGetDBVersionNo = IBLocalDBSupport1GetDBVersionNo
1019 left = 937
1020 top = 264
1021 end
1022 object MainMenu1: TMainMenu
1023 left = 937
1024 top = 318
1025 object MenuItem1: TMenuItem
1026 Caption = 'File'
1027 object MenuItem2: TMenuItem
1028 Action = NewDatabase
1029 end
1030 object MenuItem3: TMenuItem
1031 Caption = '-'
1032 end
1033 object MenuItem4: TMenuItem
1034 Action = SaveDatabase
1035 end
1036 object MenuItem5: TMenuItem
1037 Action = RestoreDatabase
1038 end
1039 object MenuItem6: TMenuItem
1040 Caption = '-'
1041 end
1042 object MenuItem7: TMenuItem
1043 Action = Quit
1044 end
1045 end
1046 end
1047 object CheckVersionTablePresent: TIBSQL
1048 Database = IBDatabase1
1049 CaseSensitiveParameterNames = False
1050 GenerateParamNames = False
1051 UniqueParamNames = False
1052 ParamCheck = True
1053 SQL.Strings = (
1054 'Select * From RDB$RELATIONS Where RDB$RELATION_NAME = ''DBVERSIONINFO'';'
1055 )
1056 Transaction = IBTransaction1
1057 left = 937
1058 top = 358
1059 end
1060 object GetDBVersionNoQuery: TIBSQL
1061 Database = IBDatabase1
1062 CaseSensitiveParameterNames = False
1063 GenerateParamNames = False
1064 UniqueParamNames = False
1065 ParamCheck = True
1066 SQL.Strings = (
1067 'Select VersionNo From DBVersionInfo'
1068 )
1069 Transaction = IBTransaction1
1070 left = 936
1071 top = 399
1072 end
1073 end