-
Notifications
You must be signed in to change notification settings - Fork 1
/
MenuUtama.frm
406 lines (388 loc) · 13.6 KB
/
MenuUtama.frm
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
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{00025600-0000-0000-C000-000000000046}#5.2#0"; "Crystl32.OCX"
Begin VB.MDIForm MenuUtama
BackColor = &H8000000C&
Caption = "APLIKASI Penerimaan Siswa Baru (PSB)"
ClientHeight = 9720
ClientLeft = 120
ClientTop = 765
ClientWidth = 19755
Icon = "MenuUtama.frx":0000
LinkTopic = "MDIForm1"
Picture = "MenuUtama.frx":25CA
StartUpPosition = 2 'CenterScreen
WindowState = 2 'Maximized
Begin ComctlLib.Toolbar Toolbars
Align = 1 'Align Top
Height = 540
Left = 0
TabIndex = 0
Top = 0
Width = 19755
_ExtentX = 34846
_ExtentY = 953
ButtonWidth = 820
ButtonHeight = 794
Appearance = 1
ImageList = "ImageList_TB"
_Version = 327682
BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7}
NumButtons = 12
BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7}
Caption = "Jeda1"
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7}
Caption = "Jeda2"
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbSekolah"
Object.ToolTipText = "Data Sekolah Asal"
Object.Tag = ""
ImageIndex = 1
EndProperty
BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbCalon"
Object.ToolTipText = "Data Calon Siswa"
Object.Tag = ""
ImageIndex = 2
EndProperty
BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbSiswa"
Object.ToolTipText = "Data Siswa Baru"
Object.Tag = ""
ImageIndex = 3
EndProperty
BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7}
Caption = "Jeda3"
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbLapSekolah"
Object.ToolTipText = "Laporan Sekolah Asal"
Object.Tag = ""
ImageIndex = 4
Object.Width = 1e-4
EndProperty
BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbLapCalon"
Object.ToolTipText = "Laporan Calon Siswa"
Object.Tag = ""
ImageIndex = 5
EndProperty
BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbLapSiswa"
Object.ToolTipText = "Laporan Siswa Baru"
Object.Tag = ""
ImageIndex = 6
EndProperty
BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7}
Caption = "Jeda4"
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "tbTentang"
Object.ToolTipText = "Tentang Aplikasi"
Object.Tag = ""
ImageIndex = 7
EndProperty
BeginProperty Button12 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = "Jeda5"
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
EndProperty
End
Begin ComctlLib.StatusBar StatusBars
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 1
Top = 9345
Width = 19755
_ExtentX = 34846
_ExtentY = 661
SimpleText = ""
_Version = 327682
BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
NumPanels = 2
BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
Style = 6
Alignment = 1
Text = "Jam"
TextSave = "19/04/2017"
Key = ""
Object.Tag = ""
Object.ToolTipText = "Tanggal"
EndProperty
BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7}
Style = 5
Alignment = 1
TextSave = "21.37"
Key = ""
Object.Tag = ""
Object.ToolTipText = "Jam"
EndProperty
EndProperty
End
Begin Crystal.CrystalReport LaporanRayon
Left = 720
Top = 1320
_ExtentX = 741
_ExtentY = 741
_Version = 348160
PrintFileLinesPerPage= 60
End
Begin Crystal.CrystalReport LaporanCalon
Left = 1200
Top = 1800
_ExtentX = 741
_ExtentY = 741
_Version = 348160
PrintFileLinesPerPage= 60
End
Begin Crystal.CrystalReport LaporanSiswa
Left = 1680
Top = 2280
_ExtentX = 741
_ExtentY = 741
_Version = 348160
PrintFileLinesPerPage= 60
End
Begin ComctlLib.ImageList ImageList_TB
Left = 1920
Top = 1200
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 24
ImageHeight = 24
MaskColor = 12632256
UseMaskColor = 0 'False
_Version = 327682
BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
NumListImages = 7
BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9D4F2
Key = "lgSekolah"
EndProperty
BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9DD0C
Key = "lgCalon"
EndProperty
BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9E526
Key = "lgSiswa"
EndProperty
BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9ED40
Key = "lgLapSekolah"
EndProperty
BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9F55A
Key = "lgLapCalon"
EndProperty
BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":9FD74
Key = "lgLapSiswa"
EndProperty
BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "MenuUtama.frx":A058E
Key = "lgTentang"
EndProperty
EndProperty
End
Begin VB.Menu mnFile
Caption = "&File"
Begin VB.Menu mnLogOut
Caption = "Log &Out"
Shortcut = ^O
End
Begin VB.Menu mnJeda1
Caption = "-"
End
Begin VB.Menu mnKeluar
Caption = "&Keluar"
Shortcut = ^K
End
End
Begin VB.Menu mnData
Caption = "&Master Data"
Begin VB.Menu mnSekolah
Caption = "Data &Sekolah Asal"
Shortcut = ^A
End
Begin VB.Menu mnJeda3
Caption = "-"
End
Begin VB.Menu mnCalon
Caption = "Data &Calon Siswa"
Shortcut = ^S
End
Begin VB.Menu mnJeda4
Caption = "-"
End
Begin VB.Menu mnSiswa
Caption = "Data &Siswa Baru"
Shortcut = ^B
End
End
Begin VB.Menu mnLaporan
Caption = "&Laporan"
Begin VB.Menu mnLapSekolah
Caption = "Laporan &Sekolah Asal"
Shortcut = ^Z
End
Begin VB.Menu mnJeda5
Caption = "-"
End
Begin VB.Menu mnLapCalon
Caption = "Laporan &Calon Siswa"
Shortcut = ^X
End
Begin VB.Menu mnJeda6
Caption = "-"
End
Begin VB.Menu mnLapSiswa
Caption = "Laporan &Siswa Baru"
Shortcut = ^C
End
End
Begin VB.Menu mnBantuan
Caption = "&Bantuan"
Begin VB.Menu mnTentang
Caption = "&Tentang"
Shortcut = ^T
End
End
End
Attribute VB_Name = "MenuUtama"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub MDIForm_Unload(Cancel As Integer)
'pilihan pesan untuk batal
If (MsgBox("Kamu yakin mau keluar aplikasi ?", vbYesNo, "Konfirmasi") = vbYes) Then
'pilihan 1
End
Else
'pilihan 2
Cancel = True
End If
End Sub
Private Sub mnCalon_Click()
'Form Calon tampil dengan new tab
Dim FCalon As New FormCalon
FCalon.Show
End Sub
Private Sub mnKeluar_Click()
'pilihan pesan untuk batal
If (MsgBox("Kamu yakin mau keluar aplikasi ?", vbYesNo, "Konfirmasi") = vbYes) Then
'pilihan 1
End
Else
'pilihan 2
End If
End Sub
Private Sub mnLapCalon_Click()
LaporanCalon.ReportFileName = App.Path + "\LapCalon.Rpt"
LaporanCalon.DiscardSavedData = True
LaporanCalon.Destination = crptToWindow
LaporanCalon.WindowState = crptMaximized
LaporanCalon.PrintReport
End Sub
Private Sub mnLapSekolah_Click()
LaporanRayon.ReportFileName = App.Path + "\LapRayon.Rpt"
LaporanRayon.DiscardSavedData = True
LaporanRayon.Destination = crptToWindow
LaporanRayon.WindowState = crptMaximized
LaporanRayon.PrintReport
End Sub
Private Sub mnLapSiswa_Click()
LaporanSiswa.ReportFileName = App.Path + "\LapSiswa.Rpt"
LaporanSiswa.DiscardSavedData = True
LaporanSiswa.Destination = crptToWindow
LaporanSiswa.WindowState = crptMaximized
LaporanSiswa.PrintReport
End Sub
Private Sub mnLogOut_Click()
'MenuUTama tidak bisa digunakan
MenuUtama.Enabled = False
'Form Login tampil dengan new tab
Dim FLogin As New FormLogin
FLogin.Show
End Sub
Private Sub mnSekolah_Click()
'Form Login tampil dengan new tab
Dim FRayon As New FormRayon
FRayon.Show
End Sub
Private Sub mnSiswa_Click()
'Form Siswa tampil dengan new tab
Dim FSiswa As New FormSiswa
FSiswa.Show
End Sub
Private Sub mnTentang_Click()
'MenuUTama tidak bisa digunakan
MenuUtama.Enabled = False
'Form Tentang tampil dengan new tab
Dim FTentang As New FormTentang
FTentang.Show
End Sub
Private Sub Toolbars_ButtonClick(ByVal Toolbars As Button)
Select Case Toolbars.Key
Case Is = "tbSekolah"
'Form Login tampil dengan new tab
Dim FRayon As New FormRayon
FRayon.Show
Case Is = "tbCalon"
'Form Login tampil dengan new tab
Dim FCalon As New FormCalon
FCalon.Show
Case Is = "tbSiswa"
'Form Login tampil dengan new tab
Dim FSiswa As New FormSiswa
FSiswa.Show
Case Is = "tbLapSekolah"
LaporanRayon.ReportFileName = App.Path + "\LapRayon.Rpt"
LaporanRayon.DiscardSavedData = True
LaporanRayon.Destination = crptToWindow
LaporanRayon.WindowState = crptMaximized
LaporanRayon.PrintReport
Case Is = "tbLapCalon"
LaporanCalon.ReportFileName = App.Path + "\LapCalon.Rpt"
LaporanRayon.DiscardSavedData = True
LaporanCalon.Destination = crptToWindow
LaporanCalon.WindowState = crptMaximized
LaporanCalon.PrintReport
Case Is = "tbLapSiswa"
LaporanSiswa.ReportFileName = App.Path + "\LapSiswa.Rpt"
LaporanRayon.DiscardSavedData = True
LaporanSiswa.Destination = crptToWindow
LaporanSiswa.WindowState = crptMaximized
LaporanSiswa.PrintReport
Case Is = "tbTentang"
'MenuUTama tidak bisa digunakan
MenuUtama.Enabled = False
'Form Tentang tampil dengan new tab
Dim FTentang As New FormTentang
FTentang.Show
End Select
End Sub