College Management System
College Management System
CHAPTER 1
1.1 Introduction
College management software is prepared to maintain the day to day operations in a leading
college. This software helps them to maintain the student and employee records. So the
maintain becomes easier. This is a general software serve the purpose of maintenance of
records in colleges. This software provides them very easier option to search for the student
details, his fee status. Attendance, test marks, test result etc.,
1.2 Purpose
The purpose of this document is to specify requirements and to give guidelines for the
development of above said projects.in particular it gives guidelines on how to prepare the
above said project.
This document is intended to be a practical guide for people who developing this application.
1.3 Scope
This is of generic type software, suitable to all colleges. This software has all the modules to
manage college transactions. Separate division is provided to maintain admission process.
Student management, Staff management, etc.,
1.4 Goal
The main goal of the application is to maintain the record of the college, this software is
helpful to the colleges to maintain the student and employee management.
Department of BCA 1
COLLEGE MANAGEMENT SYSTEM
CHAPTER 2
To avoid all these limitations and make the working more accurately the system needs to be
computerized in the effective manner
Department of BCA 2
COLLEGE MANAGEMENT SYSTEM
The main objective of the existing system is to provide a user friendly interface. The system,
which is proposed now computerized all the details that are maintained manually. Once the
details are fed into the computer there is no need for various persons to deal with separate
sections. Only a single person is enough to maintain all the reports. The security can also be
given as per the requirement of the user.
Department of BCA 3
COLLEGE MANAGEMENT SYSTEM
CHAPTER 3
SYSTEM REQUIREMENTS
RAM 1 GB
Department of BCA 4
COLLEGE MANAGEMENT SYSTEM
CHAPTER 4
FEASIBILITY STUDY
The system being developed is economic with respect to School or Collage’s point of view. It
is cost effective in the sense that has eliminated the paper work completely.
The system is also time effective because the calculations are automated which are made at the
end of the month or as per the user requirement.
The result obtained contains minimum errors and are highly accurate as the data is required.
The technical requirement for the system is economic and it does not use any other additional
Hardware and software.
The system working is quite easy to use and learn due to its simple but attractive interface.
User requires no special training for operating the system.
In the present system all work is done on paper. The whole session attendance is stored in
register and at the end of the session the reports are generated. We are not interested in
generating report in the middle of the session or as per the requirement because it takes more
time in calculation. At the end of session the students who don’t have 75% attendance get a
notice.
Department of BCA 5
COLLEGE MANAGEMENT SYSTEM
• Not User Friendly: The existing system is not user friendly because the retrieval of data is
very slow and data is not maintained efficiently.
• Manual control: All calculations to generate report is done manually so there is greater
chance of errors.
• Lots of paperwork: Existing system requires lot of paper work. Loss of even a single
register/record led to difficult situation because all the papers are needed to generate the
reports.
• Time consuming: Every work is done manually so we cannot generate report in the middle
of the session or as per the requirement because it is very time consuming.
CHAPTER 5
Department of BCA 6
COLLEGE MANAGEMENT SYSTEM
To develop the software system we should have clear understanding of Software system.
A good SRS defines the how Software System will interact with all internal modules,
hardware, communication with other programs and human user interactions with wide range of
real life scenarios.
Using the Software requirements specification (SRS) document on QA lead, managers creates
test plan. It is very important that testers must be cleared with every detail specified in this
document in order to avoid faults in test cases and its expected results.
It is highly recommended to review or test SRS documents before start writing test cases and
making any plan for testing.
CHAPTER 6
Department of BCA 7
COLLEGE MANAGEMENT SYSTEM
• Reports are easily generated: reports can be easily generated in the proposed system so user
can generate the report as per the requirement (monthly) or in the middle of the session. User
can give the notice to the students so he/she become regular.
• Very less paper work: The proposed system requires very less paper work. All the data is
feted into the computer immediately and reports can be generated through computers.
Moreover work become very easy because there is no need to keep data on papers.
• Computer operator control: Computer operator control will be there so no chance of errors.
Moreover storing and retrieving of information is easy.
CHAPTER 7
Department of BCA 8
COLLEGE MANAGEMENT SYSTEM
The above figure tells us the 5 stages of software development life cycle.
CHAPTER 8
Department of BCA 9
COLLEGE MANAGEMENT SYSTEM
Data Tables
8.1 Attendance
Department of BCA 10
COLLEGE MANAGEMENT SYSTEM
stdname Varchar(50)
addmfees nchar(10)
tuitionfees nchar(10)
libraryfees nchar(10)
Sportsfees nchar(10)
othersfees nchar(10)
totalpaid nchar(10)
balamnt nchar(10)
Department of BCA 11
COLLEGE MANAGEMENT SYSTEM
CHAPTER 9
Department of BCA 12
COLLEGE MANAGEMENT SYSTEM
CHAPTER 10
Department of BCA 13
COLLEGE MANAGEMENT SYSTEM
CHAPTER 11
SCREENSHOT OF FORM
Splash screen
Department of BCA 14
COLLEGE MANAGEMENT SYSTEM
Fig 1
Login Form
Fig 2
MDI form
Department of BCA 15
COLLEGE MANAGEMENT SYSTEM
Fig 3
Course details
Fig 4
Department of BCA 16
COLLEGE MANAGEMENT SYSTEM
Subject details
Fig 5
Staff details
Fig 6
Student details
Department of BCA 17
COLLEGE MANAGEMENT SYSTEM
Fig 7
Fees collection
Fig 8
Attendance
Department of BCA 18
COLLEGE MANAGEMENT SYSTEM
Fig 9
Fig 10
Staff list
Department of BCA 19
COLLEGE MANAGEMENT SYSTEM
Fig 11
Student list
Fig 12
Department of BCA 20
COLLEGE MANAGEMENT SYSTEM
Fig 13
Fig 14
Exam result
Department of BCA 21
COLLEGE MANAGEMENT SYSTEM
Fig 15
CHAPTER 12
Department of BCA 22
COLLEGE MANAGEMENT SYSTEM
TESTING
"Testing is the process of analysing a software item to detect the differences between existing
and required conditions and to evalaute the features of software item". The system is tested
under adverse situations and environment to test its performance, reliability and robustness.
Verification and validation is done for the system and it is reviewed against each and every
customer requirement specification.
A good test is one that has high probability of finding the yet undiscovered errors.
A successful test is the one that has high portability of finding the undiscovered errors.
Tests designed to reflect the frequency of user inputs used for reliability estimation.
To test the process two classes of inputs are provided, they are:
b. A software configuration that includes a test plan and procedure,any testing tool and test
cases and their expected results.
Testing is performed to prove that there are no errors in program. This is extremely difficult
since designer cannot prove hundred percent accurate. Therefore, testing is done with a explicit
intension of finding errors that make the program fail. Testing has its own cycle. It requires 5
basic critical factors: planning, project and process management, risk management, measurement
tools.
Department of BCA 23
COLLEGE MANAGEMENT SYSTEM
This is a method of testing software that that tests internal structures or working of an
application,as opposed to its functionality. Internal program logic is excercised using this
technique. The tester chooses inputs to exercise paths through the code and determine the
appropriate outputs. This can be applied at the unit,integration and system levels of software
testing process.
White box test design techniques include the following code coverage criteria:
branch testing
statement coverage
decision coverage
path testing
White box testing use these above criteria as guidelines to create an error free environment by
examining any fragile code. So these are the building blocks of white box testing. The whole
point of white box testing is the ability to know which line of the code is being executed and
being able to identify what the correct output should be.
Department of BCA 24
COLLEGE MANAGEMENT SYSTEM
all-pairs testing
equivalence partitioning
error guessing
state transition
domain analysis
combining technique
Test cases are built around specifications and requirements. Although the tests used are
primarily functional in nature, non functional tests may also be used. The test designer selects
both valid and invalid inputs and determines the correct output.
1. Unit Testing
2. Module Testing
3. Sub-System Testing
4. System Testing
5. Acceptance Testing
CHAPTER 13
Department of BCA 25
COLLEGE MANAGEMENT SYSTEM
VALIDATION
At the culmination of integration testing, software is completely assembled as a package,
interface error has been uncovered and corrected and final serves of software tests-validation
testing may begin. Validation can be defined in many ways. But a simple defination is that
validation succeeds when software function in a manner that can be reasonably expected by the
customer, software validation is achieved through a series of black box test that will be used to
demonstrate conformity with the requirements.
A test plan outlines the class tests that will be used to demonstrate the conformity with
requirements. Both the plan and procedure are designed to ensure that all the functional
requirements are satisfied. All the behavioral characteristics are achieved. All performance
requirements are attained documentation is correct and human engineering and other
requirements are met.
CHAPTER 14
Department of BCA 26
COLLEGE MANAGEMENT SYSTEM
SOURCE CODE
1) SPLASH SCREEN
2) LOGIN FORM
Imports System.Data.SqlClient
Else
MsgBox("Invalid Username or passsword")
Department of BCA 27
COLLEGE MANAGEMENT SYSTEM
End If
End Sub
3) MDI FORM
Imports System.Windows.Forms
Public Class MDI_Parent
Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs)
Dim ChildForm As New System.Windows.Forms.Form
ChildForm.MdiParent = Me
m_ChildFormNumber += 1
ChildForm.Text = "Window " & m_ChildFormNumber
ChildForm.Show()
End Sub
Department of BCA 28
COLLEGE MANAGEMENT SYSTEM
Staff_Details.MdiParent = Me
Staff_Details.Show()
End Sub
Department of BCA 29
COLLEGE MANAGEMENT SYSTEM
Exam_Result_All.Show()
End Sub
Department of BCA 30
COLLEGE MANAGEMENT SYSTEM
End Sub
4) COUSE DETAILS
Imports System.Data.SqlClient
Public Class Course_Details
Dim q1var, q2var As String
Dim pkvar As String
Private Sub Course_Details_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
newload()
End Sub
Sub newload()
newbtn.Enabled = True
savebtn.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
txtcourse.Enabled = False
txtdetails.Enabled = False
displaybtn.Enabled = True
End Sub
Sub newrecords()
savebtn.Enabled = True
newbtn.Enabled = False
txtcourse.Enabled = True
txtdetails.Enabled = True
modifybtn.Enabled = False
deletebtn.Enabled = False
txtcourse.Text = ""
txtdetails.Text = ""
End Sub
Department of BCA 31
COLLEGE MANAGEMENT SYSTEM
Sub saverecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd As New SqlCommand("Select coursename from course where coursename='"
& txtcourse.Text & "'", con)
If d1.HasRows Then
MsgBox("Data already exist")
Exit Sub
End If
Department of BCA 32
COLLEGE MANAGEMENT SYSTEM
Department of BCA 33
COLLEGE MANAGEMENT SYSTEM
Sub disRecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ds1 As New DataSet
Dim adp As New SqlDataAdapter("Select coursename,coursedetails From course order
by coursename", con)
adp.Fill(ds1)
dg1.DataSource = ds1.Tables(0)
If con.State = ConnectionState.Open Then con.Close()
End Sub
Department of BCA 34
COLLEGE MANAGEMENT SYSTEM
5) SUBJECCT DETAILS
Imports System.Data.SqlClient
Public Class Subject_Details
Dim q1var, q2var As String
Dim pkvar, pkvar2 As String
Sub newload()
newbtn.Enabled = True
savebtn.Enabled = False
cmbcourse.Enabled = False
cmbsemester.Enabled = False
txtfullsub.Enabled = False
txtshortsub.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
End Sub
Sub newrecords()
savebtn.Enabled = True
newbtn.Enabled = False
cmbcourse.Enabled = True
cmbsemester.Enabled = True
txtfullsub.Enabled = True
txtshortsub.Enabled = True
modifybtn.Enabled = False
deletebtn.Enabled = False
txtfullsub.Text = ""
txtshortsub.Text = ""
cmbcourse.ResetText()
cmbsemester.ResetText()
End Sub
Department of BCA 35
COLLEGE MANAGEMENT SYSTEM
Sub saverecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd As New SqlCommand("Select subfull from subject_details where subfull='" &
txtfullsub.Text & "'and subshort='" & txtshortsub.Text & "'", con)
Dim d1 As SqlDataReader = cmd.ExecuteReader()
If d1.HasRows Then
MsgBox("Data already exist")
Exit Sub
End If
Department of BCA 36
COLLEGE MANAGEMENT SYSTEM
cmd1.ExecuteNonQuery()
If con.State = ConnectionState.Open Then con.Close()
saverecords()
txtfullsub.Text = ""
txtshortsub.Text = ""
modifybtn.Enabled = False
deletebtn.Enabled = False
savebtn.Enabled = False
cmbcourse.ResetText()
cmbsemester.ResetText()
txtfullsub.Enabled = False
txtshortsub.Enabled = False
cmbcourse.Enabled = False
cmbsemester.Enabled = False
End Sub
cmd1.ExecuteNonQuery()
If con.State = ConnectionState.Open Then con.Close()
disRecords()
txtshortsub.Text = ""
txtfullsub.Text = ""
savebtn.Enabled = False
modifybtn.Enabled = False
cmbcourse.ResetText()
cmbsemester.ResetText()
modifybtn.Enabled = False
txtfullsub.Enabled = False
txtshortsub.Enabled = False
cmbcourse.Enabled = False
cmbsemester.Enabled = False
deletebtn.Enabled = False
Department of BCA 37
COLLEGE MANAGEMENT SYSTEM
End Sub
Sub disRecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ds1 As New DataSet
Dim adp As New SqlDataAdapter("Select coursename,semester,subshort,subfull From
subject_details order by coursename", con)
adp.Fill(ds1)
dg1.DataSource = ds1.Tables(0)
If con.State = ConnectionState.Open Then con.Close()
End Sub
Department of BCA 38
COLLEGE MANAGEMENT SYSTEM
cmbcourse.Enabled = True
cmbsemester.Enabled = True
txtfullsub.Enabled = True
txtshortsub.Enabled = True
If con.State = ConnectionState.Open Then con.Close()
End If
End Sub
End Class
6) STAFF DETAILS
Imports System.Data.SqlClient
Public Class Staff_Details
Dim q1var, q2var As String
Dim pkvar As String
Sub saverecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd As New SqlCommand("Select * from staff_details where staffcode='" &
txtstaffcode.Text & "' ", con)
Exit Sub
End If
If d1.HasRows Then
Department of BCA 39
COLLEGE MANAGEMENT SYSTEM
disRecords()
txtstaffcode.Text = ""
txtstaffname.Text = ""
txtstaffaddress.Text = ""
txtpincode.Text = ""
Department of BCA 40
COLLEGE MANAGEMENT SYSTEM
txtstaffmail.Text = ""
txtstaffphno.Text = ""
savebtn.Enabled = False
cmbdesignation.ResetText()
cmbqualification.ResetText()
modifybtn.Enabled = False
txtstaffcode.Enabled = False
txtstaffname.Enabled = False
txtstaffaddress.Enabled = False
txtpincode.Enabled = False
txtstaffphno.Enabled = False
txtstaffmail.Enabled = False
cmbdesignation.Enabled = False
cmbqualification.Enabled = False
deletebtn.Enabled = False
End Sub
Sub newrecords()
savebtn.Enabled = True
newbtn.Enabled = False
cmbqualification.Enabled = True
cmbdesignation.Enabled = True
txtstaffcode.Enabled = True
txtstaffname.Enabled = True
txtstaffaddress.Enabled = True
txtpincode.Enabled = True
txtstaffphno.Enabled = True
txtstaffmail.Enabled = True
modifybtn.Enabled = False
deletebtn.Enabled = False
txtstaffcode.Text = ""
txtstaffname.Text = ""
txtstaffaddress.Text = ""
txtpincode.Text = ""
txtstaffphno.Text = ""
txtstaffmail.Text = ""
cmbdesignation.ResetText()
cmbqualification.ResetText()
End Sub
Department of BCA 41
COLLEGE MANAGEMENT SYSTEM
Sub disRecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ds1 As New DataSet
Dim adp As New SqlDataAdapter("Select
staffcode,staffname,staffaddress,pincode,staffphno,staffmail,staffqualification,staffdesignation
From staff_details order by staffcode", con)
adp.Fill(ds1)
dg1.DataSource = ds1.Tables(0)
If con.State = ConnectionState.Open Then con.Close()
End Sub
Sub newload()
savebtn.Enabled = False
newbtn.Enabled = True
cmbqualification.Enabled = False
cmbdesignation.Enabled = False
txtstaffcode.Enabled = False
txtstaffname.Enabled = False
txtstaffaddress.Enabled = False
txtpincode.Enabled = False
Department of BCA 42
COLLEGE MANAGEMENT SYSTEM
txtstaffphno.Enabled = False
txtstaffmail.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
End Sub
Department of BCA 43
COLLEGE MANAGEMENT SYSTEM
e.Handled = True
End If
End If
If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back
Then
Department of BCA 44
COLLEGE MANAGEMENT SYSTEM
7) STUDENT DETAILS
Imports System.Data.SqlClient
Public Class Subject_Details
Dim q1var, q2var As String
Dim pkvar, pkvar2 As String
Sub newload()
newbtn.Enabled = True
savebtn.Enabled = False
cmbcourse.Enabled = False
cmbsemester.Enabled = False
txtfullsub.Enabled = False
txtshortsub.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
End Sub
Sub newrecords()
savebtn.Enabled = True
newbtn.Enabled = False
cmbcourse.Enabled = True
cmbsemester.Enabled = True
txtfullsub.Enabled = True
txtshortsub.Enabled = True
modifybtn.Enabled = False
deletebtn.Enabled = False
txtfullsub.Text = ""
Department of BCA 45
COLLEGE MANAGEMENT SYSTEM
txtshortsub.Text = ""
cmbcourse.ResetText()
cmbsemester.ResetText()
End Sub
Sub saverecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd As New SqlCommand("Select subfull from subject_details where subfull='" &
txtfullsub.Text & "'and subshort='" & txtshortsub.Text & "'", con)
Department of BCA 46
COLLEGE MANAGEMENT SYSTEM
savebtn.Enabled = False
End Sub
cmd1.ExecuteNonQuery()
If con.State = ConnectionState.Open Then con.Close()
saverecords()
txtfullsub.Text = ""
txtshortsub.Text = ""
modifybtn.Enabled = False
deletebtn.Enabled = False
savebtn.Enabled = False
cmbcourse.ResetText()
cmbsemester.ResetText()
txtfullsub.Enabled = False
txtshortsub.Enabled = False
cmbcourse.Enabled = False
cmbsemester.Enabled = False
End Sub
savebtn.Enabled = False
modifybtn.Enabled = False
cmbcourse.ResetText()
cmbsemester.ResetText()
modifybtn.Enabled = False
txtfullsub.Enabled = False
txtshortsub.Enabled = False
cmbcourse.Enabled = False
Department of BCA 47
COLLEGE MANAGEMENT SYSTEM
cmbsemester.Enabled = False
deletebtn.Enabled = False
End Sub
Sub disRecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ds1 As New DataSet
Dim adp As New SqlDataAdapter("Select coursename,semester,subshort,subfull From
subject_details order by coursename", con)
adp.Fill(ds1)
dg1.DataSource = ds1.Tables(0)
If con.State = ConnectionState.Open Then con.Close()
End Sub
pkvar2 = dg1.CurrentRow.Cells(2).Value
pkvar = dg1.CurrentRow.Cells(3).Value
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd0 As New SqlCommand("Select * From subject_details Where subfull ='" &
pkvar & "' and subshort ='" & pkvar2 & "'", con)
Dim d1 As SqlDataReader = cmd0.ExecuteReader()
If d1.HasRows Then
d1.Read()
cmbcourse.Text = d1(0).ToString
Department of BCA 48
COLLEGE MANAGEMENT SYSTEM
cmbsemester.Text = d1(1).ToString
txtshortsub.Text = d1(2).ToString
txtfullsub.Text = d1(3).ToString
modifybtn.Enabled = True
deletebtn.Enabled = True
cmbcourse.Enabled = True
cmbsemester.Enabled = True
txtfullsub.Enabled = True
txtshortsub.Enabled = True
If con.State = ConnectionState.Open Then con.Close()
End If
End Sub
End Class
8) FEES COLLECTION
Imports System.Data.SqlClient
Public Class Fees_Collection
Dim q1var, q2var As String
Dim pkvar As String
Dim sum As String
txtregno.Text = ""
txtname.Text = ""
txtadmissionfees.Text = ""
txttutionfees.Text = ""
txtlibraryfees.Text = ""
txtsportsfees.Text = ""
txtotherfees.Text = ""
txttotalfees.Text = ""
txttotalpaid.Text = ""
txtbalamt.Text = ""
Department of BCA 49
COLLEGE MANAGEMENT SYSTEM
Sub newload()
savebtn.Enabled = False
newbtn.Enabled = True
cmbcourse.Enabled = False
txtregno.Enabled = False
txtname.Enabled = False
txttotalfees.Enabled = False
txtadmissionfees.Enabled = False
txttutionfees.Enabled = False
txtlibraryfees.Enabled = False
txtsportsfees.Enabled = False
txtotherfees.Enabled = False
txttotalpaid.Enabled = False
txtbalamt.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
End Sub
Sub newrecords()
savebtn.Enabled = True
newbtn.Enabled = False
cmbcourse.Enabled = True
txtregno.Enabled = True
txtname.Enabled = True
txttotalfees.Enabled = True
txtadmissionfees.Enabled = True
txttutionfees.Enabled = True
txtlibraryfees.Enabled = True
txtsportsfees.Enabled = True
txtotherfees.Enabled = True
Department of BCA 50
COLLEGE MANAGEMENT SYSTEM
txttotalpaid.Enabled = False
txtbalamt.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
txtregno.Text = ""
txtname.Text = ""
txttotalfees.Text = ""
txtadmissionfees.Text = ""
txttutionfees.Text = ""
txtlibraryfees.Text = ""
txtsportsfees.Text = ""
txtotherfees.Text = ""
txttotalpaid.Text = ""
txtbalamt.Text = ""
cmbcourse.ResetText()
End Sub
Sub saverecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim cmd As New SqlCommand("Select * from fees_collection where regno='" &
txtregno.Text & "' ", con)
txtregno.Text = ""
txtname.Text = ""
txttotalfees.Text = ""
txtadmissionfees.Text = ""
txttutionfees.Text = ""
txtlibraryfees.Text = ""
txtsportsfees.Text = ""
txtotherfees.Text = ""
txttotalpaid.Text = ""
txttotalpaid.Text = ""
Department of BCA 51
COLLEGE MANAGEMENT SYSTEM
txtbalamt.Text = ""
Exit Sub
End If
If d1.HasRows Then
MsgBox("Data already exist")
Exit Sub
End If
If con.State = ConnectionState.Open Then con.Close()
con.Open()
q1var = "insert into fees_collection("
q2var = "values("
q1var = q1var & "coursename" & ","
q2var = q2var & "'" & cmbcourse.Text & "',"
q1var = q1var & "regno" & ","
q2var = q2var & "'" & txtregno.Text & "',"
q1var = q1var & "stdname" & ","
q2var = q2var & "'" & txtname.Text & "',"
q1var = q1var & "totalfees" & ","
q2var = q2var & "'" & txttotalfees.Text & "',"
q1var = q1var & "addmfees" & ","
q2var = q2var & "'" & txtadmissionfees.Text & "',"
q1var = q1var & "tutionfees" & ","
q2var = q2var & "'" & txttutionfees.Text & "',"
q1var = q1var & "libfees" & ","
q2var = q2var & "'" & txtlibraryfees.Text & "',"
q1var = q1var & "sportsfees" & ","
q2var = q2var & "'" & txtsportsfees.Text & "',"
q1var = q1var & "otherfees" & ","
q2var = q2var & "'" & txtotherfees.Text & "',"
q1var = q1var & "totalpaid" & ","
q2var = q2var & "'" & txttotalpaid.Text & "',"
q1var = q1var & "balamt" & ")"
q2var = q2var & "'" & txtbalamt.Text & "')"
MsgBox(q1var & q2var)
Dim cmd1 As New SqlCommand(q1var & q2var, con)
cmd1.ExecuteNonQuery()
If con.State = ConnectionState.Open Then con.Close()
cmbcourse.ResetText()
End Sub
Department of BCA 52
COLLEGE MANAGEMENT SYSTEM
Department of BCA 53
COLLEGE MANAGEMENT SYSTEM
txtname.Text = ""
txttotalfees.Text = ""
txtadmissionfees.Text = ""
txttutionfees.Text = ""
txtlibraryfees.Text = ""
txtsportsfees.Text = ""
txtotherfees.Text = ""
txttotalpaid.Enabled = False
txttotalpaid.Text = ""
txtbalamt.Text = ""
savebtn.Enabled = False
cmbcourse.ResetText()
modifybtn.Enabled = False
cmbcourse.Enabled = False
txtregno.Enabled = False
txtname.Enabled = False
txttotalfees.Enabled = False
txtadmissionfees.Enabled = False
txttutionfees.Enabled = False
txtlibraryfees.Enabled = False
txtsportsfees.Enabled = False
txtotherfees.Enabled = False
txttotalpaid.Enabled = False
txtbalamt.Enabled = False
deletebtn.Enabled = False
End Sub
savebtn.Enabled = False
newbtn.Enabled = True
cmbcourse.Enabled = False
txtregno.Enabled = False
txtname.Enabled = False
txttotalfees.Enabled = False
txtadmissionfees.Enabled = False
txttutionfees.Enabled = False
txtlibraryfees.Enabled = False
txtsportsfees.Enabled = False
txtotherfees.Enabled = False
txttotalpaid.Enabled = False
Department of BCA 54
COLLEGE MANAGEMENT SYSTEM
txtbalamt.Enabled = False
modifybtn.Enabled = False
deletebtn.Enabled = False
cmbcourse.ResetText()
End Sub
Sub disRecords()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ds1 As New DataSet
Dim adp As New SqlDataAdapter("Select
coursename,regno,stdname,totalfees,addmfees,tutionfees,libfees,sportsfees,otherfees,totalpaid,
balamt From fees_collection order by regno", con)
adp.Fill(ds1)
dg1.DataSource = ds1.Tables(0)
If con.State = ConnectionState.Open Then con.Close()
End Sub
txtlibraryfees.Text = d1(6).ToString
txtsportsfees.Text = d1(7).ToString
txtotherfees.Text = d1(8).ToString
txttotalpaid.Text = d1(9).ToString
txtbalamt.Text = d1(10).ToString
cmbcourse.Enabled = True
txtregno.Enabled = True
txtname.Enabled = True
txttotalfees.Enabled = True
txtadmissionfees.Enabled = True
txttutionfees.Enabled = True
txtlibraryfees.Enabled = True
txtsportsfees.Enabled = True
Department of BCA 55
COLLEGE MANAGEMENT SYSTEM
txtotherfees.Enabled = True
txttotalpaid.Enabled = False
txtbalamt.Enabled = False
modifybtn.Enabled = True
deletebtn.Enabled = True
If con.State = ConnectionState.Open Then con.Close()
End If
End Sub
End Sub
Department of BCA 56
COLLEGE MANAGEMENT SYSTEM
If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back
Then
MsgBox("Enter Number only!")
e.Handled = True
End If
End Sub
9) ATTENDANCE
Imports System.Data.SqlClient
Public Class Attendance
Dim q1var, q2var As String
Dim pkvar, pkvar2 As String
Private Sub Attendance_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Department of BCA 57
COLLEGE MANAGEMENT SYSTEM
Department of BCA 58
COLLEGE MANAGEMENT SYSTEM
Tab1.Columns.Add("attendance", GetType(String))
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim Cmd0 As New SqlCommand("Select regno,stdname from student_details where
coursename='" & ComboBox1.Text & "' and semester='" & ComboBox2.Text & "' order by
regno", con)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
While D1.Read
Dim dRow As DataRow = Tab1.NewRow
dRow(0) = D1(0).ToString
dRow(1) = D1(1).ToString
dRow(2) = ""
Department of BCA 59
COLLEGE MANAGEMENT SYSTEM
Tab1.Rows.Add(dRow)
End While
If con.State = ConnectionState.Open Then con.Close()
dg.DataSource = DS1.Tables(0)
End Sub
End Class
Imports System.Data.SqlClient
Department of BCA 60
COLLEGE MANAGEMENT SYSTEM
Department of BCA 61
COLLEGE MANAGEMENT SYSTEM
Imports System.Data.SqlClient
Public Class Staff_List
Department of BCA 62
COLLEGE MANAGEMENT SYSTEM
XPos = 10
e.Graphics.DrawString("RNSFGC College Administration", MyFont, Brushes.Black,
XPos, YPos)
YPos += 50
MyFont = New Font("Arial", 12)
e.Graphics.DrawString("Channasandra, Bangalore - 560098", MyFont, Brushes.Black,
XPos, YPos)
YPos += 100
XPos = 10
e.Graphics.DrawString("Staff List Report", MyFont, Brushes.Black, XPos, YPos)
YPos += 50
XPos = 10
MyFont = New Font("Arial", 12)
e.Graphics.DrawString("staffcode", MyFont, Brushes.Black, XPos, YPos)
Department of BCA 63
COLLEGE MANAGEMENT SYSTEM
Imports System.Data.SqlClient
Public Class Student_List
Department of BCA 64
COLLEGE MANAGEMENT SYSTEM
Department of BCA 65
COLLEGE MANAGEMENT SYSTEM
Imports System.Data.SqlClient
Public Class Fee_Collection_Report
Department of BCA 66
COLLEGE MANAGEMENT SYSTEM
End Sub
XPos = 10
e.Graphics.DrawString("Student List Report", MyFont, Brushes.Black, XPos, YPos)
YPos += 50
XPos = 10
MyFont = New Font("Arial", 12)
e.Graphics.DrawString("coursename", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString("regno", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString("stdname", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString("totalfees", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString("totalpaid", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString("balamt", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
YPos += 25
For Each r As DataGridViewRow In dg.Rows
XPos = 10
e.Graphics.DrawString(r.Cells(0).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(1).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(2).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(3).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(4).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(5).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
Department of BCA 67
COLLEGE MANAGEMENT SYSTEM
YPos += 25
Next
End Sub
End Class
Imports System.Data.SqlClient
Public Class Exam_Result_All
Department of BCA 68
COLLEGE MANAGEMENT SYSTEM
XPos = 10
MyFont = New Font("Arial", 12)
e.Graphics.DrawString("sub", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString("regno", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString("name", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString("tmarks", MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
YPos += 25
For Each r As DataGridViewRow In dg.Rows
XPos = 10
e.Graphics.DrawString(r.Cells(3).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString(r.Cells(4).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString(r.Cells(5).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
e.Graphics.DrawString(r.Cells(6).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 75
YPos += 25
Next
End Sub
Imports System.Data.SqlClient
Public Class Exam_Result
dg.Columns(1).Width = 150
Department of BCA 69
COLLEGE MANAGEMENT SYSTEM
dg.Columns(0).HeaderText = ""
dg.Columns(1).HeaderText = ""
End Sub
Dim cmd0 As New SqlCommand("select attendance from attendance where regno='" &
Val(TextBox1.Text) & "'", con)
Dim d1 As SqlDataReader = cmd0.ExecuteReader()
If d1.Read Then
dg.Rows(i).Cells(0).Value = "attendance"
dg.Rows(i).Cells(1).Value = d1.GetValue(0).ToString
i=i+1
End If
con.Close()
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Department of BCA 70
COLLEGE MANAGEMENT SYSTEM
Department of BCA 71
COLLEGE MANAGEMENT SYSTEM
YPos += 25
For Each r As DataGridViewRow In dg.Rows
XPos = 10
e.Graphics.DrawString(r.Cells(0).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
e.Graphics.DrawString(r.Cells(1).Value, MyFont, Brushes.Black, XPos, YPos)
XPos = XPos + 150
YPos += 25
Next
End Sub
End Class
Department of BCA 72
COLLEGE MANAGEMENT SYSTEM
CHAPTER 15
Conclusion
The Attendance Management System is developed using Visual Basic.NET fully meets the
objectives of the system which it has been developed. The system has reached a steady state
where all bugs have been eliminated. The system is operated at a high level of efficiency and
all the teachers and user associated with the system understands its advantage. The system
solves the problem. It was intended to solve as requirement specification.
Department of BCA 73
COLLEGE MANAGEMENT SYSTEM
BIBLIOGRAPHY
Department of BCA 74