Professional Documents
Culture Documents
DESCRIPTION
Code for the icon of the listview
'Dim item1, item2, item3, item4, item5 As ListItem
With lvMenu
Set .SmallIcons = ImageList1
Set .Icons = ImageList1
'For Sales
.ListItems.Add , "user", "View Users", 1, 1
.ListItems.Add , "Add Student", "Add New Student", 2, 2
.ListItems.Add , "Edit Student Information", "Edit Student Information", 3, 3
.ListItems.Add , "Result", "Result", 4, 4
.ListItems.Add , "View Student Report", "View Student Report", 5, 5
.ListItems.Add , "Result Report", "Result Report", 6, 6
.ListItems.Add , "Fees Payment", "Fees Payment", 7, 7
.ListItems.Add , "School Info", "School Info", 8, 8
End With
End Sub
Private Sub lvMenu_DblClick()
Select Case lvMenu.SelectedItem.Key
Case "user": frmSysUser.Show
Case "Add Student": frmsturegister1.Show
Case "Edit Student Information": frmStudGeneral.Show
Case "Result": frmResult.Show
Case "Fees Payment": Feespayment.Show
Case "View Student Report": Call mnurepstu_Click
Case "School Info": frmSchoolInfo.Show
Case "Result Report": frmResultRep.Show
End Select
End Sub
Code for exiting the application
Private Sub MDIForm_Unload(Cancel As Integer)
On Error GoTo handle
If SchoolMain.Label2.Caption <> "" Then
MsgBox " I N I T I A T E D A P P L I C A T I O N S H U T D O W N"
‘Code for showing the login time and session and Termination of session’
Call connect
With rs_find
If .State = adStateOpen Then .Close
.Open "select * from UserLog", con, adOpenDynamic, adLockPessimistic
.AddNew
.Fields("UserID").Value = SchoolMain.Label2.Caption
.Fields("SessionStart").Value = frmLogin.lblval.Caption
.Fields("SessionEnd").Value = Now
.Fields("Description") = "Session Successfully Terminated"
.Update
.Close
End With
MsgBox "THANK YOU FOR USING SMARTSCHOOL OFFICE" & vbCrLf & vbCrLf &
" SESSION ENDS AT : " & Now, vbInformation + vbOKOnly, "SESSION SUCCESSFULLY
TERMINATED"
End
Else
End
End If
Exit Sub
handle:
SchoolMain.Label2.Caption = ""
SchoolMain.Label5.Caption = ""
SchoolMain.Label6.Caption = ""
SchoolMain.Label8.Caption = ""
SchoolMain.Timer1.Enabled = False
SchoolMain.StatusBar1.Panels(1).Text = SchoolMain.StatusBar1.Panels(1).Text
+""
MsgBox "THANK YOU FOR SMARTSCHOOL OFFICE" & vbCrLf & vbCrLf & "
SESSION ENDS AT : " & Now, vbInformation + vbOKOnly, "SUCCESSFULLY LOGGED
OUT"
End Sub
End Sub
Call connect
Dim rep
End Sub
End Sub
Call connect
With rs_find
If .State = adStateOpen Then .Close
.Open "select * from class_mstr where Std = '" & Texstd.Text & "' and Div = '" &
Texdiv.Text & "'", con, adOpenStatic, adLockOptimistic
If .RecordCount >= 1 Then
.Close
MsgBox " class already present"
Texstd.Text = ""
Texdiv.Text = ""
Exit Sub
End If
.Close
End With
MsgBox "please add at least one subject ", vbInformation + vbOKOnly, "Subject Field
Empty"
Else
Call connect
With rs_class
If .State = adStateOpen Then .Close
.Open "select * from class_mstr", con, adOpenDynamic, adLockPessimistic
.AddNew
.Fields("Class_ID") = Texclassid.Text
.Fields("Std") = Texstd.Text
.Fields("Div") = Texdiv.Text
.Fields("Student_Strength") = TexPerstu.Text
.Fields("Class_shedule") = Comsch.Text
.Fields("Academic_Behaviour") = Comacdbehav.Text
.Fields("Class_requirement") = Texclassrec.Text
.Fields("Subject1") = sub1.Text
.Fields("Subject2") = sub2.Text
.Fields("Subject3") = sub3.Text
.Fields("Subject4") = sub4.Text
.Fields("Subject5") = sub5.Text
.Fields("Subject6") = sub6.Text
.Fields("Subject7") = sub7.Text
.Fields("Subject8") = sub8.Text
.Fields("Subject9") = sub9.Text
.Fields("Subject10") = sub10.Text
.Fields("Subject11") = sub11.Text
.Fields("Subject12") = sub12.Text
.Update
.Close
End With
MsgBox "Class Successfully Created", vbInformation + vbOKOnly, "Add Class"
Unload Me
End If
End Sub
End Sub
With rs_feepay
If .State = adStateOpen Then .Close
.Open "select Due from Fees_Payment where Student_ID =" &
Val(Feespayment.TexfeepayID.Text), con, adOpenDynamic, adLockPessimistic
Do Until .EOF
Text10.Text = .Fields("Due").Value
.MoveNext
Loop
.Close
End With
a = Text10.Text
End Sub
End Sub
Call connect
With rs_find
If .State = adStateOpen Then .Close
.Open "select Div from class_mstr where Std='" & ComStd.Text & "'", con,
adOpenDynamic, adLockPessimistic
Do Until .EOF
ComDiv.AddItem .Fields("Div").Value
.MoveNext
Loop
.Close
End With
End Sub
USER INTERFACES
Login Details
Once the user adds the user ID and password the system authenticates the user
credentials and sends a dialogue box to confirm user. It records time of login at the
name of user in a database field (For Audit trail).
The home screen is as shown above with modules and icons that are short cuts to
open different applications and modules.
This is used to show the user details. It also allows addition of new users
And decrypt passwords to check on user pass (Available to the administrator only)
Used to add new student records to the system. All details must me added before
clicking “Next”.
Transaction > Student > Create Result
This used to create fee Amounts and also edit existing figures.
Choose the class ID and the class fee structure is displayed in the relevant text boxes.
This modules is used to create new classes and assign subjects offered in the
relevant classes. Other details like class strength, Class schedules, Academic
behaviour and class requirement. This helps to keep a detailed and descriptive
assessment of the classes.
This program also offers a comprehensive staff payroll system that is can be used to
pay salaries. It can also manage staff daily attendance.
Utilities
The program also offers utilities inside the program that the user may frequently use
i.e Calculator, Notepad.
It also has a backup utility to ensure data security.
References
http://www.sourcecode.com