-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmDownloadResults.frm
993 lines (948 loc) · 33.6 KB
/
frmDownloadResults.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
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "ieframe.dll"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "mshflxgd.ocx"
Object = "{4C5605EA-720A-490B-820A-E3CDEE939855}#1.0#0"; "vkusercontrolsxp.ocx"
Begin VB.Form frmDownloadResults
BorderStyle = 0 'None
ClientHeight = 8790
ClientLeft = 0
ClientTop = 0
ClientWidth = 13230
MDIChild = -1 'True
ScaleHeight = 8790
ScaleWidth = 13230
ShowInTaskbar = 0 'False
Begin vkUserContolsXP.vkCommand cmdNext
Height = 375
Left = 6840
TabIndex = 17
Top = 8160
Width = 3015
_ExtentX = 5318
_ExtentY = 661
Caption = "Skip"
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
End
Begin vkUserContolsXP.vkCommand cmdInsertMarks
Height = 375
Left = 9960
TabIndex = 16
Top = 7680
Width = 3015
_ExtentX = 5318
_ExtentY = 661
Caption = "Insert Marks Of"
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
End
Begin VB.ComboBox cmbURL
Height = 315
Left = 600
TabIndex = 13
Top = 480
Width = 12495
End
Begin vkUserContolsXP.vkLabel vkLabel7
Height = 255
Left = 120
TabIndex = 12
Top = 480
Width = 495
_ExtentX = 873
_ExtentY = 450
BackColor = 16777215
BackStyle = 0
Caption = "URL:"
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
End
Begin JURA.StylerButton btnClose
Height = 255
Left = 12720
TabIndex = 11
Top = 0
Width = 375
_ExtentX = 661
_ExtentY = 450
Caption = "X"
CaptionDisableColor= 12236471
CaptionEffectColor= 16777215
FocusDottedRect = 0 'False
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
RoundedValue = 3
End
Begin vkUserContolsXP.vkFrame vkFrame1
Height = 2895
Left = 6720
TabIndex = 2
Top = 5760
Width = 6375
_ExtentX = 11245
_ExtentY = 5106
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
ShowTitle = 0 'False
Begin vkUserContolsXP.vkLabel lblSec
Height = 270
Left = 4440
TabIndex = 35
TabStop = 0 'False
Top = 600
Width = 735
_ExtentX = 1296
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Section:"
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
End
Begin VB.ComboBox cmbMarksSec
Height = 315
Left = 4440
TabIndex = 34
Top = 840
Width = 975
End
Begin vkUserContolsXP.vkCommand cmdStudName
Height = 375
Left = 120
TabIndex = 24
Top = 1920
Width = 3015
_ExtentX = 5318
_ExtentY = 661
Caption = "Insert Names"
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
End
Begin vkUserContolsXP.vkCommand cmdAuto
Height = 375
Left = 3240
TabIndex = 23
Top = 2400
Width = 3015
_ExtentX = 5318
_ExtentY = 661
Caption = "Auto Insert Marks"
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
End
Begin VB.ComboBox cmbBatch
Height = 315
Left = 2040
TabIndex = 22
Top = 840
Width = 1095
End
Begin vkUserContolsXP.vkCommand cmdGo
Height = 375
Left = 5640
TabIndex = 20
Top = 840
Width = 615
_ExtentX = 1085
_ExtentY = 661
Caption = "Go"
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
End
Begin VB.ComboBox cmbSem
Height = 315
Left = 3240
TabIndex = 19
Top = 840
Width = 1095
End
Begin VB.ComboBox cmbDept
Height = 315
Left = 120
TabIndex = 18
Top = 840
Width = 1815
End
Begin VB.ComboBox cmbEndRegNo
Height = 315
Left = 3240
TabIndex = 15
Top = 1440
Width = 3015
End
Begin VB.ComboBox cmbStartRegNo
Height = 315
Left = 120
TabIndex = 14
Top = 1440
Width = 3015
End
Begin vkUserContolsXP.vkLabel lblRegNo
Height = 270
Left = 960
TabIndex = 10
TabStop = 0 'False
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 476
BorderStyle = 1
BackColor = 16777215
BackStyle = 0
Caption = ""
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
Alignment = 2
End
Begin vkUserContolsXP.vkLabel vkLabel6
Height = 270
Left = 120
TabIndex = 9
TabStop = 0 'False
Top = 600
Width = 495
_ExtentX = 873
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Dept:"
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
End
Begin vkUserContolsXP.vkLabel vkLabel5
Height = 270
Left = 3240
TabIndex = 8
TabStop = 0 'False
Top = 600
Width = 735
_ExtentX = 1296
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Semester:"
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
End
Begin vkUserContolsXP.vkLabel vkLabel4
Height = 270
Left = 3240
TabIndex = 7
TabStop = 0 'False
Top = 1200
Width = 1695
_ExtentX = 2990
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Ending Reg No:"
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
End
Begin vkUserContolsXP.vkLabel vkLabel3
Height = 270
Left = 120
TabIndex = 6
TabStop = 0 'False
Top = 1200
Width = 1695
_ExtentX = 2990
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Starting Reg No:"
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
End
Begin vkUserContolsXP.vkLabel vkLabel2
Height = 270
Left = 2640
TabIndex = 5
TabStop = 0 'False
Top = 240
Width = 615
_ExtentX = 1085
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Name:"
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
End
Begin vkUserContolsXP.vkLabel vkLabel1
Height = 270
Left = 120
TabIndex = 4
TabStop = 0 'False
Top = 240
Width = 735
_ExtentX = 1296
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Reg No:"
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
End
Begin vkUserContolsXP.vkLabel lblName
Height = 270
Left = 3360
TabIndex = 3
TabStop = 0 'False
Top = 240
Width = 2895
_ExtentX = 5106
_ExtentY = 476
BorderStyle = 1
BackColor = 16777215
BackStyle = 0
Caption = ""
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
Alignment = 2
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Batch:"
Height = 255
Left = 2160
TabIndex = 21
Top = 600
Width = 495
End
End
Begin SHDocVwCtl.WebBrowser WebBrowser1
Height = 4695
Left = 120
TabIndex = 1
TabStop = 0 'False
Top = 960
Width = 12975
ExtentX = 22886
ExtentY = 8281
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
NoWebView = 0 'False
HideFileNames = 0 'False
SingleClick = 0 'False
SingleSelection = 0 'False
NoFolders = 0 'False
Transparent = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = ""
End
Begin vkUserContolsXP.vkFrame fDownloadResult
Height = 8790
Left = 0
TabIndex = 0
Top = 0
Width = 13230
_ExtentX = 23336
_ExtentY = 15505
Caption = "Download Results"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
TitleGradient = 2
TitleHeight = 360
BorderWidth = 2
Begin vkUserContolsXP.vkFrame vkFrame2
Height = 2895
Left = 120
TabIndex = 25
Top = 5760
Width = 6495
_ExtentX = 11456
_ExtentY = 5106
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
ShowTitle = 0 'False
Begin vkUserContolsXP.vkFrame fStudName
Height = 2895
Left = 0
TabIndex = 27
Top = 0
Visible = 0 'False
Width = 6495
_ExtentX = 11456
_ExtentY = 5106
Caption = ""
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
ShowTitle = 0 'False
TitleGradient = 2
Begin VB.ComboBox cmbSec
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 = 4080
TabIndex = 33
Top = 600
Width = 1215
End
Begin vkUserContolsXP.vkCommand cmdClose
Height = 495
Left = 240
TabIndex = 32
Top = 2160
Width = 6015
_ExtentX = 10610
_ExtentY = 873
Caption = "Close Menu"
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
End
Begin vkUserContolsXP.vkCommand cmdInsert
Height = 495
Left = 240
TabIndex = 31
Top = 1080
Width = 6015
_ExtentX = 10610
_ExtentY = 873
Caption = "Insert Name Of"
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
End
Begin vkUserContolsXP.vkCommand cmdStudGo
Height = 375
Left = 5520
TabIndex = 30
Top = 600
Width = 735
_ExtentX = 1296
_ExtentY = 661
Caption = "Go"
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
End
Begin vkUserContolsXP.vkTextBox txtStart
Height = 375
Left = 240
TabIndex = 29
Top = 600
Width = 3615
_ExtentX = 6376
_ExtentY = 661
BeginProperty LegendFont {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
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
LegendForeColor = 16750899
End
Begin vkUserContolsXP.vkLabel lblStart
Height = 270
Left = 240
TabIndex = 28
TabStop = 0 'False
Top = 360
Width = 1695
_ExtentX = 2990
_ExtentY = 476
BackColor = 16777215
BackStyle = 0
Caption = "Starting Reg No:"
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
End
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1
Height = 2535
Left = 120
TabIndex = 26
TabStop = 0 'False
Top = 120
Width = 6255
_ExtentX = 11033
_ExtentY = 4471
_Version = 393216
Rows = 1
Cols = 6
FixedRows = 0
FixedCols = 0
BackColorBkg = -2147483634
ScrollBars = 2
Appearance = 0
_NumberOfBands = 1
_Band(0).Cols = 6
End
End
End
End
Attribute VB_Name = "frmDownloadResults"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Long)
Dim reg As Double
Dim icount As Integer
Dim Index As Integer
Dim document As MSHTML.HTMLDocument
Dim btn As MSHTML.HTMLButtonElement
Dim element As MSHTML.HTMLBaseElement
Dim frm As MSHTML.HTMLFormElement
Dim Tbl As MSHTML.HTMLTable
Dim tr As MSHTML.HTMLTableRow
Dim tc As MSHTML.HTMLTableCell
Dim inp As MSHTML.HTMLInputElement
Dim spa As MSHTML.HTMLSpanElement
Dim fDC As Boolean
Private Sub btnClose_Click()
Unload Me
End Sub
Private Sub cmbBatch_Change()
Call cmbBatch_Click
End Sub
Private Sub cmbBatch_Click()
iBatch = cmbBatch.Text
Call cmbRegNo_Load(cmbStartRegNo)
Call cmbRegNo_Load(cmbEndRegNo)
cmbStartRegNo.Text = cmbStartRegNo.List(Index)
cmbEndRegNo.Text = cmbEndRegNo.List(cmbEndRegNo.ListCount - 1)
End Sub
Private Sub cmbDept_Change()
Call cmbDept_Click
End Sub
Private Sub cmbDept_Click()
iDept = Department(cmbDept)
Call cmbRegNo_Load(cmbStartRegNo)
Call cmbRegNo_Load(cmbEndRegNo)
cmbStartRegNo.Text = cmbStartRegNo.List(Index)
cmbEndRegNo.Text = cmbEndRegNo.List(cmbEndRegNo.ListCount - 1)
End Sub
Private Sub cmbMarksSec_Change()
strSec = cmbMarksSec.Text
Call cmbRegNo_Load(cmbStartRegNo)
Call cmbRegNo_Load(cmbEndRegNo)
cmbStartRegNo.Text = cmbStartRegNo.List(Index)
cmbEndRegNo.Text = cmbEndRegNo.List(cmbEndRegNo.ListCount - 1)
End Sub
Private Sub cmbMarksSec_Click()
strSec = cmbMarksSec.Text
Call cmbRegNo_Load(cmbStartRegNo)
Call cmbRegNo_Load(cmbEndRegNo)
cmbStartRegNo.Text = cmbStartRegNo.List(Index)
cmbEndRegNo.Text = cmbEndRegNo.List(cmbEndRegNo.ListCount - 1)
End Sub
Private Sub cmbSem_Change()
Call cmbSem_Click
End Sub
Private Sub cmbSem_Click()
iSem = cmbSem.Text
End Sub
Private Sub cmbStartRegNo_Click()
Index = cmbStartRegNo.ListIndex
End Sub
Private Sub cmbURL_Change()
' Reload
End Sub
Private Sub cmbURL_Click()
' Reload
End Sub
Private Sub CmdClose_Click()
fStudName.Visible = False
End Sub
Private Sub cmdGo_Click()
On Error Resume Next
reg = cmbStartRegNo.Text
Reload
cmdInsertMarks.Caption = "Insert Marks Of " & reg
cmdNext.Caption = "Skip " & reg
cmdNext.Visible = True
cmdInsertMarks.Visible = True
End Sub
Private Sub cmdInsert_Click()
On Error Resume Next
Dim rs As New ADODB.Recordset
Dim sql As String
rs.CursorLocation = adUseClient
sql = "insert into studdetails (regno,studname,sec) values('" & txtStart.Text & "','" & lblName.Caption & "','" & cmbSec.Text & "')"
rs.Open sql, conn, adOpenDynamic, adLockOptimistic, 1
If Err.Number <> 0 Then
MsgBox Error & vbCrLf & "Error Number: " & Err.Number
End If
reg = reg + 1
txtStart.Text = reg
cmdInsert.Caption = "Insert Name Of " & reg
Reload
End Sub
Private Sub cmdInsertName_Click()
On Error Resume Next
Dim rs As New ADODB.Recordset
Dim qr As String
Dim regno As String
Dim name As String
'If reg > cmbEndRegNo.Text Then
'MsgBox "Last Reg No Reached"
'Exit Sub
'End If
If lblRegNo.Caption = "" Then
Exit Sub
End If
regno = lblRegNo.Caption
name = lblName.Caption
rs.CursorLocation = adUseClient
qr = "insert into studdetails (regno,studname) values('" & regno & "','" & name & "')"
rs.Open qr, conn, adOpenDynamic, adLockOptimistic, 1
If Err.Number <> 0 Then
MsgBox Error & vbCrLf & "Error Number: " & Err.Number
Else
'MsgBox "Inserted"
End If
reg = reg + 1
cmdInsertMarks.Caption = "Insert Marks Of " & reg
cmdInsertName.Caption = "Insert Name Of " & reg
cmdNext.Caption = "Skip " & reg
Reload
End Sub
Private Sub cmdNext_Click()
Index = Index + 1
reg = cmbStartRegNo.List(Index)
cmdNext.Caption = "Skip " & reg
cmdInsertMarks.Caption = "Insert Marks Of " & reg
Reload
End Sub
Private Sub cmdInsertMarks_Click()
On Error Resume Next
Dim rs As New ADODB.Recordset
Dim qr As String
Dim iRows As Integer
Dim strGrade As String
Dim iGrade As Integer
iRows = 0
rs.CursorLocation = adUseClient
If reg > cmbEndRegNo.Text Then
MsgBox "Last Reg No Reached"
Exit Sub
End If
For i = 0 To MSHFlexGrid1.rows - 1
If MSHFlexGrid1.TextMatrix(i, 2) = "AB" Then
MSHFlexGrid1.TextMatrix(i, 2) = "NULL"
End If
If MSHFlexGrid1.TextMatrix(i, 1) = "--" Then
MSHFlexGrid1.TextMatrix(i, 1) = "0"
End If
If cmbBatch.Text > 2007 Then
strGrade = MSHFlexGrid1.TextMatrix(i, 3)
Select Case strGrade
Case "S"
iGrade = 10
Case "A"
iGrade = 9
Case "B"
iGrade = 8
Case "C"
iGrade = 7
Case "D"
iGrade = 6
Case "E"
iGrade = 5
Case "I"
iGrade = 0
Case "W"
iGrade = 0
Case "U"
iGrade = 0
Case "AB"
iGrade = 0
End Select
qr = "insert into studmarks (regno,semno,dept,batch,subjcode,internals,grade,value,result) values('" & lblRegNo.Caption & "'," & GetSubjSem(MSHFlexGrid1.TextMatrix(i, 0), iDept, Mid(iBatch, 3, 2)) & ", " & iDept & "," & Mid(lblRegNo.Caption, 4, 2) & ",'" & MSHFlexGrid1.TextMatrix(i, 0) & "'," & CInt(Trim(MSHFlexGrid1.TextMatrix(i, 2))) & ",'" & Trim(MSHFlexGrid1.TextMatrix(i, 3)) & "'," & iGrade & ",'" & Trim(MSHFlexGrid1.TextMatrix(i, 4)) & "')"
Else
qr = "insert into studmarks (regno,semno,dept,batch,subjcode,internals,externals,result) values('" & lblRegNo.Caption & "'," & GetSubjSem(MSHFlexGrid1.TextMatrix(i, 0), iDept, Mid(iBatch, 3, 2)) & ", " & iDept & "," & Mid(lblRegNo.Caption, 4, 2) & ",'" & MSHFlexGrid1.TextMatrix(i, 0) & "'," & MSHFlexGrid1.TextMatrix(i, 2) & "," & MSHFlexGrid1.TextMatrix(i, 3) & ",'" & Trim(MSHFlexGrid1.TextMatrix(i, 5)) & "')"
'MsgBox qr
End If
rs.Open qr, conn, adOpenDynamic, adLockOptimistic, 1
iRows = iRows + 1
Next i
If Err.Number <> 0 Then
MsgBox Error & vbCrLf & "Error Number: " & Err.Number
Else
'MsgBox "Inserted"
End If
Index = Index + 1
reg = cmbStartRegNo.List(Index)
cmdInsertMarks.Caption = "Insert Marks Of " & reg
cmdNext.Caption = "Skip " & reg
MSHFlexGrid1.Clear
cmdInsertMarks.Enabled = False
Reload
End Sub
Private Sub cmdStudGo_Click()
On Error Resume Next
reg = txtStart.Text
cmdInsert.Caption = "Insert Name Of " & reg
Reload
End Sub
Private Sub cmdStudName_Click()
fStudName.Visible = True
End Sub
Private Sub fDownloadResult_MouseDown(Button As MouseButtonConstants, Shift As Integer, Control As Integer, x As Long, y As Long)
ReleaseCapture
SendMessage hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
End Sub
Private Sub Form_Load()
CreateRoundRectFromWindow Me, 7, 7
Me.Top = 100
Me.Left = (mdiMain.Width - Me.Width) / 2
Me.BackColor = mdiMain.BackColor
Index = 0
Call frmColor(frmDownloadResults)
Call cmbDept_Load(cmbDept)
Call cmbSem_Load(cmbSem)
Call cmbBatch_Load(cmbBatch)
Call cmbSec_Load(cmbSec)
Call cmbSec_Load(cmbMarksSec)
strSec = cmbMarksSec.Text
Call cmbRegNo_Load(cmbStartRegNo)
Call cmbRegNo_Load(cmbEndRegNo)
cmbStartRegNo.Text = cmbStartRegNo.List(Index)
cmbEndRegNo.Text = cmbEndRegNo.List(cmbEndRegNo.ListCount - 1)
cmbURL.AddItem ("http://218.248.20.139/ug2008/UG20082011.aspx") 'http://218.248.20.131/UG20072011/UG20072011.aspx")
cmbURL.Text = cmbURL.List(0)
Reload
cmdNext.Visible = True
cmdInsertMarks.Visible = True
End Sub
Private Sub Reload()
WebBrowser1.Navigate cmbURL.Text
MSHFlexGrid1.ColWidth(0) = 900
MSHFlexGrid1.ColWidth(1) = 3500
MSHFlexGrid1.ColWidth(2) = 500
MSHFlexGrid1.ColWidth(3) = 500
MSHFlexGrid1.ColWidth(4) = 500
MSHFlexGrid1.ColWidth(5) = 500
MSHFlexGrid1.ColAlignment(0) = flexAlignCenterCenter
MSHFlexGrid1.ColAlignment(2) = flexAlignCenterCenter
MSHFlexGrid1.ColAlignment(3) = flexAlignCenterCenter
MSHFlexGrid1.ColAlignment(4) = flexAlignCenterCenter
MSHFlexGrid1.ColAlignment(5) = flexAlignCenterCenter
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim x As Integer
Dim y As Integer
lblRegNo.Caption = reg
Set document = WebBrowser1.document
Set inp = document.getElementById("TextReg")
Set spa = document.getElementById("StName")
Set btn = document.getElementById("Button3")
If inp Is Nothing = False Then
inp.Value = reg
End If
If spa Is Nothing = False Then
lblName.Caption = spa.innerText
End If
If btn Is Nothing = False Then
btn.Click
End If
For Each element In document.All
If InStr(1, element.ID, "GridView1") > 0 Then
Set Tbl = element
For x = 1 To Tbl.rows.Length - 1
MSHFlexGrid1.rows = Tbl.rows.Length - 1
icount = Tbl.rows.Length
Set tr = Tbl.rows(x)
For y = 0 To tr.cells.Length - 1
Set tc = tr.cells(y)
MSHFlexGrid1.TextMatrix(x - 1, y) = tc.innerText
Next y
Next x
End If
Next
cmdInsertMarks.Enabled = True
End Sub