Professional Documents
Culture Documents
ON
SUBMITTED TO
Department of Computer Science
SUBMITTED TO
SUBMITTED BY
Mr.Parmod Kumar
SUBMITTED AT
I would like to take this opportunity to express my gratitude towards all the people who have
in various ways, helped in the successful completion of my project.
I must convey my gratitude to Mr. PARMOD KUMAR for giving us the constant source of
inspiration and help in preparing the project, personally correcting my work and providing
encouragement throughout the project.
I also thank all my faculty members for steering me through the tough as well as easy phases
of the project in a result oriented manner with concern attention.
SYSTEM is the bona fide project work carried out by Mr. Dinesh Kumar students of BCA, SHRI
RAM COLLEGE MUZAFFARNAGAR during the year 2010, in partial fulfillment of the
requirements for the award of the Degree of Bachelor of Computer Application and that the project
report has not formed the basic for the award previously of any degree, diploma or any other similar
title.
Place: MUZAFFARNAGAR
Signature of the Guide
System implementation
System Development
System maintenance
System documentation
Screen shots
Coding
CONCLUSION
GLOSSARY
BIBLOGRAPHY
This Project is built to model the EMPLOYEE MANAGEMENT SYSTEM as closely as possible.
Some features are:
1
Separate profiles for users, containing all their personal data.
Possibility of multiple entries per profile.
Finding the salary and hours according to the according the employye name and as well as
the status.
A such a management system by which you can search employee and his data and available
of total number of hours.
Separate profile type for officials.
Appropriate error checking.
All these and other transactions and features have been described in detail in the following section.
1.1
1.2
1.2.1
Minimize repetitive work done by the system administrator and booking clerks.
1.2.2
Employee system that would keep a record of employee data including their
Pension plan.
1.2.3
Union membership status, and taxes and also to be able to calculate the pay of the
Employees taking into consideration employee data.
1.2.4
1.2.4.1 Increase awareness among many company about various special offers by which they can
save more much time.
1.2.4.2 The software we developed calculates the employee net pay from the deductions.
1.2.4.3 The payslip can be printed out as a receipt.
1.3
Most of the bugs that we found and those that the clients and beta users found have been
corrected. Any new bugs found will also be corrected and the software will be
Updated and released.
1.4
Payroll Ledger: This is a table that shows the calculated pay of employees and the month in which
they earned the pay. The ledger can be filtered by name, identification number, year and month.
Hours Worked: This is the number of times that an employee work in a month. The hours worked is
used to calculate the pay that an employee will receive for that month.
Net Pay: The net pay is the final salary amount that would be given to the employee after all the
deductions are subtracted from the gross pay. The deductions include among others taxes, union
member dues and pension plan.
Gross Pay: The gross pay is the amount that the employee earns before the deductions are
subtracted.
Deductions: Deductions are made up of taxes, union membership dues, pension plan. They are
subtracted from the gross pay to give the net pay which is the employee's final pay for the month.
Taxes: The taxes consists of the state dues and federal dues. A percentage of the employee's salary
goes to state and country.
Union Membership Dues: This is meant for employee's that are union workers in the company.
They get to pay a percentage for union dues. An employee can be a union member and later change
status to be a non-union member.
Pension Plan: Employees that opted to use the pension plan of the company get to pay a particular
percentage of their pay in preparation for their retirement.
Payslip: These are similar to pay cheques. They allow the employee to have his or her pay printed
out on paper so that they can cash it.
Year-To-Date Total: The year-to-date total is the summation of all the previous earnings till the
month before the current month.
The graphical user interface was acceptable to the client at this stage even though he thought we
could improve on it with a little more time. From our project deliverables, the client was able to
bring to our understanding that the employees should have different pay rates and that it would be
safe (for record purposes) to calculate the employee's year-to-data total salary earnings. These
observations were later incorporated into the final deliverable.
11
DESIGN
2.1 An Introduction to the methods and techniques adopted
Within the design
The software was built using Visual Basic and it can run on computers that have the .NET
Framework installed. We divided the whole project into five main modules: employee data, payroll
records, rates, ledger and help.
When a data is saved, the data gets written into an XML file. Keeping in line with making the
software platform-independent, XML is also a highly platform-independent format for storing data.
This is where all the data of the employee is stored, along with each months payroll data for the
employee. There is also a separate XML file for storing current rates. For an employee data or
payroll data to be saved to the file, it has to be serialized. Getting any data from the file will require
the data to first be deserialized before it can be used. Serialization and deserialization helped make
the data storage very simple.
We also used the object-oriented paradigm to code and organize our program. This ensured code
reuse, and efficient updating of the code later on.
PAYROLL
SYSTEM
EMPLOY
EE DATA
PAYROLL
RECORD
S
RATES
PAYSLIP
12
LEDGER
SLIP
We refactored the modules. This had to be done after one first deliverable was given to out client.
13
IMPLEMETATION
Some of the difficulty we faced was in trying to make the desired functions work. At first the coding
seemed a little complex, so we went back to the client for clarification and we were able to get a
more detailed description of the functions. After studying the IDE we wanted to use, the coding
became less complex and we were able to figure out how to go about it.
How errors are detected and the error messages that should appear
What happens when we try overwriting data that already exists on the list
We were able to answer and resolve these issues after meetings and discussions with the entire
group.
We adopted the whole team approach in which the client was involved through out the
software
development.
We used simple designs which were as simple as the current functionality allowed by the
system.
Continuous integration was also used where each code was compiled run and tested before
adding to the system after which the system must meet all the criteria
The most important practice adopted was pair programming. We paired up with members of the
team and each team met at various times to code. After each pair coded, they made sure they
tested and compiled it, then added it to the main system which they sent to the other group
members.
We also made sure that we coded according to coding standards, the development codes were
15
17
18
ENTRY EMPLOYEE
PAYROLL
SYSTEM
EMPLOYEE
Data Storage
Data Access
19
REPORTS
In developing cost estimates for a system, we need to consider servable cost elements. Among them
hardware, personnel, facility, operating, & supply costs.
Hardware Cost:Hardware cost relate to the actual purchase or lease of the computer & peripherals Ex. Printer, disk,
floppy drive, the best way to control for this cost is to treat it as an operating cost.
Personnel Cost:This includes staff salaries & benefits (health insurance, vocation time, sick pay etc.) as well as pay
for those involved in developing system. Costs incurred during the development of a system are one
time costs & are labeled developmental costs. Once the system is installed the costs of operating
&maintaining the system become recurring costs.
Facility Costs:Facility costs are expenses incurred in the preparation of the physical site where the application or the
computer will be i operation. This includes wiring, flooring, acoustics, lighting & air conditioning.
These costs are treated as one time costs.
Operating Cost:Operating costs include all costs associated with the day to day operating system. The amount
depends on the number of sifts the nature of the application & the caliber of the operating staff. There
are various ways of covering operating costs to overhead. Another approach is to change each
20
authorized user for the amount of processing they request from the system. The amount charged is
based on the computer time, staff time & the volume of output produced.
Supply Cost:These costs are variable costs that increase with increased use of paper, ribbon, disks & the like they
should be estimated & include in the overall cost of the system.
Equipment Cost:Equipment costs include rental & annual deprecation of any equipment such as typewriter, copies,
computer terminals & microcomputers used in connection with the system. Other costs associated
with the equipment, such as insurance & maintenance should also be included.
21
SYSTEM:A system can be defined as A set of arrangement of elements that are organized to
accomplish some method, procedure or control by processing information.
System Analysis stages down the broad frame work of strategy stage into its minute details.
This is the stage where intensive user interaction assumes a lot of importance.
SYSTEM DEVELOPMENT:Development Phase, translates a set of requirements into an operational system that we call
Software. At early stages of hardware development a hardware engineer does not reach for a
soldering iron, similarly the Software engineer should not reach the compiler. Design is accomplished
first.
The first phase of development concentrates on design. The design phase for software with a
description of architecture and data design. That is a modular structure is developed first, interfaces
are defined and data structure is established. Design criteria are used for the assessment of quality.
This preliminary design step is reviewed for completeness and tractability to software requirements.
Procedural aspects of each modular component of the software design are considered next,
and is following by the CODING the generation of program using an appropriate programming
language or CASE tool occurs after the design is complete. Software engineering methodology
views coding as a consequence of good design. Code is then reviewed for style and clarity, but should
otherwise be directly traceable to a detailed design description.
DETAILED ENTITY RELATIONSHIP DIAGRAM :Identification of all the Entities of importance for which data need to be stored and defined
their relationship with each other was a major task at this level. All the identified entities were
22
mapped on a E-R-diagram. It is of utmost importance to cover all the necessary entities and defined
their relationship with each other correctly because any errors at this stage would result in the
reworking in the further stages.
Unique Identification, UID:A unique identification is required to be identified and associated with each other at this stage.
Function Hierarchy:Function hierarchy is used for grouping related functions under a parent function. The
hierarchy is balanced so that all elementary functions come in the same level of hierarchy. A good
hierarchy drawn at this stage helped in menu generation at a later stage.
The Basic Objective:The basic objective of the system design was the system being developed should be able to fit
into the existing system, that is it become a part of the system and it should not lead to any changes
which can adversely affect the existing system. The airways having many activities which affect one
another so the approach of airways reservation is generated for the simplification of data handling.
The approach would bring in the following benefits:
Completely menu drive interface with the provision of initiating even the batch jobs by the user
himself.
On Line help
Strong documentation
Designing is the most important part of the software development. It requires a careful
planning and logical thinking on the system designer. Designing a software means to plan how the
various parts of the software are going to achieve the desired goal. It should done with the utmost
care because if this phase contains any errors then that will be going to affect the performance of the
system, as a result it may take more processing time, more coding, extra work load etc.
As the software is to be designed in ORACLE RDBMS, the concept of the database is must
for quality designing. It will be designing of the database, designing of forms, designing of reports.
Separate tables have been created for each entity of the system. In order to make the response
time negligible, all the tables have been created in the Memory File System. Moreover indexes have
been created on the tables in the number of records have been made random.
24
The design stages takes the final specification of the system from the analysis stages and finds
the best way of fulfilling them, given the technical environment and previous decision on required
level of automation
The system design is carried out in two phases: Architectural Design
Detailed Design
ARCHITECTURAL DESIGN:The high level design maps the business system described in the program requirement
specification to logical data structure, it involves:
Identification of the entities that constitutes the system:All the entities related to the module were identified, checked and consolidated
Identifying the Relationships:The relationships between the entities, within and outside the system were identified.
Attribute definition:The pertaining of the entities was identified and their field characteristics were specified.
Normalization:25
The entities were normalization, after first and the second normalization was achieved for all the
entities.
Interface:Interface with the other systems were done and attributes related to external entities identified.
DETAILED DESIGN:The low level design maps the logical model of the system to a physical database design.
Table Mapping:The Table was created for the system using the design view, which is the part of the ORACLE.
This has provision to create the entities and attributes into the Tables. The name of the entity is
taken as the table name.
Default Database Design:In ORACLE we can create tables through the queries and some command. The tables divide into
two parts. These names are as follow: ROWS
COLUMNS
The steps involved here were:-
1. Generation of table
2. Check Validation Rule
3. Check Validation Text
4. Primary Keys
5. Unique Keys
6. Foreign Keys
Relationship:ORACLE allows many types of relationship between the tables. These relationship names are as
follow: One to One Relationship
26
Program specifications:The program specifications were written for the master, transactions, reports and queries. The
logic for each field, block and form were written so that anyone who does not know the system will
be able to code the logic. Field validations and user-friendly error messages were written as part of
the program specification.
27
Withend with
If.then.else
Visual Basic helps of creation Menus, Master-Details Form.
29
During system testing, the system is used experimentally to ensure that the software does not
fall, i.e. it will run according to specification and in the way users expect. Special test data input for
processing and the result examination. A limited number of users may be allowed to use the system
so that analysis can see whether they use it in unforeseen ways. It is preferable to discover any
surprises the organization implements the system and encounters them later on. This type of testing
which allows only a few, selected users to work on the system is known as BETA TESTING. On the
other hand the testing done by the developer (s), themselves is known as ALPHA TESTING.
Testing is generally performed by persons other than those who the original programs to
ensure complete and unbiased testing and more reliable software.
The norms followed during the testing phase were thoroughly tested by me, the developer; I
was required to release the programs source code. The source code was copied into the area. If some
changes were desired in the program, I was suitably informed and was required to make the necessary
modifications.
Following testing procedures were used
UNIT TESTING
Unit testing is the testing of a single program module in an isolated environment. The
testing of the processing procedure is the main focus. In this regard, all the modules were separately
tested first as isolated and complete entities. This helped a lot in discovering problems related to a
single module and rectifying them in the contest of the module itself, rather than considering modulerelated problem in a global context.
30
INTEGRATION TESTING
Integration testing is the process of testing the interfaces among system modules. Some
testing ensures that data moves between systems as intended. In the regard of a particular module was
obtained in correct format, so that the next module could accept it appropriately. This could be done
either after the entire system was developed, or in stages than one module was developed.
SYSTEM TESTING
System testing is the testing of the system against its initial objectives. Such testing is
done either in a simulated environment or in a live environment.
In the case of the system which I developed, the testing was done in a pseudo-real
environment. The organization has an area called the Development , where all development work
is carried out, whereas the Client is the area where all on-line work is undertaken. Since the kind of
work which I was involved dealt with insertion, updating and in tables, all the work was developed in
the Development area. I call the environment pseudo-real since all data which is being used for online transaction can be copied into the tables of the Development and live data can be worked on.
Thus whatever would be the output on the Client is reflected exactly on the Development also?
Thus, discovery of error became simpler in that the errors which would occur in the real-time
environment were exactly duplicated in the Development environment.
All the above types of testing were carried out and various extreme cases were also introduced
to check for whether the system responded as expected. The various Forms, database packages,
procedures, function; visual basic programs and functions were tested to discover they behaved in the
31
manner expected of them and gave accurate results. However, the factor, which helped most in the
modification and rectification of the system, was the user response. The user after using the system
would invariably come up with some idea to improve the system. Such ideas, if feasible, were
incorporated into the system, thus leading to an improvement in the overall efficiency of the system.
Implementation, literally, means to put into effect or to carry out. The system implementation
phase of software engineering deals with all activities that take place to convert from the old system
to the new. Proper implementation is essential to provide system to meet organizations requirements.
During the implementation phase debugging, documentation of the system was created out,
module in the project for
Accuracy of Results,
Various types of errors were discovered while debugging the modules. These ranged from
errors to failure to account for various processing cases. Proper documentation of each module was
done by embedding comments in the executable portion of the code. To enhance the readability,
comments, indentation, parenthesis, black spaces, blank lines and borders were around the blocks of
comments. Care was taken to use descriptive names for table, field, modules, forms etc., The proper
use of indentation, parenthesis and blank lines was also ensured during coding.
32
Testing of the Report Generation module was carried out to find out the response time of the
system for the generating reports. To make the response time negligible
Maintenance is a fact of life in the development of information systems. However the making
of changes & adjustments dont necessarily signal correction of error or the occurrence of problems.
Among the most frequent changes requested by end users is the addition of information to a
report format. Information requirements may be revised as the result of system usage or changing
operational needs. Perhaps oversights that occurred during the development process need to be
corrected.
Often, the need arises to capture additional data for storage in a database or perhaps when it is
necessary to add error detection features to prevent system users from inadvertently taking an
unwanted action.
These are the realities of application maintenance, when they occur, however they are an
indication that the system is being used & that it is serving a useful function rather than being
shelved by the intended, such as :
34
INTERNAL DOCUMENTATION
2.
EXTERNAL DOCUMENTATION
INTERNAL DOCUMENTATION
Internal documentation in the code can be extremely useful in enhancing the understandability
of programs. Internal documentation of programs is done by the use of comments. All the languages
provide means of writing comments in the programs. Comments are textual statements that are meant
for the reader and are not executed. Comments, if properly written, and if kept consistent with the
code, can be invaluable during maintenance.
The purpose of comments is not to explain the internal logic of the program the program
itself is the best documentation for the details of logic. The comments should explain what the code is
done is doing, and not how it is done it.
Comments should be provided for the block of code, particularly those parts of code which
are hard to follow.
Providing comments for module is most useful as module form the unit testing, compiling,
verification and modification. Comments for a module are often called prologue for the module. It is
best to standardize the structure of the prologue of the module. It is desirable that prologue contains
the following information:
a)
b)
c)
d)
As explanation of parameters (whether they are input only, output only or both input and output , why
they are needed by the module and how the parameters are modified ) can be quite useful during
maintenance.
In addition to that given above, often information can be included, depending on the local
coding standards. Example includes:
-
Date of compilation
Note that if the module is modified, then the prologue should also be modified, if necessary. A
prologue that is inconsistent with the internal logic of the module is prologue worse than having no
prologue at all.
While coding programs for the Station Coding System special attention has been paid to the
internal documentation of the system, in addition to the external documentation. Each
program/module has:
Program/module name on top
Date of creation of the program
Last modification date
The S/W tool used to developed the program
Description of input to the program/module
Description of the output produced
How the module is related to other modules
Purpose of variables/constants used
Apart from this comment lines have been inserted wherever it was felt that they were
necessary. Moreover meaningful variable names/constants have been assigned to different
variable/constants used in the programs.
36
37
Main window
38
39
40
Leave window
41
Payroll information
42
Graphical repersantation
43
Query form
44
45
Company information
Private Sub cmdadd_Click()
If Adodc1.Recordset.RecordCount = 1 Then
MsgBox "u have already added the details of your company..u can update them by
pressing update button"
Exit Sub
End If
Adodc1.Refresh
Adodc1.Recordset.AddNew
End Sub
Private Sub cmdclose_Click()
Me.Visible = False
End Sub
Private Sub cmddelete_Click()
On Error Resume Next
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "db is empty"
End If
If Adodc1.Recordset.RecordCount = 1 Then
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Delete
Adodc1.Recordset.Update
txtadd1 = ""
txtadd2 = ""
txtcity = ""
txtcname = ""
txtcontry = ""
46
txtemail = ""
txtfax = ""
txtnote = ""
txtphone = ""
txtstate = ""
txtwebsite = ""
End If
End Sub
Private Sub cmdmodify_Click()
On Error Resume Next
Adodc1.Recordset.Update
End Sub
Private Sub cmdupdate_Click()
On Error Resume Next
Adodc1.Recordset.Update
End Sub
Private Sub Form_Load()
Form1.Width = 6855
Form1.Height = 5970
End Sub
Graphical Repersantation
47
Dim ii As Double
Dim e As Double
Dim r As Double
Dim iii As Double
Private Sub cmdage_Click()
'chartman.DataSource = Adodc1
'chartman.Legend = True
Adodc1.RecordSource = "select empno,firstname, salary from employee"
Adodc1.Refresh
End Sub
Case 1
.Frame.Style = VtFrameStyleNull
'
.Shadow.Style = VtShadowStyleDrop
End Select
End With
End Sub
Adodc1.Refresh
End Sub
51
Employee payroll
Private Sub cmdadd_Click()
On Error GoTo x
Adodc1.Recordset.AddNew
x:
End Sub
End Sub
txtempno = ""
txtexperience = ""
txtfname = ""
txthiredate = ""
txtlname = ""
txtmname = ""
txtnormal = ""
txtnormalid = ""
txtnote = ""
txtsalary = ""
txtsick = ""
txtsickid = ""
txtspouse = ""
txtstate = ""
txtstatus = ""
txttelephone = ""
txtterminate = ""
lstactive.Clear
lstinactive.Clear
Adodc1.Refresh
Form_Load
x:
End Sub
Adodc1.Recordset.MoveFirst
53
End Sub
Adodc1.Recordset.MoveLast
End Sub
End If
End Sub
End If
End Sub
Adodc1.Refresh
Dim l As String
Dim no As Integer
Dim count As Integer
count = 0
no = lstactive.ListIndex
'l = lstactive.Text
'Adodc1.Recordset.Find "firstname='" & l & "' "
Adodc1.Recordset.MoveFirst
While Adodc1.Recordset.EOF <> True
If count = no Then
Exit Sub
End If
count = count + 1
Adodc1.Recordset.MoveNext
Wend
End Sub
56
Leave info
Private Sub cmdclose_Click()
Me.Visible = False
End Sub
Form4.Visible = True
End Sub
Next
Adodc1.Recordset.MoveFirst
x:
End Sub
Private Sub lstemp_Click()
leavename = lstemp.Text
Adodc1.Refresh
Dim l As String
Dim no As Integer
Dim count As Integer
count = 0
no = lstemp.ListIndex
'l = lstactive.Text
'Adodc1.Recordset.Find "firstname='" & l & "' "
Adodc1.Recordset.MoveFirst
While Adodc1.Recordset.EOF <> True
If count = no Then
normalleaveid1 = Adodc1.Recordset.Fields(20)
sickleaveid1 = Adodc1.Recordset.Fields(21)
casualleaveid1 = Adodc1.Recordset.Fields(22)
Exit Sub
End If
count = count + 1
Adodc1.Recordset.MoveNext
Wend
End Sub
Leave entry
Private Sub cmdcasualleavedetails_Click()
58
Form6.Visible = True
Form6.tab1.Tab = 1
End Sub
End Sub
Adodc3.Recordset.AddNew
Adodc3.Recordset.Fields(0) = normalleaveid1
Adodc3.Recordset.Fields(1) = normalfrom.Value
Adodc3.Recordset.Fields(2) = normalto.Value
Adodc3.Recordset.Update
MsgBox "-database updated successfully-"
End Sub
59
End Sub
End Sub
End Sub
Payroll information
Private Sub cmdleaveaddition_Click()
60
End Sub
Private Sub cmdrebateothertax_Click()
txtothertax.Text = "0"
61
End Sub
Private Sub cmdrebatetax_Click()
txttax.Text = "0"
End Sub
Private Sub cmdtotal_Click()
txtnet.Text = Val(txtsalary.Text)
Val(txtleave.Text)
Val(txttax.Text)
Val(txtothertax.Text)
End Sub
Private Sub Command1_Click()
txtleave.Text = "0"
End Sub
Private Sub Command2_Click()
Form11.Visible = True
End Sub
Private Sub Form_Load()
Form5.Width = 6105
Form5.Height = 6090
On Error GoTo x
Dim i As Integer
Dim j As Integer
Dim k As Long
On Error Resume Next
Adodc1.Refresh
Adodc1.Recordset.MoveLast
Adodc1.Recordset.MoveFirst
While Adodc1.Recordset.EOF <> True
k = Adodc1.Recordset.Fields(0)
Adodc2.Recordset.MoveFirst
While Adodc2.Recordset.EOF <> True
On Error Resume Next
If k = Adodc2.Recordset.Fields(0) And Left(Adodc2.Recordset.Fields(2), 2) = Left(Date,
2) Then
lstpaid.AddItem Adodc1.Recordset.Fields(2) & " " & Adodc1.Recordset.Fields(0)
GoTo m
End If
Adodc2.Recordset.MoveNext
Wend
lstunpaid.AddItem Adodc1.Recordset.Fields(2) & " " & Adodc1.Recordset.Fields(0)
m:
Adodc1.Recordset.MoveNext
k = ""
62
Wend
Adodc1.Recordset.MoveFirst
Adodc2.Recordset.MoveFirst
x:
End Sub
Private Sub lstpaid_Click()
Adodc2.Refresh
'Adodc2.Recordset.Find "empno=" & Val(Mid(lstpaid.Text, InStr(lstpaid.Text, " ")))
Adodc2.Recordset.MoveFirst
While Adodc2.Recordset.EOF <> True
If Adodc2.Recordset.Fields(0) = Val(Mid(lstpaid.Text, InStr(lstpaid.Text, " "))) Then
txtempno = Adodc2.Recordset.Fields(0)
txtsalary = Adodc2.Recordset.Fields(1)
txtdop = Adodc2.Recordset.Fields(2)
txtpaymode = Adodc2.Recordset.Fields(3)
txtchequeno = Adodc2.Recordset.Fields(4)
txttax = Adodc2.Recordset.Fields(5)
txtothertax = Adodc2.Recordset.Fields(6)
txtleave = Adodc2.Recordset.Fields(8)
txtnet = Adodc2.Recordset.Fields(7)
Exit Sub
End If
Adodc2.Recordset.MoveNext
Wend
End Sub
Private Sub lstunpaid_Click()
Dim m As Long
Dim n As Long
txtempno.Text = ""
txtchequeno = ""
txtdop = ""
txtpaymode = ""
txtsalary = ""
txtnet = ""
txtothertax = ""
txttax = ""
txtleave = ""
m = Val(Mid(lstunpaid.Text, InStr(lstunpaid.Text, " ")))
txtempno.Text = m
Adodc1.Recordset.MoveFirst
While Adodc1.Recordset.EOF <> True
If m = Adodc1.Recordset.Fields(0) Then
n = Adodc1.Recordset.Fields(18)
txtsalary = n
txtdop = Date
Exit Sub
End If
Adodc1.Recordset.MoveNext
63
Wend
End Sub
64
Leave details
Private Sub cmdgetsickleaverecord_Click()
On Error GoTo x
DataGrid1.Visible = True
Dim strsql As String
strsql = "Select * From sickleavetable where sickleaveid=" & sickleaveid1
Adodc1.RecordSource = strsql
Adodc1.Refresh
Exit Sub
x:
DataGrid1.Visible = False
MsgBox "no records currently available"
End Sub
Exit Sub
x:
DataGrid3.Visible = False
MsgBox "no records currently available"
End Sub
Query form
Private Sub Check10_Click()
If Check10.Value = 1 Then
Check10.Tag = "," & Check10.Caption
Else
Check10.Tag = ""
End If
End Sub
Private Sub Check11_Click()
If Check11.Value = 1 Then
Check11.Tag = "," & Check11.Caption
Else
Check11.Tag = ""
End If
End Sub
Private Sub Check12_Click()
If Check12.Value = 1 Then
Check12.Tag = "," & Check12.Caption
Else
Check12.Tag = ""
End If
End Sub
Private Sub Check13_Click()
If Check13.Value = 1 Then
Check13.Tag = "," & Check13.Caption
Else
Check13.Tag = ""
End If
End Sub
Private Sub Check14_Click()
If Check14.Value = 1 Then
Check14.Tag = "," & Check14.Caption
Else
Check14.Tag = ""
End If
End Sub
Private Sub Check15_Click()
If Check15.Value = 1 Then
Check15.Tag = "," & Check15.Caption & "phone"
Else
66
Check15.Tag = ""
End If
End Sub
Private Sub Check16_Click()
If Check16.Value = 1 Then
Check16.Tag = "," & Check16.Caption
Else
Check16.Tag = ""
End If
End Sub
Private Sub Check17_Click()
If Check17.Value = 1 Then
Check17.Tag = "," & Check17.Caption
Else
Check17.Tag = ""
End If
End Sub
Private Sub Check18_Click()
If Check18.Value = 1 Then
Check18.Tag = "," & Check18.Caption
Else
Check18.Tag = ""
End If
End Sub
Private Sub Check19_Click()
If Check19.Value = 1 Then
Check19.Tag = "," & Check19.Caption
Else
Check19.Tag = ""
End If
End Sub
Private Sub Check20_Click()
If Check20.Value = 1 Then
Check20.Tag = "," & Check20.Caption
Else
Check20.Tag = ""
End If
End Sub
Private Sub Check21_Click()
If Check21.Value = 1 Then
Check21.Tag = "," & Check21.Caption
Else
Check21.Tag = ""
End If
End Sub
Private Sub Check22_Click()
If Check22.Value = 1 Then
67
End If
End Sub
Private Sub Check9_Click()
If Check9.Value = 1 Then
Check9.Tag = "," & Check9.Caption
Else
Check9.Tag = ""
End If
End Sub
Private Sub chkall_Click()
If chkall.Value = 1 Then
chkall.Tag = " * "
Else
chkall.Tag = ""
End If
End Sub
Private Sub cmdquery_Click()
On Error GoTo x
If chkall.Value = 1 Then
sqlbaby = " select * "
Else
sqlbaby = sqlbaby & Check7.Tag & Check8.Tag & Check9.Tag & Check10.Tag &
Check11.Tag & Check12.Tag & Check13.Tag & Check14.Tag & Check15.Tag &
Check16.Tag & Check17.Tag & Check18.Tag & Check19.Tag & Check20.Tag &
Check21.Tag & Check22.Tag & Check23.Tag & Check24.Tag & Check25.Tag &
Check26.Tag & Check27.Tag & Check28.Tag & Check29.Tag & Check30.Tag &
Check31.Tag & Check32.Tag & Check33.Tag
End If
sqlbaby = sqlbaby & " from employee"
If chkwhere.Value = 1 Then
sqlbaby = sqlbaby & " where "
sqlbaby = sqlbaby & "lastname='" & txtlname.Text & "'"
sqlbaby = sqlbaby & " or firstname='" & txtfname.Text & "'"
sqlbaby = sqlbaby & " or city='" & txtcity.Text & "'"
sqlbaby = sqlbaby & " or state='" & txtstate.Text & "'"
sqlbaby = sqlbaby & " or department='" & txtdept.Text & "'"
If txtsalary.Text <> "" Then
sqlbaby = sqlbaby & " or salary" & txtsalary.Text
End If
If txtdob.Text <> "" Then
sqlbaby = sqlbaby & " or dob" & txtdob.Text
End If
If txtdoj.Text <> "" Then
sqlbaby = sqlbaby & " or doj" & txtdoj.Text
End If
End If
Adodc1.RecordSource = sqlbaby
Adodc1.Refresh
70
Form_Load
Exit Sub
x:
MsgBox Err.Description
End Sub
Private Sub Form_Load()
On Error Resume Next
Form7.Width = 12000
Form7.Height = 9000
sqlbaby = "Select empno "
chkwhere.Value = 0
End Sub
71
Direct queries
Private Sub cmdquery_Click()
On Error GoTo x
Dim sql1 As String
sql1 = txtdirectquery.Text
Adodc1.RecordSource = sql1
Adodc1.Refresh
Form_Load
Exit Sub
x:
MsgBox Err.Description
End Sub
Private Sub Form_Load()
Me.Width = 11985
Me.Height = 7710
End Sub
72
Mdi form
Private Sub cmdcharts_Click()
Form10.Visible = True
End Sub
Private Sub cmdcompanyinforma_Click()
Form1.Visible = True
End Sub
Private Sub cmddetails_Click()
PopupMenu popmeup
End Sub
Private Sub cmdexit_Click()
Unload Me
End
End Sub
Private Sub cmdleaveinfo_Click()
Form3.Visible = True
End Sub
Private Sub cmdpayroll_Click()
Form5.Visible = True
End Sub
Private Sub Command1_Click()
Form2.Visible = True
End Sub
Private Sub MDIForm_Load()
Form1.Visible = True
End Sub
Private Sub query_Click(Index As Integer)
If Index = 0 Then
Form7.Visible = True
End If
If Index = 1 Then
Form8.Visible = True
End If
If Index = 2 Then
Form9.Visible = True
73
End If
End Sub
74
The project made me realize the significance of developing software for client, where all the
eventualities have to be taken care of, unlike at educational institution, where the sole aim is to learn.
What may be seen to the developed to be software complete in all respects, I was required to meet the
stringent demands of the in-house client in the materials department. Through this seemed tough at
first, I realized that pressure goaded us on to develop better and better applications.
During the project, the real importance for following all the principle of System Analysis and
Design drawled on me. I felt the necessity of going through the several stages, because only such a
process could make one understand the problems at hand, more so due to the enormous size of data
stores involved and their manipulation
In retrospect, I would like to say that the institute provided us with sample opportunities to
learn Oracle 8 and its tools. I specifically was able to learn ORACLE and its Tools. I specially was
able to learn VISUAL BASIC 6.0. I also succeeded in understanding a number of tricky concept in
database, which were earlier only hazy blobs in the realm of our comprehension. However
my
project library management is an asset to the organization, even then FURTHER ENHANCEMENT
is possible in this project such as new forms & reports can be included as and when required.
Unfortunately due to lack of time we can developed any report in this system but this is not
the end of this system software, it is beginning. We can change and modify this software due to
more requirements of needs and also removed some errors which is finding in this system software.
75
We also developed some complex reports which is required and makes this software more
powerful and friendly for user by which user can handle library data more easily and can calculate
all the calculation without any other software i.e., users all the requirements will be fulfill by this
software and user can manage all the numeric data calculations.
S.No.
1
Terms
BACK UP
Description
A copy of something preserved to insure against
the damage of primary copy.
DATA BASE
DBMS
DD
FLOW CHART
FLOW
CHART
which
depicts relation between different entities in the
system.
HARDWARE
ITD
MENU
MODULE
10
ON-LINE
11
PI
Preliminary Investigation
12
PROGRAM
13
PROTOTYPE
14
RDBMS
15
RSD
16
SCALABILITY
17
SOFTWARE
77
BOOK NAME
AUTHOR
1.
Techmedia
2.
C. J. Date
3.
E M. Awad
4.
Tulec
5.
Programming in VB
Black Book
6.
7.
Mastering in VB
Steve
8.
VB with MS-Access
Rita Sahoo
9.
Smith
Gary Cornell
78