Professional Documents
Culture Documents
: Mr Tejas Pandya
Mumbai University.
1
ACKNOWLEDGEMENT
I am also indebted to the lab assistant Mr. Jagdish for his technical support. I
express my warm wishes to the staff members for their assistance & kind guidance
who helped me out of all my queries.
Finally, thanks to my family & friends for their patience & support during
the long run of this project. This project has imparted in me to a great deal of
practical experience, which will prove to be helpful in the near future.
Pratik Mehta
Tejas Pandya
2
PREFACE
Meticulous care has been taken to make this project perfect, useful
and simple in every respect possible.
3
TABLE OF CONTENTS
1. Introduction
2 System Requirements
3 Project Plan
4
4 Design Document
5 Data Dictionary
6 Architectural Design
8 Conclusion
9 Bibliography
5
Chapter 1
INTRODUCTION
6
INTRODUCTION
Organization Profile : RAM SAI ULTRA SERVICES is an exciting, fast
growing company having an aggressive approach to innovation and sophisticated
processes. Specifically Company’s business is to help its Customers with a wide
range of quality goods at the most competitive rates. It currently deals in non-
destructive testing like ultra sonic test.
Product Profile:
A Metal Firm Management System is being developed for RAM SAI ULTRA
SERVICES for internal use.
7
COMPANY PROFILE
The Metal Firm Management System Application is developed for Ram Sai Ultra
Services. It is Located at kalamboli, Navi Mumbai. A well known firm dealing in
non-destructive testing of various types of materials. It was established in 1995 on
a very scale and since then it has expanded into a huge service center.
Ram Sai Ultra Services has its client based basically in Mumbai and many major
cities in India. The organization offers wide variety of service suiting to different
customers based on their locations keeping in mind the economical costing.
Their motto is to provide best possible services with utmost satisfaction of the
customer and enable them to make best decisions. Apart from the Head Office at
kalamboli, another office is located in the affluent suburbs of Vile Parle,Mumbai.
Their reputation demands the maintenance of the vast product portfolio, segmented
into specialists range and their vision to provide better customer satisfaction.
The company is now going to automate all its departments and they are going to
implement Metal Firm Management Software in their company.
8
SCOPE
9
OBJECTIVE
Help you to maintain better database of the system and avoiding the
headache for the owner and the person dealing with the database
management of the system.
10
EXISTING MANUAL SYSTEM
Existing system is based on manual work and all the process are done manually, so
they maintain registers and files for recording all the details of the system.
Introduction
Management
11
12
DRAWBACKS OF EXISTING SYSTEM
The phase of system analysis process deals with problems which are
affecting in the current manual system. The problems are those which are affecting
the Company in its daily routine work.
As the growing trend , need of accuracy, perfectness, speed and high memory data
storage is a must. Each and every problem must be solved with a least amount of
time and energy.
Time Consuming.
No Security of Data.
Data Inconsistency.
13
Difficulty in Maintenance of Records :
It is very difficult to maintain data record in the system as all the records
are entered in the register or the respective record books. There are chances of the
record books or files in which all the data is kept may be torn or wearied out or
some other damages which results in the destroyed data. Also a problem occurs if
the data file or register is misplaced somewhere else and is not getting at the time
of actual requirement of the data stored. It is also difficult to maintain old files and
registers which have data of past years which the Company has kept for future
references.
Time Consuming :
It is very time consuming process to write each and every entry in the
database register. Also it takes a lot of time if all the entries are repeated. In the
system processes such as making different type of reports, billing, prescription
generation and tedious calculations are examples of time consuming process in the
system. It is also time consuming process to know the total number of bills
generated and the payment to each distributor and the payment made by the patient
i.e. to know the status of any Company is very difficult to know, when written
manually but through computerized system it takes less time as it is speedy and
accurate.
Editing of Data:
Manual written data cannot be changed or edited once written. If there is a mistake
and if we try to rub and write it again it makes the register very dirty and untidy,
which creates a bad impression of the business. If data is entered incorrect whole
14
document gets incorrect while editing wrongly entered data cannot easily solve
errors.
If one had done some wrong entry then to edit the data one has to go through lots
of records and, again and again editing the record makes it difficult to read.
Data Insecurity :
Report Generation :
15
Data Inconsistency:
Here as mentioned in the above step the same information is written in more than
one place that creates the problem, when there is a change or deletion in the
recorded data.
16
FACT FINDING TECHNIQUES
(3) Observation.
17
every person in the Company has different types of job to be done so we met some
of the people of the Company.
(1) Interviews:
Interview allows the analyst to collect or gather the information from the
individual or group who are generally the current user of the existing system or
potential user of the proposed system.
They may be managers or employee of the firm itself who provide the data for
the proposed system and who will be affected by it.
As far as interview is concerned, it is a time consuming process.
It is a basic source of qualitative information.
It allows the analyst to discover areas of misunderstanding, indication of
resistance to the proposed system. An Interview could be :
(1) Structured:
(2) Unstructured:
Here the questions are worded to suit the respondent that provide the
information about the areas overlooked or not thought to be important.
18
Advantages and Disadvantages of structured and unstructured
interviewing:
Advantages:
(1) Structured:
(2) Unstructured:
Disadvantages:
(1) Structured:
19
(2) Unstructured:
20
(2) Record Review:
21
Analyst through good analysis can get answers to questions like:
1) Who uses the forms?
To gather details about the system, many kinds of records and reports were
reviewed. The study covered.
22
(3) Observation:
Observation can bring in missed facts, new ways to improve the existing
procedures, duplicate work done inadvertently, etc.
Observation can bring in what other fact-finding methods cannot! But this task
is delicate because people do not like to be observed when they work.
It is not the quantity of time observed is important but the unorthodox angles of
observation of the work content and methods are going to be rewarding.
Observation gives analyst the opportunity to go behind the scenes in a system to
learn inside story to discover how things work in new areas of information.
Observation can look for:
(a) Operational inefficiencies.
On site observation provides close view of the working of the real system.
One can observe people, objects, documents and occurrences of events.
23
PROPOSED SYSTEM
Generally there has been a criterion to work on any job or task for a specific
purpose. Nobody works without specific detailed information about the particular
task he is performing. Thus, any transaction can be performed either registering a
customer or preparing the pay slip of any employee, etc. In the computerized
system, the first screen of the system would be a welcome message and a list of
menus. These menus contain the options of either entering the details of the
Customer, Supplier or the Employee or starting an transaction by placing an order
with the supplier or checking availability of stock or registering a loan and its
subsequent installments.
After the transaction is completed the user can log off from the system by
simply quitting from the system.
24
FEATURES OF THE PROPOSED SYSTEM
1. This software is very co-operative with the users and more of user-friendly
nature.
3. For security purpose there is password facility and unless we give this
password we cannot open or create entry.
4. System generates code for each user, patient, appointment, order, service etc,
to avoid inconsistency of data.
6. Automation of various calculation & formulations, for very quick & less
time consuming reports.
25
Chapter 2
SYSTEM
REQUIREMENTS
26
PRODUCT DEFINITION
Metal Firm Management System deals with Product and Distributors. Thus our
product keeps track of all the transactions being held in the before, after and during
the Service and Purchase process.
FUNCTIONS TO BE PROVIDED
a. Security
The system is secured in the sense that a transaction is valid only when a
higher authority authenticates it.
b. Registration
c. Information Transaction
Any User when he/she is appointed is given a right, thus according to his/her
right he/she can perform the transactions but is not allowed to view, modify or
delete any other employee.
d. Generation of Reports
The reports can be generated at any moment of time by just a click of the
button.
27
FEASIBILITY STUDY
A feasibility study is undertaken to determine the possibility or
probability of either improving the existing system or developing a completely new
system. It helps to obtain an overview of the problem and to get rough assessment
of whether feasible solution exists. This is essential to avoid committing large
resources to a project and then repent on it later.
28
(7) Avoid crash implementation of a new system.
(8) Avoid the ‘Hardware Approach’ i.e. getting a computer first and then
deciding how to use it.
29
Technical evaluation must also assess whether the existing system can be
upgraded to use the new technology.
The technical feasibility in the proposed system deals with the technology
used in the system. It deals with the hardware and software used in the system
whether they are of latest technology or not. It happens that after a system is
prepared a new technology arises and the user wants the system based on that
technology. Thus it is important to check the system to be technically feasible.
The Advocate plans to acquire the necessary hardware and software require for the
system and there is no hindrance whether economical or otherwise towards its
purchase. A brief description of the hardware and software required in the system
is given later in the report
30
(3) Operational feasibility :
Operational feasibility covers two aspects. One is the technical
performance aspect and other is the acceptance within the system. Operational
feasibility determines how the proposed system will fit in the current operations
and what, if any job restructuring and retraining may be needed to implement the
system.
In the system operational feasibility checks, whether the user who is going to use
the system is able to work with the software’s with which the system is coded and
also the mind of the user going to use the system. If the user does not understand or
is able to work on the system further development is of waste.
31
Chapter 3
PROJECT PLAN
32
SYSTEM REQUIREMENTS SPECIFICATION
This phase of the software development process deals with a brief study of
different hardware used in the computerized system. There is a list of hardware
materials used during the making and also during the use of the proposed system.
As the new system to be made into a computerized functional system, requirement
of a computer is must. All the hardware needed here are generally the basic
configuration of a typical Company computer. A list of the hardware requirement
used in the system given below:
o Minimum Configuration :
To run the application software of the system in the computer the minimum
configuration required is as below:
32 MB SD-RAM.
2 – 4 GB Hard-Disk.
Keyboard.
Mouse.
33
o Recommended Configuration :
The system can run on the above mentioned system, however for perfect ness and
clearness it is recommended to use a computer system having the below listed
configuration. The configuration listed below can give best and optimum result at
instance during the working of the system.
128 MB SD-RAM.
10 GB Hard-Disk.
Keyboard.
Mouse.
Note: The proposed system can work on both the above mentioned computer
configuration. It is just for knowledge that the system can also work with the old
technology as well as the new technology.
34
(2) SOFTWARE REQUIREMENTS OF THE SYSTEM
Along with the hardware, used in the system it requires software to make a
system as well as to run a system with the computer hardware. Collection of
different types of hardware into a specific type can form a computer but it cannot
execute different process on its own. For efficient and proper working of any
system software must be installed. These software may be in the form of operating
system or application software. To make the system one also needs to use software.
To make the Company Management System, I too have used certain software
which is listed below. The software used in the proposed system are the latest
versions of themselves and can give up-to-date and perfect result of every
processes in the system. This software comprises operating system and application
software used in the system.
35
TOOLS INFORMATION
36
Some of the main features of Visual Basic 6.0 are listed below:
Data Access features allows you to create database and front-end applications
for most popular database formats, including Microsoft SQL Server, Oracle,
Microsoft Access and other enterprise level database.
A multitude of wizards and other graphical tools aid developers new to Visual
Basic.
Visual Basic allows you to adopt more of parallel approach, with independent
sections of code for each option that the user may select. This is known as
Event driven programming language.
37
Visual data tools (VDTS).
The language is very easy and it provides a very user friendly environment
while programming in Visual Basic 6.0.
Allows for the creation of p-code and native code EXE files. p-code is a
tokenized from of your source code that will be broken down at runtime into
machine code, which is why Visual Basic will create this intermediately forms.
Can be extended easily through the use of windows API calls, hundreds of third
party controls and DLLs, and integration with other windows applications
through COM and DCOM.
Has a shorter learning curve and development time than C/C++, Delphi, and
even Power Builder.
Used by most of the Company suite tool as macro language. With the rest to
follow. Other companies as well are starting to support VBA in their products,
such as AutoCAD, Vision, CorelDraw, SAP, and many others.
38
Has an excellent integrated help facility and book online as well as it includes
good debugging facilities and have many wizards that help automated repetitive
tasks.
Allows for the creation of COM components such as Active X controls, DLL’s,
and Exec’s.
Can integrate with the Internet on both the server side and the client side.
Can run server either on the same machine or remotely on another computer.
This allow for true distributed processing.
39
ADVANTAGES OF VISUAL BASIC 6.0:
During design time, it is possible to see how the program will look at the
runtime.
You can add menus, tool bars, status bars, text boxes, etc. to blank window.
It is less time consuming and more user friendly. Also user friendly
programs can be developed very easily.
Graphical User Interface is provided by visual basic which takes some more
time then other non visual programming for execution of the program.
40
MS ACCESS 2007
INTRODUCTION TO MS ACCESS
Features of ACCESS
Access maintains a single disk file for a database and all its associated
objects. The Maximum size of this file can be 1 GB. Access allows a
maximum of 32,768 tables and objects in a database. However, Access can
create links to data tables in any other DBMS like FoxPro. Therefore, the
41
maximum size of tables and object objects is limited only by the amount of
storage space that the users have.
Built-in Functions
Built-in Security
DATABASE:
Access stores all data tables and other objects in a single database. These
database objects are queries, forms, reports and macros.
42
DATA FLOW DIAGRAM(s) [D. F. D.]
43
how they are changed when they are changed when they leave the process. As
analyst gather acts and details their increased understanding of the process leads
them to ask questions about specifications of the process which leads to still
additional investigation as the area of investigation is broken into successively
lower level details until all the essential components and their interrelations can be
understood.
outline of the system study. The data flow diagram covers all the processes and
data storage area, which takes place during any transaction in the system. The data
44
flow diagrams are functionally divided into context level, Zero level and first level
(4) Data store: Any store data but with no reference to the physical
method of storing.
45
CONTEXT LEVEL DIAGRAM
46
DATA FLOW DIAGRAMS
1. MASTER MAINTAINENCE
47
2. CUSTOMER SALES ORDER & DEPOSIT AND
INVOICE GENERATION
48
3. SUPPLIER PURCHASE ORDER & PAYMENT
49
4. TEST REPORT :
50
5. REPORT GENERATION :
51
ENTITY – RELATIONSHIP DIAGRAM
52
GANTT CHART :
When creating a project schedule we start with a set task . effort , duration and start
date are important to be noted to keep track of the progress of the system
development at various stages we divide the all tasks between the two of us as a
consequences of this input a timeline chart also called a Gantt chart is generated
The chart reflects the entire project lifecycle instead of each project function or
each individualworking on the project and gives an overview of the timeline of
project development lifecycle.
53
TASK NAME DURATION TIME TAKEN
----Planning Complete
----Analysis Complete
----Design Complete
----Documentation 6 Days
54
55
Chapter 5
DATA
DICTIONARY
56
DATA DICTIONARY
It is developed during data flow analysis and assists the analysts involved
in determining the system requirements. Analysts use data dictionary for the
following important reasons:
Manage details
Large systems have high volumes of data flowing through them in the form
documents, reports, and even conversations. Similarly many different activities
take place that use existing data or create new details.
It is impossible for system analyst to remember it all. Those who try invariably
make mistakes or forget important elements. The best analysts don’t even try they
record the information. Some write the descriptions on the paper and others use
index cards.
Many enter the details into word processor, running, perhaps, on a personal
computer. The best-organized and most effective analysts use automated data
dictionaries designed specifically for systems analysis and design.
Communicate meaning
Data dictionaries record additional details about the data flow in system so that all
persons involved can quickly look up the description of data flows, data stores, or
processes.
58
Document system features
We want to know about the processes and data stores of course. Having to formally
describe system features will produce a more complete understanding.
Facilitate Analysis
The fourth reason for using data dictionaries is to determine whether new features
are needed in a new system or whether changes of any type are in order.
The business activities that will be carried on while using the system including the
data needed to accept authenticate and process each activity.
(2) Inquiries
The details of all the transactions contained in database and files required to run
our software authentically.
Example: What data must be captured to verify the accuracy and authenticity of
transactions?
The capacity of the system to accept, processes, and stores Transactions and data.
59
(6) Locate Errors And Omissions:
60
DATA STORE
The following tables are used in the Eye Metal Firm Management System:
1. SUPPLIER
2. CUSTOMER
61
3. EMPLOYEE
62
4. PAYMENT
5. PRODUCT
63
6. PURCHASE
7. ORDER
64
8. Testing
9. Bill
65
Chapter 6
ARCHITECTURAL
Design
66
SCREENS [INTERFACES OF THE SYSTEM]
FORM LAYOUTS
This section refers to the various types of interfaces which the user has to face
during operating the computerized system of “Metal Firm Management System”.
The section refers with the entire interface [Screens] a user will have to face
while operating the current system. It shows the various screens appearing for
different transactions. All the screens of different transactions in the system are
shown here.
67
Form No 1
Form Name MDIMain
Purpose This is the main form of the system which contains all the
different forms and menus.
Type MDI
68
Form No 2
Form Name Frm_employee
Purpose This form is used to add, modify,delete and view
employees.
Type MDIChild
69
Form No 3
Form Name Frm_customer
Purpose This form is used to add, modify,delete and view broker.
Type MDIChild
70
Form No 4
Form Name Frm_supplier
Purpose This form is used to add, modify,delete and view
supplier.
Type MDIChild
71
Form No 5
Form Name Frm_testing
Purpose This form is used to add, modify,delete and view test
report
Type MDIChild
72
Form No 5
Form Name Frm_product
Purpose This form is used to add, modify,delete and view
different product .
Type MDIChild
73
Form No 6
Form Name Frm_purchase
Purpose This form is used to add, modify,delete and view
purchase details.
Type MDIChild
74
Form No 7
Form Name Frm_billgenaration
Purpose This form helps the user to create bill for test report
Type MDIChild
75
Form No 8
Form Name Frm_payment
Purpose This form helps the user to register the payments made
except the supplier payment.
Type MDIChild
76
Form No 9
Form Name Frm_changepswd
Purpose This form helps the user to change his/ password.
Type MDIChild
77
Form No 10
Form Name Frm_splash
Purpose This form is displayed to the user when the user clicks on
the Exe file to start the system.
Type MDIChild
78
Form No 11
Form Name Frm_login
Purpose This form is used for security of the system. Only
authorized users can log in using their password. This for
is displayed at the start the system.
Type MDIChild
79
REPORT GENERATION
1. Employee Pay Slip Generation
Report No 1
Form Name DataReport1
Purpose This Report generates the salary break-up of the
employee whose name is entered.
Type MDIChild
80
2. Customer Deposits Pending
Report No 2
Form Name DataReport3
Purpose This Report generates the details of Customers which
have to make payments for their orders.
Type MDIChild
81
3. Supplier Payment Pending
Report No 4
Form Name DataReport4
Purpose This Report generates the details of Suppliers and the
product details of which the company has to make the
payment.
Type MDIChild
82
FUTURE ENHANCEMENT
.
Will Include Reminders for the employees.
83
CODING
frm_employee
Dim CON As New ADODB.Connection
Dim RS As New ADODB.Recordset
84
Private Sub cmd_save_Click()
If txtempid = "" Then
MsgBox "Please enter the Employee Number.", vbOKOnly + vbCritical, "Warning - Invalid
Customer Number."
txtempid.SetFocus
Exit Sub
End If
85
Exit Sub
End If
ADO.Recordset.Fields(0) = Val(txtempid)
ADO.Recordset.Fields(1) = txtfname
ADO.Recordset.Fields(2) = txtlname
ADO.Recordset.Fields(3) = txtmname
'ADO.Recordset.Fields(4) = txtdoj
If optM.Value = True Then
ADO.Recordset.Fields(5) = "M"
Else
ADO.Recordset.Fields(5) = "F"
End If
ADO.Recordset.Fields(6) = txtaddress
ADO.Recordset.Fields(7) = txttelno
ADO.Recordset.Fields(8) = txtaltno
ADO.Recordset.Fields(9) = txtmobile
ADO.Recordset.Fields(10) = txtdept
ADO.Recordset.Fields(11) = txtqualification
ADO.Recordset.Fields(12) = txtwe
ADO.Recordset.Fields(13) = txtpanno
'ADO.Recordset.Fields(14) = txtdob
ADO.Recordset.Fields(15) = txtbasic
ADO.Recordset.Fields(16) = txtpf
ADO.Recordset.Fields(17) = txthra
ADO.Recordset.Fields(18) = txttax
ADO.Recordset.Fields(19) = txtfname & txtlname
ADO.Recordset.Fields(20) = txtpwd
ADO.Recordset.Fields(21) = txtda
ADO.Recordset.Fields(22) = txtta
ADO.Recordset.Save
MsgBox "The Record has been added to the database.", vbInformation + vbOKOnly, "ENTRY
SAVED"
End Sub
86
Frm_customer
MsgBox "A new record has been added to the CUSTOMER table"
End Sub
End If
End Sub
If Adodc1.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST RECORD
REACHED"
Adodc1.Recordset.MoveLast
87
End If
End Sub
If Adodc1.Recordset.BOF Then
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST RECORD
REACHED"
Adodc1.Recordset.MoveFirst
End If
End If
End Sub
txtcustno.SetFocus
txtcname = RS.Fields(1)
txtccode = RS.Fields(2)
txtowner = RS.Fields(3)
txtcadd = RS.Fields(4)
txtpanno = RS.Fields(5)
txttelno = RS.Fields(6)
txtemail = RS.Fields(7)
'txtdesc = RS.Fields(8)
Private Sub Form_Load()
ADOCON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\ty\testing.mdb;Persist Security Info=False"
RS.Open "select * from sup_customer ", ADOCON, adOpenDynamic, adLockOptimistic
End Sub
88
Frm_testing
Dim ADOCON As New ADODB.Connection
Dim RS1 As New ADODB.Recordset
Dim RS As New ADODB.Recordset
Adodc1.Recordset.AddNew
' Adodc1.Recordset.Update
MsgBox "A new record has been added to the TESTING table"
End Sub
If Adodc1.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST RECORD
REACHED"
Adodc1.Recordset.MoveLast
End If
End Sub
If Adodc1.Recordset.BOF Then
89
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST RECORD
REACHED"
End If
End Sub
For i = 0 To Adodc1.MaxRecords
txtcust = Adodc1.Recordset.Fields(1)
txtxmaterial = Adodc1.Recordset.Fields(2)
txtsite = Adodc1.Recordset.Fields(3)
cbosurface = Adodc1.Recordset.Fields(4)
cbobasic_cb = Adodc1.Recordset.Fields(5)
txtprobe = Adodc1.Recordset.Fields(6)
txtfrequency = RS.Fields(7)
txtsize = Adodc1.Recordset.Fields(8)
txttype = Adodc1.Recordset.Fields(9)
cbo_scanning = Adodc1.Recordset.Fields(10)
cbo_couplant = Adodc1.Recordset.Fields(11)
End If
Adodc1.Recordset.MoveNext
Next i
'txtcust.Enabled = False
'txtxmaterial.Enabled = False
'txtsite.Enabled = False
'cbosurface.Enabled = False
'cbobasic_cb.Enabled = False
'txtprobe.Enabled = False
'txtfrequency.Enabled = False
'txtsize.Enabled = False
'txttype.Enabled = False
'cbo_scanning.Enabled = False
'cbo_couplant.Enabled = False
90
End Sub
Adodc1.Recordset.MoveFirst
End Sub
91
Frm_supplier
MsgBox "A new record has been added to the BILLGEN table"
End Sub
End If
End Sub
If ADO.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST
RECORD REACHED"
ADO.Recordset.MoveLast
End If
92
End Sub
If ADO.Recordset.BOF Then
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST
RECORD REACHED"
End If
End Sub
supplierid = Val(txtsuppno)
strsql = " select * from supplier where supplierid = " & supplierid & " "
Set RS = ADOCON.Execute(strsql)
txtsuppno.SetFocus
txtcname = RS.Fields(0)
txtccode = RS.Fields(1)
txtowner = RS.Fields(2)
txtcname = RS.Fields(3)
txtsuppname = RS.Fields(4)
txtpanno = RS.Fields(5)
txtcadd = RS.Fields(6)
txttelno = RS.Fields(7)
txtemail = RS.Fields(8)
End Sub
ADOCON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\ty\testing.mdb;Persist Security Info=False"
RS.Open "select * from supplier ", ADOCON, adOpenDynamic,
adLockOptimistic
'ADO.Recordset.MoveFirst
End Sub
93
Frm_order
Dim ADOCON As New ADODB.Connection
ADO.Recordset.AddNew
MsgBox "A new record has been added to the BILLGEN table"
End Sub
ans = MsgBox(" Are you sure you want to delete this RECORD ? ", vbYesNo + vbQuestion, "DELETE
ORDER DETAILS ")
ADO.Recordset.Delete
RS.Open "update purchase set payment_no = 0 where purchase_no like " & Val(cbopurchaseno.Text),
CON, adOpenDynamic, adLockOptimistic
MsgBox "The Record has been deleted.", vbInformation + vbOKOnly, "Supplers Details Deleted"
Call cmd_next_Click
End If
End Sub
94
Private Sub cmdexit_Click()
End
End Sub
ADO.Recordset.MoveNext
If ADO.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST RECORD REACHED"
ADO.Recordset.MoveLast
End If
End Sub
ADO.Recordset.MovePrevious
If ADO.Recordset.BOF Then
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST RECORD REACHED"
ADO.Recordset.MoveFirst
End If
95
End Sub
orderno = Val(txtorderno)
strsql = " select * from sup_order where orderno = " & orderno & " "
Set RS = ADOCON.Execute(strsql)
txtorderno.SetFocus
txtdate = RS.Fields(1)
txtsupplierid = RS.Fields(2)
txtproductid = RS.Fields(3)
txtproducttype = RS.Fields(4)
txtname = RS.Fields(5)
txtquantity = RS.Fields(6)
End Sub
Call cmdadd_Click
End Sub
'ADO.Recordset.MoveFirst
End Sub
96
Frm_purchase
'End If
ADO.Recordset.AddNew
MsgBox "A new record has been added to the PURCHASE table"
End Sub
' NT TESTED
'ans = MsgBox(" Are you sure you want to delete this RECORD ? ", vbYesNo + vbQuestion,
"DELETE PURCHASE DETAILS ")
'ADO.Recordset.Delete
97
'RS.Open "update purchase set payment_no = 0 where purchase_no like " &
Val(cbopurchaseno.Text), CON, adOpenDynamic, adLockOptimistic
'MsgBox "The Record has been deleted.", vbInformation + vbOKOnly, "Supplers Details
Deleted"
'Call cmd_next_Click
'End If
End Sub
End
End Sub
ADO.Recordset.MoveNext
If ADO.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST RECORD REACHED"
ADO.Recordset.MoveLast
End If
End Sub
98
Private Sub cmd_prev_Click()
ADO.Recordset.MovePrevious
If ADO.Recordset.BOF Then
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST RECORD
REACHED"
ADO.Recordset.MoveFirst
End If
End Sub
purchaseno = Val(txtpurchaseno)
strsql = " select * from sup_purchase where purchaseno = " & purchaseno & " "
Set RS = ADOCON.Execute(strsql)
txtpurchaseno.SetFocus
txtpdate = RS.Fields(1)
txtorderno = RS.Fields(2)
txtsupno = RS.Fields(3)
txtcname = RS.Fields(4)
99
txtproductid = RS.Fields(5)
txtproductname = RS.Fields(6)
txtpeices = RS.Fields(7)
txtptype = RS.Fields(8)
txtppc = RS.Fields(9)
txttotal = RS.Fields(10)
End Sub
End Sub
100
Frm_payment
End
End Sub
'CLEAR
ADO.Refresh
ADO.Recordset.AddNew
cmd_save.Enabled = True
End Sub
'CLEAR
ADO.Recordset.MoveNext
If ADO.Recordset.EOF Then
MsgBox "This is the last record.", vbInformation + vbOKOnly, "LAST RECORD REACHED"
ADO.Recordset.MoveLast
End If
Call cmdview_Click
101
End Sub
'CLEAR
cdlgprint.ShowPrinter
End Sub
ADO.Recordset.MovePrevious
If ADO.Recordset.BOF Then
MsgBox " This Is The First record", vbInformation + vbOKOnly, "FIRST RECORD
REACHED"
ADO.Recordset.MoveFirst
End If
End Sub
'CLEAR
MsgBox "Please enter the Payment Number.", vbOkOk + vbCritical, "Warning - Invalid
Payment Number."
txtpaymentno.SetFocus
102
Exit Sub
End If
MsgBox "Please enter the date when payment was made.", vbOkOk + vbCritical, "Warning -
Invalid Payment date."
txtpaymentdate.SetFocus
Exit Sub
End If
MsgBox "Please enter the Payment Amount Detail.", vbOkOk + vbCritical, "Warning - Invalid
Payment Details. "
txttotal.SetFocus
Exit Sub
End If
If RS.Supports(adAddNew) Then
With RS
.AddNew
.Fields("paymentno") = txtpaymentno
.Fields("billno") = txtbillno
.Fields("refno") = txtrefno
.Fields("paymentdate") = txtpaymentdate
.Fields("paymenttype") = txtpaymentfrom
.Fields("bankname") = txtbname
103
.Fields("branch") = txtbranch
.Fields("cheque") = txtchqno
.Fields("totalamount") = txttotal
.Update
End With
MsgBox "A new record has been added to the PAYMENT table"
End If
End Sub
paymentno = Val(txtpaymentno)
strsql = " select * from payment where paymentno = " & paymentno & " "
Set RS = ADOCON.Execute(strsql)
txtbillno = RS.Fields(1)
txtrefno = RS.Fields(2)
txtpaymentfrom = RS.Fields(3)
'txtpaymentdate = RS.Fields(4)
txtpaymenttype = RS.Fields(5)
txtbname = RS.Fields(6)
txtbranch = RS.Fields(7)
txtchqno = RS.Fields(8)
txttotal = RS.Fields(9)
104
End Sub
'CLEAR
ADO.Recordset.MoveFirst
'txtbillno = Val(frmbillgen.txtbillno)
'txtpaymentfrom = frmbillgen.txtcname
'txttotal = Val(frmbillgen.txttotal)
'txtbillno.Enabled = False
'txtpaymentfrom.Enabled = False
'txttotal.Enabled = False
End Sub
' CLEAR
txtbname = ""
txtbranch = ""
txtchqno = ""
Frame3.Enabled = False
txttop = "CASH"
End Sub
105
Private Sub optCheque_Click()
'CLEAR
Frame3.Enabled = True
txttop = "CHEQUE"
End Sub
106
Frm_stocksummaryselection
Public A As String
107
Frm_changepwd
Dim CON As New ADODB.Connection
Dim RS As New ADODB.Recordset
RS.Fields(20).Value = txtpass.Text
RS.Update
RS.Close
MsgBox "Your Password has been updated.", vbInformation + vbOKOnly,
"Password Change Confirmation"
End If
End Sub
108
CON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path &
"\pinkstars.mdb;Persist Security Info=False"
End Sub
109
Frm_calculator
Option Explicit
Dim Op1, Op2 ' Previously input operand.
Dim DecimalFlag As Integer ' Decimal point present yet?
Dim NumOps As Integer ' Number of operands.
Dim LastInput ' Indicate type of last keypress event.
Dim OpFlag ' Indicate pending operation.
Dim TempReadout
110
' Initialization routine for the form.
' Set all variables to initial values.
Private Sub Form_Load()
DecimalFlag = False
NumOps = 0
LastInput = "NONE"
OpFlag = " "
Readout = Format(0, "0.")
End Sub
111
Case 0
If Operator(Index).Caption = "-" And LastInput <> "NEG" Then
Readout = "-" & Readout
LastInput = "NEG"
End If
Case 1
Op1 = Readout
If Operator(Index).Caption = "-" And LastInput <> "NUMS" And OpFlag <> "=" Then
Readout = "-"
LastInput = "NEG"
End If
Case 2
Op2 = TempReadout
Select Case OpFlag
Case "+"
Op1 = CDbl(Op1) + CDbl(Op2)
Case "-"
Op1 = CDbl(Op1) - CDbl(Op2)
Case "X"
Op1 = CDbl(Op1) * CDbl(Op2)
Case "/"
If Op2 = 0 Then
MsgBox "Can't divide by zero", 48, "Calculator"
Else
Op1 = CDbl(Op1) / CDbl(Op2)
End If
Case "="
Op1 = CDbl(Op2)
Case "%"
Op1 = CDbl(Op1) * CDbl(Op2)
End Select
Readout = Op1
NumOps = 1
End Select
If LastInput <> "NEG" Then
LastInput = "OPS"
OpFlag = Operator(Index).Caption
End If
End Sub
112
' Click event procedure for percent key (%).
' Compute and display a percentage of the first operand.
Private Sub Percent_Click()
Readout = Readout / 100
LastInput = "Ops"
OpFlag = "%"
NumOps = NumOps + 1
DecimalFlag = True
End Sub
113
Frm_login
End
End Sub
RS1.Open "select Fname,Password from employee where Fname = 'tejas' ", ADOCON
U = RS1.Fields(0)
P = RS1.Fields(1)
A = Hour(Time)
MsgBox "You are not allowed to Log-In to the System before 8:00 AM and after 6:00
PM for Security Reasons", vbOKOnly + vbCritical, "Invalid Log-In"
End
End If
End If
114
frmSplash.Show
Exit Sub
Else
MsgBox "Invalid UserName and Password Entered , Try again ! ", vbOKOnly + vbCritical, "
Login Information"
txtpassword = ""
txtusername = ""
txtusername.SetFocus
End If
End Sub
End Sub
115
Frm_splash
ProgressBar1.Value = ProgressBar1.Value + 1
116
Frm_mdi
Private Sub sub_billgen_Click()
frmbillgen.Show
End Sub
frmCalculator.Show
End Sub
frmcalendar.Show
End Sub
frmchangepswd.Show
End Sub
frmClock.Show
End Sub
117
frmCompany.Show
End Sub
frmsup_payment.Show
End Sub
frmEmployee.Show
End Sub
frmsup_Order.Show
End Sub
paystand.Show
End Sub
118
frmsup_product.Show
End Sub
frmsup_purchase.Show
End Sub
stocksumarry.Show
End Sub
frmSupplier.Show
End Sub
frmtesting.Show
End Sub
frmpayment.Show
119
End Sub
frmtip.Show
End Sub
sumarryselection.Show
End Sub
End If
End Sub
120
Chapter 7
SYSTEM
IMPLEMENTATION
AND TESTING
121
SYSTEM IMPLEMENTATION AND TESTING
The installation, delivery and testing of the entire system into production.
Systems test :
This test ensures that application programs written and tested in isolation
work properly when integrated into the total system.
122
Verification testing :
Alpha testing
Simulated environment using simulated data
Checks for errors and omissions regarding end-use and design specifications
123
Chapter 9
CONCLUSION
124
CONCLUSION
125
Chapter 10
BIBILIOGRAPHY
126
Programming in Visual Basic 6.0
-Julia Bradley
www.microsoft.com
www.vb6.us
127