You are on page 1of 77

PROJECT REPORT

LEAVE RECORD MANAGEMENT SYSTEM
Submitted in partial fulfillment of the requirements for the award of the P.G.D. of computer Applications

Guide:

Submitted By:

SUBMITTED TO

STUDY CENTRE PGDCA
NATIONAL INSTITUTE OF ELECTRONIC AND INFORMATION TECHNOLOGY

Candidates Monika REGD No: KA1202PGR0009 2. Project Title: LEAVE RECORD MANAGEMENT SYSTEM. 1. 3. Software Base: Visual Basic.Net & Ms Access (Os Support Windows XP) 4. Submitted for course and year: PGDCA 2 SEMESTER Year 2013. 5. Forwading by Head of Study Center……………………………….. (Signature, Name & Study Center Seal) Remarks of Study Center:……………………………………......

Project Work Evaluation

LEAVE RECORD MANAGEMENT SYSTEM

1

PROJECT REPORT

............................................................................................ 6. University Project Examiner Evaluation. Total Marks Awarded…………………......Out of 00. Detail of Evaluation along with Name & Sign of University Examiner Particular Marks Out Of Marks Awarded External Examiner’s Name & Signature

9. Remark of University Examiner:…………………………

INDEX
SR.N O
1. 2 3. 4. 5. 6. 7. 8. 9. 10. 11. 12 13 14 15 16 17 18. 19 20

CONTENTS ACKNOWLEDGEMENT CERTIFICATE SELF CERTIFICATE SYNOPHSIS OF PROJECT OBJECTIVE OF THE PROJECT STATEMENTS ABOUT THE PROBLEM WHY IS THE PARTICULAR TOPIC CHOSEN CONCLUSION FRONT END VISUAL BASIC.NET BACK END ORACLE A GLANCE AT VISUAL VASIC.NET WHY WE PREFER VISUAL VASIC.NET ADVANTAGE OF VISUAL PROGRAMMING DISADVANTAGE OF VISUAL PROGRAMMING HARDWARE AND SOFTWARE USED SYMBOLS USED IN FLOW CHART DATAFLOW DIAGRAM(DFD) ENTITY RELATIONSHIP DIAGRAM FLOW CHARTS AND DFDS WELCOME FORM LEAVE RECORD MANAGEMENT SYSTEM

PAGE NO
5 6 7 8 9 10 11 12 13-14 15-16 17 18 19 20 21 22 23 24 26-33 34 2

PROJECT REPORT

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

41 42

LOGIN FORM CHANGE PASSWORD MDI FORM EMPLOYEE RECORD FORM LEAVE RECORD FORM HALFPAY LEAVE FORM SEARCH FORM EMPLOYEE REPORT LEAVE REPORT HALFPAY LEAVE REPORT CODING OF MODULE CODING OF WELCOME FORM CODING OF LOGIN FORM CODING OF CHANGE PASSWORD CODING OF MDI FORM CODING OF EMPLOYEE RECORD FORM CODING OF LEAVE RECORD FORM CODING OF HALFPAY RECORD FORM DATABASE DATABASE SUMMARY: I. EMPLOYEE RECORD II. LEAVE RECORD III. HALFPAY RECORD IV. LOGIN FORM SYSTEM ANYLISIS AND TESTING

35 36 37 38 39 40 41 42 43 44 46 47 48-49 50 51-55 56-58 59-61 62-63 65 66-70

Bibliography

71-74 75

LEAVE RECORD MANAGEMENT SYSTEM

3

To introduce a new thing is not an easy task for anybody. alteration.PROJECT REPORT ACKNOWLEDGEMENT As we all know that when ever we are going to do something new we have to face many obstacles and of course many new experiences too. We pay my gratitude to the management for their wholehearted co-operation and guidance to make this Project. LEAVE RECORD MANAGEMENT SYSTEM 4 . attention and best efforts to present this project in simplest way. We wish to acknowledge my deep sense of gratitude and personal regards to our Project Guide “MISS SIMPLE” for his valuable guidance in the completion of our project. We feel great pleasure in presenting this project on “LEAVE RECORD MANAGEMENT SYSTEM” We have applied my concentration.

through “HIPA” done by Monika REGD No: KA1202PGR0009 2. Signature of the Students: 1. Praveen Kumar REGD No: KA1202PGR0034 is an authentic work carried out by them under my Guidance. Pradeep kumar REGD No: KA1202PGR0036 5. this work has not been submitted for award of any other degree or diploma. Pradeep kumar_________________ 5. Kuldeep Kumar REGD No: KA1202PGR0007 6.PROJECT REPORT CERTIFICATE This is to certify that the project entitled “LEAVE RECORD MANGEMENT SYSTEM” Submitted in the partial fulfillment of the PGDCA to the “NATIONAL INSTITUTE OF ELECTRONIC AND INFORMATION TECHNOLOGY 1. Kuldeep Kumar_________________ 6. Praveen Kumar_________________ (MISS. Ashish Kumar_________________ 3. SIMPLE) LEAVE RECORD MANAGEMENT SYSTEM 5 . To the best of my knowledge and belief. Ashish KUmar REGD No: KA1202PGR0005 3. Monika ______________________ Signature of Project Guide 2. ”. Rakesh kumar_________________ 4. Rakesh kumar REGD No: KA1202PGR0014 4.

PROJECT REPORT SYNOPSIS OF THE PROJECT TITLE OF THE PROJECT LEAVE RECORD MANAGEMENT SYSTEM Guide: Miss. Simple KA1202PGR0009 Ashish KUmar REGD No: KA1202PGR0005 Rakesh kumar REGD No: KA1202PGR0014 Pradeep kumar REGD No: KA1202PGR0036 Kuldeep Kumar REGD No: KA1202PGR0007 Praveen Kumar REGD No: KA1202PGR0034 Submitted By: Monika REGD No: SUBMITTED TO NATIONAL INSTITUTE OF ELECTRONIC AND INFORMATION TECHNOLOGY LEAVE RECORD MANAGEMENT SYSTEM 6 .

PROJECT REPORT STUDY CENTRE HIPA(NIELIT). DHARAMSHALA LEAVE RECORD MANAGEMENT SYSTEM 7 .

PROJECT REPORT OBJECTIVE OF THE PROJECT  Every organization intends to maintain proper records of its transaction keep track of LEAVE RECORD .  Up-to-date information of the employees can be provided to the high authority within minutes. for doing this one has to go through a pile of registers.  The project will reduce the tedious job of the paper work by keeping all the details of employees stored in the form of database in computer’s hard disk. In spite of keeping these records. LEAVE RECORD MANAGEMENT SYSTEM 8 . In the existing system information is kept manually the information about employee brought in the department.  This project is user friendly so that anyone can use it with little knowledge of computer. Furthermore it is necessary for the organization/department to keep information regarding leaves so as to get the required information as soon as possible  The basic idea is to reduce time in different department and organization related tasks like Registration of new employee. maintains leave record etc. its difficult to get the required information instantly.  This will lead to increase in the efficiency of the staff member.

The manual system consumes a lot of time in paper work. entering information into the registers etc. quite often results in mistakes. In order to answer query. Numeric calculations like the calculation of salary. 4. which result in the wastage of time. as the required information cannot be zeroed properly. 3. a number of registers have to be consulted this is the main cause of delay. If the query involves the consultation of multiple registers it result in lots of confusion. The registers call for enormous work in terms searching and sorting whenever information regarding a leaves data is to be added or modified. leave record. LEAVE RECORD MANAGEMENT SYSTEM 9 . Mistakes are often made during calculations. one has to consult voluminous registers. The registers are quite often transferred form one place to another. The process is further slowed down by the mistake in typing. 2.PROJECT REPORT STATEMENT ABOUT THE PROBLEM 1. which results in damage to the registers and the subsequent loss.

LEAVE RECORD MANAGEMENT SYSTEM 10 . We can make the LEAVE RECORD MANAGEMENT SYSTEM computerized which provides the facility of easiness to its staff as well as the organization or department. Also LEAVE RECORD MANAGEMENT SYSTEM is more time saving than Manual leave record System. In the LEAVE RECORD MANAGEMENT SYSTEM we can calculate attendance of student easily communicate with their parents.PROJECT REPORT WHY THE PARTICULAR TOPIC IS CHOSEN? Today we all know that leave record play an important role in every field. So it needs to be computerized. It is being used in every field. That is why we are interested to choose that particular topic.

This application has been developed using the approach of software engineering.PROJECT REPORT CONCLUSION Implementation of “LEAVE RECORD MANAGEMENT SYSTEM” will help the department/organization to retrieve and updates information and leave record easily. It will also provide user friendly interface. which will help to enter data quickly and efficiently with no errors. LEAVE RECORD MANAGEMENT SYSTEM 11 . It will also help the department in maintaining error free and up to date information with automatics checks and calculation. There are various modules in the application and if any modifications are needed in any module they can be incorporated without affecting the other modules. It will also help to generate quick. up to date and error free reports which in turns helps the organization to make quick and effective decisions.

VB. this interface lets you work with several sets of data in multiple windows within your program. Although writing programs can be a tedious chore at times.NET VB. An important aspect of any programming language is its ability to access and manipulate files. they work across different platforms and programming languages.NET is Microsoft’s latest and greatest version of the VB.NET makes many aspects of programming enjoyable and also makes many aspects of programming as simple as dragging graphic object onto the screen with your mouse. VB.PROJECT REPORT FRONT END VISUAL BASIC.NET makes it easy to store information in databases and access it with the Data Access Objects (DAO). Single Document Interface (SDI) limits your application to one open document window at a time.NET supports a wide range of ActiveX data objects (ADO) because these objects are ActiveX-based. VB.NET reduces the effort required on your part and makes programming enjoyable.NET provides all the statements and commands necessary for storing information to and reading it from files Moreover. they offers several advantages over the data control ADO technology supports faster database access than the data LEAVE RECORD MANAGEMENT SYSTEM 12 . VB. Multiple Document Interface (MDI) allow your application to contain multiple document window.VB.NET programming Language. each window is called a child window.

you can write code that accesses the various data control methods. however. Setting up an entire database is an over skill in these situations.PROJECT REPORT control does. LEAVE RECORD MANAGEMENT SYSTEM 13 . It’s much simpler to create a file. In some cases. we want to be able to store a few lines of text to a file or read a few numbers from a binary file. ADO generally write more program code than you would with the data control. store the information there. and recall it as needed. ADO enable you to control data access in much stricter way than the data control.

such as tracking customer orders or maintaining a collection. LEAVE RECORD MANAGEMENT SYSTEM 14 . form. you can manage all your information from a single database file. After you’ve done that. report or data access page. forms and reports to display information from several tables at once. The first step in this process is to define relationship between your tables.  Many-To-Many Relationship  One-To-One Relationship. • Forms to view add and update data in tables. you can use: • Tables to store data. • Data access pages to view update or analyze the database’s data from the internet or an intranet. To bring the data from multiple tables together in a query. • Queries to find and Retrieve just the data you want. you need a way of telling Microsoft’s access how to bring that information back together again. • Reports to analyze or print data in a specific layout. you may be tracking information from a variety of sources that you have to coordinate and organize yourself. you can create queries. define relationships between the tables. create one table for each type of information that you track. or only parts of it are. Access Database Files Using Microsoft Access.  One-To-Many Relationship. Tables And Relationship To Store your data. If your database isn’t stored on a computer. After you’ve set up different tables for each subject in your Microsoft Access database.PROJECT REPORT BACK END -ACCESS A Database is a collection of information that’s related to a particular subject or purpose.

PROJECT REPORT LEAVE RECORD MANAGEMENT SYSTEM 15 .

A query can also update or delete multiple records at the same time.PROJECT REPORT Queries To find and retrieve just the data that meets conditions that you specify. You store data in tables and each table contains data about only one subject. in just one place and that change automatically appears throughout the database. A query might show a subset of data. such as an address. Therefore. including data from multiple tables. create a query. A well designed database usually contains different types of queries that show the information you need. About designing a database Good database design ensures that your database is easy to maintain. you update a particular piece of data. such as customers. such as all customers in Delhi or combinations of data from different tables. LEAVE RECORD MANAGEMENT SYSTEM 16 . and perform predefined or custom calculation on your data. such as order information combined with customer information.

One of the primary reasons for the immense popularity of computers is the speed with which they can accomplish specified tasks. This is what goes on in the background. insurance. Program: Computers need clear cut instruction to tell them what to do. Any application has two parts: User Interface: This is the screen displayed by the application. They continue to grow and open new horizons of discovery and application. However.PROJECT REPORT A GLANCE AT VISUAL BASIC. how to do. The application asks for and provides the necessary instructions using the interface. Computers have become an integral part of man's everyday life. A set of instructions to carry out a specified task is called a program. and when to do. research. They dominate every phase of life be it entertainment. A good user interface will be:  Easy to learn  Easy to use  Attractive LEAVE RECORD MANAGEMENT SYSTEM 17 . computer applications are not always easy to use. banking. medicine. Every application has a user interface in one form or the others. design or manufacturing. education. We interact with an application via the interface.NET The areas of computer applications are literally too numerous to mention.

Mention the word Print to a person and it invokes the image of a printer. The programmer does not have to write code to create and display commonly required user-friendly features each time around. buttons and list boxes. Visual Programming: Visual Programming aims at providing the user with an interface that is intuitive and easy-to-use. In every day life too. This is possible if the interface presented is such that it emulates real life. we associate more with images than words. These became very popular because the users could identify with the graphics displayed on the screen. In developing such an interface. The primary requirement for an interface presented to us. LEAVE RECORD MANAGEMENT SYSTEM 18 .PROJECT REPORT WHY WE PREFER VISUAL BASIC.NET Graphical User Interface: Interface that use graphics came to be known as Graphical User Interfaces (GUI). A visual programming environment provides all features that are required to develop a graphical user interface as ready-to-use components. menus. the programmer employs user-friendly features such as windows.

The programmer can create the user interface visually he can align. 5. Component can be moved. The interface components provided by the visual programming environment have some code built into them.PROJECT REPORT ADVANTAGES OF VISUAL PROGRAMMING Visual programming enables: 1. 2. resized and even deleted. The visual programming environment displays a list of available components. move or size the components as required without having to resort to writing code. 6. Visual development of graphical user interfaces which are easy to use and easy to learn. 3. The programmer picks up the required component from this list to display it. 4. A programmer need not write code to display the required component. if so required. LEAVE RECORD MANAGEMENT SYSTEM 19 . There is no restriction on the number of controls that can be placed on a form.

 Larger capacity hard disk  More RAM  Faster Processor 3. visual development environment can be used only with GUI operating systems such as windows. Events: A major part of the interactions between people in every day life is in the form of events and responses to events. Visual development environment require computers of a highs configuration in comparison to the conventional programming tools. Thus the development environment in itself is highly graphical is nature and therefore requires more memory. As the name implies. the entire process of developing an application using a visual development environment is visual.PROJECT REPORT DISADVANTAGES OF VISUAL PROGRAMMING While visual programming makes it very simple to create complex user interfaces. The ability to recognize events is built into an interface component. it suffers from some disadvantages: 1. 2. The events that an interface component recognizes are different for each type of component. Primarily. An event is any action directed at the application. An event driven application operates by responding to the user events. LEAVE RECORD MANAGEMENT SYSTEM 20 .

Net.  RAM:-256MB recommended but can run on RAM 128MB.  Windows XP.PROJECT REPORT HARDWARE AND SOFTWARE USED • Hardware Requirement: Monitor:-Color Monitor. LEAVE RECORD MANAGEMENT SYSTEM 21 . Keyboard.  CD drive.  Back End:-MS ACCESS.  Hard Disk:-10GB to 40GB. • Software Requirement: Front End Language:-Visual Basic.  Mouse.

PROJECT REPORT LEAVE RECORD MANAGEMENT SYSTEM 22 .

the point of decision and other information. the relevant operations and computations. It indicates process of solution. LEAVE RECORD MANAGEMENT SYSTEM 23 .PROJECT REPORT DIFFERENT DESIGNING TOOLS FLOWCHARTS: A Flowchart is a diagrammatic or pictorial representation of the algorithm or of the plan of solution of the problem.

PROJECT REPORT which is a part of solution. Arrows to obtain a complete flowchart join the symbols LEAVE RECORD MANAGEMENT SYSTEM 24 . They are constructed by special symbols.

used to show the direction of processing or dataflow LEAVE RECORD MANAGEMENT SYSTEM 25 . An entry from or an exit to another part of the program flowchart Flow Direction.PROJECT REPORT The Symbol Used in FLOW CHART A Group of program instruction. These symbols are used for Input or Output information The Symbol Is Used For Decision Making. which perform processing function of the program. Used to document points in the program with a branch to alternative paths is possible. Terminal use to point the End and Beginning or to point the interruption in a program.

A Circle used to show the Process.PROJECT REPORT Data Flow Diagram (DFD): Data Flow Diagram is another tool use to describe the design specification. The Source Must is written in capital letters. It is also a Pictorial representation of data flow. The only difference between Flowchart and the Data Flow Diagram is that DFD show only the flow of data not the actual procedure or coding to perform that function. Each process must be assign a suitable number An Open Rectangle Used to describe the storage of database Arrow Used to shoe the flow of Data . The different symbol uses in DFD are: - Describe the Source and Destination of data or information. These can be number of process in a program. On the other hand Flowchart Show the actual calculation to perform the task. A DFD can be drawn from top to bottom or from left to right LEAVE RECORD MANAGEMENT SYSTEM 26 .

: Denote derived attributes. Objects of similar type characterized by the same set of attributes of properties. : Represent week entity sets. LEAVE RECORD MANAGEMENT SYSTEM 27 . Such similar objects from an entity set or entity type. The major components of E-R diagrams are: Rectangle Ellipses Diamonds Lines Double Ellipses Double lines Doubles Rectangles Dashed ellipses : Represent the entity sets : Represent the attributes : Represent the relationship sets : Link attributes to entity sets and entity sets to relationship sets.PROJECT REPORT Entity Relationship Diagram The E-R Diagram can express the overall logical structure of a database graphically. : Represent multi values attributes : Indicate total participation of an entity in a relationship sets. Objects are represented by their attributes. Entities An entity is an object that is of to interest to an organization. E-R Diagram is simple and clear.

PROJECT REPORT ENTITY RELATIONSHIP DIAGRAM Emp_ Name Emp_Age Emp_no Dept_no s_code add loc employee Registere d for department Maintain s leaves Leaves taken balance Leaves LEAVE RECORD MANAGEMENT SYSTEM 28 .

PROJECT REPORT DATA FLOW DIAGRAMS AND FLOW CHARTS LEAVE RECORD MANAGEMENT SYSTEM 29 .

PROJECT REPORT PROCESS FOR USER LOGIN System User Login Process Leave record managemen t system LEAVE RECORD MANAGEMENT SYSTEM 30 .

DFD FOR SAVE PROCEDURE USER Process 1 Execute the save Procedure Process 1.Net displays the information message.1 Check for Empty Field leave Process 2 Save The Record In the database LEAVE RECORD MANAGEMENT SYSTEM 31 . If any fields are blank the Visual Basic.PROJECT REPORT TO SAVE THE NEW RECORD To save the record the user must enter the data to required fields Then Click the save button.

PROJECT REPORT Flowchart for Save Procedure START Enter detailed information about leave If Any blank field Yes No Save the record in new form EXIT LEAVE RECORD MANAGEMENT SYSTEM 32 .

2 Invalid data then back to User Process 2 If valid delete RECORD USER_INFO Process 2 DELETE ALL RECORDS IN DATABASE DATABASE LEAVE RECORD MANAGEMENT SYSTEM 33 .PROJECT REPORT DFD for delete procedure: (Example) Process 1 USER Request to Delete Record Check for Valid data Process1.

PROJECT REPORT Flow Chart for ADD NEW RECORD Procedure Process 1 Add New Blank Record DATABASE FILE The DFD for the ADD NEW RECORD START Add New Transaction Blank all fields Process 1 Add New Blank Record DATABASE FILE LEAVE RECORD MANAGEMENT SYSTEM 34 .

PROJECT REPORT Flowchart for Save Procedure: (Example) START Enter detailed information about Employee/leave If Any blank field Yes No Save the record in EMPLOYEE TABLE/ LEAVE TABLE/HALFPAY TABLE EXIT LEAVE RECORD MANAGEMENT SYSTEM 35 .

PROJECT REPORT DESIGING OF FORM LEAVE RECORD MANAGEMENT SYSTEM 36 .

CLICK HERE TO START PROJECT: CLICK ON THIS LINK LABLE TO START THE PROJECT.PROJECT REPORT WELCOME FORM THIS IS A WELCOME FORM. CLICK HERE TO START PROJECT: CLICK ON THIS LINK LABLE TO EXIT FROM THE PROJECT LEAVE RECORD MANAGEMENT SYSTEM 37 .

PROJECT REPORT LOGIN FORM THIS IS OPENING FORM IS USED FOR LOGIN THE SYSTEM OK:-OK BUTTON IS USED TO ENTER THE SYSTEM CANCEL:-CANCEL BUTTON IS USED TO EXIT FROM THE SYSTEM LEAVE RECORD MANAGEMENT SYSTEM 38 .

LEAVE RECORD MANAGEMENT SYSTEM 39 . OK:-OK BUTTON IS USED TO CHANGE THE PASSWORD. CANCEL:-CANCEL BUTTON IS USED TO EXIT FROM THIS FORM.PROJECT REPORT CHANGE PASSWORD FORM THIS FORM IS USED THE CHANGE PASSWORD.

LEAVE RECORD MANAGEMENT SYSTEM 40 .IT IS JUST LIKE THE ORDINARY WINDOWS APPLICATION FORM. BUT A DIFFERENCE IS THERE WHEN ISMDICONTAINER PROPERTY OF ANY WINDOWS APPLICATION FORM IS COME TO TRUE.IT HOLDS ALL THE CONTROL OF RUNNING PROJECT ITEM (SOFTWARE). THEN THAT FORMS CONVERTS INTO MDI PARENT FORM.PROJECT REPORT MAIN FORM THE MDI FORM MDI STANDS FOR MULTIPLE DOCUMENT INTERFACES .

PROJECT REPORT

EMPLOYEE RECORD FORM

THIS FORM IS USED HERE TO ENTER THE RECORD OF EMPLOYEE LIKE HIS/HER NAME, ADDRESS, SEXCODE, DOJ ETC.

SHOWDATA:-THIS BUTTON WILL SHOW THE DATA IN THE DATAGRIDBOX. SAVE:-THIS BUTTON IS USED TO SAVE THE RECORDS. SEARCH:-THIS BUTTON IS USED TO FIND THE RECORDS. DELETE:-THIS BUTTON IS USED TO DELETE THE RECORDS. MODIFY:-THIS BUTTON IS USED TO UPDATE/MODIFY THE RECORD. EXIT:-THIS BUTTON IS USED TO EXIT FROM THE CURRENT FORM.

LEAVE RECORD MANAGEMENT SYSTEM

41

PROJECT REPORT

LEAVE RECORD FORM

THIS FORM IS USED TO ENTER THE LEAVE RECORD OF THE EMPLOYEES.IN THIS FORM IT IS SHOWN THAT HOW MANY LEAVES AND WHAT KIND OF LEAVE IS TAKEN BY THE EMPLOYEE.

SHOW:-THIS BUTTON WILL SHOW THE DATA IN THE DATAGRIDBOX. SAVE:-THIS BUTTON IS USED TO SAVE THE RECORDS. SEARCH:-THIS BUTTON IS USED TO FIND THE RECORDS. DELETE:-THIS BUTTON IS USED TO DELETE THE RECORDS. MODIFY:-THIS BUTTON IS USED TO UPDATE/MODIFY THE RECORD. EXIT:-THIS BUTTON IS USED TO EXIT FROM THE CURRENT FORM.

LEAVE RECORD MANAGEMENT SYSTEM

42

PROJECT REPORT

HALFPAY LEAVE FORM

THIS IS HALFPAY LEAVE FORM.THIS FORM WILL SHOW HOW MANY HALFPAY LEAVES ARE GIVEN AND HOW MANY LEAVES ARE TAKEN.

SHOW:-THIS BUTTON WILL SHOW THE DATA IN THE DATAGRIDBOX. SAVE:-THIS BUTTON IS USED TO SAVE THE RECORDS. SEARCH:-THIS BUTTON IS USED TO FIND THE RECORDS. DELETE:-THIS BUTTON IS USED TO DELETE THE RECORDS. MODIFY:-THIS BUTTON IS USED TO UPDATE/MODIFY THE RECORD. CANCEL:-THIS BUTTON IS USED TO EXIT FROM THE CURRENT FORM.

LEAVE RECORD MANAGEMENT SYSTEM

43

LEAVE RECORD MANAGEMENT SYSTEM 44 .PROJECT REPORT SEARCH FORM THIS IS THE SEARCH FORM IN THIS FORM SEARCHED ENTRIES WILL BE SHOWN.WHEN YOU WANT TO SEARCH SOME DATA THE DATA WILL BE SHOWN IN THE SEARCH FORM IN DATAGRID.

PROJECT REPORT EMPLOYEE REPORT LEAVE RECORD MANAGEMENT SYSTEM 45 .

PROJECT REPORT LEAVE REPORT LEAVE RECORD MANAGEMENT SYSTEM 46 .

PROJECT REPORT HALFPAY LEAVE REPORT LEAVE RECORD MANAGEMENT SYSTEM 47 .

PROJECT REPORT CODING OF FORMS LEAVE RECORD MANAGEMENT SYSTEM 48 .

ConnectionString = "user Id=leave1.ExecuteNonQuery() End Function End Module LEAVE RECORD MANAGEMENT SYSTEM 49 . password=leave" con.DataSet Public com As New OracleClient.OracleCommand(command.State = ConnectionState.Closed Then con.Open() End If com = New OracleClient.PROJECT REPORT CODING OF MODULE Module Module2 Public con As New OracleClient. con) com.OracleCommand Public Command As String Function connection_open() On Error GoTo chkerr con = New OracleClient.OracleConnection con.OracleDataAdapter Public ds As New Data.OracleConnection Public da As New OracleClient.Open() Exit Function chkerr: MsgBox("Connection is not Establish" & Err.Description) End Function Function Save_Record(ByVal command) If con.

ByVal e As System. ByVal e As System. ByVal e As System.PROJECT REPORT CODING OF WELCOME FORM Private Sub WELCOME_FORM_Load(ByVal sender As System.Object.Load connection_open() End Sub Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Forms.Object.Forms.Object.LinkClicked Dim frm As New LOGIN_FORM frm.EventArgs) Handles MyBase.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.Windows.Hide() End Sub End Class LEAVE RECORD MANAGEMENT SYSTEM 50 .LinkLabelLinkClickedEventArgs) Handles LinkLabel1.Windows.LinkClicked End End Sub Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Show() Me.

Item("USERNAME") And TextBox2.Information.You can't access") TextBox1.EventArgs) Handles Button1. con) ds = New Data.Rows(0).Focus() ElseIf TextBox1.Item("PASSWORD") Then MsgBox("WELCOME To our Project") FRM3.Rows(0).Click End End Sub Else LEAVE RECORD MANAGEMENT SYSTEM 51 .Tables("LOGIN").Rows(0).Text = "" TextBox2.Information.Text = "" TextBox1.PROJECT REPORT CODING OF LOGIN FORM Private Sub Button1_Click(ByVal sender As System..Item("USERNAME") And TextBox2.Object.Text = ds.Click Dim FRM3 As New LEAVE_RECORD Command = "select * from login" da = New OracleClient.Text = ds.Item("PASSWORD") Then MsgBox("YOU ENTER WRONG PASSWORD".EventArgs) Handles Button2. ByVal e As System.Tables("LOGIN").Show() Me.Text = ds.DataSet da.Fill(ds.Text = "" Then MsgBox("PLEASE ENTER USERNAME AND PASSWORD".Item("USERNAME") And TextBox2.Text <> ds. MsgBoxStyle.Object.Text = "" And TextBox2.Rows(0).Rows(0).Information.Tables("LOGIN").Exclamation.Text = ds.Tables("LOGIN"). ByVal e As System.Text <> ds.Hide() ElseIf TextBox1. "ERROR WINDOW") TextBox1. "ERROR WINDOW") TextBox2. "login") If TextBox1.Focus() End If End Sub Private Sub Button2_Click(ByVal sender As System. "ERROR WINDOW") MsgBox("Sorry.Tables("LOGIN")..Text = "" TextBox1.Tables("LOGIN"). MsgBoxStyle. "ERROR WINDOW") MsgBox("Try Again") ElseIf TextBox1.Text = "" TextBox2. MsgBoxStyle. MsgBoxStyle.Item("PASSWORD") Then MsgBox("YOU ENTER WRONG USERNAME".OracleDataAdapter(Command.Focus() MsgBox("YOU ENTER WRONG USERNAME AND PASSWORD".Rows(0).

Rows(0).Rows(0). ByVal e As System.Fill(ds.Item("PASSWORD") Then Dim FRM As New CHANGE_PASSWORD FRM.OracleDataAdapter(Command.EventArgs) Handles Button3.Load connection_open() End Sub Private Sub Button3_Click(ByVal sender As System.PROJECT REPORT Private Sub LOGIN_FORM_Load(ByVal sender As System.Text = "" And TextBox2. "login") If TextBox1.EventArgs) Handles MyBase.Object.GetXml) da.Text = "" Then MsgBox("PLEASE ENTER OLD USERNAME AND PSSSWORD FIRST") ElseIf TextBox1.Tables("LOGIN"). ByVal e As System.Item("USERNAME") And TextBox2. con) ds = New Data.Text = ds.Show() Else MsgBox(" SORRY YOU CAN'T CHANGE PASSWORD") End If End Sub LEAVE RECORD MANAGEMENT SYSTEM 52 .DataSet ' MsgBox("" & ds.Text = ds.Tables("LOGIN").Click Command = "select * from login" da = New OracleClient.Object.

Object.Text & "' " Save_Record(Command) MsgBox("PASSWORD IS CHANGED") Me.Tables("LOGIN").Focus() Else MsgBox("TRY AGAIN") TXT1.Click Exit Sub End Sub End Class LEAVE RECORD MANAGEMENT SYSTEM 53 .Item("USERNAME") Then Command = "UPDATE LOGIN SET PASSWORD='" & TXT2.EventArgs) Handles MyBase.Item("USERNAME") Then MsgBox("YOU CAN'T CHANGE USER") TXT1.Rows(0).Hide() ElseIf TXT1.Fill(ds.Text = "" TXT2. ByVal e As System.Text = TXT2.EventArgs) Handles But_CANCEL.Rows(0). con) ds = New Data.Text & "' WHERE USERNAME='" & TXT1.Text <> ds.Text And TXT1.Load End Sub Private Sub But_CANCEL_Click(ByVal sender As System.Text = "" TXT1.PROJECT REPORT CODING OF CHANGE PASSWORD Private Sub Button1_Click(ByVal sender As System.DataSet da.Tables("LOGIN").Text = ds.Object.Click Dim LOGIN As New LOGIN_FORM Command = "select * from login" da = New OracleClient.Focus() End If End Sub Private Sub CHANGE_PASSWORD_Load(ByVal sender As System.EventArgs) Handles But_OK. ByVal e As System. "login") If TXT3.Text = "" TXT3.OracleDataAdapter(Command. ByVal e As System.Text = "" TXT1.Object.

YesNo) If result = vbYes Then End Else : Exit Sub End If End Sub Private Sub MenuItem10_Click(ByVal sender As System. ByVal e As System. ByVal e As System.Table Dim mylogin As CrystalDecisions.Engine.Shared.Object.Click Dim FRM6 As New LEAVE FRM6.Write(mytable.Click Dim frmcrv As New REPORT 'Form1 on which we have Crystal Report Viewer Dim rep1 As New LEAVE_REPORT 'Report Dim mytable As CrystalDecisions. MsgBoxStyle.Show() End Sub Private Sub MenuItem4_Click(ByVal sender As System. ByVal e As System.UserID = "leave1" mylogin.Object.MdiParent = Me FRM5.ConnectionInfo.CrystalReports.ServerName = "" mylogin.EventArgs) Handles MenuItem10.EventArgs) Handles MenuItem12. ByVal e As System.Object.ConnectionInfo.TestConnectivity = False Debug.Name) mylogin = mytable.Database.EventArgs) Handles MenuItem4.ConnectionInfo.Object.Tables() 'used if connects in more than one try While mytable.Show() End Sub Private Sub MenuItem12_Click(ByVal sender As System.Click Dim FRM5 As New EMPLOYEE_RECORD FRM5. ByVal e As System.MdiParent = Me FRM6.Object.EventArgs) Handles MenuItem2.ApplyLogOnInfo(mylogin) LEAVE RECORD MANAGEMENT SYSTEM 54 .EventArgs) Handles MyBase.PROJECT REPORT CODING OF MDI FORM Private Sub LEAVE_RECORD_Load(ByVal sender As System.TableLogOnInfo For Each mytable In rep1.Load connection_open() End Sub Private Sub MenuItem2_Click(ByVal sender As System.LogOnInfo mylogin.Password = "leave" mytable.Click Dim result As String result = MsgBox("Do you want to exit from PROJECT".

Database.Tables("EMP_RECORD") S_FORM.CrystalReports. "EMP_RECORD") ITEM = ds. ByVal e As System.EventArgs) Handles MenuItem13.Fill(ds.DataGrid1.Name) mylogin = mytable.DataSet da.Engine.ConnectionInfo.Write(mytable.Show() End Sub Private Sub MenuItem13_Click(ByVal sender As System.ServerName = "" LEAVE RECORD MANAGEMENT SYSTEM 55 .PROJECT REPORT Next End While frmcrv. con) ds = New Data.EventArgs) Handles MenuItem9.Table Dim mylogin As CrystalDecisions.LogOnInfo mylogin.MdiParent = Me frmcrv.ReportSource = rep1 frmcrv.Shared.Tables("EMP_RECORD").Show() End If End Sub Private Sub MenuItem9_Click(ByVal sender As System.Click Dim NAME As String Dim ITEM As Integer Dim S_FORM As New SEARCH_FORM NAME = InputBox("Enter NAME of employee which you want to search") Command = "select * from EMP_RECORD where EMP_NAME='" & NAME & "'" da = New OracleClient.Click Dim frmcrv As New REPORT 'Form1 on which we have Crystal Report Viewer Dim REP1 As New EMPREPORT Dim mytable As CrystalDecisions. ByVal e As System.Tables() 'used if connects in more than one try While mytable.TestConnectivity = False Debug.DataSource = ds.Critical) Else S_FORM.CrystalReportViewer1.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No Record is not found".TableLogOnInfo For Each mytable In rep1.Object. MsgBoxStyle.Rows.MdiParent = Me S_FORM.Object.OracleDataAdapter(Command.

CrystalReportViewer1.ConnectionInfo.Name) mylogin = mytable.ConnectionInfo.EventArgs) Handles MenuItem14.TestConnectivity = False Debug.UserID = "leave1" mylogin.ServerName = "" mylogin.ApplyLogOnInfo(mylogin) Next End While frmcrv.PROJECT REPORT mylogin.ConnectionInfo.LogOnInfo mylogin.CrystalReports.Tables() 'used if connects in more than one try While mytable.MdiParent = Me frmcrv. ByVal e As System.Show() End Sub Private Sub MenuItem11_Click(ByVal sender As System.Shared.ReportSource = rep1 frmcrv.MdiParent = Me frmcrv.Object.ReportSource = REP1 frmcrv.Write(mytable.UserID = "leave1" mylogin.TableLogOnInfo For Each mytable In rep1.Click Dim ID As Integer Dim ITEM As Integer Dim S_FORM As New SEARCH_FORM Name = InputBox("Enter ID of employee which you want to search") LEAVE RECORD MANAGEMENT SYSTEM 56 .ConnectionInfo.Table Dim mylogin As CrystalDecisions. ByVal e As System.ApplyLogOnInfo(mylogin) Next End While frmcrv.CrystalReportViewer1.Engine.ConnectionInfo.Database.Password = "leave" mytable.EventArgs) Handles MenuItem11.Click Dim frmcrv As New REPORT 'Form1 on which we have Crystal Report Viewer Dim rep1 As New HALFPAY_LEAVE_REPORT 'Report Dim mytable As CrystalDecisions.Password = "leave" mytable.Show() End Sub Private Sub MenuItem14_Click(ByVal sender As System.Object.

Critical) Else S_FORM.DataSet da.Rows.Tables("EMP_RECORD").Tables("EMP_RECORD"). MsgBoxStyle. MsgBoxStyle.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No Record is not found".PROJECT REPORT Command = "select *from EMP_RECORD where emp_no=" & ID & "" da = New OracleClient. "EMP_RECORD") ITEM = ds.Fill(ds. Record is not found".EventArgs) Handles MenuItem16.Show() End If End Sub Private Sub MenuItem15_Click(ByVal sender As System.DataSource = ds.Tables("EMP_RECORD").Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No.Object.Tables("EMP_RECORD") S_FORM.DataSource = ds.MdiParent = Me S_FORM.Critical) Else S_FORM. ByVal e As System. con) ds = New Data.DataGrid1.OracleDataAdapter(Command.Object.Rows. MsgBoxStyle. "EMP_RECORD") ITEM = ds.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No Record is not found".MdiParent = Me S_FORM.OracleDataAdapter(Command.DataGrid1.EventArgs) Handles MenuItem15.Critical) Else LEAVE RECORD MANAGEMENT SYSTEM 57 . con) ds = New Data. ByVal e As System.Fill(ds.Tables("EMP_RECORD") S_FORM.Click Dim ITEM As Integer Dim NAME As String NAME = InputBox("ENTER NAME OF EMPLOYEE WHICH YOU WANT TO DELETE") Command = "DELETE from EMP_RECORD WHERE EMP_NAME='" & NAME & "'" Save_Record(Command) ITEM = ds.Show() End If End Sub Private Sub MenuItem16_Click(ByVal sender As System.DataSet da.Click Dim ITEM As Integer Dim S_FORM As New SEARCH_FORM Command = "select * from EMP_RECORD" da = New OracleClient.Rows.

Rows.Object.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No. MsgBoxStyle.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No. ByVal e As System. MsgBoxStyle.Information) End If End Sub Private Sub MenuItem18_Click(ByVal sender As System.PROJECT REPORT MsgBox("RECORD IS DELETED SUCCESSFULLY". MsgBoxStyle. Record is not found".Click Dim ITEM As Integer Command = "DELETE from EMP_RECORD" Save_Record(Command) ITEM = ds.Tables("EMP_RECORD").Critical) Else MsgBox(" ALL RECORDS ARE DELETED SUCCESSFULLY".Information) End If End Sub End Class LEAVE RECORD MANAGEMENT SYSTEM 58 .Critical) Else MsgBox("RECORD IS DELETED SUCCESSFULLY". MsgBoxStyle.Click Dim ITEM As Integer Dim ID As Integer ID = InputBox("ENTER ID OF EMPLOYEE WHICH YOU WANT TO DELETE") Command = "DELETE from EMP_RECORD WHERE EMP_NAME=" & ID & "" Save_Record(Command) ITEM = ds.EventArgs) Handles MenuItem18.Rows. ByVal e As System.Object.EventArgs) Handles MenuItem17. Record is not found".Tables("EMP_RECORD"). MsgBoxStyle.Information) End If End Sub Private Sub MenuItem17_Click(ByVal sender As System.

" & TXT5.'" & TXT2. "SAVE INFORMATION") Dim dsl As New DataSet Dim i As Integer Command = "select * from emp_record" da = New OracleClient.EventArgs) Handles But_show.TextChanged End Sub Private Sub But_show_Click(ByVal sender As System.Fill(dsl. "emp_record") TXT1." & TXT7.Tables("emp_record").Click Command = "select * from EMP_RECORD order by Emp_no" da = New OracleClient.Fill(ds.DataSource = ds. con) ds = New Data.Object.Text = 100 Else Command = "select max(emp_no)+1 from EMP_RECORD" da = New OracleClient.Fill(ds.'" & DT1.Object. "emp_record") i = ds.'" & CB1.EventArgs) Handles But_save.Tables("EMP_RECORD") End Sub Private Sub But_save_Click(ByVal sender As System.Text & ".Click Try Command = "INSERT INTO EMP_RECORD values(" & TXT1. ByVal e As System. con) da.Object.Text & ".Rows(0).Tables("emp_record").Text & "'. "EMP_RECORD") DataGrid1.OracleDataAdapter(command.Object.Text & "'.Count If i = 0 Then TXT1.Text & ")" Save_Record(Command) MsgBox("RECORD IS SAVED". ByVal e As System.'" & TXT6. MsgBoxStyle.Text & "'.SelectedItem & "'. con) da.OracleDataAdapter(Command.EventArgs) Handles TXT6.Click End Sub Private Sub TextBox6_TextChanged(ByVal sender As System.Text & "'.Information.Item("max(emp_no)+1") End If LEAVE RECORD MANAGEMENT SYSTEM 59 .'" & DT2. ByVal e As System. ByVal e As System.Text = dsl.Rows.EventArgs) Handles Label2.DataSet da.PROJECT REPORT CODING OF EMPLOYEE RECORD Private Sub Label2_Click(ByVal sender As System.OracleDataAdapter(Command.

Text = = = = "" "" "" "" Catch MsgBox("" & Err.Click LEAVE RECORD MANAGEMENT SYSTEM 60 .Click Dim result As Integer result = InputBox("Please enter employee id which you want to delete") Command = "delete from emp_record where emp_no=" & result & "" Save_Record(Command) MsgBox("Record is deleted successfully") End Sub Private Sub EMPLOYEE_RECORD_Load(ByVal sender As System.Fill(ds.EventArgs) Handles MyBase.EventArgs) Handles GroupBox1.Object.EventArgs) Handles But_del.Rows(0). "emp_record") TXT1.OracleDataAdapter(Command.Load connection_open() Dim dsl As New DataSet connection_open() Dim i As Integer Command = "select * from emp_record" da = New OracleClient.Fill(dsl. con) da.Text TXT6.Description) End Try End Sub Private Sub GroupBox1_Enter(ByVal sender As System.Item("max(emp_no)+1") End If End Sub Private Sub But_mod_Click(ByVal sender As System. ByVal e As System.Rows.Object.Text TXT7.Object.Text = dsl.PROJECT REPORT TXT2.Count If i = 0 Then TXT1. "emp_record") i = ds.Tables("emp_record"). ByVal e As System.Object.Tables("emp_record").Enter End Sub Private Sub But_del_Click(ByVal sender As System.OracleDataAdapter(Command.Text TXT5. ByVal e As System.Text = 100 Else Command = "select max(emp_no)+1 from emp_record" da = New OracleClient. con) da.EventArgs) Handles But_mod. ByVal e As System.

Item("Emp_add") TXT7.Object.Tables("emp_record").Text & "' .Text & "'.Tables("emp_record").Text = ds.Tables("emp_record").Information.Tables("emp_record"). Emp_DOJ='" & DT2.Text & " where Emp_NO= " & TXT1.Text = "" Or TXT7.Text = ds.Item("emp_salary") DT2.Count MsgBox(" " & ITEM) If ITEM = 0 Then MsgBox("No Record is not found". "Saved Information") End If End Sub Private Sub But_search_Click(ByVal sender As System. "EMP_RECORD") ITEM = ds. EMP_SALARY =" & TXT5.OracleDataAdapter(Command.SelectedItem & "' . sex_code = '" & CB1.Item("Emp_dob") CB1.Text = ds.EMP_PNO = " & Else EMP_RECORD set Emp_name='" & TXT2.Text & " TXT6.Click Me. MsgBoxStyle.Tables("emp_record").PROJECT REPORT "" Then If TXT2.Text = ds.Item("Emp_pno") End Sub Private Sub But_cancel_Click(ByVal sender As System.Critical) Else DataGrid1.Object.EventArgs) Handles But_search.Rows(0).Text = "" Or TXT5.Tables("emp_record") End If TXT1.Text = MsgBox("Please fill all the field". MsgBoxStyle.Rows(0). ByVal e As System.Item("Emp_doj") TXT6.Item("Emp_No") TXT2.Text = ds.Text & "" Save_Record(Command) MsgBox("Record Modified ".Text = "" Or TXT6. MsgBoxStyle.Fill(ds.EventArgs) Handles But_cancel.Tables("emp_record").Item("sex_code") TXT5.Rows.DataSource = ds.Rows(0).Click Dim ID As Integer Dim ITEM As Integer ID = InputBox("enter ID of employee which you want to search") Command = "select *from emp_record where emp_no=" & ID & "" da = New OracleClient. ByVal e As System.Hide() End Sub End Class CODING OF LEAVE FORM LEAVE RECORD MANAGEMENT SYSTEM 61 .Rows(0).Text = ds.EMP_ADD='" & TXT7.Item("Emp_name") DT1.Text & "'.Tables("emp_record").Text & "' .Text = ds.Rows(0).Tables("emp_record").Rows(0). con) ds = New Data.Rows(0). .Rows(0).Tables("emp_record").DataSet da.Text = ds.YesNo) Exit Sub Command = "update EMP_DOB= '" & DT1.

Item("EMP_NO") Then TXTDNO.Text & ". con) ds = New Data.Item("LEAVE_TAKEN") + ds.Tables("LEAVE")." & TXTDNO.Item("TOTAL_LEAVE") TXT_LT.Text = ds.Tables("LEAVE").Tables("LEAVE").Rows(0).Description) Save_Record(Command) MsgBox("RECORD IS SAVED".EventArgs) Handles But_save.'" & TXTNAME.Item("TOTAL_LEAVE") ds.Text & "')" MsgBox("" & Err.Item("LEAVE_REQUIRED") TXT_BAL.Rows(0)." & TXT_BAL.Click Dim result As Integer result = InputBox("Please enter employee id which you want to delete") Command = "delete from LEAVE where emp_no=" & result & "" Save_Record(Command) MsgBox("Record is deleted successfully") End Sub LEAVE RECORD MANAGEMENT SYSTEM 62 .Text & "." & TXT_LR.Text = "" End Sub Private Sub But_del_Click(ByVal sender As System." & TXT_LT. "SAVE INFORMATION") TXTDNO.'" & CB1.Object.Text & ". MsgBoxStyle.Text = "" TXTNAME.Rows(0).Text = ds. "LEAVE") DG1.Text = "" TXT_LT." & TXT_TL.Text = ds.EventArgs) Handles But_del.Information.Rows(0).Text = "" TXT_BAL.DataSource = ds.Text & ".Tables("LEAVE").Text & "'.Text & ".Click Command = "INSERT INTO LEAVE values(" & TXTNO.PROJECT REPORT Private Sub But_show_Click(ByVal sender As System.DataSet da.Tables("LEAVE").Item("LEAVE_TYPE") TXT_TL.Rows(0).Text = "" TXT_TL.Item("LEAVE_REQUIRED") Else MsgBox("NO LEAVE RECORD IS FOUND") End If End Sub Private Sub But_save_Click(ByVal sender As System.Rows(0).Text = ds.'" & DT2. ByVal e As System.Text & "'.Object.Item("EMP_NAME") CB1.Text = ds.Fill(ds.Item("DEPT_NO") TXTNAME.Item("LEAVE_TAKEN") ds.'" & DT1.Tables("LEAVE").Tables("LEAVE").Rows(0). ByVal e As System.Text & ".SelectedItem & "'.Text = ds.Tables("LEAVE").Rows(0).Tables("LEAVE").Rows(0).Click Command = "select * from LEAVE " da = New OracleClient.Text = "" TXT_LR.Tables("LEAVE"). ByVal e As System.Tables("LEAVE") If TXTNO.Text = ds.OracleDataAdapter(Command.Object.Rows(0).EventArgs) Handles But_show.

SelectedIndex() = 6 Then TXT_TL.Leave Dim EMP As New EMPLOYEE_RECORD Dim DAY As New Date Dim CURRENT.SelectedIndex() = 1 Then TXT_TL.PROJECT REPORT Private Sub But_search_Click(ByVal sender As System.Text = 30 ElseIf CB1. ByVal e As System. DOJ As Integer Dim dd As Integer If CB1. ByVal e As System.SelectedIndex() = 0 Then TXT_TL.Text) CURRENT = Val(DAY.EventArgs) Handles But_search. con) ds = New Data.Object.Click Me.Now) dd = CURRENT .EventArgs) Handles MyBase.Object.Text) . ByVal e As System. "LEAVE") DG1.Object.Text = 12 ElseIf CB1.DataSet da.SelectedIndex() = 4 Then DOJ = Val(EMP.Text = 20 ElseIf CB1.Text = 15 ElseIf CB1.Load End Sub Private Sub TXT_LT_Leave(ByVal sender As Object.DOJ If dd >= 2555 Then TXT_TL.SelectedIndex() = 2 Then TXT_TL.Text = Val(TXT_TL.OracleDataAdapter(Command.EventArgs) Handles But_cancel.SelectedIndex() = 5 Then TXT_TL.Fill(ds. ByVal e As System.DataSource = ds.DT2.Hide() End Sub Private Sub LEAVE_Load(ByVal sender As System.Text = 180 ElseIf CB1.Val(TXT_LT. ByVal e As System.Text) End Sub Private Sub CB1_Leave(ByVal sender As Object.Text = 730 Else MsgBox("Leave not Reconmended") End If LEAVE RECORD MANAGEMENT SYSTEM 63 .EventArgs) Handles TXT_LT.EventArgs) Handles CB1.Leave TXT_BAL.Tables("LEAVE") End Sub Private Sub But_cancel_Click(ByVal sender As System.Click Dim result As String result = InputBox("enter name which you want to search") Command = "select *from LEAVE where emp_name='" & result & "'" da = New OracleClient.

Text & ".Object. LT_FROM= '" & DT1.Text & ". MsgBoxStyle.Text = "" Or TXTNAME. MsgBoxStyle.Text & " .DoubleClick Dim FRM6 As New HALFPAY_LEAVE_RECORD If CB1.Text & "'.Information.SelectedIndex() = 3 Then FRM6.Text = "" Or TXT_BAL. TOTAL_LEAVE =" & TXT_TL.SelectedItem & "' .Text & " " Save_Record(Command) MsgBox("Record Modified ".Text & "'where Emp_NO= " & TXTNO.Click If TXTDNO.EventArgs) Handles But_mod. LEAVE_TYPE = '" & CB1. EMP_NAME= '" & TXTNAME.BALANCE=" & TXT_BAL.PROJECT REPORT Else : Exit Sub End If End Sub Private Sub But_mod_Click(ByVal sender As System.EventArgs) Handles CB1. ByVal e As System.Text & "' .LEAVE_REQUIRED=" & TXT_LR.Text = "" Or TXT_LT.YesNo) Exit Sub Else Command = "update LEAVE set DEPT_NO=" & TXTDNO.Text = "" Or TXT_TL. "Saved Information") End If End Sub Private Sub CB1_DoubleClick(ByVal sender As Object.Text & ".Text = "" Then MsgBox("Please fill all the field". LEAVE_TAKEN=" & TXT_LT. LT_TO= '" & DT2.Show() End If End Sub End Class LEAVE RECORD MANAGEMENT SYSTEM 64 . ByVal e As System.Text & " .

con) ds = New Data.Text = "" TXTHPL.Hide() End Sub Private Sub But_show_Click(ByVal sender As System.Object.Text & ".Text & ".Information.Click Command = "select * from half_pay" da = New OracleClient.EventArgs) Handles MyBase.Text = "" TXTS_A_HPL.Text & "'." & TXTS_A_HPL.Text = "" TXTSALARY. ByVal e As System.'" & TXTNAME. "SAVE INFORMATION") TXTDNO.Object.DataSet da.Load connection_open() End Sub Private Sub But_save_Click(ByVal sender As System.Fill(ds.Object.PROJECT REPORT CODING OF HALFPAY LEAVE RECORD Private Sub HALFPAY_LEAVE_RECORD_Load(ByVal sender As System.Text = "" TXTLT. MsgBoxStyle.Text & "." & TXTDNO. ByVal e As System." & TXTSALARY.EventArgs) Handles But_del. ByVal e As System.Hide() End Sub LEAVE RECORD MANAGEMENT SYSTEM 65 .EventArgs) Handles But_save.Click Dim result As Integer result = InputBox("Please enter employee id which you want to delete") Command = "delete from half_pay where emp_no=" & result & "" Save_Record(Command) MsgBox("Record is deleted successfully") End Sub Private Sub But_cancel_Click(ByVal sender As System.Click Command = "INSERT INTO half_pay values(" & TXTNO. ByVal e As System.EventArgs) Handles But_cancel. ByVal e As System." & TXTHPL.OracleDataAdapter(Command.Object.Tables("half_pay") End Sub Private Sub But_del_Click(ByVal sender As System. "half_pay") DataGrid1.Text = "" Me.Text & ".Text = "" TXTNAME.Text & ")" MsgBox("" & Err.Description) Save_Record(Command) MsgBox("RECORD IS SAVED"." & TXTLT.DataSource = ds.Click Me.Text & ".Object.EventArgs) Handles But_show.

SALARY = '" & TXTSALARY. LEAVE_TAKEN=" & TXTLT.EventArgs) Handles But_mod. "half_pay") DataGrid1. HALFPAY_LEAVE =" & TXTHPL.Text & "' .Text & " where Emp_NO= " & TXTNO.EventArgs) Handles But_search. "Saved Information") End If End Sub End Class LEAVE RECORD MANAGEMENT SYSTEM 66 .OracleDataAdapter(Command.Text = "" Or TXTSALARY.DataSet da.Object.Tables("half_pay") End Sub Private Sub But_mod_Click(ByVal sender As System.SALARY_AFTER_HPL=" & TXTS_A_HPL. MsgBoxStyle.Information.Text = "" Then MsgBox("Please fill all the field".Text = "" Or TXTLT.Text & " .Fill(ds.Text = "" Or TXTHPL.PROJECT REPORT Private Sub But_search_Click(ByVal sender As System.Text & " " Save_Record(Command) MsgBox("Record Modified ".Text & "' . MsgBoxStyle.Click Dim result As String result = InputBox("enter name which you want to search") Command = "select *from half_pay where emp_name='" & result & "'" da = New OracleClient.Text & ".YesNo) Exit Sub Else Command = "update HALF_PAY set DEPT_NO=" & TXTDNO.Text = "" Or TXTNAME. con) ds = New Data. ByVal e As System. EMP_NAME= '" & TXTNAME.Click If TXTDNO.Text & ". ByVal e As System.Text = "" Or TXTS_A_HPL.DataSource = ds.Object.

PROJECT REPORT DATABASE OF THE LEAVE RECORD MANAGEMENT LEAVE RECORD MANAGEMENT SYSTEM 67 .

 control the inconsistancy:BY INCONSISTENCY IS ALSO CONTROLLED. IT MAINTAINS ANY INFORMATION THAT MAY BE NECESSARY TO THE DECISION MAKING PROCESS. THE DATA STORED SO THAT IT IS INDEPENDENT OF PROGRAMS WHICH USE THE DATA.SOME OF THE ADVANTAGES OF THE DATABASE ARE:  DATA REDUNDANCY:DUPLICATION OF DATA IS KNOWN AS DATA REDUNDANCY. A COMMON AND CONTROLLED APPROACH IS USED IN ADDING NEW DATA AND IN MODIFYING AND RETIEVING EXISTING DATA WITHIN DATABASE. THE DATABASE SYSTEMS DO NOT MAINTAINS THE SEPARATE COPIES OF THE SAME DATA. LEAVE RECORD MANAGEMENT SYSTEM 68 . THE  DATA SECURITY:DATA SECURITY REFERS TO PROTECTION OF DATA AGAINST ACCIDENTAL OR INTENTIONAL DISCLOSURE TO UNAUTHORIZED PERSONS. PURPOSE OF DATABASE: A DATABASE SYSTEM SHOULD BE REPOSITORY WHICH IS NEEDED FOR AN ORGANIZATIN’S DATA PROCESSING. A DATABASE MAY ALSO BE DEFINED AS THE COLLECTION OF INTERRELATED DATA STORE TOGETHER TO SERVE MULTIPLE APPLICATIONS.PROJECT REPORT DATABASE INTRODUCTION: A DATABASE SYSTEM IS BASICALLY A COMPUTER BASED RECORD KEEPING SYSTEM. CONTROLLING REDUNDANCY.

LEAVE RECORD MANAGEMENT SYSTEM 69 .L SYSTEM SPECIFICATION: leave record management system.PROJECT REPORT DATABASE SUMMARY ORGANIZATION: DHARAMSHALA POST OFFICE.NO 1 2 3 TABLE EMP_RECORD LEAVE HALF_PAY DISCRIPTION TO ENTER RECORD OF NEW EMPLOYEE LEAVE RECORD OF EMPLOYEE. DATABASE TABLES: S. RECORD OF HALF PAY LEAVE.

PROJECT REPORT TABLE NAME:-EMP_RECORD PURPOSE: IT IS USED TO STORE THE DATA OF NEW EMPLOYEE. SALARY GIVEN TO EMPLOYEE DATE OF JOINING OF EMPLOYEE. FIELDS EMP_NO EMP_NAME EMP_DOB SEX_CODE EMP_SALARY EMP_DOJ EMP_ADD EMP_P NO DATA TYPE NUMBER VARCHAR2 DATE VARCHAR2 NUMBER DATE VARCHAR2 NUMBER SIZE 5 15 DESCRIPTIO N UNIQUE ID NO OF EMPLOYEE NAME OF EMPLOYEE DATE OF BIRTH OF EMPLOYEE SEX CODE OF EMPLOYEE. ADDRESS OF EMPLOYEE. PHONE NUMBER OF EMPLOYEE 7 10 20 12 LEAVE RECORD MANAGEMENT SYSTEM 70 .

HOW MANY LEAVES ARE LEFT. FIELDS EMP_NO DEPT_NO EMP_NAME LEAVE_TYPE TOTAL_LEAVES LEAVES_TAKEN BALANCE LEAVE_REQUIRE D LT_FROM LT_TO DATA TYPE SIZE NUMBER NUMBER VARCHAR2 VARCHAR2 NUMBER NUMBER NUMBER NUMBER DATE DATE 5 10 15 15 3 3 5 5 DESCRIPTION EMP NO OF EMPLOYEE. NUMBER OF LEAVES REQUIRED BY EMPLOYEE DATE FROM WHICH EMPLOYEE TAKEN LEAVE DATE TO WHICH EMPLOYEE TAKEN LEAVE LEAVE RECORD MANAGEMENT SYSTEM 71 . TOTAL LEAVES ALLOWED TO EMPLOYEE. TOTAL LEAVES TAKEN BY EMPLOYEE. TYPE OF LEAVES TAKEN BY EMPLOYEE.PROJECT REPORT TABLE NAME:-LEAVE PURPOSE: IT IS USED TO STORE DATA OF LEAVE TAKEN AND LEAVES LEFT. DEPARTMENT NO IN WHICH EMPLOYEE WORK NAME OF EMPLOYEE.

DEPARTMENT NO OF EMPLOYEE. FIELDS EMP_NO DEPT_NO EMP_NAME SALARY HP_LEAVES LEAVES_TAKEN SALARY_AHPL DATA TYPE NUMBER NUMBER TEXT NUMBER NUMBER NUMBER NUMBER SIZE 10 10 30 15 10 10 15 DESCRIPTIO N EMP NO OF EMPLOYEE.PROJECT REPORT TABLE NAME:-HALF PAY LEAVE PURPOSE: IT IS USED TO STORE THE DATA OF HALF PAY LEAVE. TOTAL HALF PAY LEAVE PROVIDED. SALARY OF EMPLOYEE. TOTAL LEAVES TAKEN. SALARY AFTER HALF PAY LEAVE. NAME OF EMPLOYEE. LEAVE RECORD MANAGEMENT SYSTEM 72 .

FIELDS USERNAME PASSWORD DATA TYPE VARCHAR2 VARCHAR2 SIZE 20 20 DESCRIPTIO N TO STORE THE USER NAME. LEAVE RECORD MANAGEMENT SYSTEM 73 . TO STORE THE PASSWORD.PROJECT REPORT TABLE NAME:-LOGIN PURPOSE: IT IS USED TO STORE THE USER NAME AND PASSWORD.

i. The project use run time object variable to connect front end with back End. At some place we also use the ADODC control to achieve this task.PROJECT REPORT SYSTEM ANALYSIS THE BRIEF INTRODUCTION OF PROJECT LEAVE RCORD MANAGEMENT SYSTEM: The LEAVE RECORD MANAGEMENT SYSTEM is a computer based system build to maintain the database of a school. The project is based on the Visual Basic. The application we created is according to the requirement of “DEPARTMENT”. We got the knowledge about the working of school.  The first major module covers the new employee. LEAVE RECORD MANAGEMENT SYSTEM 74 .  The fourth module covers that for which purpose the leave record is required for department.e.  The second module covers the id_no issued to the employee.  The third part of the project deals with the leave record. new entry..  The next module covers the total leaves taken and not taken the employee. This project is divided into five modules.Net as Front End Tool and the MS Access as the Back End Tool. We go through live experience of management’s of LEAVE RECORD handling manually at DHARAMSHALA POST OFFICE.

No other tests can be more crucial than this. a variety of other tests were conducted. The first test of the system is to see weather it produces correct outputs. Following this step. deals with incorrect data fields. The codes are carefully written and each logical path is traced during testing for avoiding the logical errors. These errors are shown through error messages generated by computer.e. No errors are left for correction. A syntax error is a program statement that violates one or more rules of the language in which it is written. each piece work independently.PROJECT REPORT TESTING TESTING Theoretically a newly designed system should have all the pieces in working order. A logic error on the other hand. For a program to run satisfactorily it must compile and test data correctly and tie it properly with other programs. It is tedious but necessary step in the system development. Program testing checks for two types of error i. The purpose of the system testing is to consider all the likely variation to which it will be subjected and then push the system to its limits. output of range items and invalid combinations. The programs were checked for syntax using watches in the code. but in reality. syntax and logic. such as follows: Program testing: A program represents the logical elements of a system. LEAVE RECORD MANAGEMENT SYSTEM 75 .

Each program module in software is tested to see whether it confirms to related program in the system. LEAVE RECORD MANAGEMENT SYSTEM 76 . Tests were also carried out to see whether the path of the forms is in order. connected work in order.PROJECT REPORT String Testing: Program is related to one another and interacts in a total system. Tests are carried out to check whether all the forms. Each portion of the system is tested against the entire module with both test and live data before the entire system is ready to test. which are.

By: Harloas Davis  MS Office 2003 For every one. Petroutsos (BPB Publication) LEAVE RECORD MANAGEMENT SYSTEM 77 . By: Sanjay Saxena  Visual Basic Beginners.PROJECT REPORT BIBLIOGRAPHY  Visual Basic.Net. By: E.Net.net programming BLACK BOOK. By: Steven Holzter  Programming in Visual Basic. By: Reeta Sahoo  Mastering in Visual Basic.