Sunteți pe pagina 1din 74

SUPPL CHAIN MANAGEMENT SYSTEM

BY
MOHAMED GANI.I REG. NO: 30608088

A Project Report Submitted in partial fulfillment of the requirements for the award of the degree of BCA. Computer Application

SCHOOL OF COMPUTER SCIENCES FACULTY OF SCIENCE & HUMANITIES SRM UNIVERSITY


KATTANKULATHUR 603 203 MAY 2011

CERTIFICATE
This is to certify that the Project report entitled
SUPPLY CHAIN MANAGEMENT SYSTEM

is submitted to the School of Computer Sciences by


MOHAMED GANI.I REG. NO: 30608088

in the partial fulfillment for the award of degree of BCA. Computer Application is bonafide record of work carried out by him.

Date:
Guide Head of the Department Head of the School

Submitted for the viva voice examination on: _______________.

Internal Examiner

External Examiner

ACKNOWLEDGEMENT
If words are considered as symbols and tokens of acknowledgement then let the words play by heralding role of expressing my gratitude to all who have helped me during my project work. I feel it as greater pleasure to thank Sri.T.R.Pachamuthu, B.sc., M.I.E, chairman and founder of SRM Group, for providing me excellent facilities. I express my sincere thanks to Dr. R.Balasubbramanian Director, Faculty of Science and Humanities, SRM University, Kattankulathur, for having permitted me to take up this project. I owe my gratitude to Dr. K.Sengotti Dean, Faculty of Science and Humanities, SRM University, Kattankulathur, for giving me an opportunity to exhibit my excellence. I am indebted to Prof. S.Sidharthan M.Sc., M.phil Head of the School, School of Computer Sciences, Faculty of Science and Humanities, SRM University, Kattankulathur, for his guidance and help. I acknowledge my gratitude and sincere thanks to my Prof. V.Raja M.Sc., M.phil Head of the Department, Department of Computer Application., Faculty of Science and Humanities, SRM University for his valuable suggestions and periodic reviews done during the progress of the mini project and generously given me a support, encouragement throughout my course. I express my deep thanks to my guide Aarthi Devpal, Department of Computer Application., for her valuable guidance and excellent suggestions throughout this project. My special thanks to my beloved parents and friends for the support and encouragement in achieving my goal. Finally my thanks to all who have helped me in carrying out this project work successfully.

CONTENTS

S.No 1.

Title Introduction 1.1 1.2 Abstract About the project

Page no

2.

Development Environment 2.1 Hardware used 2.2 Software used 2.3 OverView of the Software

3.

Requirement Analysis 3.1 3.2 Existing System Proposed System Dataflow Diagram Functional Requirements Table Design System Testing

4.

System Analysis 4.1 4.2

5. 6. 7. 8. 9. 10.

System Design 5.1 Testing and Results 6.1 Source Code Screen Shots Conclusion Bibliography

1.1 ABSTRACT

Supply Chain Management (SCM) is the management of a network of interconnected businesses involved in the ultimate provision of product and service packages required by end customers. Supply Chain Management System integrates your Purchase Orders, Quotation Orders, Sales Orders, Delivery Orders, providing you with one source of data input and producing a comprehensive set of management reports for decision-making.

Product information, Customer information, Supplier information includes reports giving you information on all products, customers, suppliers. The system also prints POs, quotations, sales orders, Dos . The system provides detailed status of your Purchase Orders and sales orders in relation to order fulfillment. Any businesses involved in the trading activities of buying and selling of goods will need this software to keep track of Purchase Orders, Quotations Orders, Sales Orders, Delivery Orders. Currently all works are done manually, by computerizing all the activities will help the retailer to manage the business easily and effectively.

1 1.2 ABOUT THE PROJECT The project entitled as Supply Chain Management System is developed using Visual Basic 6.0 as front end and Microsoft Access 2007 as back end. The ultimate aim

of this project is to make the Purchase Order, Quotation Order, Sales Order, Delivery Order on computerized method. This project is mainly used in any businesses involved in the trading activities of buying and selling goods. The Supply Chain Management System is mainly deals with Products, Suppliers, Customers, Purchase Orders, Quotations, Sales orders, Delivery Orders. All the details can be updated and modified by authorized users only. The Supply Chain Management System database provides an environment that is both convenient and efficient. It is easy for the Retailer to use in retrieving and storing information and creating the orders. It provides security to information in database. It allows us to store large information. The product, customer, supplier details can be inserted and modified easily. Supply Chain Management System is created by writing the source code in Visual Basic and creating the table in Microsoft Access. Supply Chain Management System database satisfies the following features: A database that reduces time in respective orders. A database that provides security to the information in the records stored. A database that is user friendly. Creation Insertion Updating Querying Modification

A database that could automatically generate the reports for the

2.1 HARDWARE SPECIFICATION


Processors : Intel Pentium 4

RAM CPU Speed Hard Disk Keyboard Mouse Floppy Disc

: 512MB : 600 MHZ : 20GB : Standard 101/102 Keys : PS/2 Comfortable mouse : 1.4MB

2.2 SOFTWARE SPECIFICATION


Operating System Front End Back End Design Tool Documents Tool : Windows Xp Professional : Visual Basic 6.0 : Microsoft Access 2007 : Adobe Photoshop CS4 : Microsoft Office 2007

2.3 OVERVIEW OF SOFTWARE


VISUAL BASIC 6.0 Microsoft Visual Basic, the fastest and easiest way to create applications for Microsoft Windows. Whether an experienced professional or brand new to Windows programming, Visual Basic provides a complete set of tools to simplify rapid application development. Visual Basic 6.0 is an evolution of the Visual Basic language that is engineered for productively building type-safe and object-oriented applications. Visual Basic enables developers to target Windows, Web, and mobile devices. Visual Basic was designed to be easily learned and used by beginner programmers.

The language not only allows programmers to create simple GUI applications, but can also develop complex applications.

Programming in VB is a combination of visually arranging components or controls on a form, specifying attributes and actions of those components, and writing additional lines of code for more functionality. FEATURES OF VISUAL BASIC 6.0 1. ARRAYS Discusses making your code more compact and powerful by declaring and using arrays, which hold multiple related values. 2. OBJECTS AND CLASSES Provides an overview of objects and classes, how they are used, their relationships to each other, and the properties, methods, and events they expose.

3. OPERATORS AND EXPRESSIONS Describes the code elements that manipulate value-holding elements, how to use them efficiently, and how to combine them to yield new values. 4. PROCEDURES Describes Sub, Function, Property, and Operator procedures, as well as advanced topics such as recursive and overloaded procedures. 5. EARLY AND LATE BINDING (VISUAL BASIC) Describes binding, which is performed by the compiler when an object is assigned to an object variable, and the differences between early-bound and late-bound objects.

MICROSOFT ACCESS 2007 The back end used in this project is Ms-Access7.0, which allows building and maintaining the databases efficiently and effectively. Access is a

Relational Database Management System (RDBMS) that we can use to store and manipulated large amount of information. Because its tools are user-friendly and because it is powerful development environment, access is equally appropriate for the novices and MIS professionals. Access can be used to: Store and mange various types of inventories such as recaps, stamps, baseball or other collections Develop order-entry systems Create application that manages survey results. Establish help-desk applications. Manage front ends for enterprise-wide databases such as SQL server. DATABASE WINDOW All objectives of database are stored in a single fire whose name holds the extension .mdb . Objects can be managed through the Database Window. TABLES Tables are the primary building blocks of any Access database. Every table in our database should focus on one subject such as customers, objects or products. Every row or record in a table is a unique instance of that subject. QUERIES A query is a question that we ask for the data stored in the tables of the database. Queries can be used to determine the fields of the table that are to be included in a new datasheet.

FORMS

Access forms serve two functions. The first presents the results to the queries in a format that is easy to view and update. The second is to create the interface portion of an access application. This function is primarily for application developers. REPORTS Designing the reports for the given data can be done quickly and in an easier manner. Reports can incorporate fields from one or more tables. A report format is one restricted to row columns format. It can be a product, mailing tables, a graph etc

3.1. EXISTING SYSTEM

Existing system refers to the system that is being followed till now. The existing system requires more computational time, more manual calculations, and the complexity involved in Selection of features is high. The other disadvantages are lack of security of data, Deficiency of Data accuracy, Time consuming etc. To avoid all these limitations and make the working more accurately the system needs to be computerized. Lack of security of data. More man power. Time consuming. Consumes large volume of pare work. Needs manual calculations. No direct role for the higher officials.

3.2. PROPOSED SYSTEM The aim of proposed system is to develop a system of improved facilities. The proposed system can overcome all the limitations of the existing system. The system provides proper security and reduces the manual work. Security of data. Ensure data accuracys. Proper control of the higher officials. Minimize manual data entry. Minimum time needed for the various processing. Greater efficiency. Better service. User friendliness and interactive. Minimum time required.

FEASIBILITY STUDY

Feasibility study is made to see if the project on completion will serve the purpose of the organization for the amount of work, effort and the time that spend on it. Feasibility study lets the developer foresee the future of the project and the usefulness. A feasibility study of a system proposal is according to its workability, which is the impact on the organization, ability to meet their user needs and effective use of resources. Thus when a new application is proposed it normally goes through a feasibility study before it is approved for development. The document provide the feasibility of the project that is being designed and lists various areas that were considered very carefully during the feasibility study of this project such as Technical, Economic and Operational feasibilities. The following are its features: A. TECHNICAL FEASIBILITY The system must be evaluated from the technical point of view first. The assessment of this feasibility must be based on an outline design of the system requirement in the terms of input, output, programs and procedures. Having identified an outline system, the investigation must go on to suggest the type of equipment, required method developing the system, of running the system once it has been designed. Technical issues raised during the investigation are: suggested one? Can the system expand if developed? The project should be developed such that the necessary functions and performance are achieved within the constraints. The project is developed within latest technology. Through the technology may become obsolete after some period of time, due to the fact that never version of same software supports older versions, the system may still be used. So there are minimal constraints involved with this project. Does the existing technology sufficient for the

The system has been developed using Java the project is technically feasible for development.

B. ECONOMIC FEASIBILITY The developing system must be justified by cost and benefit. Criteria to ensure that effort is concentrated on project, which will give best, return at the earliest. One of the factors, which affect the development of a new system, is the cost it would require. The following are some of the important financial questions asked during preliminary investigation: errors. Since the system is developed as part of project work, there is no manual Cost to spend for the proposed system. Also all the resources are already available, it give an indication of the system is economically possible for development. The costs conduct a full system investigation. The cost of the hardware and software. The benefits in the form of reduced costs or fewer costly

C. BEHAVIORAL FEASIBILITY This includes the following questions: Is there sufficient support for the users? Will the proposed system cause harm? The project would be beneficial because it satisfies the objectives when developed and installed. All behavioral aspects are considered carefully and conclude that the project is behaviorally feasible.

4.1. DATA FLOW DIAGRAM

4.2. FUNCTIONAL REQUIREMENTS The modules involved in this projects are Login Product Supplier Purchase Order Customer Quotation Order Sales Order Delivery Order 1. LOGIN There will be a username and password to login into the system to use all the facilities. And we can update the username and the password. 2. PRODUCT This module helps the administrator to store the information about the product which is going to sell by the retailer. 3. SUPPLIER This module helps the administrator to store the information about the person who going to supply the product.

11 4. PURCHASE ORDER This module helps the administrator to store the information about the product who going to buy the product. 5. CUSTOMER This module helps the administrator to store the information about the customer who going to buy the product. 6. QUOTATION ORDER This module helps the administrator to store the information about the product which requested by the customer. 7. SALES ORDER This module helps the administrator to store the information about the product which are all going to bought from the supplier. 8. DELIVERY ORDER This module helps the administrator to store the information about the product which is delivered to the customer.

5.1

TABLE DESIGN

LOGIN

PRODUCT

SUPPLIER

CUSTOMER

PURCHASE ORDER

QUOTATION ORDER

SALES ORDER

DELIVERY ORDER

6.1 SYSTEM TESTING Testing is a process of executing a program with the interest of finding an error. A good test is one that has high probability of finding the yet undiscovered error. Testing should systematically uncover different classes of errors in a minimum amount of time with a minimum amount of efforts. Two classes of inputs are provided to test the process 1. 2. A software configuration that includes a software A software configuration that includes a test plan and requirement specification, a design specification and source code. procedure, any testing tool and test cases and their expected results. Testing is divided into several distinct operations: 1. UNIT TESTING Unit test comprises of a set tests performed by an individual program prior to the integration of the unit into large system. A program unit is usually the smallest free functioning part of the whole system. Module unit testing should be as exhaustive as possible to ensure that each representation handled by each module has been tested. All the units that makeup the system must be tested independently to ensure that they work as required. During unit testing some errors were raised and all of them were rectified and handled well. The result was quiet satisfactory and it worked well. 2. INTEGRATION TESTING Integration testing is a system technique for constructing the program structure while at the same time conducting tests to uncover errors associated

with interfacing. The objective is to take unit tested modules and build a program structure that has been dictated by design. Bottom-up integration is the traditional

strategy used to integrate the components of a software system into functioning whole. Bottom-up integration consists of unit test followed by testing of the entire system. A sub-system consists of several modules that communicated with other defined interface. The system was done the integration testing. All the modules were tested for their compatibility with other modules .They test was almost successful. All the modules coexisted very well, with almost no bugs. All the modules were encapsulated very well so as to not hamper the execution of other modules. 3. VALIDATION TESTING After validation testing, software is completely assembled as a package, interfacing errors that have been uncovered and corrected and the final series of software test; the validation test begins. Steps taken during software design and testing can greatly improve the probability of successful integration in the larger system. System testing is actually a series of different tests whose primary purpose is to fully exercise the compute based system. 4. RECOVERY TESTING It is a system that forces the software to fail in a variety of ways and verifies that the recovery is properly performed. 5. SECURITY TESTING It attempts to verify that protection mechanisms built into a system will in fact protect it from improper penetration. The systems security must of course be tested from in vulnerability form frontal attack.

6. STRESS TESTING Stress tools are designed to confront programs with abnormal situations. Stress testing executes a system in a manner that demands resources in abnormal quantity and volume.

7. BLACK BOX TESTING Black box testing is done to find out the following information as shown in below: 1. Incorrect or missing functions. 2. Interface errors. 3. Errors or database access. 4. Performance error. 5. Termination error. The mentioned testing is carried out successfully for this application according to the users requirement specification. 8. TEST DATA OUTPUT After preparing test data, the system under study is tested using the test data. While testing the system using test data, errors are again uncovered and corrected by using above testing and corrections are also noted for future use.

7. SOURCE CODE

Login Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Picture1_Click() cn.Open " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" Set rs = cn.Execute("Select * from Login where User='" + user.Text + "' and Pass='" + pass.Text + "'") If (Not rs.EOF) Then Unload Me Form1.Show Else MsgBox "Incorrect Username or Password" End If End Sub Main Private Sub Picture1_Click() Form2.Show End Sub Private Sub Picture10_Click() Form14.Show End Sub Private Sub Picture11_Click() End End Sub

Private Sub Picture2_Click()

Form4.Show End Sub Private Sub Picture3_Click() Form6.Show End Sub Private Sub Picture4_Click() Form5.Show End Sub Private Sub Picture5_Click() Form8.Show End Sub Private Sub Picture6_Click() Form10.Show End Sub Private Sub Picture7_Click() Form11.Show End Sub Private Sub Picture8_Click() Form12.Show End Sub Private Sub Picture9_Click() Form13.Show End Sub Product Private Sub Picture1_Click() On Error Resume Next pcode = Text1.Text pdesc = Text2.Text price = Val(Text3.Text)

disc = price * (Val(Text4.Text) / 100)

np = price - disc ff = Val(Text5.Text) npf = np + ff mup = Val(Text6.Text) sp = npf + (npf * (mup / 100)) Unload Me Form3.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show End Sub Supplier Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Picture1_Click() On Error Resume Next cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" rs.Open "select * from NewSupplier", cn, adOpenDynamic, adLockOptimistic rs.AddNew rs(0) = Text1.Text rs(1) = Text2.Text rs(2) = Text3.Text rs(3) = Text4.Text rs(4) = Text5.Text rs(5) = Text6.Text rs(6) = Text7.Text rs(7) = Text8.Text

rs(8) = Text9.Text

rs(9) = Text10.Text rs.Update MsgBox "RECORD SAVED" Unload Me Form1.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show End Sub Purchase Order Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Form_Load() cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" Set rs = cn.Execute("select * from NewSupplier") While (Not rs.EOF) Combo1.AddItem rs(1) rs.MoveNext Wend End Sub Private Sub Form_Unload(Cancel As Integer) cn.Close End Sub Private Sub Picture1_Click() On Error Resume Next pno = Text1.Text pdate = Text2.Text

pt = Text3.Text

reqdel = Text13.Text ref = Text5.Text rmd = Text6.Text delto = Text7.Text pname = Text8.Text pd = Text9.Text sup = Combo1.Text saddr = Text10.Text scity = Text11.Text smob = Text12.Text Form7.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show End Sub Private Sub Combo1_Click() rs.MoveFirst a = Combo1.Text While (Not rs.EOF) If a = rs(1) Then Text10.Text = rs(2) Text11.Text = rs(3) Text12.Text = rs(9) End If rs.MoveNext Wend End Sub Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim rs1 As New ADODB.Recordset

Dim rss As New ADODB.Recordset

Dim po As New ADODB.Recordset Dim i As Integer Dim a As String Dim n As Double Private Sub Combo1_Click() rss.MoveFirst a = Combo1.Text While (Not rss.EOF) If a = rss(1) Then Text1.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo10_Click() rss.MoveFirst a = Combo10.Text While (Not rss.EOF) If a = rss(1) Then Text10.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo11_Click() rss.MoveFirst a = Combo11.Text While (Not rss.EOF) If a = rss(1) Then Text11.Text = rss(8) End If

rss.MoveNext

Wend End Sub Private Sub Combo12_Click() rss.MoveFirst a = Combo12.Text While (Not rss.EOF) If a = rss(1) Then Text12.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo13_Click() rss.MoveFirst a = Combo13.Text While (Not rss.EOF) If a = rss(1) Then Text13.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo14_Click() rss.MoveFirst a = Combo14.Text While (Not rss.EOF) If a = rss(1) Then Text14.Text = rss(8) End If rss.MoveNext Wend

End Sub

Private Sub Combo15_Click() rss.MoveFirst a = Combo15.Text While (Not rss.EOF) If a = rss(1) Then Text15.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo2_Click() rss.MoveFirst a = Combo2.Text While (Not rss.EOF) If a = rss(1) Then Text2.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo3_Click() rss.MoveFirst a = Combo3.Text While (Not rss.EOF) If a = rss(1) Then Text3.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo4_Click()

rss.MoveFirst

a = Combo4.Text While (Not rss.EOF) If a = rss(1) Then Text4.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo5_Click() rss.MoveFirst a = Combo5.Text While (Not rss.EOF) If a = rss(1) Then Text5.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo6_Click() rss.MoveFirst a = Combo6.Text While (Not rss.EOF) If a = rss(1) Then Text6.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo7_Click() rss.MoveFirst a = Combo7.Text

While (Not rss.EOF)

If a = rss(1) Then Text7.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo8_Click() rss.MoveFirst a = Combo8.Text While (Not rss.EOF) If a = rss(1) Then Text8.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo9_Click() rss.MoveFirst a = Combo9.Text While (Not rss.EOF) If a = rss(1) Then Text9.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Form_Load() On Error Resume Next cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" Set rs = cn.Execute("select * from PurchaseOrder")

Set rss = cn.Execute("select * from NewProduct")

po.Open "select * from PurchaseOrder", cn, adOpenDynamic, adLockOptimistic test.Text = pno Set rs1 = cn.Execute("select * from NewProduct") While (Not rs1.EOF) Combo1.AddItem rs1(1) Combo2.AddItem rs1(1) Combo3.AddItem rs1(1) Combo4.AddItem rs1(1) Combo5.AddItem rs1(1) Combo6.AddItem rs1(1) Combo7.AddItem rs1(1) Combo8.AddItem rs1(1) Combo9.AddItem rs1(1) Combo10.AddItem rs1(1) Combo11.AddItem rs1(1) Combo12.AddItem rs1(1) Combo13.AddItem rs1(1) Combo14.AddItem rs1(1) Combo15.AddItem rs1(1) rs1.MoveNext Wend End Sub Private Sub Text10_Click() rss.MoveFirst a = Combo10.Text While (Not rss.EOF) If a = rss(1) Then Text10.Text = rss(8) End If rss.MoveNext Wend

End Sub

Private Sub Text16_LostFocus() Text31.Text = Val(Text1.Text) * Val(Text16.Text) 'Text31.SetFocus Combo2.SetFocus End Sub Private Sub Text17_LostFocus() Text32.Text = Val(Text2.Text) * Val(Text17.Text) 'Text32.SetFocus End Sub Private Sub Text18_LostFocus() Text33.Text = Val(Text3.Text) * Val(Text18.Text) 'Text33.SetFocus End Sub Private Sub Text19_LostFocus() Text34.Text = Val(Text4.Text) * Val(Text19.Text) 'Text34.SetFocus End Sub Private Sub Text20_LostFocus() Text35.Text = Val(Text5.Text) * Val(Text20.Text) 'Text35.SetFocus End Sub Private Sub Text21_LostFocus() Text36.Text = Val(Text6.Text) * Val(Text21.Text) 'Text36.SetFocus End Sub Private Sub Text22_LostFocus() Text37.Text = Val(Text7.Text) * Val(Text22.Text) 'Text37.SetFocus End Sub Private Sub Text23_LostFocus() Text38.Text = Val(Text8.Text) * Val(Text23.Text)

'Text38.SetFocus

End Sub Private Sub Text24_LostFocus() Text39.Text = Val(Text9.Text) * Val(Text24.Text) 'Text39.SetFocus End Sub Private Sub Text25_LostFocus() Text40.Text = Val(Text10.Text) * Val(Text25.Text) 'Text40.SetFocus End Sub Private Sub Text26_LostFocus() Text41.Text = Val(Text11.Text) * Val(Text26.Text) 'Text41.SetFocus End Sub Private Sub Text27_LostFocus() Text42.Text = Val(Text12.Text) * Val(Text27.Text) 'Text42.SetFocus End Sub Private Sub Text28_LostFocus() Text43.Text = Val(Text13.Text) * Val(Text28.Text) 'Text43.SetFocus End Sub Private Sub Text29_LostFocus() Text44.Text = Val(Text14.Text) * Val(Text29.Text) 'Text44.SetFocus End Sub Private Sub Text30_LostFocus() Text45.Text = Val(Text15.Text) * Val(Text30.Text) 'Text45.SetFocus End Sub Private Sub Text46_LostFocus() Text47.SetFocus

End Sub

Private Sub Text47_GotFocus() Text47.Text = Val(Text31.Text) + Val(Text32.Text) + Val(Text33.Text) + Val(Text34.Text) + Val(Text35.Text) + Val(Text36.Text) + Val(Text37.Text) + Val(Text38.Text) + Val(Text39.Text) + Val(Text40.Text) + Val(Text41.Text) + Val(Text42.Text) + Val(Text43.Text) + Val(Text44.Text) + Val(Text45.Text) + Val(Text46.Text) End Sub Private Sub Picture1_Click() Dim dd As Long On Error Resume Next po.AddNew po(0) = pno po(1) = pdate po(2) = pt po(3) = reqdel po(4) = ref po(5) = rmd po(6) = delto po(7) = pname po(8) = pd po(9) = sup po(10) = Combo1.Text po(11) = Combo2.Text po(12) = Combo3.Text po(13) = Combo4.Text po(14) = Combo5.Text po(15) = Combo6.Text po(16) = Combo7.Text po(17) = Combo8.Text po(18) = Combo9.Text po(19) = Combo10.Text

po(20) = Combo11.Text

po(21) = Combo12.Text po(22) = Combo13.Text po(23) = Combo14.Text po(24) = Combo15.Text po(25) = Text1.Text po(26) = Text2.Text po(27) = Text3.Text po(28) = Text4.Text po(29) = Text5.Text po(30) = Text6.Text po(31) = Text7.Text po(32) = Text8.Text po(33) = Text9.Text po(34) = Text10.Text po(35) = Text11.Text po(36) = Text12.Text po(37) = Text13.Text po(38) = Text14.Text po(39) = Text15.Text po(40) = Text16.Text po(41) = Text17.Text po(42) = Text18.Text po(43) = Text19.Text po(44) = Text20.Text po(45) = Text21.Text po(46) = Text22.Text po(47) = Text23.Text po(48) = Text24.Text po(49) = Text25.Text po(50) = Text26.Text po(51) = Text27.Text

po(52) = Text28.Text

po(53) = Text29.Text po(54) = Text30.Text po(55) = Text31.Text po(56) = Text32.Text po(57) = Text33.Text po(58) = Text34.Text po(59) = Text35.Text po(60) = Text36.Text po(61) = Text37.Text po(62) = Text38.Text po(63) = Text39.Text po(64) = Text40.Text po(65) = Text41.Text po(66) = Text42.Text po(67) = Text43.Text po(68) = Text44.Text po(69) = Text45.Text po(70) = Text46.Text po(71) = Text47.Text po(72) = saddr po(73) = scity po(74) = smob po.Update Set po = cn.Execute("Select * from PurchaseOrder where Pono='" + test.Text + "'") ddd = pno DataEnvironment1.Command1 (ddd) DataReport1.Show Unload Me Form6.Hide Form1.Show End Sub

Private Sub Picture2_Click()

Text1.Text = pno Text2.Text = pdate Text3.Text = pt Text13.Text = reqdel Text5.Text = ref Text6.Text = rmd Text7.Text = delto Text8.Text = pname Text9.Text = pd Combo1.Text = sup Text10.Text = saddr Text11.Text = scity Text12.Text = smob Unload Me Form6.Show End Sub Customer Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Picture1_Click() On Error Resume Next cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" rs.Open "select * from Customer", cn, adOpenDynamic, adLockOptimistic rs.AddNew rs(0) = Text1.Text rs(1) = Text2.Text rs(2) = Text3.Text rs(3) = Text4.Text

rs(4) = Text5.Text

rs(5) = Text6.Text rs(6) = Text7.Text rs(7) = Text8.Text rs(8) = Text9.Text rs(9) = Text10.Text rs.Update MsgBox "RECORD SAVED" Unload Me Form1.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show End Sub Quotation Order Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Combo1_Click() rs.MoveFirst a = Combo1.Text While (Not rs.EOF) If a = rs(1) Then Text2.Text = rs(2) Text3.Text = rs(3) Text4.Text = rs(4) Text5.Text = rs(7) Text6.Text = rs(9) End If

rs.MoveNext Wend End Sub Private Sub Form_Load() cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" Set rs = cn.Execute("select * from Customer") While (Not rs.EOF) Combo1.AddItem rs(1) rs.MoveNext Wend End Sub Private Sub Form_Unload(Cancel As Integer) cn.Close End Sub Private Sub Picture1_Click() qno = Text7.Text qdate = Text8.Text qval = Text9.Text paym = Text10.Text cus = Combo1.Text cusaddr = Text2.Text cuscity = Text3.Text cusstate = Text4.Text cusmail = Text5.Text cusmob = Text6.Text cusname = Text11.Text cusdate = Text12.Text Form9.Show End Sub Private Sub Picture2_Click()

Unload Me

Form1.Show End Sub Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim rs1 As New ADODB.Recordset Dim rss As New ADODB.Recordset Dim qo As New ADODB.Recordset Dim i As Integer Dim a As String Dim ddd As Long Private Sub Combo1_Click() rss.MoveFirst a = Combo1.Text While (Not rss.EOF) If a = rss(1) Then Text1.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo10_Click() rss.MoveFirst a = Combo10.Text While (Not rss.EOF) If a = rss(1) Then Text10.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo11_Click()

rss.MoveFirst

a = Combo11.Text While (Not rss.EOF) If a = rss(1) Then Text11.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo12_Click() rss.MoveFirst a = Combo12.Text While (Not rss.EOF) If a = rss(1) Then Text12.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo13_Click() rss.MoveFirst a = Combo13.Text While (Not rss.EOF) If a = rss(1) Then Text13.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo14_Click() rss.MoveFirst a = Combo14.Text

While (Not rss.EOF)

If a = rss(1) Then Text14.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo15_Click() rss.MoveFirst a = Combo15.Text While (Not rss.EOF) If a = rss(1) Then Text15.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo2_Click() rss.MoveFirst a = Combo2.Text While (Not rss.EOF) If a = rss(1) Then Text2.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo3_Click() rss.MoveFirst a = Combo3.Text While (Not rss.EOF) If a = rss(1) Then

Text3.Text = rss(8)

End If rss.MoveNext Wend End Sub Private Sub Combo4_Click() rss.MoveFirst a = Combo4.Text While (Not rss.EOF) If a = rss(1) Then Text4.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo5_Click() rss.MoveFirst a = Combo5.Text While (Not rss.EOF) If a = rss(1) Then Text5.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo6_Click() rss.MoveFirst a = Combo6.Text While (Not rss.EOF) If a = rss(1) Then Text6.Text = rss(8) End If

rss.MoveNext

Wend End Sub Private Sub Combo7_Click() rss.MoveFirst a = Combo7.Text While (Not rss.EOF) If a = rss(1) Then Text7.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo8_Click() rss.MoveFirst a = Combo8.Text While (Not rss.EOF) If a = rss(1) Then Text8.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Combo9_Click() rss.MoveFirst a = Combo9.Text While (Not rss.EOF) If a = rss(1) Then Text9.Text = rss(8) End If rss.MoveNext Wend

End Sub

Private Sub Form_Load() On Error Resume Next cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" Set rs = cn.Execute("select * from PurchaseOrder") Set rss = cn.Execute("select * from NewProduct") qo.Open "select * from QuotationOrder", cn, adOpenDynamic, adLockOptimistic Set rs1 = cn.Execute("select * from NewProduct") While (Not rs1.EOF) Combo1.AddItem rs1(1) Combo2.AddItem rs1(1) Combo3.AddItem rs1(1) Combo4.AddItem rs1(1) Combo5.AddItem rs1(1) Combo6.AddItem rs1(1) Combo7.AddItem rs1(1) Combo8.AddItem rs1(1) Combo9.AddItem rs1(1) Combo10.AddItem rs1(1) Combo11.AddItem rs1(1) Combo12.AddItem rs1(1) Combo13.AddItem rs1(1) Combo14.AddItem rs1(1) Combo15.AddItem rs1(1) rs1.MoveNext Wend End Sub Private Sub Text10_Click() rss.MoveFirst a = Combo10.Text While (Not rss.EOF)

If a = rss(1) Then

Text10.Text = rss(8) End If rss.MoveNext Wend End Sub Private Sub Text16_LostFocus() Text31.Text = Val(Text1.Text) * Val(Text16.Text) Combo2.SetFocus End Sub Private Sub Text17_LostFocus() Text32.Text = Val(Text2.Text) * Val(Text17.Text) End Sub Private Sub Text18_LostFocus() Text33.Text = Val(Text3.Text) * Val(Text18.Text) End Sub Private Sub Text19_LostFocus() Text34.Text = Val(Text4.Text) * Val(Text19.Text) End Sub Private Sub Text20_LostFocus() Text35.Text = Val(Text5.Text) * Val(Text20.Text) End Sub Private Sub Text21_LostFocus() Text36.Text = Val(Text6.Text) * Val(Text21.Text) 'Text36.SetFocus End Sub Private Sub Text22_LostFocus() Text37.Text = Val(Text7.Text) * Val(Text22.Text) End Sub Private Sub Text23_LostFocus() Text38.Text = Val(Text8.Text) * Val(Text23.Text) 'Text38.SetFocus

End Sub

Private Sub Text24_LostFocus() Text39.Text = Val(Text9.Text) * Val(Text24.Text) 'Text39.SetFocus End Sub Private Sub Text25_LostFocus() Text40.Text = Val(Text10.Text) * Val(Text25.Text) 'Text40.SetFocus End Sub Private Sub Text26_LostFocus() Text41.Text = Val(Text11.Text) * Val(Text26.Text) 'Text41.SetFocus End Sub Private Sub Text27_LostFocus() Text42.Text = Val(Text12.Text) * Val(Text27.Text) 'Text42.SetFocus End Sub Private Sub Text28_LostFocus() Text43.Text = Val(Text13.Text) * Val(Text28.Text) 'Text43.SetFocus End Sub Private Sub Text29_LostFocus() Text44.Text = Val(Text14.Text) * Val(Text29.Text) 'Text44.SetFocus End Sub Private Sub Text30_LostFocus() Text45.Text = Val(Text15.Text) * Val(Text30.Text) Text45.SetFocus End Sub Private Sub Text46_LostFocus() Text46.SetFocus End Sub

Private Sub Text47_GotFocus()

Text47.Text = Val(Text31.Text)

+ Val(Text32.Text) + Val(Text33.Text) +

Val(Text34.Text) + Val(Text35.Text) + Val(Text36.Text) + Val(Text37.Text) + Val(Text38.Text) + Val(Text39.Text) + Val(Text40.Text) + Val(Text41.Text) + Val(Text42.Text) + Val(Text43.Text) + Val(Text44.Text) + Val(Text45.Text) + Val(Text46.Text) End Sub Private Sub Picture1_Click() ddd = qno Set qo = cn.Execute("Select * from QuotationOrder where Qno='" + test.Text + "'") If (Not qo.EOF) Then DataEnvironment2.Command1 (ddd) DataReport2.Show Unload Me Form8.Hide Form1.Show End If End Sub Private Sub Picture2_Click() Text7.Text = qno Text8.Text = qdate Text9.Text = qval Text10.Text = paym Combo1.Text = cus Text2.Text = cusaddr Text3.Text = cuscity Text4.Text = cusstate Text5.Text = cusmail Text6.Text = cusmob Text11.Text = cusname Text12.Text = cusdate Unload Me

End Sub

Sales Order Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim so As New ADODB.Recordset Dim ddd As Long Private Sub Form_Load() cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" rs.Open "select * from QuotationOrder", cn, adOpenDynamic, adLockOptimistic so.Open "select * from SalesOrder", cn, adOpenDynamic, adLockOptimistic While (Not rs.EOF) Combo1.AddItem rs(0) rs.MoveNext Wend End Sub Private Sub Picture1_Click() On Error Resume Next so.AddNew ddd = Text1.Text rs.MoveFirst rs.Find "Qno=" & a If rs.EOF Then MsgBox "not fnd" Exit Sub Else so(0) = Text1.Text so(1) = Text2.Text so(2) = Text3.Text so(3) = Text4.Text so(4) = Text5.Text

so(5) = Combo1.Text

so.Update End If DataEnvironment3.Command1 (ddd) DataReport3.Show cn.Close Unload Me Form1.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show cn.Close End Sub

Delivery Order Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim dor As New ADODB.Recordset Dim a As Long Private Sub Combo1_Click() On Error Resume Next cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Ganipro_SCM\Ganipro_SCM\Database\ganiii.mdb;Persist Info=False" rs.Open "select * from SalesOrder", cn, adOpenDynamic, adLockOptimistic rs.MoveFirst a = Combo1.Text While (Not rs.EOF) If a = rs(0) Then Security

Text3.Text = rs(5)

End If rs.MoveNext Wend End Sub Private Sub Form_Load() cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" rs.Open "select * from SalesOrder", cn, adOpenDynamic, adLockOptimistic dor.Open "select * from DeliveryOrder", cn, adOpenDynamic, adLockOptimistic Set rs = cn.Execute("select * from SalesOrder") While (Not rs.EOF) Combo1.AddItem rs(0) rs.MoveNext Wend End Sub Private Sub Form_Unload(Cancel As Integer) On Error Resume Next cn.Close End Sub Private Sub Picture1_Click() On Error Resume Next Dim ddd As Long ddd = Combo1.Text dor.AddNew dor(0) = Combo1.Text dor(1) = Text2.Text dor(2) = Text3.Text dor.Update MsgBox "saved" DataEnvironment4.Command1 (ddd) DataReport4.Show

cn.Close

Unload Me Form1.Show End Sub Private Sub Picture2_Click() On Error Resume Next cn.Close Unload Me Form1.Show End Sub Report Private Sub Picture1_Click() DataReport5.Show End Sub Private Sub Picture2_Click() Unload Me Form1.Show End Sub Private Sub Picture3_Click() DataReport6.Show End Sub Private Sub Picture4_Click() DataReport8.Show End Sub Reprint Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim rs1 As New ADODB.Recordset

Dim rs2 As New ADODB.Recordset

Dim rs3 As New ADODB.Recordset Private Sub Form_Load() cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SCM v1.0\Database\SCM.mdb;Persist Security Info=False" rs.Open "select * from PurchaseOrder", cn, adOpenDynamic, adLockOptimistic rs1.Open "select * from QuotationOrder", cn, adOpenDynamic, adLockOptimistic rs2.Open "select * from SalesOrder", cn, adOpenDynamic, adLockOptimistic rs3.Open "select * from DeliveryOrder", cn, adOpenDynamic, adLockOptimistic End Sub Private Sub Picture1_Click() Unload Me Form1.Show End Sub Private Sub Picture2_Click() Dim dd As Long rs1.MoveFirst dd = Val(InputBox("Enter quotation order no")) rs1.Find "Qno=" & dd If Not rs1.EOF Then DataEnvironment8.Command1 (dd) DataReport7.Show Else MsgBox "Record Not Exist" End If End Sub Private Sub Picture3_Click() Dim dd As Long rs.MoveFirst dd = Val(InputBox("Enter purchase order no")) rs.Find "Pono=" & dd If Not rs.EOF Then

DataEnvironment6.Command1 (dd)

POR.Show Else MsgBox "Record Not Exist" End If End Sub Private Sub Picture4_Click() Dim dd As Long rs2.MoveFirst dd = Val(InputBox("Enter sales order no")) rs2.Find "Sono=" & dd If Not rs2.EOF Then DataEnvironment7.Command1 (dd) SOR.Show Else MsgBox "Record Not Exit" End If End Sub Private Sub Picture5_Click() rs2.MoveFirst dd = Val(InputBox("Enter delivery order no")) rs2.Find "Sono=" & dd If Not rs2.EOF Then DataEnvironment9.Command1 (dd) DataReport9.Show Else MsgBox "Record Not Exist" End If End Sub

9.

SCREEN SHOTS

PROGRESS

LOGIN

MAIN

PRODUCT

PRODUCT

SUPPLIER

PURCHASE ORDER

PURCHASE ORDER

CUSTOMER

QUOTATION ORDER

SALES ORDER

DELIVERY ORDER

REPORT

REPRINT

10. CONCLUSION The system provides detailed status of your POs and sales orders in relation to order fulfillment. Any businesses involved in the trading activities of buying and selling of goods will need this software to keep track of inventory status via input of Pos , quotations , sales orders , goods delivered, DOs & invoices. This easy to work and use project will greatly help your business to maintain proper records and provide real-time information for management decision-making. All the requirements specified during the analysis and design phase are fully met, thus resulting in the formation of good software. The interface provided is very user friendly and flexible for all times. FUTURE ENHANCEMENT

We can update this system as online application The main advantage of online application is that, a person can buy and sell goods anytime from anywhere. Customers can view the progress of their quotation online. By the future technology customer can view the sales details and progress of the quotations on their mobile phones Future technology doesnt require man to man connection.

10. BIBLIOGRAPHY
Brian Siler and Jeff Spotts, (2002) USING VISUAL BASIC 6, Prentice-Hall India Private Limited.

S-ar putea să vă placă și