-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearnMil005.clw
More file actions
2470 lines (2149 loc) · 121 KB
/
Copy pathlearnMil005.clw
File metadata and controls
2470 lines (2149 loc) · 121 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
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
MEMBER('learnMil.clw') ! This is a MEMBER module
INCLUDE('ABBROWSE.INC'),ONCE
INCLUDE('ABDROPS.INC'),ONCE
INCLUDE('ABPOPUP.INC'),ONCE
INCLUDE('ABRESIZE.INC'),ONCE
INCLUDE('ABTOOLBA.INC'),ONCE
INCLUDE('ABWINDOW.INC'),ONCE
MAP
INCLUDE('LEARNMIL005.INC'),ONCE !Local module procedure declarations
INCLUDE('LEARNMIL006.INC'),ONCE !Req'd for module callout resolution
INCLUDE('LEARNMIL007.INC'),ONCE !Req'd for module callout resolution
END
!!! <summary>
!!! Generated from procedure template - Window
!!! Form c2ieActionResources
!!! </summary>
U_c2ieActionResources PROCEDURE
CurrentTab STRING(80) !
ActionMessage CSTRING(40) !
FDCB8::View:FileDropCombo VIEW(_c2ieBSO_Resources)
PROJECT(_c2ieBSORes:ID)
PROJECT(_c2ieBSORes:Unit)
JOIN(_UniRes:PKID,_c2ieBSORes:Unit)
PROJECT(_UniRes:Code)
PROJECT(_UniRes:ID)
END
END
Queue:FileDropCombo QUEUE !Queue declaration for browse/combo box using ?_UniRes:Code
_UniRes:Code LIKE(_UniRes:Code) !List box control field - type derived from field
_c2ieBSORes:ID LIKE(_c2ieBSORes:ID) !Primary key field - type derived from field
_UniRes:ID LIKE(_UniRes:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
History::c2ieActRes:Record LIKE(c2ieActRes:RECORD),THREAD
QuickWindow WINDOW('Form c2ieActionResources'),AT(,,417,84),FONT('Microsoft Sans Serif',8,,FONT:regular, |
CHARSET:DEFAULT),RESIZE,CENTER,GRAY,IMM,MDI,HLP('U_c2ieActionResources'),SYSTEM
SHEET,AT(4,4,411,58),USE(?CurrentTab)
TAB('&1) General'),USE(?Tab:1)
PROMPT('ID:'),AT(8,20),USE(?c2ieActRes:ID:Prompt),TRN
ENTRY(@n-10.0),AT(61,20,48,10),USE(c2ieActRes:ID),DECIMAL(12)
PROMPT('ID:'),AT(8,34),USE(?c2ieActRes:c2ieActionDetail:Prompt),TRN
ENTRY(@n-10.0),AT(61,34,48,10),USE(c2ieActRes:c2ieActionDetail),DECIMAL(12)
PROMPT('ID:'),AT(8,48),USE(?c2ieActRes:c2ieBSO:Prompt),TRN
ENTRY(@n-10.0),AT(61,48,48,10),USE(c2ieActRes:c2ieBSO),DECIMAL(12)
COMBO(@s20),AT(115,48,291,10),USE(_UniRes:Code),DROP(5),FORMAT('80L(2)|M~Code~L(0)@s20@'), |
FROM(Queue:FileDropCombo),IMM
END
END
BUTTON('&OK'),AT(259,68,49,14),USE(?OK),LEFT,ICON('WAOK.ICO'),DEFAULT,FLAT,MSG('Accept dat' & |
'a and close the window'),TIP('Accept data and close the window')
BUTTON('&Cancel'),AT(313,68,49,14),USE(?Cancel),LEFT,ICON('WACANCEL.ICO'),FLAT,MSG('Cancel operation'), |
TIP('Cancel operation')
BUTTON('&Help'),AT(365,68,49,14),USE(?Help),LEFT,ICON('WAHELP.ICO'),FLAT,MSG('See Help Window'), |
STD(STD:Help),TIP('See Help Window')
END
ThisWindow CLASS(WindowManager)
Ask PROCEDURE(),DERIVED
Init PROCEDURE(),BYTE,PROC,DERIVED
Kill PROCEDURE(),BYTE,PROC,DERIVED
Run PROCEDURE(),BYTE,PROC,DERIVED
TakeAccepted PROCEDURE(),BYTE,PROC,DERIVED
END
Toolbar ToolbarClass
ToolbarForm ToolbarUpdateClass ! Form Toolbar Manager
Resizer CLASS(WindowResizeClass)
Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
END
FDCB8 CLASS(FileDropComboClass) ! File drop combo manager
Q &Queue:FileDropCombo !Reference to browse queue type
END
CurCtrlFeq LONG
FieldColorQueue QUEUE
Feq LONG
OldColor LONG
END
CODE
GlobalResponse = ThisWindow.Run() ! Opens the window and starts an Accept Loop
!---------------------------------------------------------------------------
DefineListboxStyle ROUTINE
!|
!| This routine create all the styles to be shared in this window
!| It`s called after the window open
!|
!---------------------------------------------------------------------------
ThisWindow.Ask PROCEDURE
CODE
CASE SELF.Request ! Configure the action message text
OF ViewRecord
ActionMessage = 'View Record'
OF InsertRecord
ActionMessage = 'Record Will Be Added'
OF ChangeRecord
ActionMessage = 'Record Will Be Changed'
END
QuickWindow{PROP:Text} = ActionMessage ! Display status message in title bar
PARENT.Ask
ThisWindow.Init PROCEDURE
ReturnValue BYTE,AUTO
CODE
GlobalErrors.SetProcedureName('U_c2ieActionResources')
SELF.Request = GlobalRequest ! Store the incoming request
ReturnValue = PARENT.Init()
IF ReturnValue THEN RETURN ReturnValue.
SELF.FirstField = ?c2ieActRes:ID:Prompt
SELF.VCRRequest &= VCRRequest
SELF.Errors &= GlobalErrors ! Set this windows ErrorManager to the global ErrorManager
CLEAR(GlobalRequest) ! Clear GlobalRequest after storing locally
CLEAR(GlobalResponse)
SELF.AddItem(Toolbar)
SELF.HistoryKey = CtrlH
SELF.AddHistoryFile(c2ieActRes:Record,History::c2ieActRes:Record)
SELF.AddHistoryField(?c2ieActRes:ID,1)
SELF.AddHistoryField(?c2ieActRes:c2ieActionDetail,2)
SELF.AddHistoryField(?c2ieActRes:c2ieBSO,3)
SELF.AddUpdateFile(Access:c2ieActionResources)
SELF.AddItem(?Cancel,RequestCancelled) ! Add the cancel control to the window manager
Relate:_c2ieBSO_Resources.Open ! File _c2ieBSO_Resources used by this procedure, so make sure it's RelationManager is open
Relate:c2ieActionResources.SetOpenRelated()
Relate:c2ieActionResources.Open ! File c2ieActionResources used by this procedure, so make sure it's RelationManager is open
SELF.FilesOpened = True
SELF.Primary &= Relate:c2ieActionResources
IF SELF.Request = ViewRecord AND NOT SELF.BatchProcessing ! Setup actions for ViewOnly Mode
SELF.InsertAction = Insert:None
SELF.DeleteAction = Delete:None
SELF.ChangeAction = Change:None
SELF.CancelAction = Cancel:Cancel
SELF.OkControl = 0
ELSE
SELF.ChangeAction = Change:Caller ! Changes allowed
SELF.CancelAction = Cancel:Cancel+Cancel:Query ! Confirm cancel
SELF.OkControl = ?OK
IF SELF.PrimeUpdate() THEN RETURN Level:Notify.
END
SELF.Open(QuickWindow) ! Open window
Do DefineListboxStyle
IF SELF.Request = ViewRecord ! Configure controls for View Only mode
?c2ieActRes:ID{PROP:ReadOnly} = True
?c2ieActRes:c2ieActionDetail{PROP:ReadOnly} = True
?c2ieActRes:c2ieBSO{PROP:ReadOnly} = True
DISABLE(?_UniRes:Code)
END
Resizer.Init(AppStrategy:Surface,Resize:SetMinSize) ! Controls like list boxes will resize, whilst controls like buttons will move
SELF.AddItem(Resizer) ! Add resizer to window manager
INIMgr.Fetch('U_c2ieActionResources',QuickWindow) ! Restore window settings from non-volatile store
Resizer.Resize ! Reset required after window size altered by INI manager
ToolBarForm.HelpButton=?Help
SELF.AddItem(ToolbarForm)
FDCB8.Init(_UniRes:Code,?_UniRes:Code,Queue:FileDropCombo.ViewPosition,FDCB8::View:FileDropCombo,Queue:FileDropCombo,Relate:_c2ieBSO_Resources,ThisWindow,GlobalErrors,0,1,0)
FDCB8.Q &= Queue:FileDropCombo
FDCB8.AddSortOrder(_c2ieBSORes:PKID)
FDCB8.AddField(_UniRes:Code,FDCB8.Q._UniRes:Code) !List box control field - type derived from field
FDCB8.AddField(_c2ieBSORes:ID,FDCB8.Q._c2ieBSORes:ID) !Primary key field - type derived from field
FDCB8.AddField(_UniRes:ID,FDCB8.Q._UniRes:ID) !Related join file key field - type derived from field
FDCB8.AddUpdateField(_c2ieBSORes:ID,c2ieActRes:c2ieBSO)
ThisWindow.AddItem(FDCB8.WindowComponent)
FDCB8.DefaultFill = 0
SELF.SetAlerts()
RETURN ReturnValue
ThisWindow.Kill PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Kill()
IF ReturnValue THEN RETURN ReturnValue.
IF SELF.FilesOpened
Relate:_c2ieBSO_Resources.Close
Relate:c2ieActionResources.Close
END
IF SELF.Opened
INIMgr.Update('U_c2ieActionResources',QuickWindow) ! Save window data to non-volatile store
END
GlobalErrors.SetProcedureName
RETURN ReturnValue
ThisWindow.Run PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Run()
IF SELF.Request = ViewRecord ! In View Only mode always signal RequestCancelled
ReturnValue = RequestCancelled
END
RETURN ReturnValue
ThisWindow.TakeAccepted PROCEDURE
ReturnValue BYTE,AUTO
Looped BYTE
CODE
LOOP ! This method receive all EVENT:Accepted's
IF Looped
RETURN Level:Notify
ELSE
Looped = 1
END
ReturnValue = PARENT.TakeAccepted()
CASE ACCEPTED()
OF ?OK
ThisWindow.Update()
IF SELF.Request = ViewRecord AND NOT SELF.BatchProcessing THEN
POST(EVENT:CloseWindow)
END
END
RETURN ReturnValue
END
ReturnValue = Level:Fatal
RETURN ReturnValue
Resizer.Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
CODE
PARENT.Init(AppStrategy,SetWindowMinSize,SetWindowMaxSize)
SELF.SetParentDefaults() ! Calculate default control parent-child relationships based upon their positions on the window
!!! <summary>
!!! Generated from procedure template - Window
!!! Browse the c2ieActionObjectives file
!!! </summary>
B_c2ieActionObjectives PROCEDURE
CurrentTab STRING(80) !
BRW1::View:Browse VIEW(c2ieActionObjectives)
PROJECT(c2ieActObj:ID)
PROJECT(c2ieActObj:c2ieActionDetail)
PROJECT(c2ieActObj:c2ieBSO)
END
Queue:Browse:1 QUEUE !Queue declaration for browse/combo box using ?Browse:1
c2ieActObj:ID LIKE(c2ieActObj:ID) !List box control field - type derived from field
c2ieActObj:c2ieActionDetail LIKE(c2ieActObj:c2ieActionDetail) !List box control field - type derived from field
c2ieActObj:c2ieBSO LIKE(c2ieActObj:c2ieBSO) !List box control field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
QuickWindow WINDOW('Browse the c2ieActionObjectives file'),AT(,,277,198),FONT('Microsoft Sans Serif',8, |
,FONT:regular,CHARSET:DEFAULT),RESIZE,CENTER,GRAY,IMM,MDI,HLP('B_c2ieActionObjectives'), |
SYSTEM
LIST,AT(8,30,261,124),USE(?Browse:1),HVSCROLL,FORMAT('48R(2)|M~ID~C(0)@n-10.0@80R(10)|M' & |
'~Action Detail reference~C(0)@n-10.0@76R(2)|M~C2IE BSO reference~C(0)@n-10.0@'),FROM(Queue:Browse:1), |
IMM,MSG('Browsing the c2ieActionObjectives file')
BUTTON('&Select'),AT(8,158,49,14),USE(?Select:2),LEFT,ICON('WASELECT.ICO'),FLAT,MSG('Select the Record'), |
TIP('Select the Record')
BUTTON('&View'),AT(61,158,49,14),USE(?View:3),LEFT,ICON('WAVIEW.ICO'),FLAT,MSG('View Record'), |
TIP('View Record')
BUTTON('&Insert'),AT(114,158,49,14),USE(?Insert:4),LEFT,ICON('WAINSERT.ICO'),FLAT,MSG('Insert a Record'), |
TIP('Insert a Record')
BUTTON('&Change'),AT(167,158,49,14),USE(?Change:4),LEFT,ICON('WACHANGE.ICO'),DEFAULT,FLAT, |
MSG('Change the Record'),TIP('Change the Record')
BUTTON('&Delete'),AT(220,158,49,14),USE(?Delete:4),LEFT,ICON('WADELETE.ICO'),FLAT,MSG('Delete the Record'), |
TIP('Delete the Record')
SHEET,AT(4,4,269,172),USE(?CurrentTab)
TAB('&1) PKID'),USE(?Tab:2)
END
END
BUTTON('&Close'),AT(171,180,49,14),USE(?Close),LEFT,ICON('WACLOSE.ICO'),FLAT,MSG('Close Window'), |
TIP('Close Window')
BUTTON('&Help'),AT(224,180,49,14),USE(?Help),LEFT,ICON('WAHELP.ICO'),FLAT,MSG('See Help Window'), |
STD(STD:Help),TIP('See Help Window')
END
ThisWindow CLASS(WindowManager)
Init PROCEDURE(),BYTE,PROC,DERIVED
Kill PROCEDURE(),BYTE,PROC,DERIVED
Run PROCEDURE(USHORT Number,BYTE Request),BYTE,PROC,DERIVED
END
Toolbar ToolbarClass
BRW1 CLASS(BrowseClass) ! Browse using ?Browse:1
Q &Queue:Browse:1 !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW1::Sort0:Locator StepLocatorClass ! Default Locator
BRW1::Sort0:StepClass StepRealClass ! Default Step Manager
Resizer CLASS(WindowResizeClass)
Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
END
CODE
GlobalResponse = ThisWindow.Run() ! Opens the window and starts an Accept Loop
!---------------------------------------------------------------------------
DefineListboxStyle ROUTINE
!|
!| This routine create all the styles to be shared in this window
!| It`s called after the window open
!|
!---------------------------------------------------------------------------
ThisWindow.Init PROCEDURE
ReturnValue BYTE,AUTO
CODE
GlobalErrors.SetProcedureName('B_c2ieActionObjectives')
SELF.Request = GlobalRequest ! Store the incoming request
ReturnValue = PARENT.Init()
IF ReturnValue THEN RETURN ReturnValue.
SELF.FirstField = ?Browse:1
SELF.VCRRequest &= VCRRequest
SELF.Errors &= GlobalErrors ! Set this windows ErrorManager to the global ErrorManager
CLEAR(GlobalRequest) ! Clear GlobalRequest after storing locally
CLEAR(GlobalResponse)
SELF.AddItem(Toolbar)
IF SELF.Request = SelectRecord
SELF.AddItem(?Close,RequestCancelled) ! Add the close control to the window manger
ELSE
SELF.AddItem(?Close,RequestCompleted) ! Add the close control to the window manger
END
Relate:c2ieActionObjectives.Open ! File c2ieActionObjectives used by this procedure, so make sure it's RelationManager is open
SELF.FilesOpened = True
BRW1.Init(?Browse:1,Queue:Browse:1.ViewPosition,BRW1::View:Browse,Queue:Browse:1,Relate:c2ieActionObjectives,SELF) ! Initialize the browse manager
SELF.Open(QuickWindow) ! Open window
Do DefineListboxStyle
BRW1.Q &= Queue:Browse:1
BRW1::Sort0:StepClass.Init(+ScrollSort:AllowAlpha) ! Moveable thumb based upon c2ieActObj:ID for sort order 1
BRW1.AddSortOrder(BRW1::Sort0:StepClass,c2ieActObj:PKID) ! Add the sort order for c2ieActObj:PKID for sort order 1
BRW1.AddLocator(BRW1::Sort0:Locator) ! Browse has a locator for sort order 1
BRW1::Sort0:Locator.Init(,c2ieActObj:ID,1,BRW1) ! Initialize the browse locator using using key: c2ieActObj:PKID , c2ieActObj:ID
BRW1.AddField(c2ieActObj:ID,BRW1.Q.c2ieActObj:ID) ! Field c2ieActObj:ID is a hot field or requires assignment from browse
BRW1.AddField(c2ieActObj:c2ieActionDetail,BRW1.Q.c2ieActObj:c2ieActionDetail) ! Field c2ieActObj:c2ieActionDetail is a hot field or requires assignment from browse
BRW1.AddField(c2ieActObj:c2ieBSO,BRW1.Q.c2ieActObj:c2ieBSO) ! Field c2ieActObj:c2ieBSO is a hot field or requires assignment from browse
Resizer.Init(AppStrategy:Surface,Resize:SetMinSize) ! Controls like list boxes will resize, whilst controls like buttons will move
SELF.AddItem(Resizer) ! Add resizer to window manager
INIMgr.Fetch('B_c2ieActionObjectives',QuickWindow) ! Restore window settings from non-volatile store
Resizer.Resize ! Reset required after window size altered by INI manager
BRW1.AskProcedure = 1 ! Will call: U_c2ieActionObjectives
BRW1.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW1.ToolbarItem.HelpButton = ?Help
SELF.SetAlerts()
RETURN ReturnValue
ThisWindow.Kill PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Kill()
IF ReturnValue THEN RETURN ReturnValue.
IF SELF.FilesOpened
Relate:c2ieActionObjectives.Close
END
IF SELF.Opened
INIMgr.Update('B_c2ieActionObjectives',QuickWindow) ! Save window data to non-volatile store
END
GlobalErrors.SetProcedureName
RETURN ReturnValue
ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request)
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Run(Number,Request)
IF SELF.Request = ViewRecord
ReturnValue = RequestCancelled ! Always return RequestCancelled if the form was opened in ViewRecord mode
ELSE
GlobalRequest = Request
U_c2ieActionObjectives
ReturnValue = GlobalResponse
END
RETURN ReturnValue
BRW1.Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
CODE
SELF.SelectControl = ?Select:2
SELF.HideSelect = 1 ! Hide the select button when disabled
PARENT.Init(ListBox,Posit,V,Q,RM,WM)
IF WM.Request <> ViewRecord ! If called for anything other than ViewMode, make the insert, change & delete controls available
SELF.InsertControl=?Insert:4
SELF.ChangeControl=?Change:4
SELF.DeleteControl=?Delete:4
END
SELF.ViewControl = ?View:3 ! Setup the control used to initiate view only mode
Resizer.Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
CODE
PARENT.Init(AppStrategy,SetWindowMinSize,SetWindowMaxSize)
SELF.SetParentDefaults() ! Calculate default control parent-child relationships based upon their positions on the window
!!! <summary>
!!! Generated from procedure template - Window
!!! Form c2ieActionObjectives
!!! </summary>
U_c2ieActionObjectives PROCEDURE
CurrentTab STRING(80) !
ActionMessage CSTRING(40) !
FDCB8::View:FileDropCombo VIEW(_c2ieBSO_Objectives)
PROJECT(_c2ieBSOObj:ID)
PROJECT(_c2ieBSOObj:Unit)
JOIN(_UniObj:PKID,_c2ieBSOObj:Unit)
PROJECT(_UniObj:Code)
PROJECT(_UniObj:ID)
END
END
Queue:FileDropCombo QUEUE !Queue declaration for browse/combo box using ?_UniObj:Code
_UniObj:Code LIKE(_UniObj:Code) !List box control field - type derived from field
_c2ieBSOObj:ID LIKE(_c2ieBSOObj:ID) !Primary key field - type derived from field
_UniObj:ID LIKE(_UniObj:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
History::c2ieActObj:Record LIKE(c2ieActObj:RECORD),THREAD
QuickWindow WINDOW('Form c2ieActionObjectives'),AT(,,417,84),FONT('Microsoft Sans Serif',8,,FONT:regular, |
CHARSET:DEFAULT),RESIZE,CENTER,GRAY,IMM,MDI,HLP('U_c2ieActionObjectives'),SYSTEM
SHEET,AT(4,4,411,58),USE(?CurrentTab)
TAB('&1) General'),USE(?Tab:1)
PROMPT('ID:'),AT(8,20),USE(?c2ieActObj:ID:Prompt),TRN
ENTRY(@n-10.0),AT(108,20,48,10),USE(c2ieActObj:ID),DECIMAL(12)
PROMPT('Action Detail reference:'),AT(8,34),USE(?c2ieActObj:c2ieActionDetail:Prompt),TRN
ENTRY(@n-10.0),AT(108,34,48,10),USE(c2ieActObj:c2ieActionDetail),DECIMAL(12)
PROMPT('C2IE BSO reference:'),AT(8,48),USE(?c2ieActObj:c2ieBSO:Prompt),TRN
ENTRY(@n-10.0),AT(108,48,48,10),USE(c2ieActObj:c2ieBSO),DECIMAL(12)
COMBO(@s20),AT(161,47,241,10),USE(_UniObj:Code),DROP(5),FORMAT('80L(2)|M~Code~L(0)@s20@'), |
FROM(Queue:FileDropCombo),IMM
END
END
BUTTON('&OK'),AT(260,68,49,14),USE(?OK),LEFT,ICON('WAOK.ICO'),DEFAULT,FLAT,MSG('Accept dat' & |
'a and close the window'),TIP('Accept data and close the window')
BUTTON('&Cancel'),AT(313,68,49,14),USE(?Cancel),LEFT,ICON('WACANCEL.ICO'),FLAT,MSG('Cancel operation'), |
TIP('Cancel operation')
BUTTON('&Help'),AT(365,68,49,14),USE(?Help),LEFT,ICON('WAHELP.ICO'),FLAT,MSG('See Help Window'), |
STD(STD:Help),TIP('See Help Window')
END
ThisWindow CLASS(WindowManager)
Ask PROCEDURE(),DERIVED
Init PROCEDURE(),BYTE,PROC,DERIVED
Kill PROCEDURE(),BYTE,PROC,DERIVED
Run PROCEDURE(),BYTE,PROC,DERIVED
TakeAccepted PROCEDURE(),BYTE,PROC,DERIVED
END
Toolbar ToolbarClass
ToolbarForm ToolbarUpdateClass ! Form Toolbar Manager
Resizer CLASS(WindowResizeClass)
Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
END
FDCB8 CLASS(FileDropComboClass) ! File drop combo manager
Q &Queue:FileDropCombo !Reference to browse queue type
END
CurCtrlFeq LONG
FieldColorQueue QUEUE
Feq LONG
OldColor LONG
END
CODE
GlobalResponse = ThisWindow.Run() ! Opens the window and starts an Accept Loop
!---------------------------------------------------------------------------
DefineListboxStyle ROUTINE
!|
!| This routine create all the styles to be shared in this window
!| It`s called after the window open
!|
!---------------------------------------------------------------------------
ThisWindow.Ask PROCEDURE
CODE
CASE SELF.Request ! Configure the action message text
OF ViewRecord
ActionMessage = 'View Record'
OF InsertRecord
ActionMessage = 'Record Will Be Added'
OF ChangeRecord
ActionMessage = 'Record Will Be Changed'
END
QuickWindow{PROP:Text} = ActionMessage ! Display status message in title bar
PARENT.Ask
ThisWindow.Init PROCEDURE
ReturnValue BYTE,AUTO
CODE
GlobalErrors.SetProcedureName('U_c2ieActionObjectives')
SELF.Request = GlobalRequest ! Store the incoming request
ReturnValue = PARENT.Init()
IF ReturnValue THEN RETURN ReturnValue.
SELF.FirstField = ?c2ieActObj:ID:Prompt
SELF.VCRRequest &= VCRRequest
SELF.Errors &= GlobalErrors ! Set this windows ErrorManager to the global ErrorManager
CLEAR(GlobalRequest) ! Clear GlobalRequest after storing locally
CLEAR(GlobalResponse)
SELF.AddItem(Toolbar)
SELF.HistoryKey = CtrlH
SELF.AddHistoryFile(c2ieActObj:Record,History::c2ieActObj:Record)
SELF.AddHistoryField(?c2ieActObj:ID,1)
SELF.AddHistoryField(?c2ieActObj:c2ieActionDetail,2)
SELF.AddHistoryField(?c2ieActObj:c2ieBSO,3)
SELF.AddUpdateFile(Access:c2ieActionObjectives)
SELF.AddItem(?Cancel,RequestCancelled) ! Add the cancel control to the window manager
Relate:_c2ieBSO_Objectives.Open ! File _c2ieBSO_Objectives used by this procedure, so make sure it's RelationManager is open
Relate:c2ieActionObjectives.Open ! File c2ieActionObjectives used by this procedure, so make sure it's RelationManager is open
SELF.FilesOpened = True
SELF.Primary &= Relate:c2ieActionObjectives
IF SELF.Request = ViewRecord AND NOT SELF.BatchProcessing ! Setup actions for ViewOnly Mode
SELF.InsertAction = Insert:None
SELF.DeleteAction = Delete:None
SELF.ChangeAction = Change:None
SELF.CancelAction = Cancel:Cancel
SELF.OkControl = 0
ELSE
SELF.ChangeAction = Change:Caller ! Changes allowed
SELF.CancelAction = Cancel:Cancel+Cancel:Query ! Confirm cancel
SELF.OkControl = ?OK
IF SELF.PrimeUpdate() THEN RETURN Level:Notify.
END
SELF.Open(QuickWindow) ! Open window
Do DefineListboxStyle
IF SELF.Request = ViewRecord ! Configure controls for View Only mode
?c2ieActObj:ID{PROP:ReadOnly} = True
?c2ieActObj:c2ieActionDetail{PROP:ReadOnly} = True
?c2ieActObj:c2ieBSO{PROP:ReadOnly} = True
DISABLE(?_UniObj:Code)
END
Resizer.Init(AppStrategy:Surface,Resize:SetMinSize) ! Controls like list boxes will resize, whilst controls like buttons will move
SELF.AddItem(Resizer) ! Add resizer to window manager
INIMgr.Fetch('U_c2ieActionObjectives',QuickWindow) ! Restore window settings from non-volatile store
Resizer.Resize ! Reset required after window size altered by INI manager
ToolBarForm.HelpButton=?Help
SELF.AddItem(ToolbarForm)
FDCB8.Init(_UniObj:Code,?_UniObj:Code,Queue:FileDropCombo.ViewPosition,FDCB8::View:FileDropCombo,Queue:FileDropCombo,Relate:_c2ieBSO_Objectives,ThisWindow,GlobalErrors,0,1,0)
FDCB8.Q &= Queue:FileDropCombo
FDCB8.AddSortOrder(_c2ieBSOObj:PKID)
FDCB8.AddField(_UniObj:Code,FDCB8.Q._UniObj:Code) !List box control field - type derived from field
FDCB8.AddField(_c2ieBSOObj:ID,FDCB8.Q._c2ieBSOObj:ID) !Primary key field - type derived from field
FDCB8.AddField(_UniObj:ID,FDCB8.Q._UniObj:ID) !Related join file key field - type derived from field
FDCB8.AddUpdateField(_c2ieBSOObj:ID,c2ieActObj:c2ieBSO)
ThisWindow.AddItem(FDCB8.WindowComponent)
FDCB8.DefaultFill = 0
SELF.SetAlerts()
RETURN ReturnValue
ThisWindow.Kill PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Kill()
IF ReturnValue THEN RETURN ReturnValue.
IF SELF.FilesOpened
Relate:_c2ieBSO_Objectives.Close
Relate:c2ieActionObjectives.Close
END
IF SELF.Opened
INIMgr.Update('U_c2ieActionObjectives',QuickWindow) ! Save window data to non-volatile store
END
GlobalErrors.SetProcedureName
RETURN ReturnValue
ThisWindow.Run PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Run()
IF SELF.Request = ViewRecord ! In View Only mode always signal RequestCancelled
ReturnValue = RequestCancelled
END
RETURN ReturnValue
ThisWindow.TakeAccepted PROCEDURE
ReturnValue BYTE,AUTO
Looped BYTE
CODE
LOOP ! This method receive all EVENT:Accepted's
IF Looped
RETURN Level:Notify
ELSE
Looped = 1
END
ReturnValue = PARENT.TakeAccepted()
CASE ACCEPTED()
OF ?OK
ThisWindow.Update()
IF SELF.Request = ViewRecord AND NOT SELF.BatchProcessing THEN
POST(EVENT:CloseWindow)
END
END
RETURN ReturnValue
END
ReturnValue = Level:Fatal
RETURN ReturnValue
Resizer.Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
CODE
PARENT.Init(AppStrategy,SetWindowMinSize,SetWindowMaxSize)
SELF.SetParentDefaults() ! Calculate default control parent-child relationships based upon their positions on the window
!!! <summary>
!!! Generated from procedure template - Window
!!! Browse the myOrganization file
!!! </summary>
View_myOrganization PROCEDURE
CurrentTab STRING(80) !
BRW1::View:Browse VIEW(myOrganization)
PROJECT(myOrg:ID)
PROJECT(myOrg:Name)
PROJECT(myOrg:Code)
END
Queue:Browse:1 QUEUE !Queue declaration for browse/combo box using ?Browse:1
myOrg:ID LIKE(myOrg:ID) !List box control field - type derived from field
myOrg:Name LIKE(myOrg:Name) !List box control field - type derived from field
myOrg:Code LIKE(myOrg:Code) !List box control field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
BRW8::View:Browse VIEW(OrgTOO)
PROJECT(OrgTOO:ID)
PROJECT(OrgTOO:Organization)
PROJECT(OrgTOO:TheaterOfOperations)
JOIN(TOO:PKID,OrgTOO:TheaterOfOperations)
PROJECT(TOO:Name)
PROJECT(TOO:Code)
PROJECT(TOO:ID)
END
END
Queue:Browse QUEUE !Queue declaration for browse/combo box using ?List
TOO:Name LIKE(TOO:Name) !List box control field - type derived from field
TOO:Code LIKE(TOO:Code) !List box control field - type derived from field
OrgTOO:ID LIKE(OrgTOO:ID) !Primary key field - type derived from field
OrgTOO:Organization LIKE(OrgTOO:Organization) !Browse key field - type derived from field
TOO:ID LIKE(TOO:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
BRW9::View:Browse VIEW(OrgMissions)
PROJECT(OrgMiss:ID)
PROJECT(OrgMiss:Organization)
PROJECT(OrgMiss:Mission)
JOIN(Miss:PKID,OrgMiss:Mission)
PROJECT(Miss:Name)
PROJECT(Miss:Code)
PROJECT(Miss:ID)
PROJECT(Miss:MilOpType)
JOIN(tpyMilOp:PKID,Miss:MilOpType)
PROJECT(tpyMilOp:Name)
PROJECT(tpyMilOp:Code)
PROJECT(tpyMilOp:ID)
END
END
END
Queue:Browse:2 QUEUE !Queue declaration for browse/combo box using ?List:2
Miss:Name LIKE(Miss:Name) !List box control field - type derived from field
Miss:Code LIKE(Miss:Code) !List box control field - type derived from field
tpyMilOp:Name LIKE(tpyMilOp:Name) !List box control field - type derived from field
tpyMilOp:Code LIKE(tpyMilOp:Code) !List box control field - type derived from field
OrgMiss:ID LIKE(OrgMiss:ID) !Primary key field - type derived from field
OrgMiss:Organization LIKE(OrgMiss:Organization) !Browse key field - type derived from field
Miss:ID LIKE(Miss:ID) !Related join file key field - type derived from field
tpyMilOp:ID LIKE(tpyMilOp:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
BRW12::View:Browse VIEW(C2IPExplorer)
PROJECT(C2IPExp:ID)
PROJECT(C2IPExp:Organization)
PROJECT(C2IPExp:C2IP)
JOIN(C2IP:PKID,C2IPExp:C2IP)
PROJECT(C2IP:Name)
PROJECT(C2IP:ID)
PROJECT(C2IP:Type)
JOIN(tpyC2IP:PKID,C2IP:Type)
PROJECT(tpyC2IP:Code)
PROJECT(tpyC2IP:ID)
END
END
END
Queue:Browse:3 QUEUE !Queue declaration for browse/combo box using ?List:3
tpyC2IP:Code LIKE(tpyC2IP:Code) !List box control field - type derived from field
C2IP:Name LIKE(C2IP:Name) !List box control field - type derived from field
C2IPExp:ID LIKE(C2IPExp:ID) !Primary key field - type derived from field
C2IPExp:Organization LIKE(C2IPExp:Organization) !Browse key field - type derived from field
C2IP:ID LIKE(C2IP:ID) !Related join file key field - type derived from field
tpyC2IP:ID LIKE(tpyC2IP:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
BRW14::View:Browse VIEW(myOrgORBAT)
PROJECT(myOrgORB:ID)
PROJECT(myOrgORB:Organization)
PROJECT(myOrgORB:ORBATC2IP)
JOIN(C2IP:PKID,myOrgORB:ORBATC2IP)
PROJECT(C2IP:Name)
PROJECT(C2IP:ID)
PROJECT(C2IP:Type)
JOIN(tpyC2IP:PKID,C2IP:Type)
PROJECT(tpyC2IP:Code)
PROJECT(tpyC2IP:ID)
END
END
END
Queue:Browse:4 QUEUE !Queue declaration for browse/combo box using ?List:4
C2IP:Name LIKE(C2IP:Name) !List box control field - type derived from field
tpyC2IP:Code LIKE(tpyC2IP:Code) !List box control field - type derived from field
myOrgORB:ID LIKE(myOrgORB:ID) !Primary key field - type derived from field
myOrgORB:Organization LIKE(myOrgORB:Organization) !Browse key field - type derived from field
C2IP:ID LIKE(C2IP:ID) !Related join file key field - type derived from field
tpyC2IP:ID LIKE(tpyC2IP:ID) !Related join file key field - type derived from field
Mark BYTE !Entry's marked status
ViewPosition STRING(1024) !Entry's view position
END
QuickWindow WINDOW('My Organization'),AT(,,524,347),FONT('Microsoft Sans Serif',8,,FONT:regular+FONT:underline, |
CHARSET:DEFAULT),RESIZE,CENTER,GRAY,IMM,MDI,HLP('B_myOrganization'),SYSTEM
LIST,AT(3,2,261,54),USE(?Browse:1),HVSCROLL,FORMAT('0R(2)|M~ID~C(0)@n-10.0@100L(2)|M~Or' & |
'ganization Name~C(2)@s100@40L(2)|M~Code~C(2)@s20@'),FROM(Queue:Browse:1),IMM,MSG('Browsing t' & |
'he myOrganization file')
BUTTON('&Select'),AT(3,60,49,14),USE(?Select:2),LEFT,ICON('WASELECT.ICO'),FLAT,MSG('Select the Record'), |
TIP('Select the Record')
BUTTON('&View'),AT(57,60,49,14),USE(?View:3),LEFT,ICON('WAVIEW.ICO'),FLAT,MSG('View Record'), |
TIP('View Record')
BUTTON('&Insert'),AT(110,60,49,14),USE(?Insert:4),LEFT,ICON('WAINSERT.ICO'),FLAT,MSG('Insert a Record'), |
TIP('Insert a Record')
BUTTON('&Change'),AT(162,60,49,14),USE(?Change:4),LEFT,ICON('WACHANGE.ICO'),DEFAULT,FLAT,MSG('Change the Record'), |
TIP('Change the Record')
BUTTON('&Delete'),AT(215,60,49,14),USE(?Delete:4),LEFT,ICON('WADELETE.ICO'),FLAT,MSG('Delete the Record'), |
TIP('Delete the Record')
BUTTON('&Close'),AT(419,331,49,14),USE(?Close),LEFT,ICON('WACLOSE.ICO'),FLAT,MSG('Close Window'), |
TIP('Close Window')
BUTTON('&Help'),AT(473,331,49,14),USE(?Help),LEFT,ICON('WAHELP.ICO'),FLAT,MSG('See Help Window'), |
STD(STD:Help),TIP('See Help Window')
LIST,AT(3,154,261,60),USE(?List),FORMAT('[100L(2)|M~Name~C(0)@s100@40L(2)|M~Code~C(0)@s' & |
'20@]|~Theaters of Operations~'),FROM(Queue:Browse),IMM
LIST,AT(269,154,252,60),USE(?List:2),FORMAT('[100L(2)|M~Name~C(0)@s100@40L(2)|M~Code~C(' & |
'0)@s20@]|~Missions~[100L(2)|M~Name~C(0)@s100@40L(2)|M~Code~C(0)@s20@]|~Operation Type~'), |
FROM(Queue:Browse:2),IMM
BUTTON('&Insert'),AT(1,218,42,12),USE(?Insert)
BUTTON('&Change'),AT(43,218,42,12),USE(?Change)
BUTTON('&Delete'),AT(85,218,42,12),USE(?Delete)
BUTTON('&Insert'),AT(269,218,42,12),USE(?Insert:2)
BUTTON('&Change'),AT(311,218,42,12),USE(?Change:2)
BUTTON('&Delete'),AT(353,218,42,12),USE(?Delete:2)
LIST,AT(269,2,253,111),USE(?List:3),DECIMAL(12),FORMAT('[40L(2)|M~C2IP Type~C(0)@s20@10' & |
'0L(2)|M~C2IP Name~C(0)@s100@]|~C2IP Explorer~'),FROM(Queue:Browse:3),IMM
BUTTON('&Insert'),AT(269,118,42,12),USE(?Insert:3)
BUTTON('&Change'),AT(311,118,42,12),USE(?Change:3)
BUTTON('&Delete'),AT(353,118,42,12),USE(?Delete:3)
LIST,AT(3,79,261,36),USE(?List:4),FORMAT('[100L(2)|M~ORBAT C2IP Name~C(0)@s100@40L(2)|M' & |
'~ORBAT C2IP Type~C(0)@s20@]|~ORBAT~'),FROM(Queue:Browse:4),IMM
BUTTON('&Insert'),AT(2,119,42,12),USE(?Insert:5)
BUTTON('&Change'),AT(43,119,42,12),USE(?Change:5)
BUTTON('&Delete'),AT(86,119,42,12),USE(?Delete:5)
END
ThisWindow CLASS(WindowManager)
Init PROCEDURE(),BYTE,PROC,DERIVED
Kill PROCEDURE(),BYTE,PROC,DERIVED
Run PROCEDURE(USHORT Number,BYTE Request),BYTE,PROC,DERIVED
END
Toolbar ToolbarClass
BRW1 CLASS(BrowseClass) ! Browse using ?Browse:1
Q &Queue:Browse:1 !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW1::Sort0:Locator StepLocatorClass ! Default Locator
BRW1::Sort0:StepClass StepRealClass ! Default Step Manager
BRW8 CLASS(BrowseClass) ! Browse using ?List
Q &Queue:Browse !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW8::Sort0:Locator StepLocatorClass ! Default Locator
BRW9 CLASS(BrowseClass) ! Browse using ?List:2
Q &Queue:Browse:2 !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW9::Sort0:Locator StepLocatorClass ! Default Locator
BRW12 CLASS(BrowseClass) ! Browse using ?List:3
Q &Queue:Browse:3 !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW12::Sort0:Locator StepLocatorClass ! Default Locator
BRW14 CLASS(BrowseClass) ! Browse using ?List:4
Q &Queue:Browse:4 !Reference to browse queue
Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
END
BRW14::Sort0:Locator StepLocatorClass ! Default Locator
Resizer CLASS(WindowResizeClass)
Init PROCEDURE(BYTE AppStrategy=AppStrategy:Resize,BYTE SetWindowMinSize=False,BYTE SetWindowMaxSize=False)
END
CODE
GlobalResponse = ThisWindow.Run() ! Opens the window and starts an Accept Loop
!---------------------------------------------------------------------------
DefineListboxStyle ROUTINE
!|
!| This routine create all the styles to be shared in this window
!| It`s called after the window open
!|
!---------------------------------------------------------------------------
ThisWindow.Init PROCEDURE
ReturnValue BYTE,AUTO
CODE
GlobalErrors.SetProcedureName('View_myOrganization')
SELF.Request = GlobalRequest ! Store the incoming request
ReturnValue = PARENT.Init()
IF ReturnValue THEN RETURN ReturnValue.
SELF.FirstField = ?Browse:1
SELF.VCRRequest &= VCRRequest
SELF.Errors &= GlobalErrors ! Set this windows ErrorManager to the global ErrorManager
CLEAR(GlobalRequest) ! Clear GlobalRequest after storing locally
CLEAR(GlobalResponse)
SELF.AddItem(Toolbar)
IF SELF.Request = SelectRecord
SELF.AddItem(?Close,RequestCancelled) ! Add the close control to the window manger
ELSE
SELF.AddItem(?Close,RequestCompleted) ! Add the close control to the window manger
END
Relate:C2IPExplorer.SetOpenRelated()
Relate:C2IPExplorer.Open ! File C2IPExplorer used by this procedure, so make sure it's RelationManager is open
SELF.FilesOpened = True
BRW1.Init(?Browse:1,Queue:Browse:1.ViewPosition,BRW1::View:Browse,Queue:Browse:1,Relate:myOrganization,SELF) ! Initialize the browse manager
BRW8.Init(?List,Queue:Browse.ViewPosition,BRW8::View:Browse,Queue:Browse,Relate:OrgTOO,SELF) ! Initialize the browse manager
BRW9.Init(?List:2,Queue:Browse:2.ViewPosition,BRW9::View:Browse,Queue:Browse:2,Relate:OrgMissions,SELF) ! Initialize the browse manager
BRW12.Init(?List:3,Queue:Browse:3.ViewPosition,BRW12::View:Browse,Queue:Browse:3,Relate:C2IPExplorer,SELF) ! Initialize the browse manager
BRW14.Init(?List:4,Queue:Browse:4.ViewPosition,BRW14::View:Browse,Queue:Browse:4,Relate:myOrgORBAT,SELF) ! Initialize the browse manager
SELF.Open(QuickWindow) ! Open window
Do DefineListboxStyle
BRW1.Q &= Queue:Browse:1
BRW1::Sort0:StepClass.Init(+ScrollSort:AllowAlpha) ! Moveable thumb based upon myOrg:ID for sort order 1
BRW1.AddSortOrder(BRW1::Sort0:StepClass,myOrg:PKID) ! Add the sort order for myOrg:PKID for sort order 1
BRW1.AddLocator(BRW1::Sort0:Locator) ! Browse has a locator for sort order 1
BRW1::Sort0:Locator.Init(,myOrg:ID,1,BRW1) ! Initialize the browse locator using using key: myOrg:PKID , myOrg:ID
BRW1.AddField(myOrg:ID,BRW1.Q.myOrg:ID) ! Field myOrg:ID is a hot field or requires assignment from browse
BRW1.AddField(myOrg:Name,BRW1.Q.myOrg:Name) ! Field myOrg:Name is a hot field or requires assignment from browse
BRW1.AddField(myOrg:Code,BRW1.Q.myOrg:Code) ! Field myOrg:Code is a hot field or requires assignment from browse
BRW8.Q &= Queue:Browse
BRW8.AddSortOrder(,OrgTOO:KOrganization) ! Add the sort order for OrgTOO:KOrganization for sort order 1
BRW8.AddRange(OrgTOO:Organization,Relate:OrgTOO,Relate:myOrganization) ! Add file relationship range limit for sort order 1
BRW8.AddLocator(BRW8::Sort0:Locator) ! Browse has a locator for sort order 1
BRW8::Sort0:Locator.Init(,OrgTOO:Organization,1,BRW8) ! Initialize the browse locator using using key: OrgTOO:KOrganization , OrgTOO:Organization
BRW8.AddField(TOO:Name,BRW8.Q.TOO:Name) ! Field TOO:Name is a hot field or requires assignment from browse
BRW8.AddField(TOO:Code,BRW8.Q.TOO:Code) ! Field TOO:Code is a hot field or requires assignment from browse
BRW8.AddField(OrgTOO:ID,BRW8.Q.OrgTOO:ID) ! Field OrgTOO:ID is a hot field or requires assignment from browse
BRW8.AddField(OrgTOO:Organization,BRW8.Q.OrgTOO:Organization) ! Field OrgTOO:Organization is a hot field or requires assignment from browse
BRW8.AddField(TOO:ID,BRW8.Q.TOO:ID) ! Field TOO:ID is a hot field or requires assignment from browse
BRW9.Q &= Queue:Browse:2
BRW9.AddSortOrder(,OrgMiss:KOrganization) ! Add the sort order for OrgMiss:KOrganization for sort order 1
BRW9.AddRange(OrgMiss:Organization,Relate:OrgMissions,Relate:myOrganization) ! Add file relationship range limit for sort order 1
BRW9.AddLocator(BRW9::Sort0:Locator) ! Browse has a locator for sort order 1
BRW9::Sort0:Locator.Init(,OrgMiss:Organization,1,BRW9) ! Initialize the browse locator using using key: OrgMiss:KOrganization , OrgMiss:Organization
BRW9.AddField(Miss:Name,BRW9.Q.Miss:Name) ! Field Miss:Name is a hot field or requires assignment from browse
BRW9.AddField(Miss:Code,BRW9.Q.Miss:Code) ! Field Miss:Code is a hot field or requires assignment from browse
BRW9.AddField(tpyMilOp:Name,BRW9.Q.tpyMilOp:Name) ! Field tpyMilOp:Name is a hot field or requires assignment from browse
BRW9.AddField(tpyMilOp:Code,BRW9.Q.tpyMilOp:Code) ! Field tpyMilOp:Code is a hot field or requires assignment from browse
BRW9.AddField(OrgMiss:ID,BRW9.Q.OrgMiss:ID) ! Field OrgMiss:ID is a hot field or requires assignment from browse
BRW9.AddField(OrgMiss:Organization,BRW9.Q.OrgMiss:Organization) ! Field OrgMiss:Organization is a hot field or requires assignment from browse
BRW9.AddField(Miss:ID,BRW9.Q.Miss:ID) ! Field Miss:ID is a hot field or requires assignment from browse
BRW9.AddField(tpyMilOp:ID,BRW9.Q.tpyMilOp:ID) ! Field tpyMilOp:ID is a hot field or requires assignment from browse
BRW12.Q &= Queue:Browse:3
BRW12.AddSortOrder(,C2IPExp:KOrganization) ! Add the sort order for C2IPExp:KOrganization for sort order 1
BRW12.AddRange(C2IPExp:Organization,Relate:C2IPExplorer,Relate:myOrganization) ! Add file relationship range limit for sort order 1
BRW12.AddLocator(BRW12::Sort0:Locator) ! Browse has a locator for sort order 1
BRW12::Sort0:Locator.Init(,C2IPExp:Organization,1,BRW12) ! Initialize the browse locator using using key: C2IPExp:KOrganization , C2IPExp:Organization
BRW12.AddField(tpyC2IP:Code,BRW12.Q.tpyC2IP:Code) ! Field tpyC2IP:Code is a hot field or requires assignment from browse
BRW12.AddField(C2IP:Name,BRW12.Q.C2IP:Name) ! Field C2IP:Name is a hot field or requires assignment from browse
BRW12.AddField(C2IPExp:ID,BRW12.Q.C2IPExp:ID) ! Field C2IPExp:ID is a hot field or requires assignment from browse
BRW12.AddField(C2IPExp:Organization,BRW12.Q.C2IPExp:Organization) ! Field C2IPExp:Organization is a hot field or requires assignment from browse
BRW12.AddField(C2IP:ID,BRW12.Q.C2IP:ID) ! Field C2IP:ID is a hot field or requires assignment from browse
BRW12.AddField(tpyC2IP:ID,BRW12.Q.tpyC2IP:ID) ! Field tpyC2IP:ID is a hot field or requires assignment from browse
BRW14.Q &= Queue:Browse:4
BRW14.AddSortOrder(,myOrgORB:KOrganization) ! Add the sort order for myOrgORB:KOrganization for sort order 1
BRW14.AddRange(myOrgORB:Organization,Relate:myOrgORBAT,Relate:myOrganization) ! Add file relationship range limit for sort order 1
BRW14.AddLocator(BRW14::Sort0:Locator) ! Browse has a locator for sort order 1
BRW14::Sort0:Locator.Init(,myOrgORB:Organization,1,BRW14) ! Initialize the browse locator using using key: myOrgORB:KOrganization , myOrgORB:Organization
BRW14.AddField(C2IP:Name,BRW14.Q.C2IP:Name) ! Field C2IP:Name is a hot field or requires assignment from browse
BRW14.AddField(tpyC2IP:Code,BRW14.Q.tpyC2IP:Code) ! Field tpyC2IP:Code is a hot field or requires assignment from browse
BRW14.AddField(myOrgORB:ID,BRW14.Q.myOrgORB:ID) ! Field myOrgORB:ID is a hot field or requires assignment from browse
BRW14.AddField(myOrgORB:Organization,BRW14.Q.myOrgORB:Organization) ! Field myOrgORB:Organization is a hot field or requires assignment from browse
BRW14.AddField(C2IP:ID,BRW14.Q.C2IP:ID) ! Field C2IP:ID is a hot field or requires assignment from browse
BRW14.AddField(tpyC2IP:ID,BRW14.Q.tpyC2IP:ID) ! Field tpyC2IP:ID is a hot field or requires assignment from browse
Resizer.Init(AppStrategy:Surface,Resize:SetMinSize) ! Controls like list boxes will resize, whilst controls like buttons will move
SELF.AddItem(Resizer) ! Add resizer to window manager
INIMgr.Fetch('View_myOrganization',QuickWindow) ! Restore window settings from non-volatile store
Resizer.Resize ! Reset required after window size altered by INI manager
BRW1.AskProcedure = 1 ! Will call: U_myOrganization
BRW8.AskProcedure = 2 ! Will call: U_OrgTOO
BRW9.AskProcedure = 3 ! Will call: View_OrgMissions
BRW12.AskProcedure = 4 ! Will call: U_C2IPExplorer
BRW14.AskProcedure = 5 ! Will call: U_myOrgORBAT
BRW1.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW1.ToolbarItem.HelpButton = ?Help
BRW8.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW8.ToolbarItem.HelpButton = ?Help
BRW9.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW9.ToolbarItem.HelpButton = ?Help
BRW12.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW12.ToolbarItem.HelpButton = ?Help
BRW14.AddToolbarTarget(Toolbar) ! Browse accepts toolbar control
BRW14.ToolbarItem.HelpButton = ?Help
SELF.SetAlerts()
RETURN ReturnValue
ThisWindow.Kill PROCEDURE
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Kill()
IF ReturnValue THEN RETURN ReturnValue.
IF SELF.FilesOpened
Relate:C2IPExplorer.Close
END
IF SELF.Opened
INIMgr.Update('View_myOrganization',QuickWindow) ! Save window data to non-volatile store
END
GlobalErrors.SetProcedureName
RETURN ReturnValue
ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request)
ReturnValue BYTE,AUTO
CODE
ReturnValue = PARENT.Run(Number,Request)
IF SELF.Request = ViewRecord
ReturnValue = RequestCancelled ! Always return RequestCancelled if the form was opened in ViewRecord mode
ELSE
GlobalRequest = Request
EXECUTE Number
U_myOrganization
U_OrgTOO
View_OrgMissions
U_C2IPExplorer
U_myOrgORBAT
END
ReturnValue = GlobalResponse
END
RETURN ReturnValue
BRW1.Init PROCEDURE(SIGNED ListBox,*STRING Posit,VIEW V,QUEUE Q,RelationManager RM,WindowManager WM)
CODE
SELF.SelectControl = ?Select:2