Professional Documents
Culture Documents
Project
Project
INTRODUCTION:
2
3
OBJECTIVE:
consumption.
for operating of this S/W only user is sufficient. The work done
labors. One big profit of this S/W is accuracy. No huge records have
to be maintained.
4
2. To provide a better platform for generating salary of
stock of products.
3. This S/W is able to reduce man power & time so we can say
friendly.
5
6
SYSTEM ANALYSIS
7
INPUTS: once we know the output, we can easily determine
be wrong.
proper format.
FILES: As the word implies files are used to store data. Most
8
system. These are stored in files either in terms of isolated
Requirement Analysis
9
and problem solver. Requirements analysis is a software
System
Engineering
Software
Requirements
Analysis Software
Design
of effort:
10
(b) Evaluation and synthesis
(c) Modeling
(d) Specification
(e) Review
the next major area of effort for analysis. Upon evaluating current
11
Preliminary Investigation
part.
REQUEST CLARIFICATION
12
13
FEASIBILITY STUDY
1)-Technicalfeasibility
2)-Operational feasibility
3)-Economic feasibility
14
Technical Feasibility:
particular speed.
communicate smoothly.
15
Economic Feasibility:
benefits and savings that are expected from a purposed system and
company has to just pay the developed software cost and not other
company
16
Operational Feasibility:
used to the extent that persons will not be able to see reasons for
are not, user may welcome a change that will bring about a more
result in any case or area? Will the performance of staff member fall
Issue that appears to be quite minor at the early stage can grow
17
advisable to consider operational aspects carefully. The system is
18
19
Software Engineering Paradigm Applied:
in first phase the dry proto type is developed in which after the
20
Prototype Type Modal:
software that are visible to the customer /user. The quick design
program quickly.
21
22
REQUIREMENT SPECIFICATIONS:
SOFTWARE REQUIREMENTS
HARDWARE REQUIREMENTS
recommended.)
Keyboard
23
Buttons
24
25
SYSTEM DESIGN
Input Design
acceptable to the end users. The process of input design, like output
data flows on the required logical data flow diagram which cross the
user's data into a form which can be read and processed by the
computer system
documents.
26
on big as well as minute transactions This required exhaustive study
and a proper design for the system was brought into existence.
Design was discussed with the Workshop’s Manager and was further
prepared.
After Design phase attention was laid upon source code of the
package.
Whole project was divided into small modules. Source code for each
into units and tested (Unit Testing). These units were merged to get
27
satisfies all the requirements stated in requirements documentation.
successfully (Implementation)
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
SYSTEM DESIGN
56
DATA BASE DESIGN
These are:
some integrity rules that ensure that the data obeys the
57
The relational model is based on relational algebra concepts
and theory and, in the early days, used some of the same
management system.
58
Doesn't require the user to understand its physical
implementation
system tables
data.
(3) Lets you get the data out and work with it.
Columns
Rows
59
Name
60
Tables of Information
row. Each unique set of data gets is own row. Even though the
tables are independent, we can easily see that they are related. A
relationship is the basis for the name relational database. This is the
those changes in the foreign key. When two tables have single
One to One
One to many
61
Many to One
Many to many
little report. The key words used in a query to OSQL server to help
systems. SQL server and its components run on more than 100
Large Databases
Portable
Security
62
Client/Server Support
63
Entity:
Attribute-
understood.
Entities their attributes used in the system and key fields are
4.Relationship Diagrams
One-to-One
One relationship.
64
One-to-Many (or Many-to-One)
another table which is related to the first table the field has to be
refill.
Many-to-Many
In many to many relation ship both table can have repetitive data.
4. Screen Designs
here:
65
Space text, with an unjustified right margin is easier to read than
right justified text, which has spaces of varying sizes between the
understand the text. The most visible section of the screen is the
Beginners, who are usually looking at their fingers, will noticed error
messages
Which appear on the button line on the screen, where as the top
66
must be wary of using to many colours or creating lurid combination
67
DATA BASE DESCRIPTION
Master Tables
Table: Company_Master
Table: Supplier_Master
68
Table: Product_master
Table: Employee_Master
Table: Customer_Master
69
Department_Name Varchar 15
Table: Fuel_Machine_Master
Table: Contract_Master
Table: Shift_Master
Transaction Tables
70
Table: Employee Salary
71
Table: Sale
72
Table: Purchase
73
Table: Receipt
74
75
CODING
With rs
txtcompnamemod.Text = !CompanyName
txtcompaddressmod.Text = !companyaddress
txtcompcitymod.Text = !companycity
txtcompphnomod.Text = !companyphonenumber
End With
rs.Close
End If
End Sub
companymaster")
End Sub
76
rs.Open "select * from companymaster where companyid=" &
With rs
txtcompnameothers.Text = !CompanyName
End With
rs.Close
End If
End Sub
companymaster")
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
77
If txtcompidinsert.Text = "" Or txtcompnameinsert.Text = "" Or
Else
Exit Sub
Call Module1.clearcontrols
Else
With rs
.AddNew
!companyid = txtcompidinsert.Text
!CompanyName = txtcompnameinsert.Text
!companyaddress = txtcompaddressinsert.Text
!companycity = txtcompcityinsert.Text
!companyphnumber = txtcompphnoinsert.Text
.Update
End With
78
rs.Close
Call Module1.clearcontrols
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
With rs
!CompanyName = txtcompnamemod.Text
!companyaddress = txtcompaddressmod.Text
!companycity = txtcompcitymod.Text
!companyphnumber = txtcompphnomod.Text
.Update
End With
79
rs.Close
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Then
Exit Sub
End If
cr1.DiscardSavedData = True
cr1.WindowState = crptMaximized
cr1.Action = 1
Exit Sub
End If
80
If optdelothers.Value = True And cmbcompidothers.Text = "" Then
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Call Module1.openconnection
End Sub
81
Dim rs As New ADODB.Recordset
With rs
txtcontractornamemod.Text = !contractorname
dtp1mod.Value = !contractdate
txtcontractdeptnamemod.Text = !departmentname
End With
rs.Close
End If
End Sub
contractmaster")
End Sub
82
rs.Open "select * from contractmaster where contractid=" &
adLockOptimistic
With rs
txtcontractornameothers.Text = !contractorname
End With
rs.Close
End If
End Sub
contractmaster")
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
83
If txtcontractidinsert.Text = "" Or txtcontractornameinsert.Text = ""
Else
Exit Sub
Else
With rs
.AddNew
!contractid = txtcontractidinsert.Text
!contractorname = txtcontractornameinsert.Text
!contractdate = dtp1.Value
!departmentname = txtcontractdeptnameinsert.Text
.Update
End With
End If
rs.Close
84
Call Module1.clearcontrols
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
adLockOptimistic
With rs
!contractorname = txtcontractornamemod.Text
!contractdate = dtp1mod.Value
!departmentname = txtcontractdeptnamemod.Text
.Update
End With
rs.Close
85
MsgBox "One record updated", vbInformation, "message"
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Then
Exit Sub
End If
cr1.DiscardSavedData = True
cr1.WindowState = crptMaximized
cr1.Action = 1
Exit Sub
End If
86
If optdelothers.Value = True And cmbcontractidothers.Text = ""
Then
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Call Module1.openconnection
End Sub
87
Dim rs As New ADODB.Recordset
adLockOptimistic
With rs
txtcustomernamecustmod.Text = !customername
txtcustomeraddresscustmod.Text = !customeraddress
txtcustomerphnocustmod.Text = !customerphno
txtcustomerdeptnamecustmod.Text = !deptname
End With
rs.Close
End If
End Sub
from customermaster")
End Sub
88
rs.Open "select * from customermaster where customerid=" &
adLockOptimistic
With rs
txtcustomernamecustothers.Text = !customername
End With
rs.Close
End Sub
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
If txtcustomeridcustinsert.Text = "" Or
txtcustomernamecustinsert.Text = ""
Ortxtcustomeraddresscustinsert.Text= "" Or
89
txtcustomerphnocustinsert.Text = "" Or
Exit Sub
End If
adLockOptimistic
Exit Sub
Else
With rs
.AddNew
!customerid = txtcustomeridcustinsert.Text
!customername = txtcustomernamecustinsert.Text
!customeraddress = txtcustomeraddresscustinsert.Text
!customerphno = txtcustomerphnocustinsert.Text
!deptname = txtcustomerdeptnamecustinsert.Text
.Update
End With
90
rs.Close
Call Module1.clearcontrols
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Else
adLockOptimistic
With rs
!customername = txtcustomernamecustmod.Text
91
!customeraddress = txtcustomerphnocustmod.Text
!customerphno = txtcustomerphnocustmod.Text
!deptname = txtcustomerdeptnamecustmod.Text
.Update
End With
End If
rs.Close
Call Module1.clearcontrols
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Then
Exit Sub
92
End If
cr1.DiscardSavedData = True
cr1.WindowState = crptMaximized
cr1.Action = 1
Exit Sub
End If
"" Then
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Call Module1.openconnection
End Sub
93
Dim rs As New ADODB.Recordset
With rs
txtempnameempmod.Text = !empname
txtempaddressempmod.Text = !empaddress
txtempcityempmod.Text = !empcity
txtempphnoempmod.Text = !empphno
txtempdesignationempmod.Text = !designation
txtempbasicsalaryempmod.Text = !basicsalary
End With
rs.Close
End If
End Sub
empmaster")
End Sub
94
If rs.State <> 0 Then rs.Close
adLockOptimistic
With rs
txtempnameempothers.Text = !empname
End With
rs.Close
End If
End Sub
empmaster")
End Sub
mainmenu.Show
End Sub
mainmenu.Show
End Sub
95
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End Sub
txtempdesignationempinsert.Text = "" Or
Exit Sub
Else
96
rs.Open "select empid from empmaster where empid=" &
Exit Sub
Else
With rs
.AddNew
!empid = txtempidempinsert.Text
!empname = txtempnameempinsert.Text
!empaddress = txtempaddressempinsert.Text
!empcity = txtempcityempinsert.Text
!empphno = txtempphnoempinsert.Text
!designation = txtempdesignationempinsert.Text
!basicsalary = txtempbasicsalaryempinsert.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
txtempidempinsert.SetFocus
End If
End If
97
End Sub
adLockOptimistic
With rs
!empname = txtempnameempmod.Text
!empaddress = txtempaddressempmod.Text
!empcity = txtempcityempmod.Text
!empphno = txtempphnoempmod.Text
!designation = txtempdesignationempmod.Text
!basicsalary = txtempbasicsalaryempmod.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End Sub
Then
98
Exit Sub
End If
cr2.DiscardSavedData = True
cr2.WindowState = crptMaximized
cr2.Action = 1
Exit Sub
End If
Then
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Call Module1.openconnection
99
End Sub
100
Dim rs As New ADODB.Recordset
With rs
txtmchfueltypenamemchmod.Text = !fueltypename
txtmchopeningmetermchmod.Text = !openingmeter
txtmchclosingmetermchmod.Text = !closingmeter
End With
rs.Close
End If
End Sub
machinemaster")
End Sub
101
rs.Open "select * from machinemaster where machineid =" &
adLockOptimistic
With rs
txtmchfueltypenamemchothers.Text = !fueltypename
End With
rs.Close
End If
End Sub
machinemaster")
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
102
If txtmchidmchinsert.Text = "" Or
txtmchfueltypenamemchinsert.Text = "" Or
txtmchopeningmetermchinsert.Text = "" Or
End If
Exit Sub
With rs
.AddNew
!machineid = txtmchidmchinsert.Text
!fueltypename = txtmchfueltypenamemchinsert.Text
!openingmeter = txtmchopeningmetermchinsert.Text
!closingmeter = txtmchclosingmetermchinsert.Text
.Update
End With
rs.Close
103
Call Module1.clearcontrols
txtmchidmchinsert.SetFocus
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
104
Private Sub cmdmchmodupdate_Click()
adLockOptimistic
With rs
!fueltypename = txtmchfueltypenamemchmod.Text
!openingmeter = txtmchopeningmetermchmod.Text
!closingmeter = txtmchclosingmetermchmod.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
105
If optdelothers.Value = True Then
Call Module1.clearcontrols
End If
End If
End Sub
Call Module1.openconnection
End Sub
106
Dim rs As New ADODB.Recordset
With rs
txtprodnameprodmod.Text = !ProductName
txtprodrateperunitprodmod.Text = !rateperunit
txtprodqtyinhandprodmod.Text = !qtyinhand
txtprodmaxlevelprodmod.Text = !maxlevel
txtprodminlevelprodmod.Text = !minlevel
txtprodqtyinorderprodmod.Text = !qtyinorder
txtprodorderdateprodmod.Text = !orderdate
End With
rs.Close
End If
End Sub
productmaster")
107
End Sub
adLockOptimistic
With rs
txtprodnameprodothers.Text = !ProductName
End With
rs.Close
End If
End Sub
productmaster")
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
108
End Sub
Or txtprodrateperunitprodinsert.Text = "" Or
txtprodqtyinhandprodinsert.Text = "" Or
txtprodmaxlevelprodinsert.Text = "" Or
txtprodminlevelprodinsert.Text = "" Or
txtprodqtyinhandprodinsert.Text = "" Or
Else
Exit Sub
Else
With rs
.AddNew
!productid = txtprodidprodinsert.Text
!ProductName = txtprodnameprodinsert.Text
109
!rateperunit = txtprodrateperunitprodinsert.Text
!qtyinhand = txtprodqtyinhandprodinsert.Text
!maxlevel = txtprodmaxlevelprodinsert.Text
!minlevel = txtprodminlevelprodinsert.Text
!qtyinorder = txtprodqtyinorderprodinsert.Text
!orderdate = txtprodorderdateprodinsert.Text
.Update
End With
End If
rs.Close
Call Module1.clearcontrols
txtprodidprodinsert.SetFocus
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
110
If rs.State <> 0 Then rs.Close
adLockOptimistic
With rs
!ProductName = txtprodnameprodmod.Text
!rateperunit = txtprodrateperunitprodmod.Text
!qtyinhand = txtprodqtyinhandprodmod.Text
!maxlevel = txtprodmaxlevelprodmod.Text
!minlevel = txtprodminlevelprodmod.Text
!qtyinorder = txtprodqtyinorderprodmod.Text
!orderdate = txtprodorderdateprodmod.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
111
Call Module1.clearcontrols
End Sub
Exit Sub
End If
Exit Sub
End If
Then
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
112
Private Sub Form_Load()
Call Module1.openconnection
End Sub
113
Dim rs As New ADODB.Recordset
With rs
txtshifttimeshiftmod.Text = !shifttime
End With
rs.Close
End If
End Sub
shiftmaster")
End Sub
adLockOptimistic
114
With rs
txtshifttimeshiftothers.Text = !shifttime
End With
rs.Close
End If
End Sub
shiftmaster")
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Then
"INFORMATION"
Else
115
If rs.State <> 0 Then rs.Close
adLockOptimistic
With rs
.AddNew
!shiftid = txtshiftidshiftinsert.Text
!shifttime = txtshifttimeshiftinsert.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
116
rs.Open "select * from shiftmaster where shiftid=" &
adLockOptimistic
With rs
!shifttime = txtshifttimeshiftmod.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End If
117
If optviewlistothers.Value = True Then
End If
End Sub
Call Module1.openconnection
End Sub
End Sub
With rs
txtsuplmodsuplname.Text = !suppliername
txtsuplmodsuplphno.Text = !supplierphno
txtsupmodsuplcity.Text = !suppliercity
txtsuplmodsuplbrand.Text = !brand
txtsuplmodproductlist.Text = !productlist
End With
rs.Close
118
End Sub
suppliermaster")
End Sub
adLockOptimistic
With rs
txtsuplotherssuplname.Text = !suppliername
End With
rs.Close
End Sub
suppliermaster")
End Sub
mainmenu.Show
End Sub
119
Private Sub cmdsuplinsertref_Click()
Call Module1.clearcontrols
End Sub
Or txtsuplinsertsuplbrand.Text = "" Or
"INFORMATION"
Else
adLockOptimistic
With rs
.AddNew
!supplierid = txtsuplinsertsuplid.Text
!suppliername = txtsuplinsertsuplname.Text
!supplierphno = txtsuplinsertsuplphno.Text
!suppliercity = txtsuplinsertsuplcity.Text
!brand = txtsuplinsertsuplbrand.Text
!productlist = txtsuplinsertsuplproductlist.Text
120
.Update
End With
rs.Close
Call Module1.clearcontrols
txtsuplinsertsuplid.SetFocus
End If
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
adLockOptimistic
With rs
!suppliername = txtsuplmodsuplname.Text
!supplierphno = txtsuplmodsuplphno.Text
121
!suppliercity = txtsupmodsuplcity.Text
!brand = txtsuplmodsuplbrand.Text
!productlist = txtsuplmodproductlist.Text
.Update
End With
rs.Close
End If
Call Module1.clearcontrols
End Sub
mainmenu.Show
End Sub
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End If
122
MsgBox "you are intelligent", vbInformation, "information"
End If
End Sub
Call Module1.openconnection
End Sub
123
Dim rs As New ADODB.Recordset
Dim i As Integer
With rs
txtemployeename.Text = !employeename
txtbasicsalary.Text = !basicsalary
txtdesignation.Text = !designation
End With
rs.Close
End If
End Sub
124
Call Module1.combofill(cmbemployeeid, "select employeeid from
employeemaster")
End Sub
With rs
cmbemployeeid.Text = !employeeid
dtp1.Value = !dateofsalary
txtemployeename.Text = !employeename
txtbasicsalary.Text = !basicsalary
txtpf.Text = !providentfund
txtda.Text = !da
txtdesignation.Text = !designation
cmbshiftid.Text = !shiftid
txtshifttime.Text = !shifttime
txtgrosssalary.Text = !grosssalary
txtnetsal.Text = !netsalary
End With
rs.Close
125
End If
End Sub
employeesalary")
End Sub
With rs
txtshifttime.Text = !shifttime
End With
rs.Close
End If
End Sub
End Sub
126
mode = "New"
cmbsalaryslipno.Visible = False
txtsalaryslipno.Visible = True
cmdaddnew.Enabled = False
cmdsave.Enabled = True
cmdmodify.Enabled = False
cmddelete.Enabled = False
cmdrefresh.Enabled = True
cmdexit.Enabled = True
Frame1.Enabled = True
Frame2.Enabled = True
End Sub
Exit Sub
Else
Call Module1.clearcontrols
End If
127
End Sub
Unload Me
End Sub
mode = "Edit"
cmbsalaryslipno.Visible = True
txtsalaryslipno.Visible = False
cmdaddnew.Enabled = False
cmdsave.Enabled = True
cmddelete.Enabled = True
cmdrefresh.Enabled = True
cmdmodify.Enabled = False
cmdexit.Enabled = True
Frame1.Enabled = True
Frame2.Enabled = True
End Sub
Call Module1.clearcontrols
End Sub
128
If txtsalaryslipno.Text = "" Then 'Or List1.ListCount = 0 Or
Then
Exit Sub
End If
Exit Sub
Else
With rs
rs.AddNew
!dateofsalary = dtp1.Value
!salaryslipno = txtsalaryslipno.Text
129
!basicsalary = txtbasicsalary.Text 'List4.List(i)
rs.Update
End With
End If
rs.Close
Exit Sub
End If
adLockOptimistic
With rs
rs.AddNew
130
!dateofsalary = dtp1.Value
salaryslipno = cmbsalaryslipno.Text
rs.Update
End With
rs.Close
Call Module1.clearcontrols
End If
mode = ""
cmdaddnew.Enabled = True
cmdmodify.Enabled = True
131
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = False
cmdexit.Enabled = True
Frame1.Enabled = True
Frame2.Enabled = True
Call Module1.clearcontrols
End Sub
Call Module1.openconnection
Frame1.Enabled = True
Frame2.Enabled = True
End Sub
132
Dim rst As New ADODB.Recordset
Dim i As Integer
Dim j As Integer
mode = "New"
txtvoucherno.Visible = True
cmbvoucherno.Visible = False
cmdaddnew.Enabled = False
cmdexit.Enabled = True
cmdsave.Enabled = True
cmdrefresh.Enabled = True
cmddelete.Enabled = False
Frame1.Enabled = True
Frame2.Enabled = True
Frame3.Enabled = True
End Sub
133
rst.Open "select * from companymaster where companyid=" &
With rst
txtcompanyname.Text = !CompanyName
txtcompanyaddress.Text = !companyaddress
End With
rst.Close
End If
End Sub
companymaster")
End Sub
With rst
dtp1.Value = !orderdate
cmbcompanyid.Text = !companyid
134
txtcompanyname.Text = !CompanyName
txtcompanyaddress.Text = !companyaddress
txttotalamount.Text = !totalamount
For i = 0 To rst.RecordCount - 1
List1.AddItem !productid
List2.AddItem !ProductName
List3.AddItem !productRate
List4.AddItem !productqty
List5.AddItem !amount
rst.MoveNext
Next
End With
rst.Close
End If
End Sub
purchase")
End Sub
135
rst.Open "select * from productmaster where productid=" &
With rst
txtproductname.Text = !ProductName
txtproductrate.Text = !rateperunit
txtproductqty.Text = !qtyinorder
txtamount.Text = Val(txtproductrate.Text) *
Val(txtproductqty.Text)
End With
rst.Close
End If
End Sub
productmaster")
End Sub
Unload Me
End Sub
136
Call Module1.clearcontrols
cmdaddnew.Visible = True
cmdmodify.Visible = True
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = False
cmdexit.Enabled = True
Frame1.Visible = True
Frame2.Visible = True
Frame3.Enabled = True
End Sub
cmdaddnew.Enabled = True
cmdmodify.Enabled = True
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = True
cmdexit.Enabled = True
Frame1.Visible = True
Frame2.Visible = True
Frame3.Enabled = True
137
MsgBox "Please choose voucher number", vbInformation,
"message"
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Call Module1.openconnection
txtvoucherno.Visible = True
cmbvoucherno.Visible = False
End Sub
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
List4.ListIndex = List1.ListIndex
List5.ListIndex = List1.ListIndex
End Sub
138
List1.ListIndex = List2.ListIndex
List3.ListIndex = List2.ListIndex
List4.ListIndex = List2.ListIndex
List5.ListIndex = List2.ListIndex
End Sub
List1.ListIndex = List3.ListIndex
List3.ListIndex = List3.ListIndex
List4.ListIndex = List3.ListIndex
List5.ListIndex = List3.ListIndex
End Sub
List1.ListIndex = List4.ListIndex
List2.ListIndex = List4.ListIndex
List3.ListIndex = List4.ListIndex
List5.ListIndex = List4.ListIndex
End Sub
List1.ListIndex = List5.ListIndex
List2.ListIndex = List5.ListIndex
List3.ListIndex = List5.ListIndex
139
List4.ListIndex = List5.ListIndex
End Sub
mode = "Edit"
cmbvoucherno.Visible = True
txtvoucherno.Visible = False
cmdaddnew.Enabled = False
cmdmodify.Enabled = False
cmdsave.Enabled = True
cmdrefresh.Enabled = True
cmddelete.Enabled = True
cmdexit.Enabled = True
End Sub
txttotalamount.Text = Val(txttotalamount.Text) -
Val(List5.List(List5.ListIndex))
List1.RemoveItem List1.ListIndex
List2.RemoveItem List2.ListIndex
List3.RemoveItem List3.ListIndex
List4.RemoveItem List4.ListIndex
140
List5.RemoveItem List5.ListIndex
Else
Exit Sub
End If
End Sub
Exit Sub
End If
Else
With rst
141
For i = 0 To List1.ListCount - 1
rst.AddNew
!orderdate = dtp1.Value
!voucherno = txtvoucherno.Text
!companyid = cmbcompanyid.Text
!CompanyName = txtcompanyname.Text
!companyaddress = txtcompanyaddress.Text
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productRate = List3.List(i)
!productqty = List4.List(i)
!amount = List5.List(i)
rst.Update
Next
End With
End If
rst.Close
142
Exit Sub
End If
adLockOptimistic
With rst
For i = 0 To List1.ListCount - 1
rst.AddNew
!orderdate = dtp1.Value
!voucherno = cmbvoucherno.Text
!companyid = cmbcompanyid.Text
!CompanyName = txtcompanyname.Text
!companyaddress = txtcompanyaddress.Text
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productRate = List3.List(i)
!productqty = List4.List(i)
!amount = List5.List(i)
143
rst.Update
Next
End With
rst.Close
Call Module1.clearcontrols
End If
mode = ""
cmdaddnew.Enabled = True
cmdmodify.Enabled = True
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = False
cmdexit.Enabled = True
Frame1.Enabled = True
Frame2.Enabled = True
Frame3.Enabled = True
Call Module1.clearcontrols
End Sub
144
If cmbproductid.Text = "" Or txtproductqty.Text = "" Then
Exit Sub
End If
For i = 0 To List1.ListCount - 1
vbInformation, "Message"
cmbproductid.Text = ""
txtproductname.Text = ""
txtproductrate.Text = ""
txtproductqty.Text = ""
txtamount.Text = ""
Exit Sub
End If
Next
List1.AddItem cmbproductid.Text
List2.AddItem txtproductname.Text
List3.AddItem txtproductrate.Text
List4.AddItem txtproductqty.Text
List5.AddItem txtamount.Text
145
txttotalamount.Text = Val(txttotalamount.Text) +
Val(txtamount.Text)
cmbproductid.Text = ""
txtproductname.Text = ""
txtproductrate.Text = ""
txtproductqty.Text = ""
txtamount.Text = ""
End Sub
Receipt
Dim i As Integer
With rs
dtp1.Value = !dateofsale
cmbcontractid.Text = !contractid
146
txtdepartmentname.Text = !departmentname
txtcustomername.Text = !customername
txttotalamount.Text = !totalamount
For i = 0 To rs.RecordCount - 1
List1.AddItem !productid
List2.AddItem !ProductName
List3.AddItem !productqty
List4.AddItem !Rate
rs.MoveNext
Next
End With
rs.Close
End If
End Sub
reciepttrans")
End Sub
147
rs.Open "select departmentname from contractmaster where
adLockOptimistic
With rs
txtdepartmentname.Text = !departmentname
End With
rs.Close
End If
End Sub
contractmaster")
End Sub
With rs
txtproductname.Text = !ProductName
txtproductrate.Text = !rateperunit
148
End With
rs.Close
End If
End Sub
productmaster")
End Sub
mode = "New"
cmbbillnumber.Visible = False
txtbillnumber.Visible = True
cmdaddnew.Enabled = False
cmdsave.Enabled = True
cmddelete.Enabled = False
cmdmodify.Enabled = False
cmdexit.Enabled = True
cmdrefresh.Enabled = True
reciept.Enabled = True
End Sub
sum = 0
149
For i = 0 To List4.ListCount - 1
Next
txttotalamount.Text = sum
End Sub
Exit Sub
Else
Call Module1.clearcontrols
End If
End Sub
Unload Me
End Sub
mode = "Edit"
cmbbillnumber.Visible = True
150
txtbillnumber.Visible = False
cmdaddnew.Enabled = True
cmdmodify.Enabled = False
cmddelete.Enabled = True
cmdsave.Enabled = True
cmdrefresh.Enabled = True
cmdexit.Enabled = True
reciept.Enabled = True
End Sub
Call Module1.clearcontrols
End Sub
txttotalamount.Text = Val(txttotalamount.Text) -
Val(List4.List(List4.ListIndex))
List1.RemoveItem List1.ListIndex
List2.RemoveItem List2.ListIndex
List3.RemoveItem List3.ListIndex
List4.RemoveItem List4.ListIndex
Else
151
Exit Sub
End If
End Sub
List4.ListCount = 0 Then
Exit Sub
End If
Else
With rs
For i = 0 To List1.ListCount - 1
rs.AddNew
!dateofsale = dtp1.Value
!billnumber = txtbillnumber.Text
152
!contractid = cmbcontractid.Text
!departmentname = txtdepartmentname.Text
!customername = txtcustomername.Text
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productqty = List3.List(i)
!Rate = List4.List(i)
rs.Update
Next
End With
End If
rs.Close
Exit Sub
End If
153
rs.Open "select * from reciepttrans", cn, adOpenDynamic,
adLockOptimistic
With rs
For i = 0 To List1.ListCount - 1
rs.AddNew
!dateofsale = dtp1.Value
!billnumber = cmbbillnumber.Text
!contractid = cmbcontractid.Text
!departmentname = txtdepartmentname.Text
!customername = txtcustomername.Text
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productqty = List3.List(i)
!Rate = List4.List(i)
rs.Update
Next
End With
rs.Close
Call Module1.clearcontrols
154
End If
mode = ""
cmdaddnew.Enabled = True
cmdmodify.Enabled = True
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = False
cmdexit.Enabled = True
reciept.Enabled = True
Call Module1.clearcontrols
End Sub
Exit Sub
End If
For i = 0 To List1.ListCount - 1
vbInformation, "Message"
cmbproductid.Text = ""
txtproductname.Text = ""
155
txtproductrate.Text = ""
txtproductqty.Text = ""
Exit Sub
End If
Next
List1.AddItem cmbproductid.Text
List2.AddItem txtproductname.Text
List3.AddItem txtproductqty.Text
cmbproductid.Text = ""
txtproductname.Text = ""
txtproductrate.Text = ""
txtproductqty.Text = ""
End Sub
Call Module1.openconnection
reciept.Enabled = True
End Sub
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
List4.ListIndex = List1.ListIndex
156
End Sub
List1.ListIndex = List2.ListIndex
List3.ListIndex = List2.ListIndex
List4.ListIndex = List2.ListIndex
End Sub
List1.ListIndex = List3.ListIndex
List2.ListIndex = List3.ListIndex
List4.ListIndex = List3.ListIndex
End Sub
List1.ListIndex = List4.ListIndex
List2.ListIndex = List4.ListIndex
List3.ListIndex = List4.ListIndex
End Sub
157
Dim rs As New ADODB.Recordset
Dim i As Integer
With rs
dtp1.Value = !dateofsale
cmbcontractid.Text = !contractid
txtdepartmentname.Text = !departmentname
txtcustomername.Text = !customername
txttotalamount.Text = !totalamount
For i = 0 To rs.RecordCount - 1
List1.AddItem !productid
List2.AddItem !ProductName
List3.AddItem !productqty
List4.AddItem !Rate
rs.MoveNext
Next
158
End With
rs.Close
End If
End Sub
saletrans")
End Sub
adLockOptimistic
With rs
txtdepartmentname.Text = !departmentname
End With
rs.Close
End If
End Sub
159
Call Module1.combofill(cmbcontractid, "select contractid from
contractmaster")
End Sub
With rs
txtproductname.Text = !ProductName
txtproductrate.Text = !rateperunit
End With
rs.Close
End If
End Sub
productmaster")
End Sub
mode = "New"
cmbbillnumber.Visible = False
160
txtbillnumber.Visible = True
cmdaddnew.Enabled = False
cmdsave.Enabled = True
cmddelete.Enabled = False
cmdmodify.Enabled = False
cmdexit.Enabled = True
cmdrefresh.Enabled = True
sale.Enabled = True
End Sub
sum = 0
For i = 0 To List4.ListCount - 1
Next
txttotalamount.Text = sum
End Sub
Exit Sub
Else
161
cn.Execute "delete * from saletrans where billnumber=" &
Call Module1.clearcontrols
End If
End Sub
Unload Me
End Sub
mode = "Edit"
cmbbillnumber.Visible = True
txtbillnumber.Visible = False
cmdaddnew.Enabled = True
cmdmodify.Enabled = False
cmddelete.Enabled = True
cmdsave.Enabled = True
cmdrefresh.Enabled = True
cmdexit.Enabled = True
sale.Enabled = True
End Sub
162
Call Module1.clearcontrols
End Sub
txttotalamount.Text = Val(txttotalamount.Text) -
Val(List4.List(List4.ListIndex))
List1.RemoveItem List1.ListIndex
List2.RemoveItem List2.ListIndex
List3.RemoveItem List3.ListIndex
List4.RemoveItem List4.ListIndex
Else
Exit Sub
End If
End Sub
List4.ListCount = 0 Then
Exit Sub
163
End If
Else
With rs
For i = 0 To List1.ListCount - 1
rs.AddNew
!dateofsale = dtp1.Value
!billnumber = txtbillnumber.Text
!contractid = cmbcontractid.Text
!departmentname = txtdepartmentname.Text
!customername = txtcustomername.Text
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productqty = List3.List(i)
!Rate = List4.List(i)
rs.Update
Next
164
End With
End If
rs.Close
Exit Sub
End If
adLockOptimistic
With rs
For i = 0 To List1.ListCount - 1
rs.AddNew
!dateofsale = dtp1.Value
!billnumber = cmbbillnumber.Text
!contractid = cmbcontractid.Text
!departmentname = txtdepartmentname.Text
!customername = txtcustomername.Text
165
!totalamount = txttotalamount.Text
!productid = List1.List(i)
!ProductName = List2.List(i)
!productqty = List3.List(i)
!Rate = List4.List(i)
rs.Update
Next
End With
rs.Close
Call Module1.clearcontrols
End If
mode = ""
cmdaddnew.Enabled = True
cmdmodify.Enabled = True
cmdsave.Enabled = False
cmdrefresh.Enabled = False
cmddelete.Enabled = False
cmdexit.Enabled = True
sale.Enabled = True
Call Module1.clearcontrols
166
End Sub
Exit Sub
End If
For i = 0 To List1.ListCount - 1
vbInformation, "Message"
cmbproductid.Text = ""
txtproductname.Text = ""
txtproductrate.Text = ""
txtproductqty.Text = ""
Exit Sub
End If
Next
List1.AddItem cmbproductid.Text
List2.AddItem txtproductname.Text
List3.AddItem txtproductqty.Text
cmbproductid.Text = ""
167
txtproductname.Text = ""
txtproductrate.Text = ""
txtproductqty.Text = ""
End Sub
Call Module1.openconnection
sale.Enabled = True
End Sub
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
List4.ListIndex = List1.ListIndex
End Sub
List1.ListIndex = List2.ListIndex
List3.ListIndex = List2.ListIndex
List4.ListIndex = List2.ListIndex
End Sub
List1.ListIndex = List3.ListIndex
List2.ListIndex = List3.ListIndex
List4.ListIndex = List3.ListIndex
168
End Sub
List1.ListIndex = List4.ListIndex
List2.ListIndex = List4.ListIndex
List3.ListIndex = List4.ListIndex
End Sub
With rs
txtoldpassward.Text = !oldpasswd
txtnewpassward.Text = !confirmpasswd
End With
rs.Close
End If
End Sub
169
Call Module1.combofill(cmbusername, "select usernm from
authentication")
End Sub
Unload Me
End Sub
Unload Me
End Sub
Unload Me
End Sub
Frame1.Visible = False
Frame2.Visible = False
Frame3.Visible = True
End Sub
Frame1.Visible = True
Frame2.Visible = False
Frame3.Visible = False
End Sub
170
Private Sub cmdok_Click()
Exit Sub
End If
mainmenu.Show
Exit Sub
Else
vbCritical, "Error"
txtpasswardlog.Text = ""
txtpasswardlog.SetFocus
Exit Sub
rs.Close
End If
End Sub
171
Private Sub cmdref_Click()
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End Sub
Call Module1.clearcontrols
End Sub
Exit Sub
End If
Call Module1.clearcontrols
172
Exit Sub
Else
With rs
.AddNew
!usernm = txtusernameusc.Text
!oldpasswd = txtpasswardusc.Text
!confirmpasswd = txtconfirmpasswardusc.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End If
End Sub
Frame1.Visible = False
Frame2.Visible = True
Frame3.Visible = False
End Sub
173
Exit Sub
End If
With rs
!oldpasswd = txtoldpassward.Text
!confirmpasswd = txtnewpassward.Text
.Update
End With
rs.Close
Call Module1.clearcontrols
End Sub
Call Module1.openconnection
Frame1.Visible = True
Frame2.Visible = True
Frame2.Visible = True
End Sub
174
175
Code Efficiency
It has been recognized that good coding style can overcome many
manner.
176
177
OPTIMISATION OF CODE
become less.we use some tools and technique for code optimization
check box.
2) Combo fill: Through this module we fill the combo box at the
data base table. But in general we fill combo box with unique
between visual basic froms and data base table. This module
178
179
Validation And Checks
Validation
of the selling items must not be zero in items file however user can
sell items below reorder level and minimum level but the system
should warn before this. While entering data in sale return and
purchase return module system should accept only those items for
Checks
saved in the data base table that each tool boxes are properly
filled with text or value in screen form or not. If any text will
blank then record will not be saved in the data base table and
screen.
180
2) Duplicate entry check: In this we check at the time of
181
182
IMPLEMENTATION
Introduction: -
183
provide the user with a good start on the new system. Following
system's operating.
Conversion:
Installing hardware/software
parties involved are the user, the project team, programmers, and
operators.
184
Parallel processing between the existing and the new
systems is initiated.
officially operational.
File Conversion:-
from existing files. There can be problems like staff shortage for
cases, an outside agency performs this function for a flat rate .If a
exist, then copying existing files for the new system is a concern
area. Program can be written to copy files intact for the new system
185
Many systems are prone to errors because of insufficient attention
trails. These items must be part of the overall plan for conversion.
For this the exported data is imported to the client machine and the
User Training: -
system also range from very simple tasks like using a pocket
186
concrete, step-by-step procedure-require limited problem solving
.For this, the training level and duration is basic and brief.
Training Aids: -
software available to the user, what each option can do, how these
manual. The software is prohibited with both offline and online help.
the software, which also contains user form feed which can be used
help helps the user to read the functionality and operation manuals
about the software. Online help is the help, which is available to the
user at his figure tips, and user can get he instant help whenever he
read the manual for a small problem when the user is sitting on the
<f1> key.
187
Help screens- this feature is available in every software.
reference.
example:
Hardware/Software Installation
188
MAINTENANCE
include:
Analysis activities
Design activities
Implementation activities
Supporting documents
product
Text editor
189
Debugging aids
Linkage editor
as follows---
190
o Standards and Guidelines various types of standards and
software.
191
syntax-directed text editor can ensure that all cross-references in
and history file aid in locating the causes of known errors. System-
followed.
192
EVOLUTION
demonstrates.
Suppose that an analyst discovers that the real problem lies with
smart enough to realize where mistakes were made, and know how
not to repeat them in future. Given this solution, the analyst might
corrected. Once the problem has been identified, the analyst would
193
evident. The analyst might recommend that further study is
finding.
194
195
Testing Technique & Strategies
Testing is the necessary part of the project the various methods are
used for testing the software. The new look to the project is giving
by the perfect testing. I prefer the black box testing method. Black -
196
Black - box testing attempts to find errors in following categories:
design, testing all modules and their dependent modules such as for
output of the project also depends upon the interface use, so that
termination error, test the proper loading of the input data easily
197
Unlike white - box testing, which is performed early in the
(1) Test cares that reduce, by a count that is greater that one,
(2) Test cares that tell use something about the presence or
198
199
Security Mechanism
Authentication:
User Creation:
user can use only those options for which he permitted by the
administrator only.
User permission:
User permissions are the restrictions for user, which are provided by
handle the software but user can use only those options for which
200
201
Cost Estimation of the Project
and how much time development will take. These Estimates are
Otherwise, even simple question like “is the project late”, “are there
safely said that cost and schedule estimates are fundamental to any
thing as the computer time, terminal time, and memory required Fir
202
compilers needed during development .The bulk of the cost of
month, besides including the direct cost of the person month, most
from developing and using a system. But the benefits are the
advantages received from installing and using this system. Cost and
Tangible or intangible
Cost that are known to exist but their financial value cannot be
203
Some costs and benefits remain constant, regardless of how a
(b) Direct or indirect- direct cost are those which are directly
more transactions per day is a direct benefit. Indirect costs are not
204
the proportion of each attributable to a specific activity such as a
report.
hierarchy: -
projects are: -
205
1) Organic Mode: - Relatively small, simple projects in which
levels must meet a mix of rigid and less than rigid requirements.
E = ab KLOCbb
D = Cb Edb
206
This project is an organic project so :-
ab = 2.4
bb = 1.05
cb = 2.5
db = 0.38
LOC = 3000
KLOC = 3000/1000 = 3
= 2.4 (3)1.05
= 7.12
= 7 person - months
months
0.38
D = 2.5 E
0.38
= 2.5 (8)
= 4.06 months
= 4 months approximately
described above
207
N = E/D
= 7/4
= 1 person approx
project.
208
209
DATE WISE SALE REPORT
210
DATE WISE PURCHASE REPORT
Order Voucher Company Company Company Product Product Product Product Total
Amount
Date No Id Name Address Id Name Rate Qty Amount
9/1/2005 232323 2 TELCO Jankipura 2 Diesel 30 6000 180000 1005000
m
9/1/2005 232323 2 TELCO Jankipura 3 Lubricant 105 2000 210000 1005000
m box
8/29/2005 1033 1 TATA Aliganj 4 Pauch 5 3000 15000 420000
211
RECIEPT REPORT
212
SALARY REPORT
1/22/2002 1223 1 Ramesh 25000 2500 10000 1 6:00:00 35000 32500 Manager
AM
1/22/2002 555 1 Ramesh 25000 2500 10000 1 6:00:00 35000 32500 Manager
Srivastava AM
1/22/2002 777777 1 Ramesh 25000 2500 10000 1 6:00:00 35000 32500 Manager
AM
1/22/2002 101 2 Deepak 18000 1800 7200 2 2:30:00 25200 23400 Asst.Manager
AM
1/22/2002 666 2 Deepak 18000 1800 7200 2 2:30:00 25200 23400 Asst.Manager
AM
213
214
PERT CHART
PERT, which stands for project evaluation and Review Technique,
was developed n the late 1950s to plan and control large weapons
Let’s take a closer look at PERT charts, what they are, how to draw
terminology.
divided into three sections. The left half of the node includes an
legend that explicitly defines the event. The upper and lower right
hand quarters of the node are used to record the earliest and latest
215
is started. Every PERT chart has one beginning node that represents
the start of the project and one end node that represents the
delayed will cause the overall project to delay. The PERT chart for
216
Expected Complition Commulative
S.no Work Time Time Time
1Analysis
1.1Requirment gathering 3 6 6
1.2Feasibility study
Technical Feasibility
1.2.1 Study 1 2 8
Operational Feasibility
1.2.2 Study 1 2 10
Economical Feasibility
1.2.3 Study 1 2 12
1.3Fact Finding
1.3.1 Questionaires 1 2 14
1.3.2 Observation 2 3 17
1.4Model
1.4.1 Functional Model 6 10 27
1.4.2 Behaviour Model 2 3 30
1.4.3 Data Base Model 2 3 33
1.4.4 ERD DIAGRAM 4 6 39
1.4.5 Entity diagram 4 6 45
1.4.6 Architectural Model 8 12 57
1.5Design
1.5.1 Module Design 7 9 66
1.5.2 Input Design 12 15 81
Velidation And Check
1.5.3 Design 6 9 90
1.6Coding 50 70 160
1.7Testing 10 14 174
1.8Implementation 3 6 180
217
GANTT CHART
Basic planning user bars charts that shown project activities and
rudimentary aid to plot individual tasks against time. The Gant chart
left end marks the beginning of the task the right end its finish.
Earlier tasks appear in the upper left and later ones in the lower
starting from the start date of the activity and ending at the ending
date for that activity. The start and end of each activity becomes
milestones for the project. The Gantt chart for this project is:
218
1200
1000
1.8 Implementation
1.7 Testing
1.6 Coding
800
1.5.3 Velidation And
Check Design
1.5.2 Input Design
1.3.2 Observation
1.3.1 Questionaires
0
Expectedtime c ommulative 1.3 Fact Finding
time
1.2.3 Economical
Feasibility Study
1.2.2 Operational
Feasibility Study
1.2.1 Technical Feasibility
Study
1.2 Feasibility study
1.1 Requirment
gathering
1 Analysis
219
220
Future Scope
221
222
.
Bibliography
223