0% found this document useful (0 votes)
39 views43 pages

6th Sem Project Report

Uploaded by

abuuavishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views43 pages

6th Sem Project Report

Uploaded by

abuuavishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Tribhuvan University

Faculty of Humanities and Social Science

Project Report

On

College Information Management System

SUBMITTED TO:

Department of Computer Application

Birat Kshitiz College

Biratnagar-12, Nepal

In partial fulfillment of the requirement for the Bachelor of Computer Application

SUBMITTED BY:

Ishika Baidhya (107402026)

Saroj Mehta (107402035)

Under the Supervision of

Mr. Arjun Shah

Date: December 2023


Tribhuvan University

Faculty of Humanities and Social Science

Birat Kshitiz College

Supervisor’s Recommendation
I hereby recommend that this project is prepared under my supervision by Ishika
Baidhya and Saroj Mehta and entitled by “College Information Management System”
in partial fulfillment of the requirements for the degree of Bachelors of Computer
Application (BCA) processed for the evaluation.

………………………….

MR. ARJUN SHAH

SUPERVISOR

BIRAT KSHITIZ COLLEGE, BIRATNAGAR

ii
Tribhuvan University

Faculty of Humanities and Social Sciences

Birat Kshitiz College

LETTER OF APPROVAL
This is to clarify that this project proposal by Ishika Baidhya and Saroj Mehta entitled
“College Information Management System” in partial fulfillment of the requirements
for the degree of Bachelor of Computer Application has been well studied. In our opinion,
it is satisfactory in the scope and quality as a project for the required degree.

…………………. ………………………
Mr. Arjun Shah Er. Deeyoranjan Dongol
Supervisor Principal
Birat Kshitiz College

…………………… …………………..
Internal Examiner External Examiner
Tribhuvan University

iii
STUDENT’S DECLARATION
This is to clarify that the project report entitled “College Information Management
System” submitted in partial fulfillment of the requirements of Birat Kshitiz College,
Nepal, is our original work and not submitted for the award of any degree, diploma,
fellowship, or any other similar title or prizes. We Ishika Baidhya and Saroj Mehta
have worked under the supervision and guidance of Mr. Arjun Shah and that no part of
this report has been submitted for the award of any other degree, Diploma, Fellowship, or
other similar titles or prizes and that the work has not been published in any journal or
magazine.

_____________________ _____________________

Ishika Baidhya Saroj Mehta

Symbol No: 107402026 Symbol No: 107402035

Reg No: 6-2-1074-0008-2019 Reg No: 6-2-1074-0037-2019

iv
ACKNOWLEDGEMENT
We have taken efforts in this project. However, it would not have been possible without
the kind support and help of many individuals and organizations. We would like to extend
our sincere thanks to all of them.

It is a genuine pleasure to express our deep sense of thanks and gratitude to our supervisor
Mr. Arjun Shah for his guidance and constant supervision in our project. His dedication
and keen interest above all his overwhelming attitude to help his students had been solely
and mainly responsible for completing our project. His timely advice and guidance have
helped us to a great extend to accomplish this task. Also, we would like to express our
thanks to the principal, Er. Deeyoranjan Dongol for his guidance and support throughout
the project development phase. Our thanks and appreciation also go to all the people who
have willingly helped us out with their abilities.

v
ABSTRACT
The COLLEGE INFORMATION MANAGEMENT SYSTEM abstract tells the overall
function of the project. It consists of the reason why the project was proposed and the
solutions made to answer the needs of the targeted users. To enlighten you with this,
here’s the College Information Management System Proposal Abstract.

The College Information Management System (CIMS) is a comprehensive software


solution designed to streamline and enhance the management of academic and
administrative processes within a college or educational institution. With the ever-
growing complexity of educational systems, CIMS aims to provide an integrated platform
that facilitates information of Student, Department, Teacher, Courses, Fees, Library etc.
The system adapts to the evolving needs of educational institutions, fostering an
environment conducive to academic excellence and administrative effectiveness. CIMS is
a valuable tool for modernizing and future-proofing college management systems in the
ever-evolving landscape of education.

Keywords: CIMS, MIS, SIS, .NET, C#, MSSQL, MSSQL 2022, MSSQL Management
Studio 2019

vi
TABLE OF CONTENTS

ACKNOWLEDGEMENT ................................................................................................... v

ABSTRACT ........................................................................................................................ vi

TABLE OF CONTENTS ...................................................................................................vii

LIST OF FIGURES ............................................................................................................ ix

LIST OF TABLES ............................................................................................................... x

LIST OF ABBREVIATIONS ............................................................................................. xi

CHAPTER 1: INTRODUCTION ........................................................................................ 1

1.1 Introduction ................................................................................................................ 1

1.2 Problem Definition ..................................................................................................... 1

1.3 Objectives ................................................................................................................... 1

1.4 Scope .......................................................................................................................... 2

1.5 Project Deliverables ................................................................................................... 2

1.6 Development Methodology ........................................................................................ 2

1.7 Roles and Responsibilities ......................................................................................... 3

1.8 Report Organization ................................................................................................... 4

CHAPTER 2: BACKGROUNDSTUDY & LITERATURE REVIEW .............................. 5

2.1 Background Study ...................................................................................................... 5

2.2 Literature Review ....................................................................................................... 5

CHAPTER 3: SYSTEM ANALYSIS AND DESIGN ........................................................ 7

3.1 System Analysis ......................................................................................................... 7

3.1.1 Requirement Analysis.......................................................................................... 7

3.1.2 Feasibility analysis .............................................................................................. 9

3.1.3 Data Modeling ................................................................................................... 10

3.1.4 Process Model.................................................................................................... 11

3.2 System Design .......................................................................................................... 13


3.2.1 Architectural Design .......................................................................................... 13

3.2.2 Database Schema ............................................................................................... 14

3.3 Interface Design ....................................................................................................... 15

3.4 Algorithm Details ..................................................................................................... 16

CHAPTER 4: IMPLEMENTATION AND TESTING ..................................................... 18

4.1 Implementation......................................................................................................... 18

4.1.1 Tools Used ......................................................................................................... 18

4.1.2 Implementation Details of modules ................................................................... 19

4.2 Testing ...................................................................................................................... 19

4.2.1 Unit Testing ....................................................................................................... 19

CHAPTER 5: CONCLUSION AND FUTURE RECOMMENDATION ......................... 21

5.1 Conclusion................................................................................................................ 21

5.2 Lesson learnt/Outcome ............................................................................................. 21

5.3 Future Recommendation .......................................................................................... 21

REFERENCES .................................................................................................................. 23

APPENDIX ........................................................................................................................ 24
LIST OF FIGURES
Figure 1: Prototype Model ................................................................................................... 3
Figure 2: Use Case Diagram of College Information Management System ....................... 8
Figure 3: ER Diagram of College Information Management System ............................... 10
Figure 4: Context Diagram of College Information Management System ........................ 11
Figure 5: Top Level DFD (Level-0) of College Information Management System .......... 12
Figure 6: Architectural Design of College Information Management System .................. 13
Figure 7: Schema Diagram of College Information Management System ........................ 14
Figure 8: User Interface Design ......................................................................................... 15
Figure 9: Student Page ....................................................................................................... 24
Figure 10: Department Page .............................................................................................. 24
Figure 11: Teacher Page .................................................................................................... 25
Figure 12: Courses Page .................................................................................................... 25
Figure 13: Fees/Salary Page............................................................................................... 26
Figure 14: Library Page ..................................................................................................... 26
Figure 15: Add Book Page ................................................................................................. 27
Figure 16: Issue Book Page ............................................................................................... 27
Figure 17: Returned Book Page ......................................................................................... 28

ix
LIST OF TABLES
Table 1: TEST CASE FOR LOGIN SECTION ................................................................ 20

x
LIST OF ABBREVIATIONS
Acronyms Definition
CIMS College Information Management System
MIS Management Information System
SIS Student Information System
.NET Network Enabled Technology
C# C-sharp
MS SQL Server 2022 Microsoft Structured Query Language
Server 2022
MS SQL Server Management Studio 2019 Microsoft Structured Query Language
Server Management Studio 2019

xi
CHAPTER 1: INTRODUCTION
1.1 Introduction
COLLEGE INFORMATION MANAGEMENT SYSTEM (CIMS) is an integrated web
application to handle various academic and non-academic activities of college. This
system can access by the admin of the institution. This system provides the detail
structure of the college and its department. It looks on all aspects of a College, Students,
Faculties, Departments and other co-curricular activities.

In the current college administrative system, all sorts of activities are performed
manually. They maintain all sorts of student and college information is recorded manually
by using the paper. College Information Management System is definitely the system that
manages and handles the student details and information. In this system, we can easily
manage the student details, staff details, subject details, and department details.

The College Information Management System management system needs to create the
College Information Management System to organize student records and other
information about the students. This computerized system reduces the manual work of the
persons in the admin panel and the bundle of the registers that were searched when to find
the information of a previous student. Through this, you can check the personal details of
all the current students within a few minutes. The database of the system will help you to
check a particular one using a student id.

1.2 Problem Definition


Some problem definitions are as follows:
• In case of manual system, they need a lot of time, manpower etc.
• Here almost all work is computerized. So, the accuracy is maintained.
• CIMS mainly deals with Student Profile, Payroll Management and Fee collection
which can be managed by the Admin.

1.3 Objectives
There are following main objectives of “COLLEGE INFORMATION MANAGEMENT
SYSTEM” which are listed below:

• Efficient Data Management


• Academic Administration

1
• Financial Management
• Student Information
• Library Management
• Security and Privacy
• Scalability and Flexibility

1.4 Scope
“COLLEGE INFORMATION MANAGEMENT SYSTEM” has broad range of scope.
Some of them are listed below:

• Access information.
• Login to the system through the first pages of the application.
• View/change about college, staff details etc.

1.5 Project Deliverables


The main deliverable of this project will be the complete College Information
Management System and the document that includes:

• College Information Management System Requirement and Specifications


• College Information Management System Design Documentation

1.6 Development Methodology


The prototype model is a software development model in which a prototype (an early
approximation of a final system or product) is built, tested, and then reworked until an
acceptable prototype is achieved. This model is used for several reasons :

• Prototypes can be reused in the future, for more complicated projects.


• Users have a better understanding of how the product works.
• Quicker customer feedback provides a better idea of customer needs
• Emphasizes team communication and flexible design practices.
• Missing functionality and errors are detected easily.

2
Figure 1: Prototype Model

1.7 Roles and Responsibilities


Title/Role Name Responsibilities
• Overall development
of the project.
• Generate ideas.
Ishika Baidhya • Champions the
Project Developer Saroj Mehta project amongst her
peer and provide
leadership as
required
• Making daily reports
• Making resource
available to project
as required.
Project Documentation/ Ishika Baidhya • Attend peer
Report Saroj Mehta meetings and correct
documentation.
• Deliver final
documentation as
required.

3
1.8 Report Organization
In this report, report organization starts with a brief introduction and ends with the
conclusion and future recommendation i.e chapter 1 to chapter 5 which are listed below:

Chapter 1:

Chapter 1 starts with an introduction. In an introduction we study about a brief


introduction, problem definition, objectives, scope, project deliverable, development
methodology, roles and responsibilities and report organization.

Chapter 2:

Chapter 2 starts with background study and literature review.

Chapter 3:

Chapter 3 starts with system analysis and design. In system analysis we study about
requirement analysis, feasibility analysis, data modeling and process model. Similarly, in
system design we study about architectural design, database schema. And interface
design, algorithm details.

Chapter 4:

Chapter 4 starts with implementation and testing. In implementation we study about tools
used and implementation details of modules. Similarly, in testing we study about unit
testing.

Chapter 5:

Chapter 5 starts with conclusion and future recommendation which we study about
conclusion, lesson learnt/outcome and future recommendation.

4
CHAPTER 2: BACKGROUNDSTUDY &
LITERATURE REVIEW
2.1 Background Study
The college management software is an evolved form of management information system
(MIS) which is a tool that can be used to collect and analyze the data from the college
operations. This data is used by management to make the right decisions.

Another form of MIS is a Student Information System (SIS). It contains all data regarding
the students of the college. And the reports are concentrated around the academic
performance of the students. Both faculty, as well as management, have access to student
information systems to track the progress of the students. The management information
system will contain data from finance and administration above the usual student
performance data from SIS.

But college management software contains the functionality of both the student
information systems and management information systems. Therefore, it helps in
managing the entire life cycle of a student, parent and faculty within one platform. Also
administers the financial, academic, and administrative activities of the college.

2.2 Literature Review


The “COLLEGE INFORMATION MANAGEMENT SYSTEM” focuses on the technical
review of the project, emphasizing the techniques and tools used for the project. College
Information Management System is a large database system which can be used for
managing any university College’s day to day business. College Information
Management System allows users to store almost all of their college’s information
electronically, including information on students, attendance etc. Using College
Information Management System, finding student information is just a few seconds away
which might have costs hours, or even days, before. [1]

Until recently the place of the COLLEGE INFORMATION MANAGEMENT SYSTEM


(CIMS). Now-a-days, education is playing very significant role in the society. Day-by-
day, the percentage of illiterates are decreasing and the percentage of literates are
increasing. Education will change the society in all the aspects and everyone wants to
study higher professional degrees. Admissions are increasing day by day so there by.
Ratio of establishment new colleges and schools are also increasing. But the actual

5
challenge is starting from now. Most of the schools and colleges are maintain student
information in records. When the 4 number of records increased, it is difficult to maintain
the information of each student in the old manual system. Maintaining the records
manually leads to error phone and required more man power and it consumes more time
for processing the records. [2]

The system provides guidance to the admin to keep track of each students. The admin
have the access to the database of system. In an educational institute management is
crucial thing. This system is paperless system. System provides functionality for student
to application where in admin can manage. Overall manpower and reduces the time
required. [3]

6
CHAPTER 3: SYSTEM ANALYSIS AND DESIGN
3.1 System Analysis
System analysis involves the detailed study of the current system model, leading to
specification of a new system. A model provides the blueprints of a system.

3.1.1 Requirement Analysis


Requirement’s analysis involves frequent communication with system users to determine
specific features expectations, resolution of conflict or ambiguity in requirements as
demanded by the various users or group of users, avoidance of errors and documentation
of all aspects of the project development process from start to finish.

Two types of requirements are analyzed in two different ways;

1. Functional Requirements
The system allows the following functionalities:
• Admin will create students, teachers, staffs details
• Calculate finance and salary
• Manage annual budget for college
• Store and display all the details of students, teachers, staffs etc.

7
Figure 2: Use Case Diagram of College Information Management System
Figure 2 shows the use case diagram of “College Information Management System”
consisting of only Admin. Admin have facilities like manage student, manage teacher,
manage courses, manage fees, check department, manage library.

2. Non-Functional Requirements
It define the criteria according to which system must work. The requirements that
are not covered by functional are covered by non-functional requirements. It
includes the following requirements:
• Security
Admin only will be able to access the system using authorized name and
password. So, the system is secured from unknown access.
• Usability
This system is very easy to use and is easy to understand. It is user friendly.

8
• Performance
The developed system is able to provide correct and accurate functioning.
• Maintainability
The system needs to be maintained. Updating database, monitoring and error
handling should be carried out on a daily basis.
• Reliability
Any issue that occur may be fixed by the Admin.

3.1.2 Feasibility analysis


Before starting the project, a feasibility study is carried out to measure the variable of the
system. Feasibility study is necessary to determine if creating a new or improved system
is friendly with the cost, benefits, operation, technology and time.

Technical Feasibility

We will look into following factors for our project’s technical feasibility:

The underlying programming language which will be suitable for our project (i.e
Windows Form application, C#, MS SQL Server 2022, MS SQL Server Management
Studio 2019).

Operational Feasibility

The project has the following requirement that has to be attained.

• Admin Dashboard
• UI uniformity
• Test cases done

Economical Feasibility

In this context of the project work, the system developed is the College Information
Management System; which requires all the hardware and software support. To build a
project, economic investment will include the hardware, software, and manpower that
have the required developing skills. In context of our project cost for internet service as
well as working space for the team was feasible. So, the project was economical and
could serve the user’s purpose.

9
3.1.3 Data Modeling

Figure 3: ER Diagram of College Information Management System


Figure 3 shows the ER diagram of “College Information Management System” that
illustrates how “entities” such as people, objects or concepts relate to each within a
system. Admin, Student, Teacher, Courses, Department, Fees, Library are the entities
involved in it.

10
3.1.4 Process Model

Figure 4: Context Diagram of College Information Management System


Figure 4 shows the context diagram of “College Information Management System” in
a visual representation of the relationship between data and processes. The diagram has 3
main components which include external entities, system processes, and data flows.

11
Figure 5: Top Level DFD (Level-0) of College Information Management System

12
Figure 5 shows the top level DFD (Level-0) of “College Information Management
System” how data is processed within a system based on inputs and outputs. It is used to
represent the flow of information, data sources and destinations where data is stored.

3.2 System Design


3.2.1 Architectural Design

Figure 6: Architectural Design of College Information Management System


Figure 6 shows the architectural design of “College Information Management System”
that focuses on components or elements of a structure. An architect work with space and
elements to create a coherent and functional structure.

13
3.2.2 Database Schema

Figure 7: Schema Diagram of College Information Management System


Figure 7 shows the schema diagram of “College Information Management System”
defines how the data is organized using the schema diagram. A schema diagram contains
entities and the attributes that will define that schema. It tells about the structural view of
the database.

14
3.3 Interface Design

Figure 8: User Interface Design

15
3.4 Algorithm Details
We have apply Binary Search algorithm for development of system. The algorithm is
applied to watch the teachers and students by their name.

Steps:

Step 1: Read the search element from the user.

Step 2: Find the middle element in the sorted list.

Step 3: Compare the search element with the middle element in the sorted list.

Step 4: If both are matched, then display “Given element is found!!” and terminate the
function.

Step 5: If both are not matched, then check whether the search element is smaller or
larger than the middle element.

Step 6: If the search element is smaller than the middle element, repeat steps 2, 3, 4 and 5
for the left sub list of the middle element.

Step 7: If the search element is larger than middle element, repeat steps 2, 3, 4 and 5 for
the right sub list of the middle element.

Step 8: Repeat the process until we find the search element in the list or until sub list
contains only one element.

Step 9: If that element also doesn’t match with the search element, then display.
“Element is not found” and terminate the function.

16
Figure 9: Binary Search Algorithm

17
CHAPTER 4: IMPLEMENTATION AND TESTING
4.1 Implementation
To implement the system, we have included various tools as C#, .NET, MS SQL Server
2022, MS SQL Server Management Studio 2019.

4.1.1 Tools Used


• Front End Tools
Windows Form Application
A Windows Forms (WinForms) application is a type of software program
developed for the Microsoft Windows operating system. It provides a graphical
user interface (GUI) for users to interact with the application through windows,
buttons, textboxes, and other UI elements. WinForms is often used for creating
traditional desktop applications on Windows computers. It allows developers to
design and build the frontend of Windows applications.
• Back End Tools
C#
C# is a general purpose, object-oriented programming language. C# was
developed by Anders Hejlsberg and his team during the development of .Net
Framework. C# is a hybrid of C and C++. C# is an elegant and type-safe object-
oriented language that enables developers to build a variety of secure and robust
applications that run on the .NET Framework. It can be used to create Windows
client applications, XML web services, distributed components, client server
applications, database applications and much more.
MS SQL Server 2022
MS SQL Server 2022 introduces new object storage integration to the data
platform, storage integration to the data platform, enabling you to integrate SQL
Server with S3-compactible object storage, in addition to Azure Storage. The
first backup to URL and the second is Data Lake Virtualization.
MS SQL Server Management Studio 2019
SQL Server Management Studio (SSMS) is an integrated environment for
managing any SQL infrastructure. SSMS provides a single comprehensive
utility that combines a broad group of graphical tools with many rich script

18
editors to provide access to SQL Server for developers and database
administrators of all skill levels.

4.1.2 Implementation Details of modules


• Admin Module
Here in admin module, admin first login to the admin dashboard and manage the
Student, Department, Teacher, Courses, Fees, Library.

4.2 Testing
Testing is the evaluation of the software for testing the system or application. Testing is
conducted at the phase in software development life cycle or at module level in program
code to get the key issues of the developed system. It is the process of finding errors of
the developed system. In our project, three different testing is done which are listed
below:

4.2.1 Unit Testing


Unit testing is the types of software development process which individual units or
components of a software are tested. Unit testing were carried out during the process of
development of system. In our project, we tested different section such as login section,
admin section and user section. Some of the unit test we performed are shown below:

a. Testing for login section


Series of valid and invalid username and password is inserted to check the
authentication for the login section.

19
Table 1: TEST CASE FOR LOGIN SECTION
S.N. Test Case Input Test Data Expected Actual Output Status
Output
1. Test if user is Username: Admin User must be User redirected True
able to login Password: Password redirected into to the user
successfully the user dashboard
dashboard
2. Test if the user Username: User must not be User is not False
is unable to gmail.com redirected to the redirected to
login Password: 246 user dashboard the user
successfully dashboard
3. Test with valid Username: Admin Enter Both Enter Both True
email, but empty Password: Username and Username and
password Password Password
4. Test with empty Username: Enter Both Enter Both True
email, but valid Password: Password Username and Username and
password Password Password

20
CHAPTER 5: CONCLUSION AND FUTURE
RECOMMENDATION
5.1 Conclusion
In conclusion, the development and implementation of the College Information
Management System mark a significant milestone in advancing our institution's
capabilities in information management. This project was undertaken with the primary
goal of addressing the challenges associated with manual processes and fostering a more
efficient and streamlined administrative and academic environment.

The College Information Management System represents a leap forward into a more
efficient, transparent, and technologically advanced future for our institution. As we
embark on the next phase of this journey, we anticipate continued collaboration, growth,
and success in realizing the full potential of this transformative initiative.

5.2 Lesson learnt/Outcome


Every project makes us to learn and gain the knowledge in various aspect. In the
following project, we have learned lots of critical thinking and skills and learn things like
finding the solution on own, proper use of guidelines, communication and writing skills
and management of team.

• Critical Thinking Skills


From this project, we have learnt lots of critical thinking skills and also learned
to recognize different errors occurs in this system and solve it.
• Writing Skills
We learned how to prepare proposal and document related to project and learned
to use different case tools for Use Case diagram, Schema diagram, ER diagram
and DFD diagram and so on.

5.3 Future Recommendation


With our hard study and with the help of our college, we were able to develop web-based
application. To ensure a College Database Management System (DBMS) remains
effective and future-ready, we consider implementing the following recommendations:

• User-Friendly Interface: Continuously improve the user interface to make it


more user-friendly and intuitive for faculty, staff, and students.

21
• Scalability: Design the database to be scalable. As the college grows, the
database should handle increased data and user loads without significant
performance issues.
• Data Security: Prioritize data security by implementing strong access controls,
encryption for sensitive data, and regular security audits.
• Data Analytics: Incorporate data analytics capabilities into the DBMS. This
allows for advanced reporting, trend analysis, and data-driven decision-making
by college administrators.
• Training and Support: Provide ongoing training and support for users to
maximize the utilization of the system's capabilities.

22
REFERENCES

[1] "College Database Management System". [Online]. Available:


http://www.studocu.com/in/document/sharnbasva-university/bachelors-of-
computerapplication/college-management-system-documentation-1/30745219

[2] "Project Report on College Database Management System". [Online]. Available:


https://www.studocu.com/in/document/maharaja-agrasen-institute-of-
technology/btech/project-report-on-college-management-system-using-php-and-
mysql/21496170

[3] "P.S.Mortale, College Department Management System, India". [Online]. Available:


https://www.irjet.net/archieves/v5/i2/IRJET-V51250.pd

23
APPENDIX

Snapshot of :

Figure 10: Student Page

Figure 11: Department Page

24
Figure 12: Teacher Page

Figure 13: Courses Page

25
Figure 14: Fees/Salary Page

Figure 15: Library Page

26
Figure 16: Add Book Page

Figure 17: Issue Book Page

27
Figure 18: Returned Book Page

28
Source Code

Source code for User Authentication

private void LoginBtn_Click(object sender, EventArgs e)

if (UnameTb.Text == "" || PasswordTb.Text == "")

MessageBox.Show("Enter Both User Name and Password");

else if (UnameTb.Text == "Admin" || UnameTb.Text=="Saroj" ||


UnameTb.Text=="Ishika" && PasswordTb.Text == "Password" ||
PasswordTb.Text=="Mehta")

Homes Obj = new Homes();

Obj.Show();

this.Hide();

MessageBox.Show("Login Successful");

else

MessageBox.Show("Wrong UserName Or Password ");

UnameTb.Text = "";

PasswordTb.Text = "";

MessageBox.Show("Login Failed");

29
private void ResetBtb_Click(object sender, EventArgs e)

UnameTb.Text = "";

PasswordTb.Text = "";

Source code for database connection (Home/Dashboard)

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Data.SqlClient;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace CollegeManagementSystem

public partial class Homes : Form

public Homes()

InitializeComponent();

CountStudents();

30
CountTr();

CountDepartment();

SumIncome();

SumSalary();

SqlConnection Con = new SqlConnection(@"Data Source=DESKTOP-


R8IPGFF\SQLEXPRESS;Initial
Catalog=D:\CMSPROJECT\COLLEGE_DB.MDF;Integrated Security=True");

private void SumIncome()

Con.Open();

SqlDataAdapter sda = new SqlDataAdapter("Select Sum(FAmount) from


FeesTbl", Con);

DataTable dt = new DataTable();

sda.Fill(dt);

FeesLbl.Text = "RS " +dt.Rows[0][0].ToString();

Con.Close();

private void SumSalary()

Con.Open();

SqlDataAdapter sda = new SqlDataAdapter("Select Sum(TrSalary) from


SalaryTbl", Con);

DataTable dt = new DataTable();

sda.Fill(dt);

31
SalaryLbl.Text = "RS " +dt.Rows[0][0].ToString();

Con.Close();

private void CountStudents()

Con.Open();

SqlDataAdapter sda=new SqlDataAdapter("Select Count(*) from


StudentTbl",Con);

DataTable dt= new DataTable();

sda.Fill(dt);

StdLbl.Text = dt.Rows[0][0].ToString();

Con.Close();

32

You might also like