Professional Documents
Culture Documents
Azeem HR
Azeem HR
INTRODUCTION
1. INTRODUCTION
Recruitment of staffs
Salary calculation
Reminder entry
ADMINISTRATOR
Administrator is the one who handles overall details of staff and their
registration details. Admin maintains the record details. He can add new record such as adding a
new staff details when he is recruited. He can also update and delete the record whenever it is
necessary. Updating option arises when there is a chance when any of the personal details
regarding a staff has changed such as their phone numbers, address etc. He can also search the
record whenever it is necessary.
Administrator has the right to manage all the activities of the organization.
Creation of all the staff registration details is handled by the administrator. The administrator can
view all the details of each staff in each section. The administrator also creates the personal
contact details of each staff. A searching option is also provided by the admin, so that a single
search will provide the complete information regarding that staff. Retrieving records of staffs
who have retired couple of years ago has been a difficult task and the manual system also has
difficulty of producing different reports at the time of emergency.
MANAGER
STAFF
Staff aspect includes registering staffs, storing their personal details, login
details of each staff etc. An id will be provided to each staff. The id contains some codes to
access to organize. It is compulsory for each staff and is provided to everyone in the
organization. Id helps to login to the organization. The details of each staff are stored, so that all
the details of a staff can be easily find through a single search.
ATTENDANCE
Salary of the staff members are decided on the basis of the attendance. The
attendance for each employee is entered differently, that is it is categorized according to the rank
of employees. Salary will be cut down if the attendance is below 75%.
BONUSES
In this project the employers are awarded with Bonus points. The Bonus
point is calculated according to the employer’s performance basis and their attendance basis.
Bonus point is divided into five, four, three, two and one respectively. The employers with 5
bonus point will get Rs 5000, bonus point with 4 will get Rs 3600, bonus point with 3 will get Rs
2500 and bonus point with 2 and 1 will get Rs 1500 and Rs 600 respectively.
GENERAL
MANAGER
PROJECT
MANAGER
HR MANAGER
ADMINISTRATOR
SENIOR
PROGRAMMER
JUNIOR
PROGRAMMER
SYSTEM ANALYSIS
2. SYSTEM ANALYSIS
INTRODUCTION
System analysts do more than just solve current problem. They are
frequently called to help handle the planned expansion of a business. Analysts may recommend
alternatives for improving the situation. Usually more than one strategy is taken. The best
strategy is adopted. Once this is done a plan is to implement the recommendation.
The system study phase studies the problem, identifies alternate solution
evaluate those solution and finally recommends the best solution. The system study gives the
structure and function of the system. The system Study can be performed only on an existing
system. The system study gives an idea of then user requirements. A detailed system study is an
essential for developing an efficient system. The techniques used are:
Observation
Interview
Discussion
It was found that the existing system is developed manually. The system
deals with collecting the employees or staffs details in a computerized manner. In human
resource management system, the information of the staffs are been maintained in bunch of
formal registers. In this system it maintains the records of all staffs by collecting their
qualification certificates, appointment letter, interview letter etc. The HR management keep track
with every staff members that are working in the institution by analyzing their performance and
attitude towards their work and will be rewarded if he is deserves it.
Staff Register :
It contains the details about the person who are working in the institution
that is their name, address, phone number, photo, date of birth etc.
Emergency Register :
It stores the personal details of the staff who are working in the institution
that is storing the details of the person who have a relationship with the respective person such as
mother, father, friends, and neighbor etc. This register helps the system to contact the respective
person in case of any emergency.
Interview Register :
It contains the details of the person who are going to attend the interview
in the institution that is their name, results of various test that had happen, interview date etc.
OBSERVATION :-
Observation of the functioning of the existing system gives the Idea for the
design of the new system. This will figure of the pitfalls of the current system. It is helpful to
understand and study the entire current system. By observation we can point out the changes
needed to the existing system. It also validates the data gathered by other means. It also gives a
better understanding of the work load & pressures faced.
INTERVIEW :-
DISCUSSION :-
The main objective of the discussion is to transfer the ideas between the
department and the system developer. Thorough discussion, the problem faced by the user during
data entry, data retrieval, and report generation can be understood.
At the present the requirements of the system are done manually and
hence there are number of limitations.
All the works and data are maintained in the forms and registers. To search for a staff
details or their document become a tedious job. Hence it also results in huge amount of
paperwork.
Since all the work is done manually, many errors can be occurred in the database. Also it
results in large volume of data accumulation.
Time and energy is also wasted. It affects the pace of the work and results in inefficient
management.
The various activities are carried out by different section depending on their activity.
Reports are produced by manual processing, that will be an unformatted manual and
unreliable.
The proposed system is fully computerized the total human work in the
information processing in the current system is reduced. The proposed system has the feature of
giving a unique staff-id to each staff members and saving his personal information. This avoids
the possibilities of repetition. It also provides a search feature. We can see the staff details by
entering their staff-id whenever we needed. We can also make further updating if it is necessary.
This makes the job easier and less time consuming. Thereby also reduces the chance of errors.
Economic feasibility
Technical feasibility
Operational feasibility
The proposed system must be evaluated from a technical view point first
and then considering behavioral and economical feasibility.
This feasibility study present tangible and intangible benefits from the
project by comparing the development and operational cost. The technique of cost benefit
analysis is often used a basis for assessing economic feasibility. This system needs some more
initial investment than the existing system, but it can be justifiable than it will improve the
quality of service.
The SRS document itself states in precise and explicit language those
functions and capabilities a software system must provide, as well as states any required
constraints by which the system must abide. The SRS also functions as a blueprint for
completing a project with as little cost growth as possible. The SRS is often referred to as the
"parent" document because all subsequent project management documents, such as design
specifications, statements of work, software architecture specifications, testing and validation
plans, and documentation plans, are related to it.
It provides feedback to the customer. An SRS is the customer's assurance that the development
organization understands the issues or problems to be solved and the software behaviour
necessary to address those problems. Therefore, the SRS should be written in natural language, in
an unambiguous manner that may also include charts, tables, data flow diagrams, decision tables,
and so on.
It decomposes the problem into component parts. The simple act of writing down software
requirements in a well-designed format organizes information, places borders around the
problem, solidifies ideas, and helps break down the problem into its component parts in an
orderly fashion.
It serves as an input to the design specification. As mentioned previously, the SRS serves as the
parent document to subsequent documents, such as the software design specification and
statement of work. Therefore, the SRS must contain sufficient detail in the functional system
requirements so that a design solution can be devised.
It serves as a product validation check. The SRS also serves as the parent document for
testing and validation strategies that will be applied to the requirements for verification.
SOFTWARE SPECIFICATION
WINDOWS XP
Windows XP, the successor to Windows 2000 and Windows Me, was the
first consumer-oriented operating system produced by Microsoft to be built on the Windows NT
kernel. Windows XP was released worldwide for retail sale on October 25, 2001, and over 400
million copies were in use in January 2006. It was succeeded by Windows Vista in January 2007.
Direct OEM and retail tests of Windows XP ceased on June 30, 2008. Microsoft continued to sell
Windows XP through their System Builders (smaller OEMs who sell assembled computers)
program until January 31, 2009. On April 10, 2012, Microsoft reaffirmed that extended support
for Windows XP and Office 2003 would end on April 8, 2014 and suggested that administrators
begin preparing to migrate to a newer OS.
We make use of the latest OS because , now a days, all the users are
friendly with the latest technologies, so as latest the OS , that well the user will be able to handle
the new software. Moreover, SQL and VB 6.0 which are platform independent software are
easily available and can be used in these OS’s.
Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but
perform differently.
Visual Basic has the following traits which differ from C-derived languages:
Statements tend to be terminated with keywords such as "End If", instead of using "{}"s
to group statements.
Multiple variable assignments are not possible. A = B = C does not imply that the values
of A, B and C are equal. The Boolean result of "Is B = C?" is stored in A. The result
stored in A would therefore be either false or true.
Logical and bitwise operators are unified. This is unlike some C-derived languages (such
as Perl), which have separate logical and bitwise operators. This again is a traditional
feature of BASIC.
Relatively strong integration with the Windows operating system and the Component
Object Model. The native types for strings and arrays are the dedicated COM types,
BSTR and SAFEARRAY.
DFD Notations
As illustrated in the above figure, the circle and or the bubble represent the
transformation process, and the label inside the bubble describes the process, using an active
verb to do so. Data flows or directed lines that identify the input data flows and output data flows
at each process bubble. Data storage represented by an open-ended rectangle with a label that
identifies the data store or file. The square is labeled to identify an external entity that is source
or destination of a data flow.
LEVEL 0 DFD
LEVEL 1 DFD
2.6 ER DIAGRAM
The Entity-Relationship (ER) model was originally proposed by Peter in
1976 [Chen76] as a way to unify the network and relational database views. Simply stated the
ER model is a conceptual data model that views the real world as entities and relationships. A
basic component of the model is the Entity-Relationship diagram which is used to visually
represents data objects. Since Chen wrote his paper the model has been extended and today it is
commonly used for database design for the database designer, the utility of the ER model is:
It maps well to the relational model. The constructs used in the ER model can easily be
transformed into relational tables
It is simple and easy to understand with a minimum of training. Therefore, the model can
be used by the database designer to communicate the design to the end user.
In addition, the model can be used as a design plan by the database developer to
implement a data model in specific database management software.
ER DIAGRAM
SYSTEM DESIGN
3. SYSTEM DESIGN
All the input data are validated in the order and if any data violates any
condition the use is warned by a message and asks to re-enter data. If the data satisfies all the
conditions then it is transferred to the appropriate tables in the database.
Inaccurate input data are the most common cause of errors in data
processing. Errors entered by data entry can be controlled by input design. Input design is the
process of converting user-oriented inputs to a computer based format. There are three major
approaches for entering data into the computer. They are menus, formatted forms and prompts. A
menu is a selection list that simplifies computer data access or entry. Instead of remembering
what to enter, the user chooses from a list of options and selects the option associated with it. A
formatted form is a pre-printed form or a template that request the user to enter data in
appropriate location. It is a fill-in-the-blank type form. The form is flashed on the screen as a
unit. In prompt the system displays one inquiry at a time, asking the user for a response.
It is the part of overall system design. The goal of the output design is to
capture the output and get the data into format suitable for the computer. Data flow diagram
identifies the data tone captured and the output to the system. One of the important features of an
information system for users is the output it produces. Output is the information delivers to the
users delivered to the users through the information system. Without quality output the entire
system appears to be unnecessary that users will avoid using it. So while designing output the
following things are to be considered.
Depending on the nature and future use of output required, they can be
displayed on the monitor for immediate need and for obtaining the hardcopy.
Control redundancy
Ease of use
Data independence
Accuracy and integrity
Avoiding inordinate delays
Recovery from failure
Privacy and security
Performance
These are six major steps in the design process. The first five steps are
usually done on paper and finally the design is implemented.
Primary key
The key which is uniquely identify records. They also notify the not null constraints.
Foreign key
The key which reference the primary key, is the data inserted in the primary key column of the
table.
Normalization
After the conceptual level, the next level of process of database design to
organize the database structure into a good shape called Normalization. The normalization
simplifies the entries, removing redundancies from the system data and finally builds a data
structure, which is both flexible and adaptable to the system. The different normal forma
obtained during the database design given below.
The overall objective in the development of database technology has been to treat
data as an organizational resource and as an integrated whole. Database management system
allows data to be protected and organized separately from other resources. Database is an
integrated collection of data. This is the difference between logical and physical data.
In my project, I have made use of tables which are stored in the database
named azeem. The tables are used to store the values that are generated by the application. Table
design refers top how the logical data structures are to be physically stored in the database and it
also deals with the design of physical database. Various factors are considered during the table
design .some are listed below:
The designing of the tables in the database is done according to the rules
specified for the databases as described above. The main field names and the key constraints of
all the tables are shown below in detail.
TABLES
EMPDETAILS
DOCUMENT
BONUS CALCULATION
ATTENDANCE
Forign key-empno
BONUS ENTRY
INTERVIEW
LOGIN
PERMENANT SALARY
REMINDER
TEMPORARY SALARY
WAGE TYPE
Primary Key –id
CODING
4. CODING
W he n c on si d e r e d as a st ep i n s o f t w a r e en gi n e e ri n g, c od i n g
i s v i e w ed as a n at ur a l consequence of design. However, programming language
characteristics and coding style can profoundly affect software quality and maintainability.
The coding step translates a detail design re presentation into a programming
language realization. The translation process continues when a compiler accepts source code as
input and produces machine-independent object code as output. The initial translation step in
detail design to programming language is a primary concern in the software
engineering context. Improper interpretation of a detail design specification can lead to
erroneous source code. Style is an important attribute of source code and can determine
the intelligibility of a program. The elements of a style include internal documentation,
methods for data declaration, procedures for statement construction, and I/O coding and
declaration. In all cases, simplicity and clarity are key characteristics. An offshoot of
coding style is the execution time and/or memory efficiency that is achieved. Coding is the
phase in which we actually write programs using a programming language. In t h e c odi n g
ph as e, de si gn m u st be t r an sl at ed i nt o a m a chi ne r e ad ab l e fo rm . If d es i gn
i s performed in a detailed manner, coding can be accomplished mechanistically. It
was the only recognized development phase in early or unsystematic development processes,
but it is just one of several phases in a waterfall process. The output of this phase is an
implemented and tested collection of modules.
In my project I have made use of the Visual basic 6 to code the whole project and have
made use of the SQL Server 2008 to act as a database to store the results of the processed
IMPLEMENTATION OF SECURITY
5. IMPLEMENTATION OF SECURITY
The software quality assurance is comprised of a verity of tasks associated
with seven major activities.
Application of technical methods
Software testing.
Enforcement of standards.
The quality begins with a set of technical methods and tools that help the
analyst to achieve high quality specification and the designer to develop high quality design. The
next activity involves assessment for quality for the design that is created which is the formal
technical review. Software testing combines a multi-step strategy with a series of test case design
methods that help ensure effective error detection.
The software maintains a well organized database for storing the details
that are provided in the store. This helps us to eliminate the entering of invalid data. Data is not
accessible to unauthorized users. The admin will provide the test data, specially designed to
show that the system will operate successfully in all its aspects and produce expected results
under expected conditions. Preparation of test data and the checking of results should be carried
out in conjunction with the appropriate users and operational departments. Also the extent to
which the system should be tested must be planned. This software provides security to the details
of the students, staff and marks by computerizing the store.
Admin: have the permission to login for the reference of the tasks, and in order to add new staff
members, their complete details referencing, and to view and update mark details.
Staff: This module includes the details regarding the students, new admissions, updation, and
viewing the mark details, generating ranklists etc.
SYSTEM TESTING
6. SYSTEM TESTING
The System was tested and found to be working as expected. There was no
abnormal behavior reported during the testing of the program. Testing is a method by which we
try reducing the testing efforts and bringing out the maximum output. Testing helps us in
knowing whether the logical assumptions that we have taken for the system are correct, and if
they are correct we have obtained our goal. We test the system to know the errors, to check the
validity of the information, to also group the modules with the aim that we meet the system
requirements according to the system needs.
Testing is vital to the success of the system. System testing makes logical
assumption that if all the parts of the system are correct, we have achieved the mission
successfully. System testing is the stage of implementation that is aimed at assuring that the
system works accurately and efficiently before the live operation commences.
1. Unit testing
2. Integration testing.
3. User Acceptance testing.
After splitting the program into units, the units were tested together to see
the defects between each module and function. It is testing two or more modules or functions
together with the intent of finding interface defects between the modules or functions. Testing
completed at as part of unit or functional testing, and sometimes, becomes its own standalone
test phase. On a larger level, integration testing can involve putting together of groups of
modules and functions with the goal of completing and verifying that the system meets the
system requirements.
The System was tested by a small client community to see if the program
met the requirements defined the analysis stage. It was found to be satisfactory. In this phase, the
system is fully tested by the client community against the requirements defined in the analysis
and design stages, corrections are made as required, and the production system is built. User
acceptance of the system is key factor for success of the system. The system under consideration
is tested for user acceptance by constantly keeping in touch with the users at the time of
developing and making changes whenever required.
User Authentication:
It checks whether the username and password of the user has a correct
match.
Field Checking:
7. SYSTEM IMPLEMENTATION
Implementation is an activity that is contained throughout the
development phase. It is the process of bringing a developed system into
operational use and turning it over to the user. T h e n e w s ys t e m a n d i t s
components are to be tested in a structured and planned manner. A
successful system should be delivered and users should have the confidence that the
system would work efficiently and effectively. The more complex the system being
implemented the more involved will be the system analysis and design effort required for
implementation. I m p l e m e n t a t i o n is the stage of the system when the
t h e o r e t i c a l d e s i g n i s t u r n e d i n t o working system. The implementation involves
careful planning investigation of the current s ys t e m a n d i t s c o n s t r a i n t s o n
i m p l e m e n t i n g , d e s i g n o f m e t h o d s t o a c h i e v e t h e c h a n g e o v e r , training of user
over procedure and evaluation change over method. There are three types of implementation:
1. Implementation of a computer system to replace a manual system. The problems involved are
converting files, training users, creating accurate files, and verifying printouts for integrity.
3. Implementation of a modified application to replace an existing one using the same computer.
This type of conversion is relatively easy to handle, provided there are no major changes in files.
SYSTEM MAINTENANCE
SCOPE OF PROJECT
FUTURE ENHANCEMENT
9. FUTURE ENHANCEMENT
Any system which has been in use for a number of years gradually decays
and become less effective because of change in environment to which it has to be adapted. For
the time being it is possible to overcome problems by amendments and minor modifications to
acknowledge the need of fundamental changes.
All the functions have been done carefully and successfully in the
software, and if any development is necessary, in future it can be done without affecting the
design by adding additional modules to the system. Some of the enhancements that can increase
the value of this application are the following:
CONCLUSION
10. CONCLUSION
The project “The Human Resource Management System” has been
created with the intention of providing a user with application which will suffice all needs for the
details of the company and other updates. All the requirements specifications was followed as for
as possible and few additional features were added that can make the application more user
friendly and less complicated. The project was successfully completed within the time span
allotted. All the modules are tested separately and put together to form the main system. Finally
the system is tested with real data and it worked successfully. Thus the system has fulfilled the
entire objective defined.
Limitations:
Employee has to go through many records to find any particular transaction, which
can take up a lot of time and effort.
End user should have the basic knowledge of the computers
BIBLIOGRAPHY
11. BIBLIOGRAPHY
Elias. M. Awad, “System Analysis and Design”, Galgoeia publications Second Edition2005.
Peter Norton, “Guide to Visual Basic 6”, Sams publications – First Edition, 2005
Henry Korth,” Data Base Design Concept”,Mc grew hill – Fifth Edition 2001.
Roger.S.Pressman,” Software Engineering “,Mc grew hill Fifth Edition 2006.
www.stackoverflow.com
www.vbforums.com
www.xtemevbtalk.com
APPENDIX- A
FrmLogin
Unload Me
End Sub
TXTUNAME.SetFocus
txtpassword.SetFocus
Else
RS.Open "SELECT * FROM LOGIN WHERE USERNAME='" & TXTUNAME.Text & "'
AND PASSWORD ='" & txtpassword.Text & "'"
FrmMenu.Show
Else
TXTUNAME.Text = ""
txtpassword.Text = ""
TXTUNAME.SetFocus
End If
TXTUNAME.Text = ""
txtpassword.Text = ""
End If
End Sub
TXTUNAME.SetFocus
End Sub
If KeyAscii = 13 Then
cmdlogin.SetFocus
End If
End Sub
If KeyAscii = 13 Then
txtpassword.SetFocus
End If
End Sub
FrmMenu
FrmLogin.Visible = False
End Sub
FrmAttendace.Show
End Sub
FrmBonus.Show
End Sub
FrmBpointEntry.Show
End Sub
FrmDocument.Show
End Sub
FrmDocUpload.Show
End Sub
FrmEmployeeDetails.Show
End Sub
FrmInterviewdetails.Show
End Sub
Unload Me
FrmLogin.Show
End Sub
FrmReminder.Show
End Sub
FrmReminderView.Show
End Sub
FrmReport.Show
End Sub
FrmSalary.Show
End Sub
FrmWageRecod.Show
End Sub
FrmWageRecod.Show
End Sub
FrmAttendance
LSTWAGE.Clear
RS.Open "select name from wagetype where wtype='" & Cmbsallist.Text & "'", CON,
adOpenDynamic, adLockOptimistic
LSTWAGE.AddItem (RS!Name)
RS.MoveNext
Wend
Frame2.Visible = False
Label7.Visible = True
TXTATT.Visible = True
txtname.Text = ""
TXTEID.Text = ""
Frame2.Visible = True
Label7.Visible = False
TXTATT.Visible = False
txtname.Text = ""
TXTEID.Text = ""
End If
End Sub
KeyAscii = 0
End Sub
Unload Me
End Sub
Cmbsallist.SetFocus
Cmbsallist.SetFocus
Else
RS.Open "select * from attendance where empno='" & TXTEID.Text & "' and date ='" &
DTPicker1.Value & "'", CON, adOpenDynamic, adLockOptimistic
MsgBox " attendance already registered in the date " & DTPicker1.Value & " for " &
txtname.Text
Exit Sub
End If
CMD.ActiveConnection = CON
CMD.CommandText = "insert into attendance values('" & TXTEID.Text & "','" &
txtname.Text & "','" & DTPicker1.Value & "','" & Cmbsallist.Text & "','" & TXTATT.Text &
"'); "
CMD.Execute
CMD.ActiveConnection = CON
CMD.CommandText = "insert into attendance values('" & TXTEID.Text & "','" &
txtname.Text & "','" & DTPicker1.Value & "','" & Cmbsallist.Text & "','" & TXTATT.Text &
"');"
CMD.Execute
End If
TXTEID.Text = ""
Cmbsallist.Text = ""
txtname.Text = ""
TXTATT.Text = ""
LSTWAGE.Clear
End If
End Sub
CMD.ActiveConnection = CON
CMD.CommandText = "UPDATE ATTENDANCE SET PRESENCE ='" & TXTATT.Text & "'
where ENAME='" & txtname.Text & "'"
CMD.Execute
CMD.ActiveConnection = CON
CMD.CommandText = "UPDATE ATTENDANCE SET PRESENCE ='" & TXTATT.Text & "'
where DATE='" & DTPicker1.Value & "'"
CMD.Execute
End If
TXTEID.Text = ""
Cmbsallist.Text = ""
txtname.Text = ""
TXTATT.Text = ""
LSTWAGE.Clear
End Sub
Cmbsallist.AddItem "PERMENENT"
Cmbsallist.AddItem "TEMPORORY"
End Sub
RS.Open "select empno,name from wagetype where name='" & LSTWAGE.Text & "'", CON,
adOpenDynamic, adLockOptimistic
txtname.Text = RS!Name
TXTEID.Text = RS!EMPNO
End Sub
TXTATT.Text = 0
End Sub
TXTATT.Text = 0.5
End Sub
TXTATT.Text = 1
End Sub
FrmEmployeeDetails
id1
txtname.Text = ""
txtlname.Text = ""
txtadd.Text = ""
txtloc.Text = ""
txtemail.Text = ""
txtcell.Text = ""
cmppos.Text = "SELECT"
cmpwstat.Text = "SELECT"
cmpstat.Text = "SELECT"
cmpgend.Text = "SELECT"
Text1.Text = ""
img.Picture = LoadPicture("")
End Sub
Unload Me
End Sub
FrmWebcam.Show
End Sub
If MsgBox("do you want to delete any record ", vbYesNo + vbQuestion) = vbYes Then
End If
txtname.Text = ""
txtlname.Text = ""
txtadd.Text = ""
txtloc.Text = ""
txtemail.Text = ""
txtcell.Text = ""
TXTAGE.Text = ""
cmppos.Text = "SELECT"
cmpwstat.Text = "SELECT"
cmpstat.Text = "SELECT"
cmpgend.Text = "SELECT"
img.Picture = LoadPicture("")
End Sub
txtname.SetFocus
txtlname.SetFocus
txtadd.SetFocus
txtcell.SetFocus
txtemail.SetFocus
cmpgend.SetFocus
cmpstat.SetFocus
txtloc.SetFocus
cmppos.SetFocus
cmpwstat.SetFocus
Command1.SetFocus
Else
CON.Execute "insert into TBLemployee values('" & txtempno.Text & "','" & txtname.Text &
"','" & txtlname.Text & "','" & txtadd.Text & "','" & DTPicker1.Value & "','" & txtcell.Text &
"','" & txtemail.Text & "','" & cmpgend.Text & "','" & cmpstat.Text & "','" & txtloc.Text & "','"
& cmppos.Text & "','" & DTPicker2.Value & "','" & cmpwstat.Text & "','" & TXTIMG.Text &
"')"
End If
End Sub
RS.Open "SELECT* FROM TBLEMPLOYEE WHERE EMPNO='" & txtsearch.Text & "'"
txtempno.Text = RS(0)
txtname.Text = RS(1)
txtlname.Text = RS(2)
txtadd.Text = RS(3)
DTPicker1.Value = RS(4)
txtcell.Text = RS(5)
txtemail.Text = RS(6)
cmpgend.Text = RS(7)
cmpstat.Text = RS(8)
txtloc.Text = RS(9)
cmppos.Text = RS(10)
cmpwstat.Text = RS(12)
Else
End If
End Sub
CON.Execute " UPDATE TBLEMPLOYEE SET EMPNO='" & txtempno.Text & "',FNAME='"
& txtname.Text & "',LNAME='" & txtlname.Text & "',ADDRESS='" & txtadd.Text &
"',DOB='" & DTPicker1.Value & "',CELLPH='" & txtcell.Text & "',EMAIL='" & txtemail.Text
& "',GENDER='" & cmpgend.Text & "',STATUS='" & cmpstat.Text & "',LOCATION='" &
txtloc.Text & "',POSITION='" & cmppos.Text & "',HIREDATE='" & DTPicker2.Value &
"',W2STATUS='" & cmpwstat.Text & "',img='" & TXTIMG.Text & "' WHERE EMPNO ='" &
txtempno.Text & "'"
End Sub
KeyAscii = 0
End Sub
KeyAscii = 0
End Sub
cmpwstat.AddItem "MARRIED"
cmpwstat.AddItem "SINGLE"
End Sub
KeyAscii = 0
End Sub
With cd
.ShowOpen
.FilterIndex = 1
.CancelError = False
img.Picture = LoadPicture(.FileName)
End With
Text1.Text = cd.FileName
TXTIMG.Text = cd.FileTitle
a = Val(RS(0)) + 1
Else
a = 1000
End If
End Sub
txtempno.Text = Val(RS(0)) + 1
Else
txtempno.Text = 1000
End If
End Sub
End Sub
TXTAGE.Locked = True
id1
End Sub
Case 97 To 122
KeyAscii = KeyAscii - 32
End Select
End Sub
Call valint(KeyAscii)
End Sub
Call valchar(KeyAscii)
End Sub
Call valchar(KeyAscii)
End Sub
Call valchar(KeyAscii)
End Sub
Call valint(KeyAscii)
End Sub
FrmBonus
RS.Open "SELECT* FROM [TBLEMPLOYEE] WHERE EMPNO='" & cmbeid.Text & "'",
CON, adOpenDynamic, adLockBatchOptimistic
Txtename.Text = RS(1)
End If
End Sub
KeyAscii = 0
End Sub
rs1.Open "SELECT* FROM BONUSENTRY WHERE BPOINT='" & cmbpoint.Text & "'",
CON, adOpenDynamic, adLockBatchOptimistic
txtamt.Text = rs1!bamount
End If
End Sub
KeyAscii = 0
End Sub
cmbeid.Text = ""
cmbpoint.Text = ""
txtamt.Text = ""
Txtename.Text = ""
txtdiscr.Text = ""
TXTTITLE.Text = ""
End Sub
Unload Me
End Sub
If MsgBox("do you want to delete any record ", vbYesNo + vbQuestion) = vbYes Then
CMD.ActiveConnection = CON
CMD.Execute
End If
cmbeid.Text = ""
cmbpoint.Text = ""
txtamt.Text = ""
Txtename.Text = ""
txtdiscr.Text = ""
TXTTITLE.Text = ""
End Sub
cmbeid.SetFocus
cmbpoint.SetFocus
TXTTITLE.SetFocus
TXTTITLE.SetFocus
Else
CMD.ActiveConnection = CON
CMD.Execute
cmbeid.Text = ""
cmbpoint.Text = ""
txtamt.Text = ""
Txtename.Text = ""
txtdiscr.Text = ""
TXTTITLE.Text = ""
End If
End Sub
CMD.ActiveConnection = CON
CMD.Execute
End Sub
cmbeid.AddItem RS!EMPNO
RS.MoveNext
Wend
cmbpoint.AddItem rs1!bpoint
rs1.MoveNext
Wend
End Sub
TXTBID.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 0)
cmbeid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)
Txtename.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)
cmbpoint.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)
txtamt.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 4)
TXTTITLE.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 5)
txtdiscr.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 6)
DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 7)
End Sub
FrmBpointEntry
KeyAscii = 0
End Sub
Unload Me
End Sub
RS.Open "select * from bonusentry where bpoint='" & cmbpoint.Text & "'", CON,
adOpenDynamic, adLockOptimistic
Exit Sub
End If
CMD.ActiveConnection = CON
CMD.Execute
End Sub
CMD.ActiveConnection = CON
CMD.CommandText = "UPDATE bonusentry SET bamount ='" & txtamt.Text & "' where
bpoint='" & cmbpoint.Text & "'"
CMD.Execute
End Sub
cmbpoint.AddItem (1)
cmbpoint.AddItem (2)
cmbpoint.AddItem (3)
cmbpoint.AddItem (4)
cmbpoint.AddItem (5)
End Sub
Call valint(KeyAscii)
End Sub
FrmDocument
Unload Me
End Sub
txtc.Text = Val(txtc.Text) + 1
Else
End If
End Sub
txtc.Text = Val(txtc.Text) - 1
Else
End If
End Sub
txtc = 0
RS.Open "SELECT * FROM DOCUMENT WHERE EMPNO='" & TXTEMPNO.Text & "'"
List1.AddItem RS(2)
RS.MoveNext
Wend
End If
txtl.Text = List1.ListCount
End Sub
Call valint(KeyAscii)
End Sub
FrmDocUpload
Dim i As Integer
TXTEID.Text = ""
TXTEMPNO.Text = ""
TXTFNAME.Text = ""
txtcell.Text = ""
For i = 0 To TXTDOC1.UBound
TXTDOC1(i).Text = ""
Next
img.Picture = LoadPicture("")
End Sub
TXTEID.SetFocus
TXTEID.SetFocus
TXTEID.SetFocus
Else
For i = 0 To TXTDOC1.UBound
Else
End If
Next i
End If
End Sub
RS.Open "SELECT* FROM [TBLEMPLOYEE] WHERE EMPNO='" & TXTEID.Text & "'"
TXTEMPNO.Text = RS(0)
TXTFNAME.Text = RS(1)
txtcell.Text = RS(5)
Else
End If
End Sub
With cd1
.ShowOpen
.FilterIndex = 1
.CancelError = False
End With
TXTDOC1(0).Text = cd1.FileTitle
End Sub
With cd2
.ShowOpen
.FilterIndex = 1
.CancelError = False
End With
TXTDOC1(1).Text = cd2.FileTitle
End Sub
With cd3
.ShowOpen
.FilterIndex = 1
.CancelError = False
End With
TXTDOC1(2).Text = cd3.FileTitle
End Sub
With cd4
.ShowOpen
.FilterIndex = 1
.CancelError = False
End With
TXTDOC1(3).Text = cd4.FileTitle
End Sub
For i = 0 To TXTDOC1.UBound
TXTDOC1(i).Locked = True
Next
TXTEMPNO.Locked = True
TXTFNAME.Locked = True
txtcell.Locked = True
End Sub
Call valint(KeyAscii)
End Sub
FrmInterviewDetails
Unload Me
End Sub
txtid.Text = ""
txtname.Text = ""
txtqual.Text = ""
txtaddr.Text = ""
txtphno.Text = ""
cmbcomm.Text = ""
cmbtech.Text = ""
cmbapp.Text = ""
Form_Load
End Sub
Else
d = Format(DTPicker1.Value, "yyyy-mm-dd")
CMD.ActiveConnection = CON
CMD.CommandText = "insert into interview values('" & txtid.Text & "','" & txtname.Text & "','"
& txtqual.Text & "','" & txtaddr.Text & "','" & txtphno.Text & "','" & cmbcomm.Text & "','" &
cmbtech.Text & "','" & cmbapp.Text & "','" & d & "')"
CMD.Execute
cmdclear_Click
End If
End Sub
RS.Open "SELECT * FROM interview WHERE EMPid='" & txtsearch.Text & "'"
txtid.Text = RS(0)
txtname.Text = RS(1)
txtqual.Text = RS(2)
txtaddr.Text = RS(3)
txtphno.Text = RS(4)
cmbcomm.Text = RS(5)
cmbtech.Text = RS(6)
DTPicker1.Value = RS(8)
cmbapp.Text = RS(7)
Else
End If
End Sub
CMD.ActiveConnection = CON
CMD.CommandText = " UPDATE interview SET EMPid='" & txtid.Text & "',ENAME='" &
txtname.Text & "',qual='" & txtqual.Text & "',ADDRESS='" & txtaddr.Text & "',PHNO='" &
txtphno.Text & "',COMMUNICATION='" & cmbcomm.Text & "',TECHNICAL='" &
cmbtech.Text & "',APPTITUDE='" & cmbapp.Text & "',DATE='" & DTPicker1.Value & "'
WHERE EMPID ='" & txtid.Text & "'"
CMD.Execute
End Sub
cmbcomm.Clear
cmbapp.Clear
cmbtech.Clear
If RS.EOF Then
txtid.Text = 1
Else
txtid.Text = RS(0) + 1
End If
cmbcomm.Text = Clear
cmbtech.Text = Clear
cmbapp.Text = Clear
cmbcomm.AddItem "1"
cmbcomm.AddItem "2"
cmbcomm.AddItem "3"
cmbcomm.AddItem "4"
cmbtech.AddItem "1"
cmbtech.AddItem "2"
cmbtech.AddItem "3"
cmbtech.AddItem "4"
cmbapp.AddItem "1"
cmbapp.AddItem "2"
cmbapp.AddItem "3"
cmbapp.AddItem "4"
End Sub
FrmReminder
txtid.Text = ""
TXTTITLE.Text = ""
txtdisc.Text = ""
End Sub
grid
End Sub
grid
End Sub
Set MSHFlexGrid1.Recordset = RS
End Sub
CON.Execute " UPDATE REMINDER SET DATE='" & DTPicker1.Value & "',TITLE='" &
TXTTITLE.Text & "',DESCRIPTION='" & txtdisc.Text & "' WHERE ID = '" & txtid.Text & "'"
grid
End Sub
txtid.Locked = True
grid
End Sub
txtid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 0)
DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)
TXTTITLE.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)
txtdisc.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)
End Sub
FrmReminderView
RS.Open "select * from reminder where date ='" & DTPicker2.Value & "'"
Set MSHFlexGrid1.Recordset = RS
End Sub
MSHFlexGrid1.ColWidth(3) = 5850
End Sub
FrmSalary
listtemp.Clear
flag = 0
Y = Year(DTPicker1.Value)
M = Month(DTPicker1.Value)
listtemp.AddItem (RS(0))
RS.MoveNext
Wend
For i = 0 To listtemp.ListCount - 1
z=i+1
RS.Open "select sum(presence)from Attendance where Empno='" & listtemp.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
If IsNull(RS(0)) Then
a=0
Else
a = RS(0)
End If
End If
rs1.Open "select sum(bpoint)from bonuscalc where Empno='" & listtemp.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
If IsNull(rs1(0)) Then
b=0
Else
b = rs1(0)
End If
End If
RS2.Open "select Rate,Pf,tax,name from wagetype where empno='" & listtemp.List(i) & "'",
CON, adOpenDynamic, adLockOptimistic
Rate1 = RS2(0)
PF1 = RS2(1)
PF2 = RS2(1)
tax = RS2(2)
sname = RS2(3)
End If
rs3.Open "select bamount from bonusEntry where bpoint='" & b & "'", CON, adOpenDynamic,
adLockOptimistic
amt = rs3(0)
Else
amt = 0
End If
MSHFlexGrid1.TextMatrix(z, 3) = Rate1
MSHFlexGrid1.TextMatrix(z, 6) = a
MSHFlexGrid1.TextMatrix(z, 5) = PF3
MSHFlexGrid1.TextMatrix(z, 4) = amt
MSHFlexGrid1.TextMatrix(z, 2) = sname
MSHFlexGrid1.TextMatrix(z, 8) = DTPicker1.Value
MSHFlexGrid1.TextMatrix(z, 0) = z
'MsgBox PF3
MSHFlexGrid1.TextMatrix(z, 1) = listtemp.List(i)
MSHFlexGrid1.CellBackColor = vbRed
MSHFlexGrid1.Col = 7
MSHFlexGrid1.TextMatrix(z, 7) = 0
End If
Next i
For i = 1 To MSHFlexGrid1.Rows - 1
RS.Open " select * from tempsalary where empid='" & MSHFlexGrid1.TextMatrix(i, 1) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
'CMD.ActiveConnection = CON
'CMD.Execute
MsgBox "INSERTED"
rs1.Open "select name from wagetype where empno= '" & MSHFlexGrid1.TextMatrix(i, 1) & "'"
MSHFlexGrid1.TextMatrix(i, 2) = RS2(0)
End If
Else
flag = 1
RS2.Open "select name from wagetype where empno= '" & MSHFlexGrid1.TextMatrix(i, 1) &
"'"
MSHFlexGrid1.TextMatrix(i, 2) = RS2(0)
End If
End If
End If
Next i
If flag = 1 Then
End If
End Sub
listper.Clear
flag1 = 0
a = DateSerial(Year(DTPicker2.Value), Month(DTPicker2.Value) + 1, 0)
a = Day(a)
b = InputBox(a & " days in this month and enter number of holidays")
If b = "" Then
Exit Sub
End If
wd = a - b
z=1
Y = Year(DTPicker2.Value)
M = Month(DTPicker2.Value)
listper.AddItem (RS(0))
RS.MoveNext
Wend
For i = 0 To listper.ListCount - 1
z=i+1
RS.Open "select sum(presence)from Attendance where Empno='" & listper.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
If IsNull(RS(0)) Then
at = 0
Else
at = RS(0)
End If
End If
rs1.Open "select sum(bpoint)from bonuscalc where Empno='" & listper.List(i) & "' and
year(date)='" & Y & "' and month(date)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
If IsNull(rs1(0)) Then
bt = 0
Else
bt = rs1(0)
End If
End If
RS2.Open "select Rate,Pf,tax,name from wagetype where empno='" & listper.List(i) & "'",
CON, adOpenDynamic, adLockOptimistic
r = RS2(0)
Rate1 = r / wd
Rate2 = r / wd
MSHFlexGrid2.TextMatrix(z, 4) = Round(Rate1, 2)
PF1 = RS2(1)
PF2 = RS2(1)
tax1 = RS2(2)
'rate1 = rate1 * at
Rate2 = RS2(0)
'pf1 = RS2(1)
'pf2 = RS2(1)
'tax1 = RS2(2)
sname1 = RS2(3)
End If
rs3.Open "select bamount from bonusEntry where bpoint='" & bt & "'", CON, adOpenDynamic,
adLockOptimistic
amt1 = rs3(0)
Else
amt1 = 0
End If
MSHFlexGrid2.TextMatrix(z, 3) = Rate2
tax1 = tax1 / 12
MSHFlexGrid2.TextMatrix(z, 6) = tax1
MSHFlexGrid2.TextMatrix(z, 7) = PF3
MSHFlexGrid2.TextMatrix(z, 5) = at
MSHFlexGrid2.TextMatrix(z, 2) = sname1
MSHFlexGrid2.TextMatrix(z, 8) = amt1
MSHFlexGrid2.TextMatrix(z, 0) = z
'MsgBox PF3
MSHFlexGrid2.TextMatrix(z, 1) = listper.List(i)
MSHFlexGrid2.CellBackColor = vbRed
MSHFlexGrid2.Col = 9
MSHFlexGrid2.TextMatrix(z, 9) = 0
End If
Next i
For i = 1 To MSHFlexGrid2.Rows - 1
RS.Open " select * from permsalary where empid='" & MSHFlexGrid2.TextMatrix(i, 1) & "'
and year(saldate)='" & Y & "' and month(saldate)='" & M & "'", CON, adOpenDynamic,
adLockOptimistic
CMD.ActiveConnection = CON
CMD.Execute
MsgBox "INSERTED"
rs1.Open "select name from wagetype where empno= '" & MSHFlexGrid2.TextMatrix(i, 1)
& "'", CON, adOpenDynamic, adLockOptimistic
MSHFlexGrid2.TextMatrix(i, 2) = rs1(0)
End If
Else
flag1 = 1
RS2.Open "select name from wagetype where empno= '" & MSHFlexGrid2.TextMatrix(i,
1) & "'", CON, adOpenDynamic, adLockOptimistic
MSHFlexGrid2.TextMatrix(i, 2) = RS2(0)
End If
End If
End If
Next i
If flag1 = 1 Then
End If
End Sub
MSHFlexGrid1.TextMatrix(0, 4) = "BONUS"
MSHFlexGrid1.TextMatrix(0, 5) = "PF"
MSHFlexGrid1.TextMatrix(0, 7) = "EARNED"
MSHFlexGrid1.ColWidth(0) = 800
MSHFlexGrid1.ColWidth(1) = 900
MSHFlexGrid1.ColWidth(2) = 1200
MSHFlexGrid1.ColWidth(3) = 1500
MSHFlexGrid1.ColWidth(4) = 800
MSHFlexGrid1.ColWidth(6) = 1400
MSHFlexGrid1.ColWidth(5) = 800
MSHFlexGrid1.ColWidth(7) = 1500
MSHFlexGrid1.ColWidth(8) = 1500
MSHFlexGrid1.Width = 11000
MSHFlexGrid2.TextMatrix(0, 6) = "TAX"
MSHFlexGrid2.TextMatrix(0, 7) = "PF"
MSHFlexGrid2.TextMatrix(0, 8) = "BONUS"
MSHFlexGrid2.TextMatrix(0, 9) = "EARNED"
MSHFlexGrid2.ColWidth(0) = 800
MSHFlexGrid2.ColWidth(1) = 900
MSHFlexGrid2.ColWidth(2) = 1200
MSHFlexGrid2.ColWidth(3) = 1500
MSHFlexGrid2.ColWidth(4) = 1700
MSHFlexGrid2.ColWidth(5) = 1500
MSHFlexGrid2.ColWidth(6) = 800
MSHFlexGrid2.ColWidth(7) = 800
MSHFlexGrid2.ColWidth(8) = 800
MSHFlexGrid2.ColWidth(9) = 1000
MSHFlexGrid2.ColWidth(10) = 1500
MSHFlexGrid2.Width = 15000
End Sub
FrmWageRecord
RSID.Open " select fname from tblemployee where empno ='" & cmbeid.Text & "'", CON,
adOpenDynamic, adLockOptimistic
txtname.Text = RSID!fname
End Sub
KeyAscii = 0
End Sub
KeyAscii = 0
End Sub
Unload Me
End Sub
cmbeid.Text = "SELECT"
cmbwtype.Text = "SELECT"
txtrate.Text = ""
txtnote.Text = ""
txttax.Text = ""
txtpf.Text = ""
End Sub
CMD.ActiveConnection = CON
CMD.Execute
Set MSHFlexGrid1.Recordset = RS
End Sub
CMD.ActiveConnection = CON
CMD.Execute
Set MSHFlexGrid1.Recordset = RS
cmbeid.Text = "SELECT"
cmbwtype.Text = "SELECT"
txtrate.Text = ""
txtnote.Text = ""
txttax.Text = ""
txtpf.Text = ""
End Sub
CMD.ActiveConnection = CON
CMD.Execute
Set MSHFlexGrid1.Recordset = RS
End Sub
cmbeid.AddItem RSID!EMPNO
RSID.MoveNext
Wend
cmbwtype.AddItem "PERMENENT"
cmbwtype.AddItem "TEMPORORY"
Set MSHFlexGrid1.Recordset = RS
End Sub
cmbeid.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 1)
txtname.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 2)
DTPicker1.Value = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 3)
cmbwtype.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 4)
txtrate.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 5)
txtnote.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 6)
txtpf.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 7)
txttax.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.RowSel, 8)
End Sub
Call valint(KeyAscii)
End Sub
Call valint(KeyAscii)
End Sub
txttax.Text = Val(txtrate.Text) * 5
txttax.Text = 0
End If
End Sub
FrmWebcam
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As
Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Unload Me
End Sub
a = FrmEmployeeDetails.TXTEMPNO.Text
FrmEmployeeDetails.img.Picture = Image4.Picture
Unload Me
End Sub
Image4.Picture = PicWebCam.Picture
End Sub
DoEvents
Timer1.Enabled = True
Else
CMDCANCEL.Enabled = False
End If
End Sub
End Sub
DoEvents
PicWebCam.Picture = Clipboard.GetData
Clipboard.Clear
End Sub
FrmReport
Unload DataEnvironment1
a = Format(DTPicker1.Value, "yyyy-mm-dd")
DataEnvironment1.Command3 a
DataReport3.Show
End Sub
Unload DataEnvironment1
a = Format(DTPicker1.Value, "yyyy-mm-dd")
DataEnvironment1.Command4 a
DataReport4.Show
End Sub
Unload DataEnvironment1
DataReport2.Show
End Sub
Unload DataEnvironment1
DataReport1.Show
End Sub
APPENDIX - B
FORM LOGIN
FORM MENU
FORM REPORTS
APPENDIX- C
ATTENDANCE REPORT
INTERVIEW REPORT