-
Notifications
You must be signed in to change notification settings - Fork 1
/
FormSiswa.frm
1153 lines (1105 loc) · 38 KB
/
FormSiswa.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
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
VERSION 5.00
Object = "{A8E5842E-102B-4289-9D57-3B3F5B5E15D3}#17.1#0"; "Codejock.Controls.v17.1.0.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{00025600-0000-0000-C000-000000000046}#5.2#0"; "Crystl32.OCX"
Begin VB.Form FormSiswa
BorderStyle = 3 'Fixed Dialog
Caption = "Form Data Siswa Baru"
ClientHeight = 8160
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 13995
Icon = "FormSiswa.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 8160
ScaleWidth = 13995
ShowInTaskbar = 0 'False
Begin Crystal.CrystalReport LaporanSiswa
Left = 360
Top = 240
_ExtentX = 741
_ExtentY = 741
_Version = 348160
PrintFileLinesPerPage= 60
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 7080
Top = 8160
Width = 6735
_ExtentX = 11880
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "tbl_calon"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 8160
Width = 6615
_ExtentX = 11668
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "tbl_siswa"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin XtremeSuiteControls.GroupBox GB_Judul
Height = 975
Left = 120
TabIndex = 0
Top = 0
Width = 13695
_Version = 1114113
_ExtentX = 24156
_ExtentY = 1720
_StockProps = 79
UseVisualStyle = -1 'True
Begin XtremeSuiteControls.Label Label_Judul
Height = 375
Left = 4320
TabIndex = 1
Top = 360
Width = 4050
_Version = 1114113
_ExtentX = 7144
_ExtentY = 661
_StockProps = 79
Caption = "FORM DATA &SISWA BARU"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
End
Begin XtremeSuiteControls.GroupBox GB_Isi
Height = 2535
Left = 120
TabIndex = 2
Top = 1080
Width = 13695
_Version = 1114113
_ExtentX = 24156
_ExtentY = 4471
_StockProps = 79
UseVisualStyle = -1 'True
Begin VB.TextBox TB_OrTu
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 9120
MaxLength = 25
TabIndex = 30
Text = "Nama Orang Tua"
Top = 360
Width = 4215
End
Begin VB.TextBox TB_NIS
Enabled = 0 'False
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2520
MaxLength = 10
TabIndex = 29
Text = "Nomor Induk Siswa"
Top = 840
Width = 3855
End
Begin VB.ComboBox Combo_Nomor
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
ItemData = "FormSiswa.frx":25CA
Left = 2520
List = "FormSiswa.frx":25D1
Style = 2 'Dropdown List
TabIndex = 28
Top = 360
Width = 3855
End
Begin VB.ComboBox Combo_Kelamin
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
ItemData = "FormSiswa.frx":25EC
Left = 2520
List = "FormSiswa.frx":25F9
Style = 2 'Dropdown List
TabIndex = 27
Top = 1800
Width = 3855
End
Begin VB.TextBox TB_Lahir
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 9120
MaxLength = 17
TabIndex = 14
Text = "Tempat Lahir"
Top = 1320
Width = 4215
End
Begin VB.TextBox TB_Alamat
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 9120
MaxLength = 25
TabIndex = 12
Text = "Alamat"
Top = 840
Width = 4215
End
Begin VB.TextBox TB_Nama
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2520
MaxLength = 25
TabIndex = 11
Text = "Nama Siswa"
Top = 1320
Width = 3855
End
Begin MSComCtl2.DTPicker DTPicker_Lahir
Height = 375
Left = 9120
TabIndex = 13
Top = 1800
Width = 4215
_ExtentX = 7435
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Format = 52690945
CurrentDate = 42820
End
Begin XtremeSuiteControls.Label Label_OrTu
Height = 240
Left = 7320
TabIndex = 10
Top = 435
Width = 1560
_Version = 1114113
_ExtentX = 2752
_ExtentY = 423
_StockProps = 79
Caption = "&Nama Orang Tua"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_TglLahir
Height = 240
Left = 7320
TabIndex = 9
Top = 1875
Width = 1245
_Version = 1114113
_ExtentX = 2196
_ExtentY = 423
_StockProps = 79
Caption = "&Tanggal Lahir"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_TmptLahir
Height = 240
Left = 7320
TabIndex = 8
Top = 1380
Width = 1185
_Version = 1114113
_ExtentX = 2090
_ExtentY = 423
_StockProps = 79
Caption = "&Tempat Lahir"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_Kelamin
Height = 240
Left = 360
TabIndex = 7
Top = 1875
Width = 1245
_Version = 1114113
_ExtentX = 2196
_ExtentY = 423
_StockProps = 79
Caption = "&Jenis Kelamin"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_Alamat
Height = 240
Left = 7320
TabIndex = 6
Top = 900
Width = 630
_Version = 1114113
_ExtentX = 1111
_ExtentY = 423
_StockProps = 79
Caption = "&Alamat"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_Nama
Height = 240
Left = 360
TabIndex = 5
Top = 1365
Width = 1140
_Version = 1114113
_ExtentX = 2011
_ExtentY = 423
_StockProps = 79
Caption = "&Nama Siswa"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_Nomor
Height = 240
Left = 360
TabIndex = 4
Top = 400
Width = 1455
_Version = 1114113
_ExtentX = 2566
_ExtentY = 423
_StockProps = 79
Caption = "&No. Pendaftaran"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
Begin XtremeSuiteControls.Label Label_NIS
Height = 240
Left = 360
TabIndex = 3
Top = 900
Width = 1725
_Version = 1114113
_ExtentX = 3043
_ExtentY = 423
_StockProps = 79
Caption = "&Nomor Induk Siswa"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AutoSize = -1 'True
End
End
Begin XtremeSuiteControls.GroupBox GB_Pencarian
Height = 975
Left = 120
TabIndex = 15
Top = 3840
Width = 8895
_Version = 1114113
_ExtentX = 15690
_ExtentY = 1720
_StockProps = 79
Caption = "Pencarian &Data"
UseVisualStyle = -1 'True
Begin VB.ComboBox Combo_Pencarian
Height = 315
ItemData = "FormSiswa.frx":2628
Left = 360
List = "FormSiswa.frx":263B
Style = 2 'Dropdown List
TabIndex = 17
Top = 405
Width = 2775
End
Begin VB.TextBox TB_Cari
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 3360
MaxLength = 40
TabIndex = 16
Text = "Pencarian"
Top = 360
Width = 3735
End
Begin XtremeSuiteControls.PushButton PB_Cari
Height = 375
Left = 7440
TabIndex = 18
Top = 345
Width = 1095
_Version = 1114113
_ExtentX = 1931
_ExtentY = 670
_StockProps = 79
Caption = " &Cari"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2689
End
End
Begin MSDataGridLib.DataGrid DG_Siswa
Bindings = "FormSiswa.frx":27C4
Height = 2145
Left = 120
TabIndex = 19
Top = 4920
Width = 10695
_ExtentX = 18865
_ExtentY = 3784
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
HeadLines = 2
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 8
BeginProperty Column00
DataField = "no_daftar"
Caption = "NO. DAFTAR"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "nis"
Caption = "NIS"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "nama"
Caption = "NAMA"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "alamat"
Caption = "ALAMAT"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "jenis_kelamin"
Caption = "JENIS KELAMIN"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column05
DataField = "tempat_lahir"
Caption = "TEMPAT LAHIR"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column06
DataField = "tanggal_lahir"
Caption = "TANGGAL LAHIR"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column07
DataField = "orang_tua"
Caption = "ORANG TUA"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1057
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1500,095
EndProperty
BeginProperty Column01
ColumnWidth = 1395,213
EndProperty
BeginProperty Column02
ColumnWidth = 3000,189
EndProperty
BeginProperty Column03
ColumnWidth = 3000,189
EndProperty
BeginProperty Column04
ColumnWidth = 2505,26
EndProperty
BeginProperty Column05
ColumnWidth = 2505,26
EndProperty
BeginProperty Column06
ColumnWidth = 3000,189
EndProperty
BeginProperty Column07
ColumnWidth = 1739,906
EndProperty
EndProperty
End
Begin XtremeSuiteControls.PushButton PB_Tambah
Height = 945
Left = 11040
TabIndex = 20
Top = 3915
Width = 1320
_Version = 1114113
_ExtentX = 2328
_ExtentY = 1667
_StockProps = 79
Caption = " &Tambah"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":27D9
End
Begin XtremeSuiteControls.PushButton PB_SU
Height = 945
Left = 12480
TabIndex = 21
Top = 3915
Width = 1320
_Version = 1114113
_ExtentX = 2328
_ExtentY = 1667
_StockProps = 79
Caption = " &Simpan"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":28A8
End
Begin XtremeSuiteControls.PushButton PB_Edit
Height = 945
Left = 11040
TabIndex = 22
Top = 5025
Width = 1320
_Version = 1114113
_ExtentX = 2328
_ExtentY = 1667
_StockProps = 79
Caption = " &Edit"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2A65
End
Begin XtremeSuiteControls.PushButton PB_Hapus
Height = 945
Left = 12480
TabIndex = 23
Top = 5025
Width = 1320
_Version = 1114113
_ExtentX = 2328
_ExtentY = 1667
_StockProps = 79
Caption = " &Hapus"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2C0F
End
Begin XtremeSuiteControls.PushButton PB_Batal
Height = 945
Left = 11040
TabIndex = 24
Top = 6135
Width = 2790
_Version = 1114113
_ExtentX = 4921
_ExtentY = 1667
_StockProps = 79
Caption = " &Batal"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2CDC
End
Begin XtremeSuiteControls.PushButton PB_Keluar
Height = 825
Left = 120
TabIndex = 25
Top = 7200
Width = 13725
_Version = 1114113
_ExtentX = 24209
_ExtentY = 1455
_StockProps = 79
Caption = " &Keluar"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2D7B
End
Begin XtremeSuiteControls.PushButton PB_Cetak
Height = 900
Left = 9240
TabIndex = 26
Top = 3915
Width = 1575
_Version = 1114113
_ExtentX = 2787
_ExtentY = 1587
_StockProps = 79
Caption = " &Cetak"
UseVisualStyle = -1 'True
Picture = "FormSiswa.frx":2F1D
End
End
Attribute VB_Name = "FormSiswa"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Import Library Database
Dim Koneksi As ADODB.Connection
Dim RSSiswa As ADODB.Recordset
Dim RSCalon As ADODB.Recordset
'Untuk Tombol Simpan dan Update
Private BTFungsi As Integer
Option Explicit
Private Sub BukaDB()
'Untuk Koneksi adodb
Set Koneksi = New ADODB.Connection
'Untuk Memanggil database access yang sudah di buat
Set RSSiswa = New ADODB.Recordset
Koneksi.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database\db_siswabaru.mdb;Persist Security Info=False"
End Sub
Private Sub DataTable()
'Memanggil Database dan Table ke Adodc
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database\db_siswabaru.mdb;Persist Security Info=False"
Adodc1.RecordSource = "tbl_siswa"
Adodc1.Refresh
DG_Siswa.Refresh
Set DG_Siswa.DataSource = Adodc1
Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database\db_siswabaru.mdb;Persist Security Info=False"
Adodc2.RecordSource = "SELECT * FROM tbl_calon"
Adodc2.Refresh
With Adodc2.Recordset
Do Until .EOF
Combo_Nomor.AddItem !no_daftar
.MoveNext
Loop
End With
End Sub
Private Sub KodeOtomatis()
Call BukaDB
RSSiswa.Open ("SELECT * FROM tbl_siswa WHERE nis IN(SELECT MAX(nis)FROM tbl_siswa) order by nis DESC"), Koneksi
RSSiswa.Requery
Dim Urutan As String * 10
Dim Hitung As Long
With RSSiswa
If .EOF Then
Urutan = "NS-" + "000001"
TB_NIS.Text = Urutan
Else
Hitung = Right(!nis, 6) + 1
Urutan = "NS-" + Right("000000" & Hitung, 6)
End If
TB_NIS.Text = Urutan
End With
End Sub
Private Sub IsianAwal()
'Isian Awal
Combo_Nomor.ListIndex = 0
TB_NIS.Text = "Nomor Induk Siswa"
TB_Nama.Text = "Nama Siswa"
TB_Alamat.Text = "Alamat"
Combo_Kelamin.ListIndex = 0
TB_Lahir.Text = "Tempat Lahir"
DTPicker_Lahir.Value = Now
TB_OrTu.Text = "Nama Orang Tua"
TB_Cari.Text = ""
Combo_Pencarian.ListIndex = 0
End Sub
Private Sub IsianBersih()
'Isian Bersih
Combo_Nomor.ListIndex = 0
TB_Nama.Text = ""
TB_Alamat.Text = ""
Combo_Kelamin.ListIndex = 0
TB_Lahir.Text = ""
DTPicker_Lahir.Value = Now
TB_OrTu.Text = ""
TB_Cari.Text = ""
Combo_Pencarian.ListIndex = 0
End Sub
Private Sub IsianTidakBisa()
'Isian Tidak Bisa
Combo_Nomor.Enabled = False
TB_Nama.Enabled = False
TB_Alamat.Enabled = False
Combo_Kelamin.Enabled = False
TB_Lahir.Enabled = False
DTPicker_Lahir.Enabled = False
TB_OrTu.Enabled = False
End Sub
Private Sub IsianBisa()
Combo_Nomor.Enabled = True
TB_Nama.Enabled = True
TB_Alamat.Enabled = True
Combo_Kelamin.Enabled = True
TB_Lahir.Enabled = True
DTPicker_Lahir.Enabled = True
TB_OrTu.Enabled = True
End Sub
Private Sub TombolAwal()
'Tombol Awal
PB_Tambah.Enabled = True
PB_SU.Caption = "&Simpan"
PB_SU.Enabled = False
PB_Edit.Enabled = False
PB_Hapus.Enabled = False
PB_Batal.Enabled = True
End Sub
Private Sub Form_Load()
'StartupPosition
Me.Left = (MenuUtama.ScaleWidth - Me.Width) / 2
Me.Top = (MenuUtama.ScaleHeight - Me.Height) / 2
'Memanggil Method Koneksi Database yang sudah di buat
Call BukaDB
'Memanggil Method DataTable yang sudah di buat
Call DataTable
'Memanggil Method yang telah dibuat
Call IsianAwal
Call IsianTidakBisa
Call TombolAwal
End Sub
Private Sub PB_Tambah_Click()
'Untuk Funsi Tombol simpan 1
BTFungsi = 1
'Tombol Berganti nama jadi simpan
PB_SU.Caption = "&Simpan"
'Tombol Simpan bisa digunakan
PB_SU.Enabled = True
'Tombol Tambah tidak bisa digunakan
PB_Tambah.Enabled = False
'memanggil methor isianbersih, isianbisa agar textbox bisa diisi
Call IsianBersih
Call IsianBisa
'Membuat Nomor Pendaftaran Otomatis
Call KodeOtomatis
'Ketika tombol Tambah di klik kursor langsung diarahkan ke Textbox Nama Sekolah
TB_Nama.SetFocus
End Sub
Private Sub PB_SU_Click()
If BTFungsi = 1 Then
If TB_Nama.Text = "" Or TB_Alamat.Text = "" Or TB_NIS.Text = "" Or Combo_Kelamin.ListIndex = 0 Then
MsgBox "Harap di isi data yang masih kosong !", vbInformation + vbOKOnly, "Informasi"
TB_Nama.SetFocus
Else
Adodc1.Recordset.AddNew
Adodc1.Recordset!no_daftar = Combo_Nomor.Text
Adodc1.Recordset!nis = TB_NIS.Text
Adodc1.Recordset!nama = TB_Nama.Text
Adodc1.Recordset!alamat = TB_Alamat.Text
Adodc1.Recordset!jenis_kelamin = Combo_Kelamin.Text
Adodc1.Recordset!tempat_lahir = TB_Lahir.Text
Adodc1.Recordset!tanggal_lahir = DTPicker_Lahir.Value
Adodc1.Recordset!orang_tua = TB_OrTu.Text
Adodc1.Recordset.Update
MsgBox "Data berhasil di simpan...", vbInformation + vbOKOnly, "Informasi"
'DataGrid di refresh
DG_Siswa.Refresh
'Memanggil Method IsianAwal, IsianTidakBisa dan TombolAwal yang sudah di buat
Call IsianAwal
Call IsianTidakBisa
Call TombolAwal
End If