Minor Project Attendance New
Minor Project Attendance New
Minor Project Attendance New
i
ii
DIGITAL
ATTENDANCE
MANAGEMENT SYSTEM
iii
Acknowledgement
I express sincere thanks to Dr. Yogesh Bhomia, the Principal, AIET, for
his kind cooperation and extendible support towards the completion of my
seminar.
Piyush Kumar(16EAICS115)
Nihal Choudhary(16EAICS109)
Amrit Kumar Singh(16EAICS027)
Pankaj Singh(16EAICS722)
iv
STUDENT DECLARATION
Piyush Kumar(16EAICS115)
Nihal Choudhary(16EAICS109)
Amrit Kumar Singh(16EAICS027)
Pankaj Singh(16EAICS722)
v
ABSTRACT
presence in class. It is maintained on the daily basis of their attendance. the staffs will be
provided with the separate username & password to make the student’s status.
The staffs handling the particular subjects responsible to make the attendance for
all students. Only if the student present on that particular period, the attendance will be
calculated. The students attendance reports based on weekly and consolidate will be
generated.
vi
TABLE OF CONTENTS
CHAPTER NO TITLE PAGE NO
ABSTRACT……………………………………... ……………Vi
LIST OF FIGURES…………………………….. …………….ix
LIST OF TABLES……………………………… ……………..x
1 INTRODUCTION……………………………… ……………..1
1.1 Objective……………………………………... ……………..1
2 SYSTEM ANALYSIS…………………………... ……………..2
2.1 Existing System……………………………… ……………..3
2.2 Proposed System…………………………….. ……………..3
2.3 Feasibility Study……………………………... ……………..3
2.3.1 Economical Feasibility……………… ……………..4
2.3.2 Technical Feasibility………………………………..4
2.3.3 Operational Feasibility……………… ……………..4
3 SYSTEM SPECIFICATION…………………... ……………..5
3.1 Hardware Specification……………………… ……………..5
3.2 Software Specification……………………….. ……………..5
4 SOFTWARE DESCRIPTION…………………. ……………...6
4.1 Package-Visual Studio 2010…………………. ……………...6
4.2 Development Tools And Technologies……… ……………...6
4.2.1 VB.Net (10.0)……………………….. ……………...7
4.2.2 Oracle10g…………………………….……………...7
4.2.3 ADO.Net…………………………….. ……………...8
5 PROJECT DESCRIPTION……………………. ……………...9
5.1 Problem Definition…………………………... ……………...9
5.2 Overview of The Project……………………...……………...9
5.3 Module Description………………………….. ……………...9
5.4 System Flow Diagram……………………….. ……………..12
5.5 Data Flow Diagram………………………….. ……………..13
5.6 System Design………………………………. ……………..15
vii
5.6.1 Entity Relationship Diagram………….………….15
5.6.2 Use case Diagram……………………. ………….16
5.6.3 Database Design………………………………….17
5.6.4 Input Design………………………….. ………….20
5.6.5 Output Design………………………... ………….21
6 SYSTEM TESTING………………………………………….22
6.1 Introduction……………………………………. ………….22
6.2 Testing Methodologies…………………………………….22
6.2.1 Unit Testing………………………….. ………….23
6.2.2 SystemTesting………………………... ………….23
6.2.4 Performance Testing…………………. ………….23
6.3 Test Cases……………………………………... ………….24
7 SYSTEM IMPLEMENTATION……………....... ………….28
7.1 Purpose ………………………………………... ………….28
viii
LIST OF FIGURES
ix
5.4.5 LIST OF TABLES
x
CHAPTER 1
INTRODUCTION
1.1 OBJECTIVE:
1
CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION
Analysis can be defined as breaking up of any whole so as to find out their nature,
function etc. It defines design as to make preliminary sketches of; to sketch a pattern or
outline for plan. To plan and carry out especially by artistic arrangement or in a skillful
wall. System analysis and design can be characterized as a set of techniques and
processes, a community of interests, a culture and an intellectual orientation.
The various tasks in the system analysis include the following.
Understanding application.
Planning.
Scheduling.
Developing candidate solution.
Performing trade studies.
Performing cost benefit analysis.
Recommending alternative solutions.
Selling of the system.
Supervising, installing and maintaining the system.
This system manages to the analysis of the report creation and develops manual
entry of the student attendance. First design the students entry form , staff allocation and
time table allocation forms. This project will helps the attendance system for the
department calculate percentage and reports for eligibility criteria of examination .The
application attendance entry system will provide flexible report for all students.
2
The Existing system is a manual entry for the students. Here the attendance will
be carried out in the hand written registers. It will be a tedious job to maintain the record
for the user. The human effort is more here. The retrieval of the information is not as easy
as the records are maintained in the hand written registers.
This application requires correct feed on input into the respective field. Suppose
the wrong inputs are entered, the application resist to work. so the user find it difficult to
use.
2.3 PROPOSED SYSTEM:
To overcome the drawbacks of the existing system, the proposed system has
been evolved. This project aims to reduce the paper work and saving time to generate
accurate results from the student’s attendance. The system provides with the best user
interface. The efficient reports can be generated by using this proposed system.
2.3.1 Advantages of Proposed System
It is trouble-free to use.
It is a relatively fast approach to enter attendance
Is highly reliable, approximate result from user
Best user Interface
Efficient reports
3. FEASIBILITY STUDY:
Feasibility analysis begins once the goals are defined. It starts by generating broad
possible solutions, which are possible to give an indication of what the new system
should look lime. This is where creativity and imagination are used. Analysts must think
up new ways of doing things- generate new ideas. There is no need to go into the detailed
system operation yet. The solution should provide enough information to make
reasonable estimates about project cost and give users an indication of how the new
system will fit into the organization. It is important not to exert considerable effort at this
stage only to find out that the project is not worthwhile or that there is a need
significantly change the original goal.
Feasibility of a new system means ensuring that the new system, which we are
going to implement, is efficient and affordable. There are various types of feasibility
to be determined. They are,
3
3.1 Economically Feasibility:
Development of this application is highly economically feasible. The only thing to
be done is making an environment with an effective supervision.
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.
3.2 Technical feasibility:
The technical requirement for the system is economic and it does not use any
other additional Hardware and software. Technical evaluation must also assess
whether the existing systems can be upgraded to use the new technology and whether
the organization has the expertise to use it.
Install all upgrades framework into the .Net package supported widows based
application. this application depends on Microsoft office and intranet service
,database. Enter their attendance and generate report to excel sheet.
3.3 Operational Feasibility:
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. Technical
performance include issues such as determining whether the system can provide the right
information for the Department personnel student details, and whether the system can be
organized so that it always delivers this information at the right place and on time using
intranet services. Acceptance revolves around the current system and its personnel.
4
CHAPTER 3
SYSTEM SPECIFICATION
3.1 HARDWARE REQUIREMENTS (Minimum Requirement)
Minimum RAM:-1GB
Hard Disk:-128 GB
Processor:-Intel Pentium 4( 1.50 GHZ) or above
5
CHAPTER 4
SOFTWARE DESCRIPTION
4.1 PACKAGE - VISUAL STUDIO 2010
Microsoft Visual Studio is an integrated development environment (IDE)
from Microsoft.It is used to develop console and graphical user interface applications
along with Windows Forms or WPF applications, web sites, web applications, and web
services in both native codetogether with managed code for all platforms supported by
Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact
Framework and Microsoft Silver light.
Visual Studio supports different programming languages by means of language
services, which allow the code editor and debugger to support (to varying degrees) nearly
any programming language, provided a language-specific service exists.
Visual Studio also includes a web-site editor and designer that allows web pages
to be authored by dragging and dropping widgets. It is used for developing VB.NET
application efficiently to get input and output design easiest one. It will be run at
windows application based services provide the user.
4.2DEVELOPMENT TOOLS AND TECHNOLOGIES
VB.NET Version 10.0:
The latest version of Visual Basic .NET, which runs on .NET
framework 4.5. Async Feature, Iterators, Call Hierarchy, Caller Information and Global
Keyword in Namespace Statements are some of the major features introduced in this
version of VB. Visual Basic .NET (VB.NET) is an object-oriented computer
programming language that can be viewed as an evolution of the classic Visual Basic
(VB), implemented on the .NET Framework. Microsoft currently supplies two main
editions of IDEs for developing in Visual Basic: Microsoft Visual Studio 2012, which is
commercial software and Visual Basic Express Edition 2012,which is free of charge. The
command-line compiler, VBC.EXE, is installed as part of the freeware .NET Framework
SDK. Mono also includes a command-line VB.NET compiler. The most recent version is
VB 2012, which was released on August 15, 2012.
6
My goal in this article is to provide you with an introductory,yet
intensive, look at Visual Basic .NET and the new Microsoft®.NET platform. In order to
learn what Visual Basic .NET is all about, you must first understand a few core aspects of
the .NET platform. This article will build your knowledge of Visual Basic .NET from the
ground up, so I'll begin by discussing the new programming model and the high-level
architecture of the platform's execution engine called the common language runtime
(CLR).
While explaining what the CLR is and how it works, I'll show a few
examples using Visual Basic .NET. As you'll see, Visual Basic® has undergone a
significant overhaul to accommodate the CLR and its associated programming model.
Consequently, Visual Basic .NET has many new object-oriented design features and much
higher levels of type safety than previous versions of Visual Basic.either language can be
used to write software that takes full advantage of the CLR .NET Framework. Now, let me
get started by introducing the core concepts of the .NET platform
Features of .NET
IO management
Windows and Web Controls
Database access
Multithreading
Remoting
Reflections
ORACLE 10G:
Oracle 10g has come with purpose of improving manageability and
performance in all areas, right from the process of installation, server configuration,
database upgrades to application tuning, space and storage management and so on. This
Oracle version has been designed to reduce the cost of manageability and deliver high
performance for all key workloads. Also various new features are provided for high-
availability, including new flashback capabilities, virtualization of computing resources
in Grid environment that reduce the cost of hardware and storage, security enhancement,
Business intelligent solutions etc. Let have a glance at some exiting features of Oracle
10g.
7
Clustering
Grid computing
Server manageability
Network management
Storage management
Space,object transaction management
Back up recovery management
Reduce down time for application and database upgrades
ADO.Net:
An evolutionary, more flexible successor to ADO.A system designed for
connected environments. A programming model with advanced XML support A set of
classes, interfaces, structures, and enumerations that manage data access from within the
.NET Framework
Data Providers
MS SQL Server 7.0+
Oracle
OLE DB (old SQL & Access- Jet 4.0)
(ODBC)- earlier Visual Studio, Access
Open Database Connectivity
Driver, ODBC for Oracle
8
CHAPTER 5
PROJECT DESCRIPTION
5.1PROBLEM DEFINITION:
This system developed will reduce the manual work and avoid
redundant data. By maintaining the attendance manually, then efficient reports cannot
be generated. The system can generate efficient weekly,consolidate report based on
the attendance. As the attendances are maintained in registers it has been a tough task
for admin and staff to maintain for long time. Instead the software can keep long and
retrieve the information when needed.
9
5.3.1 ADMINISTRATOR MODULE:
Student Details:
subject and the subject code to the
It helps to allot the
particular staffs.
It provides the facility to have a user name and password to
the staffs .
Time table details:
It will retrieve the subject information fromthe subject
database and assign time table to the staffs.
It will help the admin, staff to make the entry of attendance
based of the subject and period allotted to the respective
staff.
Attendance details:
It will be makes to the attendance database all students.
Entered attendance to stored in the database subject ,period
wise into the particular date.
It will help s to
the get report of weekly and consolidate of
the attendance.
10
Report details:
Report can be taken by daily,weekly and consolidate:
weekly report get all hour details of attendance starting date to ending
date and display the status
Consolidate report get all student attendance details starting date to
ending date status helpfor the eligibility criteria of the student to
attend the examination.
2. consolidate report get all student attendance details from starting date
to ending date status help for the eligibility criteria of the student to
attend the examination
11
5.4 SYSTEM FLOW DIAGRAM:
12
5.5.1 DFD level 0:
ATTANDANCE
USER MANAGEMENT REPORT
SYSTEM
DATABASE
PERSON
ENTRY
LOGIN
INVALID
UID / PWD
USER
AUTHENDICAT CHECK
DATABASE
ION
ADMIN
STAFF
ACCESS
ACCESS
13
5.5.3.1 Admin:
n
o ALLOCATION
ti
ibu
tr
n Get details
co
om STUDENTS
fr
a
t
a
d e
d s
e a
o tab
St r da
ATTANDANCE
ADMIN contribution VIEW Stored data from
ACCESS STAFFS Get details database
S
co
t
o
r
e
dd a
d t
n at
a
a fr
trib
b o
a
s m ails
e et det
G
u
UPDATE
REPORT
e
a
n
c UPDATE Stored atte
t
e
n
d
ATTENDANCE
t
d
a
t
e
a
ndance
p
t
n
e
d
u
t
e
REPORT t
ll
a
s
a
n
c
e d
G e
n
t
t
14
5.6.1 Entity Relationship Diagram:
year DoB
year DoB
III IV dept Address
III IV dept Address
II V
V
II Na e
VI Name
VI no
II VII Roll no mno
VII Roll no Status
Table name day Status
Table name day
*
user
*
1
date
date
hour
1 1 hour
Attandance * Attendance
details
subject
subject
*
*
Authendication
Roll no
Roll no
*
*
Staffs
details
subjectsubject
passpasswordord
SubjectSubject
15
Figure:5.6.2 -Use case Diagram
16
5.6.2 Database Design:
5.6.2.1 LOGIN TABLE:
To create a login details for the table.
17
5.6.2.3 Student table:
To create table for Student personal details for our department.
18
5.6.2.4 Time table:
To create the subject time table for a particular class.
19
5.6.2.5 Attendance table:
To create attendance details for particular class .
20
5.6.4 OUTPUT DESIGN
Output design this application “Student Attendance management system”
generally refers to the results and information that are generated by the system for many
end-users; output is the main reason for developing the system and the basis on which
they evaluate the usefulness of the application.
As the outputs are the most important sources of information to the users, better
design should improve the system’s relationships with us and also will help in decision
making. Form design elaborates the way output is presented and the layout available for
capturing information.
One of the most important factors of the system is the output it produces. This
system refers to the results and information generated. Basically the output from a
computer system is used to communicate the result of processing to the user.
Attendance management system to show the report subject wise attendance
maintaining by staffs. Taken as a whole report obtain on a administrator privileges only.
this forms will show weekly report and consolidate report generated date, batch, and
class wise to our end user. we want to change our report to convert Excel format .if you
want change any modification.
21
CHAPTER 6
SYSTEM TESTING
6.1 Introduction
Once source code has been generated, software must be tested to uncover (and
correct) as many errors as possible before delivery to customer. Our goal is to design a
series of test cases that have a high likelihood of finding errors. To uncover the errors
software techniques are used. These techniques provide systematic guidance for
designing test that
(1) Exercise the internal logic of software components, and
(2) Exercise the input and output domains of the program to uncover errors
22
6.2.1 Unit testing:
Unit testing focuses verification effort on the smallest unit of software design-the
software component or module. The unit test is white-box oriented. The unit testing
implemented in every module of student attendance management System. by giving
correct manual input to the system ,the datas are stored in database and retrieved. If you
want required module to access input or get the output from the End user. any error will
accrued the time will provide handler to show what type of error will accrued .
6.2.2 System testing:
System testing is actually a series of different tests whose primary purpose is to
fully exercise the computer-based system. Below we have described the two types of
testing which have been taken for this project. it is to check all modules worked on input
basis .if you want change any values or inputs will change all information. so specified
input is must.
6.2.4 Performance Testing
Performance testing is designed to test the run-time performance of software
within the context of an integrated system. Performance testing occurs throughout all
steps in the testing process. Even at the unit level, the performance of an individual
module may be assessed as white-box tests are conducted.
This project reduce attendance table, codes. it will generate report fast.no have
extra time or waiting of results .entered correct data will show result few millisecond. just
used only low memory of our system. Automatically do not getting access at another
software. Get user permission and access to other applications.
23
6.3 Test cases
Test case is an object for execution for other modules in the architecture does not
represent any interaction by itself. A test case is a set of sequential steps to execute a test
operating on a set of predefined inputs to produce certain expected outputs. There are two
types of test cases:-manual and automated. A manual test case is executed manually
while an automated test case is executed using automation.
In system testing, test data should cover the possible values of each parameter
based on the requirements. Since testing every value is impractical, a few values should
be chosen from each equivalence class. An equivalence class is a set of values that should
all be treated the same.
Ideally, test cases that check error conditions are written separately from the
functional test cases and should have steps to verify the error messages and logs.
Realistically, if functional test cases are not yet written, it is ok for testers to check for
error conditions when performing normal functional test cases. It should be clear which
test data, if any is expected to trigger errors.
24
TEST CASE:
6.3.1 Agent and admin login form
Sno Test case Test case Test case Step Expected Actual Test
id name desc result Result case
status
pass/fail
1 Login Validate To verify Enter the
Login Login Pass
admin login that login login successful successful
name on name and
or an error
login password
message
page “In valid
and click
submitlogin or
buttonpassword”
must be
displayed
2 Login Validate To verify Enter the Login Login Pass
Staff login that login login successful successful
name on name and or an error
login password message
page and click “In valid
submit login or
button password”
must be
displayed
3 Password Validate To verify Enter An error An error fail
password that password message message
password and login “password “password
on login name invalid” invalid”
page click must be must be
submit displayed displayed
button
25
6.3.2 MASTER form
Sn Test Test Test Step Expected result Actual Test
o case case case Result case
id name desc status
pass/fai
l
1 Creat ValidateTo Nothing An error message Inserted Pass
e allocatio
allocate entered student name not succesfu
suden n form separate and click equal to null must l
t roll no submit be displayed
detail for the button
s students
2 Creat Validate To Nothing An error message Inserted Pass
e staffallocatio allocate entered staff details succesfu
detail n form separate and click password,usernam l
s subject submit e not equal to null
usernam button must be displayed
e
passwor
d for the
staffs
3 Creat Validate To Nothing An error message Inserted Pass
e time allocate verify entered not click not succesfu
table period that data and click allocation subject l
form stored submit table not equal to
on button null must be
database displayed
4 View Check To generate An error message An error fail
details of verify d return null will be message
all data that data displayed return
stored null will
on be
database displaye
d
26
6.3.3 Report form
Sno Test case Test case Test case Step Expected Actual Test
id name desc result Result case
status
pass/fail
1 Weekly Validate To select Nothing An error Retrived Pass
report class that source entered message data
attendance and and on not successful
form destination click selected
submit
button
2 Consolidate Validate To select Nothing An error Retrived Pass
report class that depart entered message data
attendance on and and on not successful
form time click selected
submit
button
27
CHAPTER 7
SYSTEM IMPLEMENTATION
7.1 Purpose
System implementation is the important stage of project when the theoretical
design is tuned into practical system. The main stages in the implementation are as
follows:
Planning
Training
System testing and
Changeover Planning
Student Attendance management system will implement student details ,staff handle
subjects details, separate login details ,time table details. It will used to entered subject
wise attendance .This application elaborate attendance table generate weekly, consolidate
report provide to the End user. Mostly this application will calculate date wise attendance
.To select starting date to end date generate reports at the time of activities.
28
7.2 SYSTEM MAINTENANCE
Software maintenance is far more than finding mistakes. Provision must be made
for environment changes, which may affect either the computer, or other parts of the
computer based systems. Such activity is normally called maintenance. It includes both
the improvement of the system functions and the corrections of faults, which arise during
the operation of a new system.
It may involve the continuing involvement of a large proportion of computer
department recourses. The main task may be to adapt existing systems in a changing
environment.
Back up for the entire database files are taken and stored in storage devices like
flash drives, pen drives and disks so that it is possible to restore the system at the earliest.
If there is a breakdown or collapse, then the system gives provision to restore database
files. Storing data in a separate secondary device leads to an effective and efficient
maintains of the system. The nominated person has sufficient knowledge of the
organization’s computer passed based system to be able to judge the relevance of each
proposed change.
29
CHAPTER 8
CONCLUSION AND FUTURE ENHANCEMENT
8.1 Conclusion
To conclude, Project Data Grid works like a component which can access all the
databases and picks up different functions. It overcomes the many limitations
incorporated in the attendance.
Easy implementation Environment
Generate report Flexibly
Bar code Reader based attendance system.
Individual Attendance system With photo using Student login.
30
CHAPTER 9
APPENDICES
9.1 Source code:
LOGIN:
Imports System.Data
31
TextBox2.Text = ""
MDIParent1.Show()
Me.Hide()
i=1
Exit While
End If
rs1.MoveNext()
End While
rs1.Close()
rs.MoveNext()
End While
If i = 0 Then
MsgBox("LOGIN NOT VAILD")
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End If
End Sub
End Sub
End Class
32
Attendance Entry:
Public Class attentry
Dim con As New ADODB.Connection
Dim rs, rs1 As New ADODB.Recordset
Dim str, dat As String
Dim att As String
Dim i As Integer = 1
Dim flag As Integer = 1
Dim chk1 As New DataGridViewCheckBoxColumn()
Dim chk As New DataGridViewCheckBoxColumn()
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
rs = New ADODB.Recordset
Try
str = "select * from " & ComboBox1.SelectedItem & "_"
& ComboBox5.SelectedItem & ""
rs.Open(str, con, ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockOptimistic)
rs.MoveFirst()
DataGridView1.Rows.Clear()
i=1
While (rs.EOF <> True)
Dim row As String() = New String() {i, rs.Fields("rollno").Value,
rs.Fields("name").Value}
DataGridView1.Rows.Add(row)
i=i+1
rs.MoveNext()
End While
rs.Close()
DataGridView1.Columns.Add(chk)
chk.HeaderText = "PRESENT/ABSENT"
chk.Name = "chk"
chk.Selected = True
DataGridView1.Columns.Add(chk1)
chk1.HeaderText = "ONDUTY"
chk1.Name = "chk1"
timetb()
Catch ex As Exception
33
'rs.Close()
MsgBox(ex.ToString)
End Try
End Sub
End Sub
Else
34
att = att + ",'O'"
End If
Else
If (flag < 2) Then
att = "'A'"
flag = 3
Else
att = att + ",'A'"
End If
End If
Next
Try
str = "insert into " & ComboBox1.SelectedItem & "_" &
ComboBox5.SelectedItem & "_" & ComboBox2.SelectedItem & "_" &
ComboBox3.SelectedItem & "_att values('" & dat & "'," & ComboBox4.Text & ",'" &
Label7.Text & "'," & att & ")"
con.Execute(str)
MsgBox("insert")
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
35
End Sub
For Me.i = 1 To 7
If String.Equals(rs1.Fields(i).Value, Label7.Text) Then
ComboBox4.Items.Add(i)
End If
Next
rs1.Close()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
End Sub
End Sub
36
End Sub
End Sub
End Sub
WEEKLY REPORT:
37
Imports Microsoft.Office.Interop
holiday = String.Empty
Try
rs = New ADODB.Recordset
rs1 = New ADODB.Recordset
DataGridView1.Rows.Clear()
DataGridView1.Columns.Clear()
DataGridView2.Rows.Clear()
DataGridView2.Columns.Clear()
38
clm4.HeaderText = "STUDENT NAME"
clm4.Name = "clm4"
DataGridView1.Columns(1).Width = 130
Dim d As Date
d = DateTimePicker1.Value.Date
Dim d1 As Date
d1 = DateTimePicker2.Value.Date
39
dtxt1.Width = 20
d = DateAdd(DateInterval.Day, 1, d)
diff = diff - 1
rs1.Close()
End Try
End While
' MsgBox(holiday)
DataGridView1.Rows.Add(holiday)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
40
conn.Open("driver={microsoft ODBC for
Oracle};server=test;uid=M11MCA20;pwd=M11MCA20;")
End Sub
Panel1.Visible = True
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 100
xlWorkBook = xlApp.Workbooks.Add(misValue)
xlWorkSheet = xlWorkBook.Sheets("sheet1")
flag = 0
j=1
41
xlWorkSheet.Cells(6, col1.Index + 1) =
col1.HeaderText.ToString flag = flag + 1
j=j+1
Else
j=j+1
xlWorkSheet.Cells(6, j) =
col1.HeaderText.ToString For i = 1 To 6
j=j+1
xlWorkSheet.Cells(6, j + i - 1) = "".ToString
Next
End If
Next
xlWorkSheet.Cells(6, 1) = "SNO".ToString
flag = 0
For Each col As DataGridViewColumn In DataGridView1.Columns
If flag < 2 Then
xlWorkSheet.Cells(6, col.Index + 2) =
col.HeaderText.ToString flag = flag + 1
Else
xlWorkSheet.Cells(7, col.Index + 2) =
col.HeaderText.ToString End If
Nächste
For i = 1 To DataGridView1.Rows.Count - 1
xlWorkSheet.Cells(i + 7, 1) = i.ToString
flag = 0
For j = 0 To DataGridView1.ColumnCount - 1
Dim vv As String
If DataGridView1(j, i - 1).Value Is Nothing Then
vv = "Niet ingevuld"
Else
vv = DataGridView1(j, i - 1).Value.ToString
xlWorkSheet.Cells(i + 7, j + 2) = vv
If flag < 2 Then
xlWorkSheet.Columns(j + 2).ColumnWidth =
15 'xlWorkSheet.Columns.Merge(2)
flag = flag +
1 Else
xlWorkSheet.Columns(j + 2).ColumnWidth =
1 End If
End If
42
ProgressBar1.Value = (i / DataGridView1.Rows.Count) * 100
Nächste
Nächste
xlWorkSheet.Range("A1:AS1").Merge()
xlWorkSheet.Range("A2:AS2").Merge()
xlWorkSheet.Range("A3:AS3").Merge()
xlWorkSheet.Range("A4:AS4").Merge()
xlWorkSheet.Range("A5:AS5").Merge()
xlWorkSheet.Range("D6:J6").Merge()
xlWorkSheet.Range("K6:Q6").Merge()
xlWorkSheet.Range("R6:X6").Merge()
xlWorkSheet.Range("Y6:AE6").Merge()
xlWorkSheet.Range("AF6:AL6").Merge()
xlWorkSheet.Range("AM6:AS6").Merge()
xlWorkBook.Activate()
xlWorkBook.SaveAs("D:\export.xls")
xlWorkBook.Close()
xlApp.Quit()
Panel1.Visible = False
End Sub
End Sub
End Class
Consolidate Report:
Imports Microsoft.Office.Interop
Public Class consli
43
Dim rs, rs1 As New ADODB.Recordset
Dim str, dat As String
Dim i, j, k, diff, count1 As New Integer
Dim pre_hours(100), tot_hours(100), ab_hours(100) As Integer
Dim tot_day(100), pre_day(100), ab_day(100) As Double
End Sub
End Sub
44
con.Open("driver={microsoft ODBC for
Oracle};server=test;uid=M11MCA20;pwd=M11MCA20;")
Label8.Text = login.temp1
Label11.Text = login.temp2
Label10.Text = login.temp3
End Sub
j=2
Try
str = "Select * from " & ComboBox1.SelectedItem & "_" & ComboBox5.Text
& "_" & ComboBox2.SelectedItem & "_" & ComboBox3.SelectedItem & "_att
where(days='" & d.Date.ToString("dd-MMM-yyyy")
& "' and subject='" & Label10.Text & "')order by hour asc "
rs.Open(str, con, ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimistic)
rs.MoveFirst()
45
ab_hours(k) = ab_hours(k) + 1
End If
tot_hours(k) = tot_hours(k) + 1
rcount = rcount + 1
count = count + 1
k=k+1
End While
j=j+1
rs.MoveNext()
End While
End While
Catch ex As Exception
MsgBox(ex.ToString)
End Try
i=0
While (i < DataGridView1.Rows.Count - 1)
DataGridView1.Rows(i).Cells(2).Value = pre_hours(i)
DataGridView1.Rows(i).Cells(3).Value = ab_hours(i)
DataGridView1.Rows(i).Cells(4).Value = tot_hours(i)
DataGridView1.Rows(i).Cells(5).Value = Math.Round((pre_hours(i)
/ tot_hours(i) * 100), 2)
i=i+1
46
End While
End Sub
End Sub
xlWorkBook = xlApp.Workbooks.Add(misValue)
xlWorkSheet = xlWorkBook.Sheets("sheet1")
47
For Each col As DataGridViewColumn In DataGridView1.Columns
xlWorkSheet.Cells(6, col.Index + 1) = col.HeaderText.ToString
Next
For i = 1 To DataGridView1.Rows.Count - 1 For
j = 0 To DataGridView1.ColumnCount - 1
Dim vv As String
If DataGridView1(j, i - 1).Value Is Nothing Then
vv = "Niet ingevuld"
Else
vv = DataGridView1(j, i - 1).Value.ToString
xlWorkSheet.Cells(i + 6, j + 1) = vv
End If
Next
ProgressBar1.Value = (i / DataGridView1.Rows.Count) * 100
Next
xlWorkBook.Activate()
xlWorkBook.SaveAs("D:\Consolidate.xls")
xlWorkBook.Close()
xlApp.Quit()
Panel1.Visible = False
MsgBox("You can find your report at " & "D:\Consolidate.xls")
End Sub
End Class
48
9.2 Screen Shots:
9.2.1LOGIN:
Figure: 9.2.1-login
9.2.2ADMIN HOME PAGE:
49
9.2.2.1 STUDENT DETAILS:
50
9.2.2.3TIME TABLE:
51
9.2.2.5Staffs details:
52
9.2.2.7UPDATE:
53
9.2.2.9 ATTENDANCE ENTRY:
54
9.2.4 CONSOLIDATE REPORT:
55
9.3 STAFFS LOGIN:
9.3.1DAILY ATTENDANCE:
Figure:9.3.1daily attendance
9.3.2 UPDATE ATTENDANCE:
56
9.3.3 WEEKLY REPORT:
57
CHAPTER 10
REFERENCES
Books References
1. Introducing Microsoft .NET, Second Edition author David S. Platt.
2. Joe Mayo, “Microsoft Visual Studio 2010: A Beginner's Guide”, Tata McGraw
Hill, 2010.
3. Alex Mackey, “Introducing .NET 4.0: With Visual Studio 2010”, Press,
USA, 2010.
WEBSITES
1. http://www.msdn.net/
2. http://msdn.microsoft.com/en-us/library/orm-9780596518455-02.aspx
3. http://www.w3schools.com/asp.net/
4. http://www.cramerz.com/aspdotnet
5. http://www.dotnetspider.net/
6. http://www.stackoverflow.com
7. http://www.codeproject.com
58