Reliance Fresh Inventory Management System
-
Upload
honestguy09 -
Category
Documents
-
view
273 -
download
16
Transcript of Reliance Fresh Inventory Management System
ACKNOWLEDGEMENT
Nothing concrete can be achieved without an optimal combination of inspiration and
perspiration. No work can be accomplished without taking the guidance of the experts. It
is only the views and advice from ingenious intellectual that help in the transformation of
a product into a quality product.
We owe my sincere gratitude to Mr. Amit Yadav, our honorable project guide.
Last but not the least, no acknowledgement will be complete without mentioning our
parents. They have also supported us throughout the development project.
INDEX
1. Introduction
2. Software Requirement Specification
3. Software / Hardware Requirement
4. Data Flow Diagram
5. E-R Diagram
6. Coding
7. Execution
8. Testing & Debugging
9. Appendix
10. Conclusion
11. Implementation
12. Maintenance
13. Bibliography
INTRODUCTION
Management of any departmental store is a very difficult task. Departmental store is an
attempt to computerize the day to day activities of store. It is designed to help the store to
perform daily duties and transaction with ease. Members’ satisfaction is the foremost
priority of the system.
After a detailed study of the existing system, it is evident that it does not fulfil the
objectives of the organization. It is require to have a computerized information system
with the help of which all tasks can be processed more accurately & quickly. To achieve
this it is necessary to design & develop a new system which will have benefits, over
existing system
The generation of reports in the proposed system will take minimum time & they are
electronically prepared. As a result, it is highly accurate. It will be easy for the users of
the system to compile information at a very high pace, measure the performance over a
period & draw conclusion from the information retrieved by using the proposed system.
As new information are being added to & released from other respective courses every
year. It will be highly used friendly to track & maintaining presentation of all the
students. The system is such that is stand up to the user expectation like easy and faster
retrieval f information. The system is very easy to learn & understand. A native user will
be able to use the system effectively. Information being prepare of electronically can be
said as accurate which is first and foremost condition for taking a crucial decision by the
management. Work carried out by a staff at various stages will be loss time consuming.
Besides this, the proposed system will have the following capabilities.
SOFTWARE REQUIREMENT SPECIFICATION
System Analysis
System Analysis refers to the process of examining a situation with the intent of
improving it through better process and methods. System analysis is, therefore, the
process of gathering and interpreting facts, diagnosing problem and using the information
to recommend information in system or in other words, it means a detailed explanation or
description. Before computerizing a system under consideration, it has to be analyzed.
We need to study how it function currently, what are problems and what are requirements
that proposed should meet.
The main components of making software are :
1. System and software requirements analysis.
2. Design and implementation of software.
3. Ensuring verifying and maintaining software integrity.
Information Gathering
The team paid a visit at the site to have a smell of existing system. All relevant
personal were consulted and no information was over-looked. The strategy consisted of:
1. Identify information sources.
2. Revolving a method of obtaining a information from identified source.
3. Using an information from module of organization.
Information Sources
The main sources of information were:
1. Users of the system
2. Presentations an documents using organization
3. Prospectus, manuals and the rulebooks, which specify how various activities are
carried out in the organization.
4. Computer Presentation of existing system.
UNDERSTANDING THE EXISTING SYSTEM
Existing system here is manual i.e. all the transaction or the information is recorded in
the registers and as simple text files on the computers. The person needy of particular
information has to go through the registers and the text files and then prepare the
information needed by him manually. Besides this, there are many other drawbacks with
the existing system which are listed as under :-
Flexibility in generation of information : The generation of information in the
proposed system takes long time and they are manually prepared.
Long time taken to draw conclusions : As individual files are maintained for each
information, it is very difficult to compile information, measure performance over a
period and draw conclusions from the information stored in two different files.
User Friendliness : The system is not easy to learn and understand. A native user
cannot use the system effectively.
User Satisfaction : The system is such that it does not stand up to the user
expectations like easy and faster retrieval of information.
Response Time : Being manually driven, the response of all the operations is very
slow.
Error Handling : In case there arise some error in recovering or computation of
information, it is very cumbersome to trace it.
Safety and Robustness : The informative media is accessible by everyone. As
information being the most crucial for the organization, there are no safety measures
for the security of information. Furthermore, information is lying in the organization
in an unorganized manner and does not resemble the real world model.
Lack of Accuracy : Information being prepared manually cannot be said as accurate
which is the first and the foremost condition for taking a crucial decision by the
management.
More Time Consuming : Work carried out by the staff at various stages is highly
time consuming.
Error Prone Resources : Resources being used by the informative media were
provided by the organization long ago. Due to wear and tear with the resources, they
are highly error prone.
PROPOSED SYSTEM
After a detailed study of the existing system, it is evident that is does not fulfill the
objectives of the organization. To make the objective possible for the organization, it is
required to have a computerized information system with the help of which all tasks can
be processed more accurately and quickly. To achieve this, it is necessary to design and
develop a new system which will have the following benefits over existing system :
Flexibility in generation of information : The generation of reports in the proposed
system will take minimal time and they are electronically prepared. As a result, it is
highly accurate.
Less time is taken to draw conclusions : It will be easy for the user(s) of the system
to compile information at a very high pace, measure the performance over a period
and draw conclusion form the information retrieved by using the proposed system.
Ease in maintaining information : As new information are being added to and
released from their respective courses every year, it will be highly user friendly to
track and maintain the presentation of all the students.
User satisfaction : The system is much that is stands up to the user expectations like
easy and faster retrieval of information.
Safety and Robustness : The system will be accessible by only the authorized users.
As information being the most crucial for the organization, there are safety measures
for the security of information.
Furthermore, data is stored by the system in an organized manner and resembles the
real world model.
Highly accurate : Information being prepared electronically, can be said as accurate
which is the first and the foremost condition for taking a crucial decision by the
management.
Less time consuming : Work carried out by the staff at various stages will be less
time consuming.
Error free resources : Resources being used by the system will be compatible with
the latest technologies available in the market. As proposed system uses highly
technically compatible resources, there will be very-very less wear and tear. So the
resources are error free.
Besides this, the proposed system will have the following capabilities :-
Multiple viewer facility : Proposed system is being designed in such a way that
many users can have a view with the system simultaneously. It makes effective and
perfect utilization of man power and resources.
User-friendly interfacing : Since main interaction of the system will be with the
user, the user interface will be interactive and meaningful.
Formatted output : The information generated by the proposed system us highly
formatted and help the users to reach the conclusion quickly.
Better organization of information : Proposed system has the capability to express
the information in a better and more meaningful way. Proposed system uses modern
techniques for storage and retrieval of information.
Accurate round the clock : Proposed system is capable of giving accurate
information round the clock.
Exception Handling : To ensure that the system does not halt in case undesired
situation or events, the system capable enough to handle these unpleasing
circumstances. Proposed system will be capable of taking necessary decisions so
that there is no loss information.
Minimum efforts : Proposed system ensures that very less efforts will be required to
start the presentation.
Capable of adapting to the changes in the outside environment : The system will
have scope to foresee modification and enhancement i.e. it is able to cope up with the
business changes in-order to be compatible with the latest changes in the industry.
Any enhancement to the information can be done without much effort and is
available instantly.
SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS
1. 40 GB Hard Disk
2. 256 MB Ram
3. Floppy Drive 1.44MB
4. Monitor
5. Keyboard
6. Processor PIV
SOFTWARE REQUIREMENTS
1. Visual Basic 6.0
2. Windows 2000
3. MS Access
DATA FLOW DIAGRAM (DFD)
A DFD is a graphical representation that depicts information flow and the
transforms that are applied as data move from input to output. The basic form of a
DFD is also known as a data flow graph or a bubble chart.
DFD may be used to represent a system or software at any level of abstraction.
DFDs can be partitioned into levels that represent increasing information flow and
functional detail.
A level 0 DFD, also called a fundamental system model or a context model,
represents the entire software element or a single bubble with input and output
data indicated by incoming and outgoing arrows, respectively.
A level 1 DFD may contain five or six bubbles with interconnection arrows. Each
of the processes represented at level 1 is a sub function of the overall system
depicted in the context model.
DFD Notations
It represents a process or transform that is applied to data.
It represents data store-stored information that is used
by software.
It represents one or more data items.
It represents external entities.
DFD
RELIANCE FRESH
SS_SALES
SS_PURCHASE
SS_STOCK
SS_ITEMSS_CUSTOMER
CUSTOMER
BILL
CUSTOMER
Customer Details
Purhase Details
Updated purchase Details
Sales Details forBill Generation
Stock Details
Stock Details
Generating Bill
Updating Spare Details
Item Details
Customer Details
Customer Details
RELIANCE FRESH
CUSTOMER ITEM PURCHASE SALES SUPPLIER BILL EXIT
STRUCTURE TABLE
DESIGN
ERD (ENTITY RELATIONSHIP DIAGRAM)
ERD are used to represent the object/relationship pair. It was originally purposed for the
design of relational database system. A set of primary components is identified for the
ERD: data object, attributes, relationship and various type indicators. The primary
purpose of ERD is to represent data object and their relationships. Data objects are real
world entities represented by a labeled rectangle. A labeled diamond represents
relationships. Connections between data objects and relationships are established using a
variety of special symbols that indicates cardinality and modality.
ERD Notations
ENTITY
W WEAK ENTITY
RELATIONSHIP
IDENTIFYING RELATIONSHIP
ATTRIBUTE
KEY ATTRIBUTE
MULTIVALUED
COMPOSITE ATTRIBUTE
DATA FLOW
Entity Relationship Diagrams are a major data modeling tool and will help organize the
data in your project into entities and define the relationships between the entities. This
process has proved to enable the analyst to produce a good database structure so that the
data can be stored and retrieved in a most efficient manner.
Stockid
Qoh
RELIANCE FRESH
Has
Customer
id
Address
Name Phone
Has Supplier
idName
Phone
Address
By
Item
Name
Select
Price
id
Has
Sales
Discount
Bill AmountDate
Customer Id
Bill No
CODING
Private Sub cmdadd_Click()Text1.Enabled = TrueText2.Enabled = TrueText3.Enabled = TrueText4.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = TrueCmdrefresh.Enabled = Truecmdedit.Enabled = TrueAdodc1.Recordset.AddNewEnd Sub
Private Sub cmdclose_Click()
Mainform.ShowCUSTOMERINFORMATION.HideText1.Enabled = FalseText2.Enabled = FalseText3.Enabled = FalseText4.Enabled = Falsecmdadd.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = TrueCmdrefresh.Enabled = Truecmdedit.Enabled = TrueEnd Sub
Private Sub cmdedit_Click()Dim checksave As Integerchecksave = 1For Each Control In CUSTOMERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Please Fill All The Required Data ", vbCritical, "Dear User"checksave = 0Exit ForEnd IfEnd IfNextIf checksave = 1 ThenAdodc1.Recordset.UpdateMsgBox "Record Save In Database", vbOKOnly + vbInformation, "Dear User"End Ifcmdedit.Enabled = False
Adodc1.Recordset.MoveFirstEnd Sub
Private Sub Cmdrefresh_Click()Dim UPDATERECORD As IntegerDim checkdata As Integercheckdata = 1'UPDATE THE DATA IN DATABASE'*****************************************************'check blank text box in formFor Each Control In CUSTOMERINFORMATION If TypeOf Control Is TextBox Then If Control.Enabled = False Then MsgBox "Data is Not Present ", vbCritical, "Dear User" Cmdrefresh.Enabled = False checkdata = 0 Exit For End If End IfNextIf checkdata = 0 ThenMsgBox "You Don't Have Permission To Update This Record ", vbCritical, "Dear User"ElseMsgBox "You Have Permission To Update This Record ", vbInformation, "Dear User" UPDATERECORD = MsgBox("Are You Want To Update This Record", vbOKCancel, "Dear User") If UPDATERECORD = 1 ThenText1.Enabled = TrueText2.Enabled = TrueText3.Enabled = TrueText4.Enabled = Truecmdedit.Enabled = Falsesmddelete.Enabled = Falsecmdadd.Enabled = FalseCmdrefresh.Enabled = FalseCommand1.Enabled = TrueEnd IfEnd IfEnd Sub
Private Sub Command1_Click()Dim instatus As Integerinstatus = 1For Each Control In CUSTOMERINFORMATION
If TypeOf Control Is TextBox Then If Control.Text = "" Then MsgBox "Please Fill All The Required Data ", vbCritical, "Dear User" instatus = 0 Exit For End IfEnd IfNextIf instatus = 1 ThenAdodc1.Recordset.UpdateMsgBox "Record Save In The Database", vbOKOnly + vbInformation, "Dear User"cmdedit.Enabled = TrueCommand1.Enabled = Falsesmddelete.Enabled = Truecmdadd.Enabled = TrueCmdrefresh.Enabled = TrueEnd IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub smddelete_Click()Dim instatus As Integerinstatus = 1 confirmdel = MsgBox("Are You Want To Delete This Record", vbOKCancel, "Dear User")For Each Control In CUSTOMERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Textboxes Are Disabled ", vbCritical, "Dear User"smddelete.Enabled = Falseinstatus = 0Exit ForEnd IfEnd IfNextIf instatus = 1 ThenAdodc1.Recordset.DeleteMsgBox "Record Deleted In Database", vbOKOnly + vbInformation, "Dear User"
End IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub cmdadd_Click() txtitemcode.Enabled = True txtitemname.Enabled = True Command1.Enabled = TrueAdodc1.Recordset.AddNewEnd Sub
Private Sub cmdclose_Click()Mainform.Showiteminformation.Hidetxtitemcode.Enabled = Falsetxtitemname.Enabled = Falsecmdedit.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = Truecmdadd.Enabled = TrueCmdrefresh(0).Enabled = True
End Sub
Private Sub cmdedit_Click()Dim UPDATERECORD As IntegerDim checkdata As Integercheckdata = 1'UPDATE THE DATA IN DATABASE'*****************************************************'check blank text box in formFor Each Control In iteminformation If TypeOf Control Is TextBox Then If Control.Enabled = False Then MsgBox "Data is Not Present ", vbCritical, "Dear User" cmdedit.Enabled = False checkdata = 0 Exit For End If End IfNextIf checkdata = 0 ThenMsgBox "You Don't Have Permission To Update This Record ", vbCritical, "Dear User"ElseMsgBox "You Have Permission To Update This Record ", vbInformation, "Dear User" UPDATERECORD = MsgBox("Are You Want To Update This Record", vbOKCancel, "Dear User") If UPDATERECORD = 1 Then
txtitemcode.Enabled = True txtitemname.Enabled = Truecmdedit.Enabled = FalseCommand1.Enabled = Falsesmddelete.Enabled = Falsecmdadd.Enabled = FalseCmdrefresh(0).Enabled = TrueEnd IfEnd IfEnd Sub
Private Sub Cmdrefresh_Click(Index As Integer)Dim instatus As Integerinstatus = 1For Each Control In iteminformation If TypeOf Control Is TextBox Then If Control.Text = "" Then MsgBox "Please Fill All The Required Data ", vbCritical, "Dear User" instatus = 0 Exit For End IfEnd IfNextIf instatus = 1 ThenAdodc1.Recordset.UpdateMsgBox "Record Save In The Database", vbOKOnly + vbInformation, "Dear User"cmdedit.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = Truecmdadd.Enabled = TrueCmdrefresh(0).Enabled = FalseEnd IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub Command1_Click()Dim checksave As Integerchecksave = 1For Each Control In iteminformationIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Please Fill All The Required Data ", vbCritical, "Dear User"checksave = 0
Exit ForEnd IfEnd IfNextIf checksave = 1 ThenAdodc1.Recordset.SaveMsgBox "Record Save In Database", vbOKOnly + vbInformation, "Dear User"End IfCommand1.Enabled = FalseAdodc1.Recordset.MoveFirstEnd Sub
Private Sub smddelete_Click()Dim instatus As Integerinstatus = 1 confirmdel = MsgBox("Are You Want To Delete This Record", vbOKCancel, "Dear User")For Each Control In iteminformation If TypeOf Control Is TextBox Then If Control.Enabled = False Then MsgBox "Textboxes Are Disabled ", vbCritical, "Dear User" smddelete.Enabled = False instatus = 0 Exit For End IfEnd IfNextIf instatus = 1 Then
Adodc1.Recordset.DeleteMsgBox "Record Deleted In Database", vbOKOnly + vbInformation, "Dear User"End IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub CMDOK_Click()If (txtusername.Text = Adodc1.Recordset.Fields(0)) And (txtpassword.Text = Adodc1.Recordset.Fields(1)) ThenMDIForm1.ShowElsenm = MsgBox("WRONG USER NAME OR PASSWORD", vbCritical, "DEAR CUSTOMER")End IfEnd Sub
Private Sub Command2_Click()
EndEnd Sub
Private Sub clickAdministration_Click()ADMINISTRATION.ShowEnd Sub
Private Sub clickCustomertotal_Click()CUSTOMERINFORMATION.ShowEnd Sub
Private Sub clickexit_Click()EndEnd Sub
Private Sub ClickItemInformation_Click()iteminformation.ShowEnd Sub
Private Sub clickPurchaseForm_Click()PURCHASEFORM.ShowEnd Sub
Private Sub clickPurchaseInformation_Click()PURCHASEINFORMATION.ShowEnd Sub
Private Sub clickraisebill_Click()PRINTBILL.ShowEnd Sub
Private Sub clicksalebill_Click()
End Sub
Private Sub clicksaledetail_Click()SALEDETAIL.ShowEnd Sub
Private Sub clicksaleform_Click()SALEFORM.ShowEnd Sub
Private Sub clickSupplierInformation_Click()SUPPLIERINFORMATION.ShowEnd Sub
Private Sub Timer3_Timer()Static i As Integeri = i + 1 If i >= 101 Then Picture1.Visible = False Timer3.Enabled = False MDIForm1.Hide Mainform.Show Else ProgressBar1.Value = iEnd IfEnd Sub
Private Sub Command1_Click()PRINTBILL.HideEnd Sub
Private Sub Command2_Click()CommonDialog1.ShowPrinterEnd Sub
Private Sub cmdadd_Click()Text1.Enabled = TrueText2.Enabled = TrueText3.Enabled = TrueText5.Enabled = TrueText6.Enabled = TrueAdodc1.Recordset.AddNewEnd SubPrivate Sub cmdedit_Click()Dim checksave As Integerchecksave = 1For Each Control In PURCHASEFORMIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Please Fill All The Required Data ", vbCritical, "Dear User"cmdedit.Enabled = Falsechecksave = 0Exit ForEnd IfEnd IfNextIf checksave = 1 ThenAdodc1.Recordset.Save MsgBox "Record Save In Database", vbOKOnly + vbInformation, "Dear User"End IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub Cmdrefresh_Click()Mainform.ShowPURCHASEFORM.Hidecmdedit.Enabled = TrueEnd Sub
Private Sub Command1_Click()Adodc1.Recordset.MoveFirstEnd Sub
Private Sub Command2_Click()If (Adodc1.Recordset.BOF = False) ThenAdodc1.Recordset.MovePreviousElseMsgBox "Record are Finished ", vbCritical, "Dear User"
Adodc1.Recordset.MoveFirstEnd If
End Sub
Private Sub Command3_Click()If (Adodc1.Recordset.EOF = False) ThenAdodc1.Recordset.MoveNextElseMsgBox "Record are Finished ", vbCritical, "Dear User"Adodc1.Recordset.MoveFirstEnd IfEnd Sub
Private Sub Command4_Click()Adodc1.Recordset.MoveLastEnd Sub
Private Sub cmdclose_Click()
Mainform.ShowPURCHASEINFORMATION.HideEnd Sub
Private Sub Cmdrefresh_Click()Adodc1.Recordset.MoveFirstEnd Sub
Private Sub smddelete_Click()Adodc1.Recordset.DeleteAdodc1.Recordset.MoveFirstEnd Sub
Dim u As Integer
Private Sub cmdclose_Click()Mainform.ShowSALEFORM.HideEnd Sub
Private Sub Command1_Click()Dim i, j As Integer j = 0i = 0For i = i To 9If (t1(j) <> "") Thent3(j) = t1(j) * t2(j)j = j + 1ElseEnd IfNextEnd Sub
Private Sub Command2_Click()Dim c, total As IntegerDim i As Integertotal = 0 c = 0 i = 0For i = i To 9If t3(c) <> "" Thentotal = total + t3(c)
c = c + 1ElseEnd IfNextText8.Text = totalEnd Sub
Private Sub Form_Load()Text5.Text = DateDim a As StringDo While (Adodc1.Recordset.EOF = False)a = Adodc1.Recordset.Fields("itemname")List1.AddItem (a)
Adodc1.Recordset.MoveNextLoopEnd Sub
Private Sub Text19_Change()
End Sub
Private Sub Text2_LostFocus()Text1.Text = (Text2.Text * Text3.Text)End Sub
Private Sub List1_DblClick()If (Text1(u).Index < 9) ThenText1(u) = List1.Textu = u + 1Elsehs = MsgBox("NO MORE ARE INSERTED", vbCritical, "DEAR CUSTOMER")End IfEnd Sub
Private Sub smddelete_Click()PRINTBILL.txtbdate.Text = Text5.TextPRINTBILL.txtbno.Text = Text6.TextPRINTBILL.txtdis.Text = Text7.TextPRINTBILL.txtbamount.Text = Val(Text8.Text) - (Val(Text8.Text) * (Val(Text7.Text) / 100))PRINTBILL.txtcname.Text = Text10.TextPRINTBILL.txtcaddress.Text = Text9.TextSALEFORM.HidePRINTBILL.ShowEnd Sub
Private Sub cmdadd_Click()Text1.Enabled = TrueText2.Enabled = TrueText3.Enabled = TrueText4.Enabled = Truecmdedit.Enabled = TrueAdodc1.Recordset.AddNewEnd Sub
Private Sub cmdclose_Click()Mainform.ShowSUPPLIERINFORMATION.HideText1.Enabled = FalseText2.Enabled = FalseText3.Enabled = FalseText4.Enabled = Falsecmdadd.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = TrueCmdrefresh.Enabled = Truecmdedit.Enabled = TrueEnd Sub
Private Sub cmdedit_Click()Dim checksave As Integerchecksave = 1For Each Control In SUPPLIERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Please Fill All The Required Data ", vbCritical, "Dear User"checksave = 0Exit ForEnd IfEnd IfNextIf checksave = 1 ThenAdodc1.Recordset.UpdateMsgBox "Record Save In Database", vbOKOnly + vbInformation, "Dear User"End Ifcmdedit.Enabled = FalseAdodc1.Recordset.MoveFirstEnd Sub
Private Sub Cmdrefresh_Click()Dim UPDATERECORD As IntegerDim checkdata As Integer
checkdata = 1'UPDATE THE DATA IN DATABASE'*****************************************************'check blank text box in formFor Each Control In SUPPLIERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Data is Not Present ", vbCritical, "Dear User"Cmdrefresh.Enabled = Falsecheckdata = 0 Exit ForEnd IfEnd IfNextIf checkdata = 0 ThenMsgBox "You Don't Have Permission To Update This Record ", vbCritical, "Dear User"ElseMsgBox "You Have Permission To Update This Record ", vbInformation, "Dear User"UPDATERECORD = MsgBox("Are You Want To Update This Record", vbOKCancel, "Dear User")If UPDATERECORD = 1 ThenText1.Enabled = TrueText2.Enabled = TrueText3.Enabled = TrueText4.Enabled = Truecmdedit.Enabled = Falsesmddelete.Enabled = Falsecmdadd.Enabled = FalseCmdrefresh.Enabled = FalseCommand1.Enabled = TrueEnd IfEnd IfEnd Sub
Private Sub Command1_Click()Dim instatus As Integerinstatus = 1For Each Control In SUPPLIERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Text = "" ThenMsgBox "Please Fill All The Required Data ", vbCritical, "Dear User"instatus = 0Exit ForEnd IfEnd IfNext
If instatus = 1 ThenAdodc1.Recordset.UpdateMsgBox "Record Save In The Database", vbOKOnly + vbInformation, "Dear User"cmdedit.Enabled = TrueCommand1.Enabled = Truesmddelete.Enabled = Truecmdadd.Enabled = TrueCmdrefresh.Enabled = FalseEnd IfAdodc1.Recordset.MoveFirstEnd Sub
Private Sub smddelete_Click()Dim instatus As Integerinstatus = 1 confirmdel = MsgBox("Are You Want To Delete This Record", vbOKCancel, "Dear User")For Each Control In SUPPLIERINFORMATIONIf TypeOf Control Is TextBox ThenIf Control.Enabled = False ThenMsgBox "Textboxes Are Disabled ", vbCritical, "Dear User"smddelete.Enabled = Falseinstatus = 0Exit ForEnd IfEnd IfNextIf instatus = 1 ThenAdodc1.Recordset.DeleteMsgBox "Record Deleted In Database", vbOKOnly + vbInformation, "Dear User"End IfAdodc1.Recordset.MoveFirstEnd Sub
OUTPUT
TESTING AND DEBUGGING
INTRODUCTION:-
The implementation phase of software development is concerned with translating design
specification into source code. The preliminary goal of implementation is to write source
code and internal documentation so that conformance of the code to its specifications can
be easily verified, and so that debugging, testing and modifications are eased. This goal
can be achieved by making the source code as clear and straightforword as possible.
Simplicity, clarity and elegance are the hallmark of good programs, obscurity, cleverness,
and complexity are indications of inadequate design and misdirected thinking.
Source code clarity is enhanced by structured coding techniques, by good coding style,
by, appropriate supporting documents, by good internal comments, and by feature
provided in modern programming languages.
The implementation team should be provided with a well-defined set of software
requirement, an architectural design specification, and a detailed design description. Each
team member must understand the objectives of implementation.
SOME SPECIAL TERMS IN TESTING FUNDAMENTAL
1. Error
The term error is used in two ways. It refers to the difference between the actual output of
software and the correct output, in this interpretation, error is essential a measure of the
difference between actual and ideal. Error is also to used to refer to human action that
result in software containing a defect or fault.
2. Fault
Fault is a condition that causes to fail in performing its required function. A fault is a
basic reason for software malfunction and is synonymous with the commonly used term
Bug.
3. Failure
Failure is the inability of a system or component to perform a required function according
to its specifications. A software failure occurs if the behavior of the software is the
different from the specified behavior. Failure may be caused due to functional or
performance reasons.
SOME OF THE COMMON USED STRATEGIES FOR TESTING ARE AS
FOLLOWS:-
a. Unit Testing
The term unit testing comprises the sets of tests performed by an individual programmer
prior to integration of the unit into a larger system. The situation is illustrated as follows:
Coding & debugging ------- Unit testing ------- Integration testing
A program unit is usually small enough that the programmer who developed it
can test it in great detail, and certainly in greater detail than will be possible when the unit
is integrated into an evolving software product. In the unit testing the programs are tested
separately, independent of each other. Since the check is done at the program level, it is
also called program teasing.
b. Module Testing
A module and encapsulates related component. So can be tested without other system
module.
c. Subsystem Testing
Subsystem testing may be independently design and implemented common problems are
sub-system interface mistake in this checking we concentrate on it.
There are four categories of tests that a programmer will typically perform on a program
unit.
1) Functional test
2) Performance test
3) Stress test
4) Structure test
1) Functional Test
Functional test cases involve exercising the code with Nominal input values for which
expected results are known; as well as boundary values (minimum values, maximum
values and values on and just outside the functional boundaries) and special values.
2) Performance Test
Performance testing determines the amount of execution time spent in various parts of the
unit, program throughput, response time, and device utilization by the program unit. A
certain amount of avoid expending too much effort on fine-tuning of a program unit that
contributes little to the over all performance of the entire system. Performance testing is
most productive at the subsystem and system levels.
3) Stress Test
Stress test are those designed to intentionally break the unit. A great deal can be learned
about the strengths and limitations of a program by examining the manner in which a
program unit breaks.
4) Structure Test
Structure tests are concerned with exercising the internal logic of a program and
traversing particular execution paths. Some authors refer collectively to functional
performance and stress testing as “black box” testing. While structure testing is referred
to as “white box” or “glass box” testing. The major activities in structural testing are
deciding which path to exercise, deriving test date to exercise those paths, determining
the test coverage criterion to be used, executing the test, and measuring the test coverage
achieved when the test cases are exercised.
DEBUGGING
Defect testing is intended to find areas where the program does not confirm to its
specifications. Tests are designed to reveal the presence of defect in the system.
When defect have been found in the program. There must be discovered and removed.
This is called “Debugging”. Defect testing and debugging is quite different testing
establishes the existence of effects and debugging is concerned with locating and
correcting this defect.
Locate
Error
Design Error Report
Repair Error
RequestThe program
APPENDIX
Data Control :-
The data control gives you access to database without any programming.
Module :-
Modules are used to store procedure. Procedure stored in a module can be called from
any part of the application. This is one method by which forms and procedures in
different forms can exchange information.
Text Box:-
This control displays that the user can edit.
Frame:-
This control is used to draw boxes on the form and to group other elements.
Command Button :-
A common button represent an action that is carried out when the used click the button.
CONCLUSION
1. The RELIANCE FRESH is automated as hand written documentation is minimized to
a bare minimum once the S/w is fully implemented.
2. The data can be easily backed up onto a reliable media so that no or minimal data loss
is there in case of system crash.
This project has made us require a professional outlook towards a problem statement and
solving it to the best and maximum.
IMPLEMENTATION
This project is successfully implemented in Visual Basic and MS Access and was seen in
all respect of specification. Any number of record can be maintained according to given
schedule of store. Till now it is successfully working. As far as the modification in the
this Project is considered, this facility is build in this project. You can add an customer
information and also can delete his information from the database in case of his exit from
this organization.
It is granted that this project will work as it is at Present and also in future as all
specifications are along the time and frame of the department. Also this project can be
successfully implemented in any organization.
MAINTENANCE
Maintenance Phase:
Any change to any component of the product (including documentation) after it has
passed the acceptance test.
Types of maintenance:
1. Perfective maintenance
Client requests changes to improve product effectiveness
Add additional functionality
Make product run faster
Improve maintainability
2. Adaptive maintenance
Responses to changes in the environment in which the product operates
The product is ported to a new compiler, operating system, and/or hardware
3. Corrective Maintenance
Suppose that the maintenance programmer has located the fault/Problem
How to fix it without introducing a regression fault
Major skills required for corrective maintenance
Superb diagnostic skills
Superb testing skills
Superb documentation skills
Difficulty of Maintenance
About 67% of the total cost of a product accrues during the maintenance phase
Maintenance is a major income source
Nevertheless, even today many organizations assign maintenance to
Unsupervised beginners, and Less competent programmers
The Rewards of Maintenance
Maintenance is a thankless task in every way
Maintainers deal with dissatisfied users
If the user were happy, the product would not need maintenance
The user’s problems are often caused by the individuals who developed the product,
not the maintainer
The code itself may be badly written
Maintenance is despised by many software developers
Unless good maintenance service is provided, the client will take future
development business elsewhere
Maintenance is the most important phase of software production, the most difficult—
and most thankless
BIBLIOGRAPHY
1. Complete Reference Visual Basic 6.0 - By Hebert Schild
2. Mastering Visual Basic 6.0 - By Evangelos Petroutsos
3. Visual Basic 6 from ground up - By Gary Cornell