INDEX
1. INTORDUCTION
1.1 Background
1.2 Objectives
1.3 Purpose and Scope
1.3.1 Purpose
1.3.2 Scope
2. SURVEY OF TECHNOLOGIES
3. REQUIREMENTS AND ANALYSIS
4. REFERENCES
INTORDUCTION
The title of the project plays a very important role. It denotes someone
something about the project. The title of the project must be thought with a
great care. It should be short and must contain everything in itself.
Sometimes the name title of the project is so specific. I thought of the title of
my project as the
SALES EXECUTIVE SYSTEM
The name of the project is rightly through as it is closely associated
with the details of the library of any premises, and all information about the
course as fee and duration. All the details of students can be maintained by
the software and administration can see it.
This project is an effort to computerize any library.
1.1 Background
With this changing world we also have to change ourselves according
to the current requirements of the market, there was no proper medium
available for the people to get information about the world so that they could
update heartleaves besides news paper, but today various medium area there
such as television, radio and now a days IT. IT has changed the people's idea
about information. People can get information about any thing within few
seconds. These medium are the software which are developed to store
information about any particular area. Here, the software Sales Executive
System will help the staff of a library to search any book easily, s/he can
easily delete update a user/book/member of library.
1.2 Objectives
The project "EXECUTIVE MANAGEMENT SYSTEM" has the main
objective to develop software system that can systematically keep tracks
upon the atomization of the office task of any company particularly for the
executive or representatives.
To provide security of data also plays a very important role, to solve
data from being lost and unauthorized users are also necessary. Few more
objectives area as follows
If a new customer to visit it can be easily stored to the database.
If management wants particulars of a customer it can be easily done
by the top management personal.
A new executive may easily add to the database.
If company wants to distribute sample for increasing the sale of the
company, the system monitor to whom it is to distribute and in what
quantity.
1.3 Purpose, Scope and Applicability
1.3.1 Purpose
The idea to select this project came in my mind by seeing the manual
task doing by the person of a company. I thought if the system of the guy
will automated there can be easy and fast working with more efficiency.
It will help to the administration to see the executive, total visit,
salary, customer etc.
1.3.2 Scope
The scope of this software is very large as company or small
enterprises provide the representatives. The automation of the system will
help them in an efficient manner.
The main function of the system is to maintain the details information
of member such as their name, address, contact no., course, fee details etc. as
well as the customer. Finally it will also record the details of the orders
taken by an executive and sample distributed by the executives.
1.3.3 Applicability
The project “SALES EXECUTIVE SYSTEM” has its both direct and
indirect application in the registration of member of a library.
Directly a an executive may see the list of customer to visit
Apart from the above mentioned use the software can also be used by
executive himself to register to the software as a user.
SURVEY OF TECHNOLOGIES
Now a day's various technologies are available in the market those can
be used to make this project. I had surveyed various technologies to work on
this project. These technologies are decided on the basis of the complexity of
project and as well as to make it user friendly, low cost etc. It should also try
to be using the latest technologies, because from market point of view latest
technologies gives your project a market value. After looking at the
available technologies I have chosen Visual Basic as a front end tool and
oracle as a back end tool. The main reason behind using, it is user friendly
and it becomes easy for every people having basic knowledge of computer
operation can use this project very easily without facing any problem.
Another major reason behind is that it can be downloaded easily on
traditional operating system (windows 98) which is generally used in India.
Windows also provide user friendly environment to its users.
There were many technologies available for the development of the
project. For example for the front end development Visual Basic 6.0, power
Builder, X-Windows, Oracle Developer 2000, VC++ and jbuilder. And for
the back end Oracle, Ingress, Sybase, SQL Plus, MY SQL etc. But among
these technologies Visual Basic 6.0 is selected as Front End tool and Oracle
is used as Back End because of the following reasons.
REASONS FOR THE SELECTION OF VB 6.0
Visual Basic is a Window programming language that has been
developed by Microsoft Corporation. Visual Basic is a powerful front-
end tool to develop sophisticated windows programs vary quickly.
Visual Basic is on of the RAD (Rapid Application Development) tools
as it enables the programmer to develop applications very easily and
very quickly.
Visual Basic is one of the first products provide a graphical
programming environment and a paint metaphor for developing user
interfaces. Instead of worrying about syntax details, the Visual Basic
Programmer can add a substantial amount of code simply by dragging
and dropping controls, such as buttons and dialog boxes, and then
defining their appearance and behavior.
Visual Basic is one of the easiest programming languages to learn.
Yet, even though it is easy to learn and to use, Visual Basic can also
be used to develop very powerful computer programs. Many computer
games are written in Visual Basic, businesses use Visual Basic to
manage their databases, webmasters use Visual Basic in developing
web pages, and people use Visual Basic to build windows applications
they want and need I their everyday life.
That's why Visual Basic is selected as a Front End tool.
REASONS FOR THE SELECTION OF ORACLE
Oracle is one of widely used Back End Tools for developing the
application software. It's gaining the popularity due to the following reasons.
Oracle take care of following:-
Updating the database.
Retrieving information from the database
Accepting query language statements.
Enforcing security specifications
Enforcing data integrity specifications.
Enforcing transaction consistency.
Managing data sharing.
Optimizing queries.
Managing system catalogs.
That's why Oracle is selected as a Back End tool.
Apart from the above mentioned reasons relevant experience in visual
basic and oracle made to select them as front end and back end tools for
developing the project.
REQUIRMENTS AND ANALYSIS
To work on this project I had to search much more about. I have
arranged the requirements of the project and I analysis them. I choose the
step by step process of the software. These are as follows.
Problem Definition
Firstly I carefully read what the problem is. I consider that the
problem is to make project on EXECUTIVE MANAGEMENT SYSTEM. In
this I have to solve the problem of computerizing the registration
management schedule of the student. The problem is various course are
there which are classified on the basis of its eligibility and it should also
include the fees records, who register in a particular course. This project
should keep the record of the student.
Requirements Specification
Specification of software requirement is very important part towards
developing perfect software. The person who gathering requirements should
have knowledge of what and when to gather information and form the right
resources. The requirement analysis involves obtaining a clear and through
understanding of the product to be developed. Thus CR is a consistent and
correct and complete document. How efficiently a software can fulfill our
requirement depends upon the requirement specification phase.
In the development of this project, I feel the following requirements. I
classified the project requirements as follows
Types of Requirements
There are various categories of the requirements.
On the basis of their priority, the requirements are classified into the
following three types.
Those that should be absolutely met.
Those that is highly desirable but not necessary.
Those that are possible but could be eliminated.
On the basis of their functionality, the requirements are classified in two
types.
1. Functional requirements
They define the factors like, I/O formats, storage structure,
computational capabilities, timing and synchronization. The primary and
basic objective of the user is that the software they are using can fulfill there
requirement in minimum time and less effort without any interruption. I
have arranged the following functional requirements:
The input to my software should be in such format that any user can
use the software. In the same way I tried to take output from the
software in easy format.
The computational capability of the software should be good. I tried
my best to strengthen the computational capability of my software
easy with minimum time. If software takes less time in computation
then its computation capability is good. It also saves time.
I tired to cover the timing problem that is common with the software
development.
2. Non-functional requirements
They define the properties or qualities of a product including
usability, efficiency, performance, space, reliability, portability etc. These
requirements are basically from the user's point of view. User does not mean
about the internal working of software. It needs some features in the
software to be satisfied with the working of software. These requirements
area as follows:
The software should be as that it becomes easy to use by everyone
that is feature of usability.
It should as efficient that it can fulfill users requirements such as if
user want to get print outs from the software, want to extract useful
information, its security etc.
The software should be performed well without any interruption. It
should complete its working with minimum time.
The software should be reliable. That is it should be consistent with its
performance, so that user can enjoy it.
The software should have the feature of portability. The software
should be platform independent, so that to load it on any operation
system. If a user wants to carry data from its software, then it should
provide this facility.
Database and the module that will fulfill all the requirements are as
follows:
- : DATABASE REQUREMENTS : -
CUSTOMER:
Field name Datatype Description
Custid Varchar2 Customer ID
Fname Varchar2 First Name
Lname Varchar2 Last Name
Fath_name Varchar2 Father’s Name
Dob Date Date of Birth
Cont Number Contact Number
Mail_id Varchar2 Email ID
Mar_st Varhcar2 Married/unmarried
Gender Varchar2 M/F
EMPLOYEE:
Field name Datatype Description
empid Varchar2 Employee ID
Fname Varchar2 First Name
Lname Varchar2 Last Name
Fath_name Varchar2 Father’s Name
Dob Date Date of Birth
Cont Number Contact Number
Mail_id Varchar2 Email ID
Marital status Varhcar2 Married/unmarried
Gender Varchar2 M/F
STOCK:
Field name Datatype Description
Stock_id Varchar2 Stock ID
Sname Varchar2 Stock Name
Qty Varchar2 Quantity
SAMPLE:
Field name Datatype Description
Stock_id Varchar2 Stock ID
Cust_id Varchar2 Customer ID
Qty Varchar2 Quantity
date_sample Varchar2 Date of the sample
ORDER:
Field name Datatype Description
Oid Varchar2 Order ID
Cust_id Varchar2 Customer ID
Sid Varchar2 Stock ID
Qty Varchar2 Quantity
SALARY:
Field name Datatype Description
Empid Varchar2 Employee ID
Basic_sal Varchar2 Basic Salary
Hra_sal Varchar2 HRA
Med_sal Varchar2 Medical Allowances
Veh_sal Varchar2 Vehicle Allowances
Travel_sal Varchar2 Traveling Allowances
Da_sal Varchar2 DA
Ins_sal Varchar2 Incentives
‘0’ LEVEL (CONTEXT FLOW DIAGRAM)
1st Level
DFD FOR ADMIN
1nd Level
DFD FOR USER
2ND Level
ADMIN
2ND Level
USER
Planning and Scheduling
The planning is very important in every aspect of development work.
Good manager carefully monitor developments at various phases. Improper
planning leads to failure of the project. Software project plan can be viewed
as the following
1. within the organization:
How to implement the project?
What are various constraints)?
What is market strategy?
2. With respect to the customer:
Weekly or timely meetings with the customer with presentation on
status reports.
Customer feedback is also taken and further modifications and
developments are done.
Project milestones are also presented to the customer.
After making an in depth analysis of the problems and considering the
various requirements the project is planned to be complete in one and a half
month. For completing the project waterfall model is selected. The waterfall
model has four phases namely requirement analysis, design, coding, testing
and maintenance. Thus different activities and the milestones in the system
according to the waterfall model are following Activities
Requirement Gathering: In this phase all the requirements for
developing the software are arranged and analyzed. This phase will
require problem definition, requirement specification, software and
hardware requirements etc.
Design: After analyzing the requirements the system is designed. This
phase includes logical design, physical design, database design and
the interface design of the system.
Coding: After designing the system the software is to be coded in any
specific language for this purpose visual basic is chosen as the desired
front end.
Testing: After coding the system various test cases are to be
developed so that the system can be thoroughly tested and any default
in the system will be reduced. For this purpose unit testing is planned
to be use.
Maintenance: after going through above phases the system will be
changed according to the feed back of different user. After that the
system will be modified or updated Finally the system will be put into
work.
Milestone
1. Start Of The Project : 10th March 2011
2. Requirement Gathering : 20th March 2011
3. Design : 5th Apr 2011
4. Test Cases : 10th Apr 2011
5. Coding : 12th Apr 2011
6. Testing : 15th Apr 2001
7. Build : 20th Apr 2001
Gantt Chart For The System To Be Developed
The below chart explains the tasks vs. the time they will take to
complete
Tasks 20 March 5 Apr 10 Apr 15 Apr 20 Apr
Req.
Analysis
Design
Test
Cases
Coding
Testing
Build
Software and Hardware Requirements
For software development very first and essential requirement is the
availability of software and hardware.
The software “COURSE REGISTRATION SOFTWARE” requires the
following software and hardware for its successful implementation.
SOFTWARE REQUIREMENTS
Configurations of the project
Windows - 9x/ 2000/ XP Operating System
Visual Basic 6.0 (Professional edition)
Oracle 8+ (structured query language 8)
Here Visual Basic will be used as front end software and Oracle 8 will be
used as backend (to store database)
HARDWARE REQUIREMENTS
IBM Compatible PC
128 MB RAM For Installing Oracle And Visual Basic
10 GB Of Hard Disk
Monochrome 15" Monitor
Writable CD ROM For Backup
132 Character 80 Cps Printer
These are the minimum requirement for working on this project, higher the
hardware and software configuration will give the best quality of software.
Screen Lyaouts
STARTING PAGE
LOGON PAGE
MAIN PAGE
CUSTOMER PAGE
CUSTOMER ADD PAGE
CUSTOMER MODIFY PAGE
CUSTOMER DELETE PAGE
STOCKIEST PAGE
STOCK ADD PAGE
MODIFY STOCK PAGE
DELETE STOCK PAGE
SAMPLE PAGE
DISTRIBUTE SAMPLE PAGE
ORDER PAGE
BOOK ORDER PAGE
SALARY PAGE
ENTER SALARY PAGE
REPORT PAGE
SALARY REPORT PAGE
CUSTOMER REPORT PAGE
STOCK REPORT PAGE
SAMPLE REPORT PAGE
BOOK ORDER PAGE
Coding
MODULE
Public rs As New [Link]
Public con As New [Link]
FIRSTFFORM
Private Sub Timer1_Timer()
If [Link] < 100 Then
[Link] = [Link] + 5
End If
If [Link] = 100 Then
[Link]
Unload Me
End If
End Sub
LOGON FORM
Private Sub Command1_Click()
If [Link] <> "" Then
[Link] = True
Set rs = [Link]("select * from LOGON where uname='" &
[Link] & "' and password='" & [Link] & "'")
If [Link](0) <> 0 Then
[Link]
[Link]
Else
MsgBox "Invalid User Name or password"
[Link] = ""
[Link] = ""
End If
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
If [Link] <> "" Then
[Link] = True
Set rs = [Link]("select count(*) from logon where uname='" &
[Link] & "' and password='" & [Link] & "'")
If [Link](0) <> 0 Then
[Link]
[Link]
Else
MsgBox "Invalid User Name or password"
[Link] = ""
[Link] = ""
End If
End If
End Sub
Private Sub Form_Load()
[Link] "provider=msdaora.1; user id=scott; password=tiger"
If [Link] = "" Or [Link] = "" Then
[Link] = False
[Link] = False
End If
End Sub
Private Sub Text2_Change()
If [Link] <> "" Then
[Link] = True
[Link] = True
Else
[Link] = False
[Link] = False
End If
End Sub
MAINFORM
Private Sub adcust_Click()
[Link]
End Sub
Private Sub addstck_Click()
[Link]
End Sub
Private Sub bkordr_Click()
[Link]
End Sub
Private Sub delcust_Click()
[Link]
End Sub
Private Sub delstck_Click()
[Link]
End Sub
Private Sub distsamp_Click()
[Link]
End Sub
Private Sub entsal_Click()
[Link]
End Sub
Private Sub Image1_Click()
End Sub
Private Sub modicust_Click()
[Link]
End Sub
Private Sub modistck_Click()
[Link]
End Sub
Private Sub totbkordr_Click()
Set rs = [Link]("select * from bookorder")
Set [Link] = rs
[Link]
End Sub
Private Sub totdistsam_Click()
Set rs = [Link]("select * from sample")
Set [Link] = rs
[Link]
End Sub
Private Sub totsalpaid_Click()
Set rs = [Link]("SELECT * FROM salary")
Set [Link] = rs
[Link]
End Sub
Private Sub totvisitcust_Click()
Set rs = [Link]("SELECT * FROM customer")
Set [Link] = rs
[Link]
End Sub
Private Sub totvisitstck_Click()
Set rs = [Link]("select * from stock")
Set [Link] = rs
[Link]
End Sub
Private Sub xmnu_Click()
End
End Sub
CUSTOMER ADD FORM
Private Sub Command1_Click()
Dim dob As String
Dim mstatus As String
Dim gen As String
Dim FEE As String
Dim e As Integer
Set rs = [Link]("select MAX(cid) from customer")
If [Link](0) <> 0 Then
e = [Link](0) + 1
Else
e = 101
End If
If [Link] = "" Or [Link] = "" Or [Link] = "" Or [Link]
= "" Or [Link] = "" Or [Link] = "" Or (Option1 = False And
Option2 = False) Or (Option3 = False And Option4 = False And
Option5 = False) Then
MsgBox "SOME INFORMATION MISSING"
Else
dob = Format([Link], "dd-MMM-yy")
If Option1 = True Then
gen = "Male"
Else
gen = "Female"
End If
If Option3 = True Then
mstatus = "Unmarried"
ElseIf Option4 = True Then
mstatus = "Married"
Else
mstatus = "Divorced"
End If
Set rs = [Link]("insert into customer values('" & e & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & dob & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & mstatus &
"','" & gen & "')")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
CUSTOMER MODIFY FORM
Private Sub Combo1_Click()
Set rs = [Link]("select * from customer where cid='" &
[Link] & "'")
[Link] = [Link]("firstname")
[Link] = [Link]("lastname")
[Link] = [Link]("fathername")
[Link] = [Link]("dob")
[Link] = [Link]("contact")
[Link] = [Link]("address")
[Link] = [Link]("emailid")
[Link] = [Link]("maritalstatus")
[Link] = [Link]("gender")
End Sub
Private Sub Command1_Click()
Dim dob As String
If [Link] = "" Or [Link] = "" Or [Link] = "" Or [Link]
= "" Or [Link] = "" Or [Link] = "" Or [Link] = "" Or
[Link] = "" Or [Link] = "" Then
MsgBox "SOME INFORMATION MISSING"
Else
Set rs = [Link]("UPDATE CUSTOMER SET firstname='" &
[Link] & "',lastname='" & [Link] & "',contact='" & [Link]
& "',address='" & [Link] & "',emailid='" & [Link] &
"',maritalstatus='" & [Link] & "' where cid='" & [Link] & "'")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select cid from customer")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
CUSTOMER DELETE FORM
Private Sub Combo1_Click()
Set rs = [Link]("select * from customer where cid='" &
[Link] & "'")
[Link] = [Link]("firstname")
[Link] = [Link]("lastname")
[Link] = [Link]("fathername")
[Link] = [Link]("dob")
[Link] = [Link]("contact")
[Link] = [Link]("address")
[Link] = [Link]("emailid")
[Link] = [Link]("maritalstatus")
[Link] = [Link]("gender")
End Sub
Private Sub Command1_Click()
Set rs = [Link]("DELETE FROM CUSTOMER WHERE cid='" &
[Link] & "'")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link]
Set rs = [Link]("select cid from customer")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select cid from customer")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
STOCK ADD FORM
Private Sub Command1_Click()
If [Link] = "" Or [Link] = "" Or [Link] = "" Then
MsgBox "SOME INFORMATION MISSING"
Else
Set rs = [Link]("INSERT INTO STOCK VALUES('" &
[Link] & "','" & [Link] & "','" & [Link] & "')")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
STOCK MODIFY FORM
Private Sub Combo1_Click()
Set rs = [Link]("select * from stock where stockid='" &
[Link] & "'")
[Link] = [Link]("stockname")
[Link] = [Link]("quantity")
End Sub
Private Sub Command1_Click()
If [Link] = "" Or [Link] = "" Then
MsgBox "SOME INFORMATION MISSING"
Else
Set rs = [Link]("UPDATE STOCK SET stockname='" &
[Link] & "',quantity='" & [Link] & "' where stockid='" &
[Link] & "'")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select stockid from stock")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = 8
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Or KeyAscii >=
Asc("a") And KeyAscii <= Asc("z") Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
STOCK DELETE
Private Sub Combo1_Click()
Set rs = [Link]("select * from stock where stockid='" &
[Link] & "'")
[Link] = [Link]("stockname")
[Link] = [Link]("quantity")
End Sub
Private Sub Command1_Click()
Set rs = [Link]("DELETE FROM STOCK WHERE STOCKID='"
& [Link] & "'")
[Link]
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
Set rs = [Link]("select stockid from stock")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select stockid from stock")
[Link]
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
DISTRIBUTE SAMPLE FORM
Dim quan As Integer
Private Sub Combo1_Click()
Set rs = [Link]("select quantity from stock where stockid='" &
[Link] & "'")
[Link] = [Link]("quantity")
End Sub
Private Sub Command1_Click()
Dim dt As String
Dim quan As Integer
If [Link] = "" Or [Link] = "" Or [Link] = "" Then
MsgBox "Some Information Missing"
Else
Set rs = [Link]("select quantity from stock where stockid='" &
[Link] & "'")
quan = [Link]("quantity")
If [Link] > quan Then
MsgBox "Not Availlable Quantity"
Else
quan = quan - [Link]
dt = Format([Link], "dd-MMM-yy")
Set rs = [Link]("insert into sample values('" & [Link] &
"','" & [Link] & "','" & [Link] & "','" & dt & "')")
Set rs = [Link]("update stock set quantity='" & quan & "' where
stockid='" & [Link] & "' ")
MsgBox "success"
[Link] = ""
[Link] = ""
[Link] = ""
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select stockid from stock")
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
Set rs = [Link]("select cid from customer")
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
BOOK ORDER FORM
Private Sub Combo2_Click()
Set rs = [Link]("select quantity from stock where stockid='" &
[Link] & "'")
[Link] = [Link]("quantity")
End Sub
Private Sub Command1_Click()
Dim quan As Integer
If [Link] = "" Or [Link] = "" Or [Link] = "" Or
[Link] = "" Then
MsgBox "Some Information Missing"
Else
Set rs = [Link]("select quantity from stock where stockid='" &
[Link] & "'")
quan = [Link]("quantity")
If [Link] > quan Then
MsgBox "Not Availlable Quantity"
Else
Set rs = [Link]("insert into bookorder values('" & [Link] &
"','" & [Link] & "','" & [Link] & "','" & [Link] & "')")
MsgBox "success"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set rs = [Link]("select cid from customer")
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
Set rs = [Link]("select stockid from stock")
While [Link] <> True
[Link] [Link](0)
[Link]
Wend
End Sub
Private Sub Form_Resize()
[Link] = [Link]
[Link] = [Link]
End Sub
SALARY FORM
Private Sub Command1_Click()
Dim totsal As Integer
totsal = Val([Link]) + Val([Link]) + Val([Link]) +
Val([Link]) + Val([Link]) + Val([Link]) + Val([Link])
If [Link] = "" Or [Link] = "" Or [Link] = "" Or [Link]
= "" Or [Link] = "" Or [Link] = "" Or [Link] = "" Or
[Link] = "" Then
MsgBox "SOME INFORMATION MISSING"
Else
Set rs = [Link]("insert into salary values('" & [Link] & "','" &
[Link] & "','" & [Link] & "','" & [Link] & "','" & [Link]
& "','" & [Link] & "','" & [Link] & "','" & [Link] & "','" &
totsal & "')")
MsgBox "SUCCESS"
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub
SALARY REPORT
Private Sub DataReport_Initialize()
[Link]("section1").Controls("text1").DataMember =
[Link]
[Link]("section1").Controls("text1").DataField =
"empid"
[Link]("section1").Controls("text2").DataMember =
[Link]
[Link]("section1").Controls("text2").DataField =
"basicsalary"
[Link]("section1").Controls("text3").DataMember =
[Link]
[Link]("section1").Controls("text3").DataField = "hra"
[Link]("section1").Controls("text4").DataMember =
[Link]
[Link]("section1").Controls("text4").DataField =
"medallowance"
[Link]("section1").Controls("text5").DataMember =
[Link]
[Link]("section1").Controls("text5").DataField =
"vehallowance"
[Link]("section1").Controls("text6").DataMember =
[Link]
[Link]("section1").Controls("text6").DataField =
"travallowance"
[Link]("section1").Controls("text7").DataMember =
[Link]
[Link]("section1").Controls("text7").DataField = "da"
[Link]("section1").Controls("text8").DataMember =
[Link]
[Link]("section1").Controls("text8").DataField =
"incentive"
[Link]("section1").Controls("text9").DataMember =
[Link]
[Link]("section1").Controls("text9").DataField =
"totalsal"
End Sub
CUSTOMER REPORT
Private Sub DataReport_Initialize()
[Link]("section1").Controls("text1").DataMember =
[Link]
[Link]("section1").Controls("text1").DataField =
"cid"
[Link]("section1").Controls("text2").DataMember =
[Link]
[Link]("section1").Controls("text2").DataField =
"firstname"
[Link]("section1").Controls("text3").DataMember =
[Link]
[Link]("section1").Controls("text3").DataField =
"lastname"
[Link]("section1").Controls("text4").DataMember =
[Link]
[Link]("section1").Controls("text4").DataField =
"fathername"
[Link]("section1").Controls("text5").DataMember =
[Link]
[Link]("section1").Controls("text5").DataField =
"dob"
[Link]("section1").Controls("text6").DataMember =
[Link]
[Link]("section1").Controls("text6").DataField =
"contact"
[Link]("section1").Controls("text7").DataMember =
[Link]
[Link]("section1").Controls("text7").DataField =
"emailid"
[Link]("section1").Controls("text8").DataMember =
[Link]
[Link]("section1").Controls("text8").DataField =
"address"
[Link]("section1").Controls("text9").DataMember =
[Link]
[Link]("section1").Controls("text9").DataField =
"maritalstatus"
[Link]("section1").Controls("text10").DataMember
= [Link]
[Link]("section1").Controls("text10").DataField =
"gender"
End Sub
STOCK REPORT
Private Sub DataReport_Initialize()
[Link]("section1").Controls("text1").DataMember =
[Link]
[Link]("section1").Controls("text1").DataField =
"stockid"
[Link]("section1").Controls("text2").DataMember =
[Link]
[Link]("section1").Controls("text2").DataField =
"stockname"
[Link]("section1").Controls("text3").DataMember =
[Link]
[Link]("section1").Controls("text3").DataField =
"quantity"
End Sub
SAMPLE REPORT
Private Sub DataReport_Initialize()
[Link]("section1").Controls("text1").DataMember =
[Link]
[Link]("section1").Controls("text1").DataField =
"stockid"
[Link]("section1").Controls("text2").DataMember =
[Link]
[Link]("section1").Controls("text2").DataField = "cid"
[Link]("section1").Controls("text3").DataMember =
[Link]
[Link]("section1").Controls("text3").DataField =
"quantity"
[Link]("section1").Controls("text4").DataMember =
[Link]
[Link]("section1").Controls("text4").DataField = "dat"
End Sub
BOOK ORDER REPORT
Private Sub DataReport_Initialize()
[Link]("section1").Controls("text1").DataMember =
[Link]
[Link]("section1").Controls("text1").DataField =
"orderid"
[Link]("section1").Controls("text2").DataMember =
[Link]
[Link]("section1").Controls("text2").DataField =
"customerid"
[Link]("section1").Controls("text3").DataMember =
[Link]
[Link]("section1").Controls("text3").DataField =
"stockid"
[Link]("section1").Controls("text4").DataMember =
[Link]
[Link]("section1").Controls("text4").DataField =
"quantity"
End Sub
REFERENCES
An Introduction to Database System, Bipin [Link], Gelgotia
Publication.
Software Engineering, Rogers Pressman
Black Dreamtech
Oracle 8i of BPB Publication