Вы находитесь на странице: 1из 110

Product Management System

SYNOPSIS
The Project PRODUCT MANAGEMENT SYSTEM has been developed for AXLERA PRODUCTS. The PMS is helpful for making the fully computerized in all activities. Proposed system has been created using Visual Basic .NET and giving a main support for data storage by Microsoft SQL Server 2005. This system consist of two parts they are purchase and sales and sum other operations are sales and purchase ordering and sales returning. In this system the customer can select quality, quantity, model and colour of the water tank. Some models have guarantee and others have warrantee. The guarantee and warrantee duration maximum ten year. So it has sales return. This product management system collects the raw materials from other companies. Each material purchased from each company by cash. The product management system has no purchase return. In this system transportation is available for retail customers. The purchase process is depends upon the material stock and sales process and sales process is depends upon the sales order. The company details will high security. The proposed system is developed on vb.net (front end) environment and SQL server 2005 (back end) is used for storage and manipulation of data. The software is error handling and report generation and customization options for the user to operate the software efficiently and accurately. Access to both the software and the database is restricted by providing adequate security measures. Since the automation is preferred to manual labor, automating of an existing system will certainly lead to better integrated working environment, efficient handling of data and meaningful interaction with the information. This software generates reports both monthly and daily .It helps us to reduce the lost for the day to day operation and it save time.

NCIT, Chalakudy

Product Management System

ORGANIZATION PROFILE

AXLERA water tank company is the most popular company in Thrissur. The company is created on 1985. The company makes tanks with several storage capacities. The company purchase row materials from other company. The row materials such as white llpde , master packs blue , black and white. Using these materials make different types of tanks. Each type of tank has a name and size. The size means the volume of the tank and the name such as varsha, ocean, master, water tech .etc. The company took the order form outside whole sale customers and makes tanks as per the order. The sales of tanks will on basis of order. Daily 40 to 48 tanks are made by the company. The company offers transportation of the tank to customers. Stock will be updated after the full production. So the customer can be select appropriate tank from the water tank making company. There is a systematic procedure for making the tank. There are many types of quality measurement techniques to check the quality. After the completion of each section they ensure the quality of the product. In the existing system all the process such as purchase and sales ordering, purchasing, sales, reporting etc are done manually. So the existing system needs lot of paper works .In this system each process is done each staff. So it needs more staffs. In the existing system sales is depends on sales order similarly purchasing is depends on purchase order. According to the quality of the tank company provides guarantee or warrantee. Both guarantee and warrantee period is up to 10 years. During the guarantee period any damage causes company replaces the tank. Maintain the damaged tank if it contains the warrantee.

NCIT, Chalakudy

Product Management System

SYSTEM ANALYSIS
STUDY OF EXISTING SYSTEM
In the existing system all the process such as purchase and sales ordering, purchasing, sales, reporting etc are done manually. So the existing system needs lot of paper works .In this system each process is done each staff. So it needs more staffs. In the existing system sales is depends on sales order similarly purchasing is depends on purchase order. It is a manual system so the system does not give a good service of the customers and there is no proper report for the transactions. In the existing system the stored data have no security. Any staff can edit the stored data. So it does not have accurate reporting. Information is meaningful only if it gives all details about particular thing at less time. There may be chances of occurring errors at the time of manual preparation. The staff cannot obtain all the information in time.

DRAWBACKS OF THE EXISTING SYSTEM More man-power required. Data verification and validation was manual. Searching of information was time-consuming. Untimely information. Lack of data security. Use and maintenance of paper files, registers and other written matter was very difficult. Calculations were sometimes found incorrect, that caused accumulating problems. Reports could not be prepared in time.

NCIT, Chalakudy

Product Management System

STUDY OF PROPOSED SYSTEM


The proposed system is fully computerized. It do not use paper for recording .All the working or processing are done with the aid of computers .So the system have faster processing and improved performance .The proposed have accurate data and report. In this system all process such as purchase and sales ordering, purchasing, sales, reporting etc can done by a staff. So decrement number of staff. Only permitting staff can edit, insert, update the items of the record. So it has high security. So the proposed system give the good service to the customers. All process details are stored in a database for future reference and these database is stored in the hard drive of the computer .The proposed system is most accurate than existing system. The proposed system is more reliable, faster and more user friendly. By implementing this system, manual works will be automated. This enables the staff to do his work properly and without any errors. Selections are done through the mouse click and which reduces the typographical errors. This also enables to enter the correct data which in turn increases understandability as well as the efficiency of the entire system. User interface design of the proposed system creates an effective communication medium between the human and the system. Simple menu system helps them to do their job easily. ADVANTAGES OF THE PROPOSED SYSTEM Chances of errors are much low. It is user friendly. Faster inserting and updating records are possible. Reduces paper works. Process details are stored accurately. Less time consuming. Easy to use and reduce manual work. Highly secure.

NCIT, Chalakudy

Product Management System

SYSTEM SPECIFICATIONS

Hardware Specification Processor RAM Hard Disk Monitor Key Board Mouse Pentium IV 1 GB 80 GB or Higher 15 Color Standard 3-Button

Software Specification Front End Back End Platform Microsoft Visual Basic .Net 2008 Microsoft SQL Server 2005 Microsoft WINDOWS XP or higher

NCIT, Chalakudy

Product Management System

SOFTWARE FEATURES
Overview of Windows XP Windows XP is nothing but an entire line of operating systems, which has been initiated and developed, by Microsoft and it can be used on several computer systems that are general-purpose, including desktops at home and business, media centers and notebook computers. Windows XP was codenamed "Whistler", after Whistler British Columbia, and the letters "XP" stand for experience. The two words were combined together to form "Windows XP. Windows XP is the first operating system which is consumer based produced by Microsoft, which is to be built on the Windows NT kernel and architecture. Microsoft Windows XP is the most commonly used and supported operating system today The minimum requirements specified by Microsoft for Windows XP are 233MHz processor, 1.5GB of available hard drive space, an SVGA-capable video card and 64MB of RAM. Although it is strongly recommended by UITS that any system running XP should have a CPU which is faster than 400MHz and at least 256MB of RAM. Microsoft created Windows XP in order to update the user interface, add new features, unify the code base between the separate families of Windows, which were never associated with Windows before. Windows XP is famous all over for its better stability and higher efficiency when compared to the 9x versions of Microsoft Windows. Microsoft releases the Windows XP operating system , with version for the home computers and business desktops . The XPversion of Microsoft Office also is unveiled. After blaming digital music pirates for lost revenue , the Recording Industry Association of America (RIAA) files lawsuits against purveyors of MP3 technology-most notably _Napster , an online services that enables user to share MP3 format files freely across the Internet . The suits effectively shut down Napster , but do not stop individuals and other file sharing services from exchanging music , text and other files. Apple introduces OS X , a new operating system for Macintosh computers that is based on BSD(Berkley Software distribution) UNIX with a beautiful graphical interface success. Several versions of recordable DVD discs and drives hit the market. Users instantly adopt the devices to store digitalized home movies, data, and
NCIT, Chalakudy 6

Product Management System

software, even though movies on DVD, most of the users find the large capacity discs a wonderful storage and backup medium. After several years of explosive growth, the dot-com revolution goes in to sudden reverse. As thousands of web based companies go out of business(giving rise to the phrase dot bomb) , tens of thousands of thousands of workers lose their jobs , shareholders suffer billions of dollars in losses ,and the worlds financial markets learn a valuable lesson. Apple introduces the iPod, the premier music player with a 5 GB internal hard disk that will store 1000 CD-quality songs. Technology takes an important new role in society after the United States is attacked by terrorists on September 11 2001. Government agencies , the military, and airlines place a new emphasis on security , recruiting new high-tech methods to monitor travelers and insect people and baggage for dangerous items . Almost immediately , billions of dollars are invested in the

development of new bomb detection technologies and the creation of huge multinational database that can allows airlines to tracks the movements of passengers through the flight system .

The key features of Windows XP include:

Remote Desktop: It allows you to remotely log into another computer running XP and access its applications, files, printers and devices.

Remote Assistance: Here, you can invite someone to connect to your computer and give help over the network or even control your computer remotely.

Fast user switching: It allows a user to save the current state and open applications of their desktop and allow another user to log on without losing that information.

NCIT, Chalakudy

Product Management System

Overview of Microsoft Visual Studio.NET Language Enhancements Microsoft Visual Basic, Microsoft C++, and Microsoft JScript have all been updated to meet your development needs. Additionally, a new language, Microsoft C#, has been introduced. These languages leverage the functionality of the .NET Framework, which provides access to key technologies that simplify the development of ASP Web applications and XML Web services. Windows Forms Windows Forms is the new platform for Microsoft Windows application development, based on the .NET Framework. This framework provides a clear, object-oriented, extensible set of classes that enables you to develop rich Windows applications. Additionally, Windows Forms can act as the local user interface in a multi-tier distributed solution. XML Web Services Web XML services are applications that can receive requests and data using XML over HTTP. XML Web services are not tied to a particular component technology or object-calling convention and can therefore be accessed by any language, component model, or operating system. In Visual Studio .NET, you can quickly create and include XML Web services using Visual Basic, Visual C#, JScript, Managed Extensions for C++, or ATL Server. For more information, see programming the Web with XML Web Services. XML Support Extensible Markup Language (XML) provides a method for describing structured data. XML is a subset of SGML that is optimized for delivery over the Web. The World Wide Web Consortium (W3C) defines XML standards so that structured data will be uniform and independent of applications. Visual Studio .NET fully supports XML, providing the XML Designer to make it easier to edit XML and create XML schemas.

NCIT, Chalakudy

Product Management System

The .NET Framework The .NET Framework is a multi-language environment for building, deploying, and running XML Web services and applications. It consists of two main parts: Common Language Runtime: Despite its name, the runtime actually has a role in both a component's runtime and development time experiences. While the component is running, the runtime is responsible for managing memory allocation, starting up and stopping threads and processes, and enforcing security policy, as well as satisfying any dependencies that the component might have on other components. At development time, the runtime's role changes slightly; because it automates so much (for example, memory management); the runtime makes the developer's experience very simple, especially when compared to COM as it is today. In particular, features such as reflection dramatically reduce the amount of code a developer must write in order to turn business logic into a reusable component. Unified programming classes: The framework provides developers with a unified, object-oriented, hierarchical, and extensible set of class libraries (APIs). Currently, C++ developers use the Microsoft Foundation Classes and Java developers use the Windows Foundation Classes. The framework unifies these disparate models and gives Visual Basic and JScript programmers access to class libraries as well. By creating a common set of APIs across all programming languages, the common language runtime enables cross-language inheritance, error handling, and debugging. All programming languages, from JScript to C++, have similar access to the framework and developers are free to choose the language that they want to use.

NCIT, Chalakudy

Product Management System

Overview of Microsoft SQL Server 2005 SQL SERVER 2005, released in October 2005,is the successor to SQL SERVER 2000.it included native support for managing XML data, in addition to relational data for this purpose, it defined an xml data type that could be used either as a data type in database columns or literals in quires. XML data being stored is verified against the schema. XML is with XSD schemas; XML data being stored is verified against the schema. XML converted to an internal binary data type before being stored in the database. Specialized indexing methods were made available for XML data. XML data is queried using XQuery; SQL Server 2005 added some extensions to the TSQL language to allow embedding XQuery queries in t-SQL. In addition, it also defines a new extension to XQuery, called XML DML that allows query-based modifications to XML data. SQL Server 2005 also allows a database server to be exposed over web services using TDS packets encapsulated within SOAP requests. When the data is accessed over web services, results are returned as XML. For relational data, T-SQL has been augmented with error handling features and support for recursive queries. SQL Server 2005 has also been enhanced with new indexing algorithms and better error recovery systems. Data pages are check summed for better error resiliency, and optimistic concurrency support has been made granular and the query processor handles concurrent execution of queries in a more efficient way. Partitions on tables and indexes are supported natively, so scaling out a database on to a cluster is easier. SQL CLR was introduced with SQL Server 2005 to let it integrate with the .NET framework. SQL Server 2005 introduced MARS a method of allowing usage of database connections for multiple purposes. Access multi-featured DBMS that are being used by both beginners and those who have previous DBMS experience. This sections describes some key features to access SQL Server is a painful multi-user DBMS developed by Server Corporation. It can be used to store and manipulate large amount of information and automate repetitive task and such as maintaining an inventory and generating invoices. Data in Access is organized in the form of tables just as SQL. Within a
NCIT, Chalakudy 10

Product Management System

table records are arranged according to common reference value, known as primary key or the key field. The value in the key field is different for every record and thus help in uniquely identifying records. Since value in the table can be replicated across other table there should be a way to maintain a relation be taken two tables. This relation is implemented through the concept of foreign key. A foreign key in a table is field, which links that table. Access also maintains index file for tables an index is internal tables of values that access maintain to store the order of this records. Index objects provided efficient access to date. Windows based application: - Access is a windows based applications and there for has an interface similar to Windows NT. You can cut copy and paste from any. SQL Server Management Studio SQL Server management studio is a GUI tool included with SQL Server 2005 and later for configuring, managing, and administering all components with in Microsoft SQL Server. The tool includes both script editors and graphical tools that work with objects and features of the server. SQL Server Management Studio replaces Enterprise Manager as the primary management interface Microsoft SQL Server since SQL Server 2005. A version of SQL Server Management Studio is also available for SQL Server Express Edition, for which it is none as SQL Server Management Studio Express (SSMSC). A central feature of SQL Server Management Studio is the object explorer, which allows the user to browse, select, and act upon any of the object within the server. It can be used to visually observe and analyze query plants and optimize the database performance, among others SQL Server Management Studio can also be used to create a new database, alter any existing database schema by adding or modifying table and indexes, or analyze performance it include the query windows which provide a GUI based interface to write and execute queries.

NCIT, Chalakudy

11

Product Management System

COST ESTIMATION AND DEVELOPMENT PROCESS


FEASIBILITY STUDY The most difficult part of feasibility analysis is the identification of the candidate systems and the evaluation of their performance. Feasibility study is a test of a system proposal according to its workability, impact on the organization, ability to meet the user needs and effective use of resources. Three key considerations are involved in the feasibility analysis: Economic Feasibility. Technical Feasibility. Behavioral Feasibility.

Economic Feasibility In cost-benefit analysis, various benefits and costs involved are considered, calculated and compared. If the benefits are more than cost, the project is considered economically feasible. My project developing has less cost but it more effective for the bank loan management system. Economic feasibility is the most important and frequently used method for evaluating the effectiveness of the proposed system .It is very essential because the main goal of the proposed system is to have economically better result along with increased efficiency of the cost versus the benefit and savings are expected from the proposed system. Technical Feasibility Here the system analyst evaluates the technical merits of the system giving emphasis on the performance, reliability, maintainability and productivity. Before developing the proposed system, the recourse availability of the organization was studied. The organization has immense computer facilities equipped with sophisticated machines and software. Hence these project technically feasible. Behavioral Feasibility An estimate should be made to determine how much effort and care will go into the developing of the system including the training to be given to the user usually, People are radicand to change that come in their progression. Hence an
NCIT, Chalakudy 12

Product Management System

additional effort is to be made to train and educate the users on the new way of the system. Feasibility study is a test of a system proposal according to its workability, impact on the organization, ability to meet the user needs and effective use of resources. Cost Benefit Analysis When money is spent on some equipment, system or facilities, it must bring some benefits. Thus, every expenditure must have some benefit and a cost benefit analysis takes into all the factors that contributes into the benefit, quantifies this benefits and adds up to arrive at a conclusion. The benefit of a project are of four types : Cost savings Cost avoidance Improved service level Improved information

Cost & Benefit Categories Hard Ware Cost Personal Cost Facility Cost Operating Cost Supply Cost

NCIT, Chalakudy

13

Product Management System

SYSTEM DESIGN & DEVELOPMENT PROCESS PROJECT DESCRIPTION

This Product Management System has been developed for Axlera Products .In this existing system all process are done manually. Now a day with the development in the field of computers most of the jobs in all fields have become very easy and effective. The object of the project is to automate the functioning of Axlera Products .The major activities such as storing and retrieving of information about the stock that is included in the system. The system also works much effectively and quickly. At present whole process are done manually. This means that it is difficult to maintain proper data, tasks are more time consuming and there is chances of data lose. This project is very useful for both the owner and the management in the purpose to computerize a product management system. On the whole system will increase the data storage and retrieval efficiency and it is also very easy to use. The existing system the stored data has no security but the proposed system has more security This project offers very smooth, efficient and fast running system. The various modules of this system span the various transactions providing instant information at the fingertips whenever required. The system has been tested with sufficient data and it is found to be error free. The main advantage about the system is it is simple and highly interactive. This project can decrease the number of staff, cost and time consuming and increase efficiency.

NCIT, Chalakudy

14

Product Management System

INHERENT VIEW OF MODULES


The system needs the following information for processing. Company Registration Customer Registration Item Registration Vehicle Registration Material Registration Staff Registration Purchase order Purchase Sales order Sales Sales return Warrantee Report

Company Registration In Company Registration, we store the details of company which contains a table that is used to store company id, name, address, phone number and email address.

Customer Registration In Customer Registration, we store the details of customer which contains a table that is used to store customer id, name, and address and phone number.

Item Registration In Item Registration, we store the details of item which contains a table that is used to store item id, name, quantity, quality, color, rate and guarantee or warrantee.

NCIT, Chalakudy

15

Product Management System

Vehicle Registration In Vehicle Registration, we store the details of vehicle which contains a table that is used to store vehicle number and name.

Material Registration In Material Registration, we store the details of material which contains a table that is used to store material id, name and reorder level.

Staff Registration In Staff Registration, we store the details of staff which contains a table that is used to store staff id, name, type, licence number, address, and phone number.

Purchase Order It gives an order to other companies for purchasing materials. Each purchase order consists of separate id number.

Purchase It keeps the details of purchased material. There are more than one purchase in one day. It also depends upon purchase order.

Sales Order It keeps the details of the order from the customers. One customer more than one item ordered in the same sales order.

Sales It keeps the details of sales items. There is more than one item sale in the one sale. It also depends upon sales order.
NCIT, Chalakudy 16

Product Management System

Sales Return It keeps the details of returned items. The returned item may be guarantee or warrantee.

Warrantee It keeps the details of warrantee bound items.

Report The report module contains all the report of the item, company, customer purchase order, purchase, sales order, sales etc. This contains the monthly and daily details of the registrations and transactions of the product management system. The report is available in two ways that are in order of date and its identification number.

NCIT, Chalakudy

17

Product Management System

DATA FLOW DIAGRAM


A data flow diagram (DFD) is a network that describes the flow of data and the processes that change or transform data throughout a system. Like other system, flow charts data flow diagrams can be expanded into successively lair level details. This process is called decomposition. And it can be continued until modules are arrived into that extend of clarification that the origin and use of every data elements in the system is quite evident. A DFD is also known as bubble chart. It has the purpose of clarify system requirements. A DFD consist of a series of bubble joined by lines. In DFD there are four symbols generally used to represent data flow. The square represents a source or destination of system data.

The circle or bubble represents a process that transforms incoming data flow in to outgoing dataflow.

An open

rectangle is a data store, data at rest or a

temporary

repository of data.

An arrow is representing the data flow between modules or data stores or module and data stores.

NCIT, Chalakudy

18

Product Management System

A DFD describe what dataflow is rather than, how they are processed. So it does not depend on hardware, software, and data structure of file organization. A DFD shows what major transformations must occur in input are correctly transformed into corresponding outputs.DFD are excellent mechanisms for communicating with requirement analysis. They are also widely used for representation of external and top level internal design specifications. Rules for Constructing Data Flow diagram Process should be named and numbered for easy references. Each name should be representative of the process. The direction of the flow is from top to bottom and from left to right. That information flow should be from source to destination. Numbering is given when a process is explored into lower level details. The name of the data stores, sources and destinations are written in capital letters. Process and data flow names must have the first letter of each word capitalized. The Data Flow Diagram is particularly designed to aid communication. If it contains dozens of process and data stores it gets too unwidely.The rule of the thumb is to be explode the DFD into a functional level. Beyond that, it is the best to take each function separately and expand it to show the explosion in a single process. If a user wants to know what happens within a given process, then the detailed explosion of that process may be shown. The data flow of container tracking system has been represented as a hierarchical DFD. Context level DFD was drawn first. Then the processes where decomposed into several elementary levels and were represented in the order of importance

NCIT, Chalakudy

19

Product Management System

CONTEXT LEVEL

NCIT, Chalakudy

20

Product Management System

FIRST LEVEL

NCIT, Chalakudy

21

Product Management System

DESIGN PROCESS
The most creative and challenging phase of System development lifecycle is system design. The term design describes a final system and the process by which it is developed. The first step is to determine how the output is to be produced and in what format. Second, input data and master files have to be designed to meet requirements of proposed output. The system design requires the analyst to decide on the format of output of the system will produce, define data storage method, plan how to collect & input data and define necessary programs. Database was designed using RDBMS concept there by enabling the sharing of data and was normalized to avoid the redundancy. Designs a multi process that focuses on the structure software applications. Procedural details and interface between modules. The design process translates the requirements into the representation of software that can be assessed for quality before coding begins. The design phase is transition from a user oriented document to the programmers or database personal. The main purposes of the design phase in to plan a selection for the problem specified by the required document. The goal of the design process is to procedure a representation of a system; which can be used later to build that system. The design of a system is essentially a blue print or a plan for the solution for the system. Once software requirements have been analyzed and specified, software design is the first of the three technical activities Design, Code, Test that required to build and verify software. Each activity transforms information in a manner that ultimately results in validation of computer software. The importance of Software Design can be started with a single word quality. Design is the place where quality fostered in software Development. Design provides us with the representation of the software that can be accessed for quality. Design is the only way that we can accurately translate a customers requirements into a finished software product or system. Without Design, risk of building an unstable system exists one that will fail when small changes are made one that may be difficult to test.

NCIT, Chalakudy

22

Product Management System

Design is a creative process; a good design is the key to effective system. The term DESIGN is defined as The process of applying various techniques and principles for the purpose of defining a process or a system in sufficient details to permit its physical realization. Various design features are followed to develop the system. The design specification describes the features of the system ,the components or the elements of the system and their appearance to end users. In system design high end decisions are taken regarding the basic system architecture, platforms and tools to be used .The system design transforms a logical representation of what a given system is required to be into the physical specification. Database Design Database was designed using RDBMS concept there by enabling the sharing of data and was normalized to avoid the redundancy. A group of tables with related data in them is called Database. The most creative and challenging phase of system development life cycle is system design. The term design describes a final system and the process by which it is developed. A DBMS is a software system that manages the database of enterprise and provides facilities to the user to the database with practical case. In relational database approach: Data is organized in logical mathematics, in a tabulating structure. The data field becomes a column in a table under relational model and each record becomes a row in a table. Relational between various tables are designed using mathematical functions such as JOIN and UNION low maintenance cost. The goal of database design is to ensure that the data is represented in such a way that there is no redundancy and no extraneous data is generated, thus generate relationship in as high an order as possible. Having identified all the data on the system, it is necessary to all databases. This model is independent of the physical representation of the data. Once the conceptual model is designed, it can be mapped to the DBMS/RDBMS that is actually being used. Two of the widely approaches are :

NCIT, Chalakudy

23

Product Management System

Data as well as security come under the central control of RDBMS .In RDBMS user requests to insert data in a table or to update must be routed through RDBMS engine only. Direct each for data cannot be made to the tables themselves. Hence there is a single point of control when it comes to data manipulation. This given rise to excellent security. Normalization Normalization is the process of analyzing the given relational schema based on their functional dependencies and primary keys to achieve the desirable properties of Minimizing the redundancy Minimizing the insertion, deletion and updating anomalies.

First normal form states that the domains of attributes include only atomic values. Second normal form is based on the concept of full functional dependencies. X->Y is a fully functional dependency if the removal of any attributes. A form X means that the dependencies hold anymore. A relation R is the 2NF if every non prime attributes A in R is functionally depend on the primary key of R. Third normal form defines relation R is said to be 3NF if all its non key attributes are transitively dependent on primary key. A relational schema R is in 3NF it must satisfied 2NF. Characteristics of DBMS: Relational database model eliminated all parent child relationship and instead represent all data in database as row/column tables of value. A relation is similar to a table with row/column data values. Several row placed on below the other create table. Each table is independent entity and there is no physical relationship between tables

NCIT, Chalakudy

24

Product Management System

Table Design:1. LOGIN


FIELD NAME USERID PASSWORD USERTYPE DATA TYPE VAR CHAR VARCHAR INT LENGTH 25 25 4 CONSTRAINTS PRIMARY KEY

2. COMPANY
FIELD NAME CID CNAME CADD CPH CEMAIL DATA TYPE INT VARCHAR VARCHAR BIGINT VARCHAR LENGTH 4 50 50 8 50 CONSTRAINTS PRIMARY KEY

3. CUSTOMER
FIELD NAME CUID CUNAME CUADD CUPH DATA TYPE INT VARCHAR VARCHAR BIGINT LENGTH 4 50 50 8 CONSTRAINTS PRIMARY KEY

NCIT, Chalakudy

25

Product Management System

4. ITEM
FIELD NAME IID INAME QTY QLY COLOR RATE GW DATA TYPE INT VARCHAR INT INT VARCHAR INT VARCHAR LENGTH 4 50 4 4 50 4 50 CONSTRAINTS PRIMARY KEY

5. VEHICLE
FIELD NAME VNO VNAME DATA TYPE VARCHAR VARCHAR LENGTH 50 50 CONSTRAINTS PRIMARY KEY

6. MATERIAL
FIELD NAME MID MNAME RLEVEL QTY DATA TYPE INT VARCHAR INT INT LENGTH 4 50 4 4 CONSTRAINTS PRIMARY KEY

NCIT, Chalakudy

26

Product Management System

7. STAFF
FIELD NAME SID SNAME STYPE LCNO SADD SPH DATA TYPE INT VARCHAR VARCHAR VARCHAR VARCHAR BIGINT LENGTH 4 50 50 50 50 8 CONSTRAINTS PRIMARY KEY

8. PURCHASE ORDER
FIELD NAME POID PODATE CID MID MQTY MRATE ADVANCE EXDATE DATA TYPE INT INT INT INT INT INT INT DATETIME LENGTH 4 4 4 4 4 4 4 8 FOREIGN KEY FOREIGN KEY CONSTRAINTS PRIMARY KEY

9. PURCHASE
FIELD NAME PID POID PDATE DATA TYPE INT INT VARCHAR LENGTH 4 4 50 CONSTRAINTS PRIMARY KEY FOREIGN KEY

NCIT, Chalakudy

27

Product Management System

10. SALES ORDER MASTER


FIELD NAME SOID SODATE CUID EXDATE STATUS DATA TYPE INT VARCHAR INT DATETIME BIT LENGTH 4 50 4 8 1 FOREIGN KEY CONSTRAINTS PRIMARY KEY

11. SALES ORDER DETAIL


FIELD NAME SOID IID QTY DATA TYPE INT INT INT LENGTH 4 4 4 CONSTRAINTS PRIMARY KEY FOREIGN KEY

12. SALES MASTER


FIELD NAME SID SOID SDATE VNO PD NET DIS TAX RF DATA TYPE INT INT VARCHAR VARCHAR DATETIME FLOAT FLOAT FLOAT INT LENGTH 4 4 50 50 8 8 8 8 4 CONSTRAINTS PRIMARY KEY FOREIGN KEY

NCIT, Chalakudy

28

Product Management System

13. SALES DETAIL


FIELD NAME SID IID QTY AMOUNT DATA TYPE INT INT INT INT LENGTH 4 4 4 4 CONSTRAINTS PRIMARY KEY FOREIGN KEY

14. SALES RETURN


FIELD NAME SRID SRDATE SID SDATE IID REASON DATA TYPE INT VARCHAR INT VARCHAR INT VARCHAR LENGTH 4 50 4 50 4 50 FOREIGN KEY FOREIGN KEY FOREIGN KEY CONSTRAINTS PRIMARY KEY

15. GUARANTEE
FIELD NAME GID IID DATA TYPE INT INT LENGTH 4 4 CONSTRAINTS FOREIGN KEY

NCIT, Chalakudy

29

Product Management System

16. WARRANTEE
FIELD NAME WDATE IID SRID TC REMARKS DATA TYPE VARCHAR INT INT INT VARCHAR LENGTH 50 4 4 4 50 CONSTRAINTS PRIMARY KEY FOREIGN KEY FOREIGN KEY

17. PRODUCTION

FIELD NAME PID PDATE IID QTY

DATA TYPE INT VARCHAR INT INT

LENGTH 4 50 4 4

CONSTRAINTS PRIMARY KEY

FOREIGN KEY

18. STOCK
FIELD NAME IID QTY DATA TYPE INT INT LENGTH 4 4 CONSTRAINTS FOREIGN KEY

NCIT, Chalakudy

30

Product Management System

INPUT DESIGN Inaccurate input data are the most common case of errors in the data processing. Errors entered by the data entry operation can be controlled by the input design. Input design is the process of converting user originated reports in to computer based format. Input data are collected and organised into groups of the similar data. Once identified, appropriate input media are selected for processing. Forms design follows analysing forms, evaluating present documents and creating new or improved forms. The detailed analysis occurs only after the problem definition stage and the beginning of the designing the coordinate system. Since the purpose of the form is to communicate effectively through forms design. Appropriate input screens are designed for each of the operations. They are designed so that the data entry reporter finds as easy to enter the appropriate data. The various forms included in my project are:-

Registration Registration module registers company, customers, item, vehicle, staff and material. The registration allows us to access the registered items in the future part of the project. We can add and update the details through the module.

Company Registration In Company Registration, we store the details of company which contains a table that is used to store company id, name, address, phone number and email address.

Customer Registration In Customer Registration, we store the details of customer which contains a table that is used to store customer id, name, and address and phone number.

NCIT, Chalakudy

31

Product Management System

Item Registration In Item Registration, we store the details of item which contains a table that is used to store item id, name, quantity, quality, colour, rate and guarantee or warrantee.

Vehicle Registration In Vehicle Registration, we store the details of vehicle which contains a table that is used to store vehicle number and name.

Material Registration In Material Registration, we store the details of material which contains a table that is used to store material id, name and reorder level.

Staff Registration In Staff Registration, we store the details of staff which contains a table that is used to store staff id, name, type, license number, address, and phone number. Transactions In the transaction module, there are sub modules line purchase order, purchase, sales order, sales, sales return

Purchase Order It gives an order to other companies for purchasing materials. Each purchase order consists of separate id number.

Purchase It keeps the details of purchased material. There are more than one purchase in one day. It also depends upon purchase order.
NCIT, Chalakudy 32

Product Management System

Sales Order It keeps the details of the order from the customers. One customer more than one item ordered in the same sales order.

Sales It keeps the details of sales items. There is more than one item sale in the one sale. It also depends upon sales order.

Sales Return It keeps the details of returned items. The returned item may be guarantee or warrantee.

Warrantee It keeps the details of warrantee bound items.

NCIT, Chalakudy

33

Product Management System

OUTPUT DESIGN Efficient and transport output design improves the system relationship with the user and help him to understand faster. A complicated output design contributes nothing to the system but leave the user confused. For a successful system it is a must that it maintains a clear output design. The users of the output its purpose and sequence of details to be printed are all considered. The output form is system is the justification for its existence. If the outputs are inadequate in any way the system itself is inadequate. The basic requirements of output are that is should be accurate timely and appropriate in terms of content medium and layout for its intended purpose. Hence, it is necessary to designing output so that the objectives of system are met in the best possible manner. The outputs are in the form of reports. Computer output is most important and direct source of information to the user. Efficient, intelligent output design should improve the systems relationship with the user and help in decision making. A major form of output is hand copy from the printer. The output devises to consider depend on the factors. Such as compatibility of the device with the system, response time requirements, expected print quality and number of copies needed. Output design is a process that involves designing necessary output in the form of reports that should be given to the users according to the requirements. While designing the output, the following steps are to be considered. Report The report module contain all the reports of stock of item and material, sales order, sales, purchase order, purchase which is produced by the system. This contains the monthly and daily details of the transactions of the product management system. We can take the daily report based on a particular date. Monthly reports are taken by selecting two days. There is also an option to take reports based on a particular id. The entire details can also be taken as report.
NCIT, Chalakudy 34

Determine what information to be presented to the user. Arrange the presentation of information in an acceptable format. Decide how to distribute the output o the intended recipients.

Product Management System

Purchase Order Report This report shows the details of purchase order. We can see report of all, particular date and date between details of purchase order report. Purchase Report This report shows the details of purchase. We can see report of all, particular date and date between details of purchase report. Sales Order Report This report shows the details of sales order. We can see report of all, particular date and date between details of sales order report. Sales Report This report shows the details of sales. We can see report of all, particular date and date between details of sales report. Sales Return Report This report shows the details of sales return. We can see report of all, particular date and date between details of sales return report. Item Stock Report This report shows the details of item stock order. We can see report of particular id of item stock report. Material Stock Report This report shows the details of material stock order. We can see report of particular id of material stock report.

NCIT, Chalakudy

35

Product Management System

CODING LOGIN
Imports System.Data.SqlClient Public Class loginfrm Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub loginfrm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() unamecombobox.Focus() End Sub Private Sub btncan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncan.Click Me.Close() End Sub Private Sub btnlog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlog.Click Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "login" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) Dim f = 0, i As Integer For i = 0 To dt.Rows.Count - 1 If dt.Rows(i).Item("uname") = unamecombobox.Text And dt.Rows(i).Item("ppw") = PwTextBox.Text Then If dt.Rows(i).Item("utype") = "admin" Then MDI.Show() f = 1 End If If dt.Rows(i).Item("utype") = "staff" Then MDI1.Show() f = 1 End If End If Next If f = 0 Then MsgBox("incorrect username and password") End If End Sub

NCIT, Chalakudy

36

Product Management System Private Sub unamecombobox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles unamecombobox.KeyPress If unamecombobox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub

Private Sub PwTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles PwTextBox.KeyPress If PwTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub End Class

ITEM REGISTRATION

Imports System.Data.SqlClient Public Class item Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click btnsave.Enabled = True IidComboBox.Visible = False iidTextBox.Visible = True iidTextBox.Enabled = False InameTextBox.Enabled = True QtyTextBox.Enabled = True qlyComboBox.Enabled = True RateTextBox.Enabled = True colorComboBox.Enabled = True GwTextBox.Enabled = True qlyComboBox.Text = "" colorComboBox.Text = "" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next GwTextBox.Enabled = False dt.Clear() dt.Columns.Clear() NCIT, Chalakudy 37

Product Management System cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then iidTextBox.Text = "701" InameTextBox.Focus() Else iidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("iid") + 1 InameTextBox.Focus() End If btnedit.Enabled = True btnnew.Enabled = False btnupdate.Enabled = False End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim s, r As String s = iidTextBox.Text & ",'" & InameTextBox.Text & " ', " & QtyTextBox.Text & ",'" & qlyComboBox.Text & "','" & colorComboBox.Text & "', " & RateTextBox.Text & ",'" & GwTextBox.Text & "'" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Or qlyComboBox.Text = "" Or colorComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) r = iidTextBox.Text & "," & 0 & " " dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = r cmd.Connection = dbobj.con cmd.ExecuteNonQuery() For Each ctl In Controls NCIT, Chalakudy 38

Product Management System If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next qlyComboBox.Text = "" colorComboBox.Text = "" btnsave.Enabled = False btnnew.Enabled = True End Sub Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click iidTextBox.Text = 0 Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Or qlyComboBox.Text = "" Or colorComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "iname='" & InameTextBox.Text & " ',qty=" & QtyTextBox.Text & ",qly=' " & qlyComboBox.Text & " ',color='" & colorComboBox.Text & "',rate=" & RateTextBox.Text & ",gw='" & GwTextBox.Text & "'" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & IidComboBox.Text cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Updated", MsgBoxStyle.Information) btnupdate.Enabled = False btnedit.Enabled = True End Sub Private Sub btnedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnedit.Click IidComboBox.Visible = True iidTextBox.Visible = False btnupdate.Enabled = True btnsave.Enabled = False btnedit.Enabled = False IidComboBox.Items.Clear() Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next Dim i As Integer IidComboBox.Enabled = True dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" NCIT, Chalakudy 39

Product Management System cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 IidComboBox.Items.Add(dt.Rows(i).Item("iid")) Next InameTextBox.Enabled = True QtyTextBox.Enabled = True qlyComboBox.Enabled = True RateTextBox.Enabled = True colorComboBox.Enabled = True btnnew.Enabled = True End Sub Private Sub item_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next iidTextBox.Enabled = False btnsave.Enabled = False btnupdate.Enabled = False IidComboBox.Enabled = False InameTextBox.Enabled = False QtyTextBox.Enabled = False qlyComboBox.Enabled = False RateTextBox.Enabled = False colorComboBox.Enabled = False GwTextBox.Enabled = False End Sub Private Sub IidComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles IidComboBox.SelectedIndexChanged dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & IidComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then InameTextBox.Text = dt.Rows(0).Item("iname") QtyTextBox.Text = dt.Rows(0).Item("qty") qlyComboBox.Text = dt.Rows(0).Item("qly") RateTextBox.Text = dt.Rows(0).Item("rate") colorComboBox.Text = dt.Rows(0).Item("color") GwTextBox.Text = dt.Rows(0).Item("gw") End If NCIT, Chalakudy 40

Product Management System End Sub Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles qlyComboBox.SelectedIndexChanged If qlyComboBox.Text = "FIRST" Then GwTextBox.Text = "GUARANTEE" End If If qlyComboBox.Text = "SECOND" Then GwTextBox.Text = "WARRANTEE" End If End Sub Private Sub InameTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles InameTextBox.KeyPress If InameTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) <= 57 Then e.KeyChar = Nothing End If End Sub Private Sub QtyTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles QtyTextBox.KeyPress If QtyTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub Private Sub RateTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RateTextBox.KeyPress If RateTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub End Class

NCIT, Chalakudy

41

Product Management System

COMPANY REGISTRATION
Imports System.Data.SqlClient Imports System.Text.RegularExpressions Public Class company Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub company_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() cidTextBox.Enabled = False CnameTextBox.Enabled = False CaddTextBox.Enabled = False CphTextBox.Enabled = False CemailTextBox.Enabled = False btnsave.Enabled = False End Sub Private Sub Btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnnew.Click Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "company" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then cidTextBox.Text = "101" CnameTextBox.Focus() Else cidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("cid") + 1 CnameTextBox.Focus() End If CnameTextBox.Enabled = True CaddTextBox.Enabled = True CphTextBox.Enabled = True CemailTextBox.Enabled = True btnsave.Enabled = True End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click If Len(CphTextBox.Text) < 7 Then MsgBox("Invalid phone number", MsgBoxStyle.Critical) Exit Sub End If Dim s As String NCIT, Chalakudy 42

Product Management System s = cidTextBox.Text & ",' " & CnameTextBox.Text & "',' " & CaddTextBox.Text & "', " & CphTextBox.Text & ",' " & CemailTextBox.Text & "'" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "company" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next btnsave.Enabled = False End Sub Private Sub CnameTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CnameTextBox.KeyPress If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) <= 57 Then e.KeyChar = Nothing End If If CnameTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub Private Sub CphTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CphTextBox.KeyPress If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If If CphTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub Private Sub CemailTextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles CemailTextBox.Leave NCIT, Chalakudy 43

Product Management System Dim pattern As String = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[azA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" Dim emailaddressmatch As Match = Regex.Match(CemailTextBox.Text, pattern) If emailaddressmatch.Success = True Then Else MsgBox("invalid") End If End Sub Private Sub CaddTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CaddTextBox.KeyPress If CnameTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub End Class

STAFF REGISTRATION
Imports System.Data.SqlClient Public Class staff Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub driver_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() DidComboBox.Enabled = False SnameTextBox.Enabled = False lcnTextBox.Enabled = False addTextBox.Enabled = False phTextBox.Enabled = False btnsave.Enabled = False btnupdate.Enabled = False SidTextBox.Enabled = False End Sub Private Sub Btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnnew.Click btnsave.Enabled = True btnupdate.Enabled = False DidComboBox.Visible = False SidTextBox.Visible = True SidTextBox.Enabled = False SnameTextBox.Focus() Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" NCIT, Chalakudy 44

Product Management System End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then SidTextBox.Text = "501" SnameTextBox.Focus() Else Dim id As Integer id = dt.Rows(dt.Rows.Count - 1).Item("sid") SidTextBox.Text = id + 1 SnameTextBox.Focus() End If SnameTextBox.Enabled = True addTextBox.Enabled = True phTextBox.Enabled = True btnedit.Enabled = True Btnnew.Enabled = False End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click If Len(phTextBox.Text) < 7 Then MsgBox("Invalid phone number", MsgBoxStyle.Critical) Exit Sub End If Dim r As String If DriverRadio.Checked = True Then r = DriverRadio.Text End If If WorkerRadio.Checked = True Then r = WorkerRadio.Text lcnTextBox.Text = "NIL" End If Dim s As String s = SidTextBox.Text & ",'" & SnameTextBox.Text & " ','" & r & "',' " & lcnTextBox.Text & "','" & addTextBox.Text & "'," & phTextBox.Text & "" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure NCIT, Chalakudy 45

Product Management System cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next btnsave.Enabled = False Btnnew.Enabled = True End Sub Private Sub btnedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnedit.Click Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next DidComboBox.Items.Clear() Dim i As Integer DidComboBox.Enabled = True btnupdate.Enabled = True btnsave.Enabled = False DidComboBox.Text = "" dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 DidComboBox.Items.Add(dt.Rows(i).Item("sid")) Next btnedit.Enabled = False DidComboBox.Visible = True Btnnew.Enabled = True btnupdate.Enabled = True DidComboBox.Visible = True btnsave.Enabled = False SidTextBox.Visible = False End Sub Private Sub DidComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DidComboBox.SelectedIndexChanged SnameTextBox.Enabled = True lcnTextBox.Enabled = True addTextBox.Enabled = True phTextBox.Enabled = True dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() NCIT, Chalakudy 46

Product Management System cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sid=" & DidComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then SnameTextBox.Text = dt.Rows(0).Item("sname") lcnTextBox.Text = dt.Rows(0).Item("lcno") addTextBox.Text = dt.Rows(0).Item("sadd") phTextBox.Text = dt.Rows(0).Item("sph") End If End Sub Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click SidTextBox.Text = 0 Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Then MsgBox("NOT completed") Exit Sub End If End If Next cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "sname='" & SnameTextBox.Text & " ',lcno=' " & lcnTextBox.Text & " ',sadd=' " & addTextBox.Text & " ',sph=" & phTextBox.Text & "" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sid=" & DidComboBox.Text cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Updated", MsgBoxStyle.Information) btnedit.Enabled = True btnupdate.Enabled = False End Sub Private Sub snameTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles SnameTextBox.KeyPress If SnameTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) <= 57 Then e.KeyChar = Nothing End If End Sub

NCIT, Chalakudy

47

Product Management System

Private Sub DriverRadio_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DriverRadio.CheckedChanged If DriverRadio.Checked = True Then lcnTextBox.Enabled = True Else lcnTextBox.Enabled = False End If End Sub Private Sub phTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles phTextBox.KeyPress If phTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub Private Sub addTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles addTextBox.KeyPress If addTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub Private Sub lcnTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles lcnTextBox.KeyPress If lcnTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If End Sub End Clas

PURCHASE ORDER
Imports System.Data.SqlClient Public Class purchaseorder Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter

NCIT, Chalakudy

48

Product Management System Private Sub purchaseorder_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() ExdateDateTimePicker.MinDate = Today btnsave.Enabled = False poidTextBox.Enabled = False dateTextBox.Enabled = False CidComboBox.Enabled = False MidComboBox.Enabled = False mqtyTextBox.Enabled = False mrateTextBox.Enabled = False AdvanceTextBox.Enabled = False ExdateDateTimePicker.Enabled = False dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 MidComboBox.Items.Add(dt.Rows(i).Item("mname")) Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "company" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 CidComboBox.Items.Add(dt.Rows(i).Item("cname")) Next End Sub Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next MidComboBox.Text = "" CidComboBox.Text = "" dateTextBox.Text = Today dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorder" cmd.Connection = dbobj.con ad.SelectCommand = cmd NCIT, Chalakudy 49

Product Management System ad.Fill(dt) If dt.Rows.Count = 0 Then poidTextBox.Text = "2000" MidComboBox.Focus() Else poidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("poid") + 1 MidComboBox.Focus() End If MidComboBox.Enabled = True mqtyTextBox.Enabled = True mrateTextBox.Enabled = True ExdateDateTimePicker.Enabled = True CidComboBox.Enabled = True btnsave.Enabled = True End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim s, m1, n1 As String Dim j, k As Integer m1 = dateTextBox.Text n1 = ExdateDateTimePicker.Text If m1 = n1 Then MsgBox("must change expected date", MsgBoxStyle.Critical) Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & MidComboBox.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then j = dt.Rows(0).Item("mid") End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "company" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "cname='" & CidComboBox.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then k = dt.Rows(0).Item("cid") End If

NCIT, Chalakudy

50

Product Management System s = poidTextBox.Text & ",' " & dateTextBox.Text & "'," & k & "," & j & ", " & mqtyTextBox.Text & "," & mrateTextBox.Text & "," & AdvanceTextBox.Text & ",'" & ExdateDateTimePicker.Text & "',0" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Or MidComboBox.Text = "" Or CidComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorder" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next btnsave.Enabled = False End Sub Private Sub mqtyTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles mqtyTextBox.KeyPress If mqtyTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub Private Sub mrateTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles mrateTextBox.KeyPress If mrateTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub

NCIT, Chalakudy

51

Product Management System Private Sub mrateTextBox_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles mrateTextBox.LostFocus Dim m, n As Integer m = mrateTextBox.Text n = mqtyTextBox.Text AdvanceTextBox.Text = m * n End Sub End Class

PURCHASE
Imports System.Data.SqlClient Public Class purchase Dim dbobj As New DBLAYER.connection Dim dt, dt1 As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click oidComboBox.Enabled = True pidTextBox.Enabled = False pdateTextBox.Enabled = False pdateTextBox.Text = Today dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchase" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then pidTextBox.Text = "5001" oidComboBox.Focus() Else pidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("pid") + 1 oidComboBox.Focus() End If oidComboBox.Items.Clear() Dim i As Integer

dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorder" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "status= 0" cmd.Connection = dbobj.con NCIT, Chalakudy 52

Product Management System ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 oidComboBox.Items.Add(dt.Rows(i).Item("poid")) Next

btnnew.Enabled = False btnsave.Enabled = True End Sub Private Sub purchase_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() btnsave.Enabled = False Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Enabled = False End If Next oidComboBox.Enabled = False midTextBox.Enabled = False mqtytextbox.Enabled = False cidTextBox.Enabled = False mrateTextBox.Enabled = False exdateTextBox.Enabled = False amountTextBox.Enabled = False End Sub Private Sub oidComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles oidComboBox.SelectedIndexChanged dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "poid=" & oidComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then midTextBox.Text = dt.Rows(0).Item("mname") mqtytextbox.Text = dt.Rows(0).Item("mqty") mrateTextBox.Text = dt.Rows(0).Item("mrate") cidTextBox.Text = dt.Rows(0).Item("cname") amountTextBox.Text = dt.Rows(0).Item("advance") exdateTextBox.Text = dt.Rows(0).Item("exdate") End If midTextBox.Enabled = False mqtytextbox.Enabled = False cidTextBox.Enabled = False mrateTextBox.Enabled = False exdateTextBox.Enabled = False NCIT, Chalakudy 53

Product Management System amountTextBox.Enabled = False End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim s As String

cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorder" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "status=" & 1 & "" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "poid=" & oidComboBox.Text cmd.Connection = dbobj.con cmd.ExecuteNonQuery() s = pidTextBox.Text & ",'" & pdateTextBox.Text & "'," & oidComboBox.Text & "" If oidComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchase" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.ExecuteNonQuery() Dim t As Integer dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & midTextBox.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) t = dt.Rows(0).Item("qty") t = t + mqtytextbox.Text cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "qty=" & t & " " cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & midTextBox.Text & " '" NCIT, Chalakudy 54

Product Management System cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) btnsave.Enabled = False btnnew.Enabled = True oidComboBox.Enabled = False End Sub End Class

PRODUCTION
Imports System.Data.SqlClient Public Class production Dim dbobj As New DBLAYER.connection Dim dt, dt1 As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub stock_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() btnsave.Enabled = False pidTextBox.Enabled = False pqtyTextBox.Enabled = False dateTextBox.Enabled = False iidComboBox.Enabled = False End Sub Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click iidComboBox.Enabled = True pqtyTextBox.Enabled = True pqtyTextBox.Text = "" dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "production" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then pidTextBox.Text = "501" iidComboBox.Focus() Else pidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("pid") + 1 iidComboBox.Focus() End If dateTextBox.Text = Today iidComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) NCIT, Chalakudy 55

Product Management System For i = 0 To dt.Rows.Count - 1 iidComboBox.Items.Add(dt.Rows(i).Item("iname")) Next btnsave.Enabled = True btnnew.Enabled = False End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim i As Integer Dim j As Integer dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iname='" & iidComboBox.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then j = dt.Rows(0).Item("iid") End If Dim t, n As Integer dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 If dt.Rows(i).Item("iid") = j Then t = dt.Rows(i).Item("pqty") n = pqtyTextBox.Text t = t + n End If Next cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "pqty=" & t & " " cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j cmd.Connection = dbobj.con cmd.ExecuteNonQuery() Dim q As Integer Dim black As Integer Dim white As Integer Dim blue As Integer NCIT, Chalakudy 56

Product Management System Dim p As Integer p = Val(pqtyTextBox.Text) If iidComboBox.Text = iidComboBox.Items(0) Then q = p * 10 blue = p * 1 white = p * 1 ElseIf iidComboBox.Text = iidComboBox.Items(1) Then q = pqtyTextBox.Text * 15 black = pqtyTextBox.Text * 1.5 white = pqtyTextBox.Text * 1.5 ElseIf iidComboBox.Text = iidComboBox.Items(2) Then q = pqtyTextBox.Text * 20 blue = pqtyTextBox.Text * 2 white = pqtyTextBox.Text * 2 End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "qty=qty-" & q cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & dt.Rows(0).Item("mname") & "'" cmd.Connection = dbobj.con cmd.ExecuteNonQuery() cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "qty=qty-" & black cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & dt.Rows(2).Item("mname") & "'" cmd.Connection = dbobj.con cmd.ExecuteNonQuery() cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "qty=qty-" & blue cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & dt.Rows(1).Item("mname") & "'" cmd.Connection = dbobj.con cmd.ExecuteNonQuery() cmd.Parameters.Clear() NCIT, Chalakudy 57

Product Management System cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "qty=qty-" & white cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "mname='" & dt.Rows(3).Item("mname") & "'" cmd.Connection = dbobj.con cmd.ExecuteNonQuery() Dim s As String s = pidTextBox.Text & ",'" & dateTextBox.Text & "'," & j & "," & pqtyTextBox.Text & "" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Or iidComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "production" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = s cmd.Connection = dbobj.con cmd.ExecuteNonQuery() Dim f, g As Integer dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 f = dt.Rows(i).Item("rlevel") g = dt.Rows(i).Item("qty") If f > g Then MsgBox("material quantity is limited", MsgBoxStyle.Critical) End If Next MsgBox("Saved", MsgBoxStyle.Information) For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next btnsave.Enabled = False btnnew.Enabled = True End Sub

NCIT, Chalakudy

58

Product Management System Private Sub pqtyTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles pqtyTextBox.KeyPress If pqtyTextBox.Text = "" And Microsoft.VisualBasic.Asc(e.KeyChar) = 32 Then MsgBox("Enter valid data", MsgBoxStyle.Critical) e.KeyChar = Nothing End If If Asc(e.KeyChar) >= 65 And Asc(e.KeyChar) <= 92 Or Asc(e.KeyChar) >= 97 And Asc(e.KeyChar) <= 122 Then e.KeyChar = Nothing End If End Sub End Class

SALES ORDER
Imports System.Data.SqlClient Public Class salesorder Dim Dim Dim Dim dbobj As New DBLAYER.connection dt As New DataTable cmd As New SqlCommand ad As New SqlDataAdapter

Private Sub cuidComboBox_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cuidComboBox.Click End Sub Private Sub salesorder_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() soidTextBox.Enabled = False datetextbox.Enabled = False btnsave.Enabled = False DataGridView1.Enabled = False cuidComboBox.Enabled = False exDateTimePicker.Enabled = False End Sub

Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit Dim m, n As Integer If e.RowIndex >= 0 And e.ColumnIndex >= 1 Then m = DataGridView1.Rows(e.RowIndex).Cells(1).Value n = DataGridView1.Rows(e.RowIndex).Cells(2).Value DataGridView1.Rows(e.RowIndex).Cells(3).Value = m * n End If End Sub

NCIT, Chalakudy

59

Product Management System Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged Dim s As String If e.RowIndex >= 0 And e.ColumnIndex = 0 Then s = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iname='" & s & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) DataGridView1.Rows(e.RowIndex).Cells(2).Value = dt.Rows(0).Item("rate") End If

End Sub Private Sub butnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butnnew.Click DataGridView1.Rows.Clear() soidTextBox.Enabled = False DataGridView1.Enabled = True cuidComboBox.Enabled = True exDateTimePicker.Enabled = True btnsave.Enabled = True datetextbox.Enabled = False datetextbox.Text = Today dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesordermaster" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then soidTextBox.Text = "7001" cuidComboBox.Focus() Else soidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("soid") + 1 cuidComboBox.Focus() End If butnnew.Enabled = False btnsave.Enabled = True Dim i As Integer iid.Items.Clear() dt.Clear() NCIT, Chalakudy 60

Product Management System dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 iid.Items.Add(dt.Rows(i).Item("iname")) Next cuidComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "customer" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 cuidComboBox.Items.Add(dt.Rows(i).Item("cuname")) Next butnnew.Enabled = False End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim s, q, m, n As String Dim j, k, d As Integer

Dim m1, m2 As Integer For i = 0 To DataGridView1.Rows.Count - 2 s = DataGridView1.Rows(i).Cells(0).Value dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iname='" & s & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then j = dt.Rows(0).Item("iid") dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure NCIT, Chalakudy 61

Product Management System cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j & "" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) m1 = dt.Rows(0).Item("pqty") m2 = DataGridView1.Rows(i).Cells(1).Value If m1 < m2 Then MsgBox("Enough stock " & s, MsgBoxStyle.Exclamation) End If End If d = DataGridView1.Rows(i).Cells(1).Value q = soidTextBox.Text & "," & j & "," & d & "" dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesorderdetail" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = q cmd.ExecuteNonQuery() Next m = datetextbox.Text n = exDateTimePicker.Text If m = n Then MsgBox("must change expected date", MsgBoxStyle.Critical) Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "customer" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "cuname='" & cuidComboBox.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then k = dt.Rows(0).Item("cuid") End If Dim r As String r = soidTextBox.Text & ",'" & datetextbox.Text & "'," & k & ",'" & exDateTimePicker.Value & "',0" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then NCIT, Chalakudy 62

Product Management System If ctl.Text = "" Or cuidComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesordermaster" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = r cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next btnsave.Enabled = False DataGridView1.Rows.Clear() butnnew.Enabled = True End Sub

End Class

SALES
Imports System.Data.SqlClient Public Class sales Dim Dim Dim Dim dbobj As New DBLAYER.connection dt, dt1 As New DataTable cmd As New SqlCommand ad As New SqlDataAdapter

Private Sub btnnew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnnew.Click DataGridView1.Rows.Clear() dnameComboBox.Enabled = True sidTextBox.Enabled = False sdateTextBox.Enabled = False SoidComboBox.Enabled = True vidComboBox.Enabled = True DataGridView1.Enabled = True PdDateTimePicker.Enabled = True Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next sdateTextBox.Text = Today dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" NCIT, Chalakudy 63

Product Management System cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesmaster" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count = 0 Then sidTextBox.Text = "9001" sidTextBox.Focus() Else sidTextBox.Text = dt.Rows(dt.Rows.Count 1).Item("sid") + 1 SoidComboBox.Focus() End If SoidComboBox.Items.Clear() Dim i As Integer dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesordermaster" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "status= 0" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 SoidComboBox.Items.Add(dt.Rows(i).Item("soid")) Next vidComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "vehicle" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 vidComboBox.Items.Add(dt.Rows(i).Item("vno")) Next dnameComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 If dt.Rows(i).Item("stype") = "DRIVER" Then dnameComboBox.Items.Add(dt.Rows(i).Item("sname")) End If Next NCIT, Chalakudy 64

Product Management System

btnnew.Enabled = False btnsave.Enabled = True End Sub Private Sub sales_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() sidTextBox.Enabled = False dnameComboBox.Enabled = False sdateTextBox.Enabled = False SoidComboBox.Enabled = False vidComboBox.Enabled = False NetTextBox.Enabled = False DisTextBox.Enabled = False TaxTextBox.Enabled = False RfTextBox.Enabled = False DataGridView1.Enabled = False btnsave.Enabled = False PdDateTimePicker.Enabled = False LinkLabel1.Enabled = False End Sub Private Sub SoidComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SoidComboBox.SelectedIndexChanged Dim r, t As Integer DataGridView1.Rows.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesorderdetail" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "soid=" & SoidComboBox.Text & "" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 r = dt.Rows(i).Item("iid") dt1.Clear() dt1.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & r & "" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt1) DataGridView1.Rows.Add() DataGridView1.Rows(i).Cells(0).Value = dt1.Rows(0).Item("iname") DataGridView1.Rows(i).Cells(1).Value = dt.Rows(i).Item("qty") NCIT, Chalakudy 65

Product Management System DataGridView1.Rows(i).Cells(2).Value = dt1.Rows(0).Item("rate") DataGridView1.Rows(i).Cells(3).Value = DataGridView1.Rows(i).Cells(1).Value * DataGridView1.Rows(i).Cells(2).Value Next For i = 0 To DataGridView1.Rows.Count - 2 t = t + DataGridView1.Rows(i).Cells(3).Value NetTextBox.Text = t Next Dim m, l As Integer Dim n, d As Decimal m = NetTextBox.Text n = m * 2 / 100 d = m * 7 / 100 l = m + n - d TaxTextBox.Text = n DisTextBox.Text = d RfTextBox.Text = l End Sub Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click Dim s, q As String Dim j, c, d, t As Integer Dim g As String dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "staff" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sname='" & dnameComboBox.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then t = dt.Rows(0).Item("sid") End If g = sidTextBox.Text & "," & SoidComboBox.Text & ",'" & sdateTextBox.Text & "','" & vidComboBox.Text & "'," & t & ",'" & PdDateTimePicker.Value & "'," & NetTextBox.Text & "," & DisTextBox.Text & "," & TaxTextBox.Text & "," & RfTextBox.Text & "" Dim ctl As Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Text = "" Or vidComboBox.Text = "" Then MsgBox("NOT completed", MsgBoxStyle.Critical) Exit Sub End If End If Next dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure NCIT, Chalakudy 66

Product Management System cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesmaster" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = g cmd.ExecuteNonQuery() For i = 0 To DataGridView1.Rows.Count - 2 s = DataGridView1.Rows(i).Cells(0).Value dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iname='" & s & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then j = dt.Rows(0).Item("iid") End If d = DataGridView1.Rows(i).Cells(1).Value c = DataGridView1.Rows(i).Cells(3).Value q = sidTextBox.Text & "," & j & "," & d & "," & c & "" cmd.Parameters.Clear() cmd.CommandText = "insertqry" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesdetail" cmd.Parameters.Add("@val", SqlDbType.VarChar).Value = q cmd.ExecuteNonQuery() Dim y, w As Integer y = DataGridView1.Rows(i).Cells(1).Value dt1.Clear() dt1.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt1) w = dt1.Rows(0).Item("pqty") w = w - y cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "pqty=" & w & " "

NCIT, Chalakudy

67

Product Management System cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j cmd.Connection = dbobj.con cmd.ExecuteNonQuery() Next cmd.Parameters.Clear() cmd.CommandText = "updateall" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesordermaster" cmd.Parameters.Add("@field", SqlDbType.VarChar).Value = "status=" & 1 & "" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "soid=" & SoidComboBox.Text cmd.Connection = dbobj.con cmd.ExecuteNonQuery() MsgBox("Saved", MsgBoxStyle.Information) DataGridView1.Rows.Clear() btnsave.Enabled = False btnnew.Enabled = True LinkLabel1.Enabled = True End Sub Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked Dim frm As New FRMVIEWER Dim rpt55 As New billrpt dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sid =" & sidTextBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt55.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt55 frm.Show() For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" End If Next End Sub Private Sub vidComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles vidComboBox.SelectedIndexChanged Dim s1 As String Dim m1, m2 As Integer Dim j1 As Integer Dim i As Integer For i = 0 To DataGridView1.Rows.Count - 2 NCIT, Chalakudy 68

Product Management System s1 = DataGridView1.Rows(i).Cells(0).Value dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "item" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iname='" & s1 & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) If dt.Rows.Count <> 0 Then j1 = dt.Rows(0).Item("iid") dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "stock" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "iid=" & j1 & "" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) m1 = dt.Rows(0).Item("pqty") m2 = DataGridView1.Rows(i).Cells(1).Value If m1 < m2 Then MsgBox("Enough stock " & s1, MsgBoxStyle.Exclamation) btnsave.Enabled = False Exit Sub End If End If Next End Sub End Class

REPORT
Imports System.Data.SqlClient Public Class report Dim dbobj As New DBLAYER.connection Dim dt As New DataTable Dim cmd As New SqlCommand Dim ad As New SqlDataAdapter Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Dim Dim Dim Dim rpt1 As New itemstockrpt1 RPT2 As New materialstockrpt rpt3 As New purchaseorderrpt rpt31 As New purchaseorderrptg rpt4 As New puechaserpt 69

NCIT, Chalakudy

Product Management System Dim rpt41 As New purchaserptg Dim rpt5 As New salesorderrpt Dim rpt51 As New salesorderrptg Dim rpt6 As New salesrpt Dim rpt61 As New salesrptg1 Dim rpt7 As New salesreturnrpt Dim rpt71 As New salesreturnrptg1 Dim rpt8 As New productionrpt Dim rpt81 As New productionrptg Dim frm As New FRMVIEWER If isrb.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "itemstockview" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt1.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt1 frm.Show() ElseIf msrb.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "material" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) RPT2.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = RPT2 frm.Show() ElseIf potrb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "poid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt3.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt3 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() NCIT, Chalakudy 70

Product Management System dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "podate ='" & particulardate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt31.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt31 frm.Show() ElseIf rbperiod.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "podate between '" & fromdate.Text & " ' and '" & todate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt31.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt31 frm.Show() End If ElseIf ptrb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseview1" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "pid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt4.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt4 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure

NCIT, Chalakudy

71

Product Management System cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseview1" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "pdate ='" & particulardate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt41.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt41 frm.Show() ElseIf rbperiod.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseview1" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "pdate between '" & fromdate.Text & " ' and '" & todate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt41.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt41 frm.Show() End If ElseIf sotrb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "soid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt5.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt5 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sodate ='" & particulardate.Text & " '" cmd.Connection = dbobj.con NCIT, Chalakudy 72

Product Management System ad.SelectCommand = cmd ad.Fill(dt) rpt51.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt51 frm.Show() ElseIf rbperiod.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesorderview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sodate between '" & fromdate.Text & " ' and '" & todate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt51.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt51 frm.Show() End If ElseIf strb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt6.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt6 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sdate ='" & particulardate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt61.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt61 frm.Show() ElseIf rbperiod.Checked = True Then NCIT, Chalakudy 73

Product Management System dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "sdate between '" & fromdate.Text & " ' and '" & todate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt61.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt61 frm.Show() End If ElseIf srtrb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesreturnview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "srid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt7.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt7 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesreturnview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "srdate ='" & particulardate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt71.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt71 frm.Show() ElseIf rbperiod.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" NCIT, Chalakudy 74

Product Management System cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesreturnview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "srdate between '" & fromdate.Text & " ' and '" & todate.Text & " '" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt71.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt71 frm.Show() End If ElseIf prtrb.Checked = True Then If typeid.Checked = True Then If idComboBox.Text = "" Then MsgBox("select the id") Exit Sub End If dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "productionview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "pid =" & idComboBox.Text cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt8.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt8 frm.Show() ElseIf rbpdate.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "productionview" cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "date ='" & particulardate.Text & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt81.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt81 frm.Show() ElseIf rbperiod.Checked = True Then dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "selectallcondition" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "productionview"

NCIT, Chalakudy

75

Product Management System cmd.Parameters.Add("@condition", SqlDbType.VarChar).Value = "date between '" & fromdate.Value.Date & "' and '" & todate.Value.Date & "'" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) rpt81.SetDataSource(dt) frm.CrystalReportViewer1.ReportSource = rpt81 frm.Show() End If End If End Sub Private Sub report_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbobj.connect() gbtype.Enabled = False gbid.Enabled = False gbdate.Enabled = False End Sub Private Sub typeid_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles typeid.CheckedChanged gbid.Enabled = True gbdate.Enabled = False End Sub Private Sub typedate_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles typedate.CheckedChanged gbdate.Enabled = True gbid.Enabled = False particulardate.Enabled = False fromdate.Enabled = False todate.Enabled = False End Sub Private Sub potrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles potrb.CheckedChanged gbtype.Enabled = True gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchaseorder" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("poid")) Next End Sub Private Sub ptrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ptrb.CheckedChanged gbtype.Enabled = True NCIT, Chalakudy 76

Product Management System gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "purchase" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("pid")) Next End Sub Private Sub sotrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sotrb.CheckedChanged gbtype.Enabled = True gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesordermaster" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("soid")) Next End Sub Private Sub strb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles strb.CheckedChanged gbtype.Enabled = True gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesmaster" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("sid")) Next End Sub Private Sub srtrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles srtrb.CheckedChanged NCIT, Chalakudy 77

Product Management System gbtype.Enabled = True gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "salesreturn" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("srid")) Next End Sub Private Sub isrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles isrb.CheckedChanged gbt.Enabled = False gbtype.Enabled = False gbid.Enabled = False gbdate.Enabled = False End Sub Private Sub rbpdate_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbpdate.CheckedChanged fromdate.Enabled = False todate.Enabled = False particulardate.Enabled = True End Sub Private Sub rbperiod_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbperiod.CheckedChanged particulardate.Enabled = False fromdate.Enabled = True todate.Enabled = True End Sub Private Sub prtrb_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles prtrb.CheckedChanged gbtype.Enabled = True gbs.Enabled = False idComboBox.Items.Clear() dt.Clear() dt.Columns.Clear() cmd.Parameters.Clear() cmd.CommandText = "sele" cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@table", SqlDbType.VarChar).Value = "production" cmd.Connection = dbobj.con ad.SelectCommand = cmd ad.Fill(dt) For i = 0 To dt.Rows.Count - 1 idComboBox.Items.Add(dt.Rows(i).Item("pid")) Next End Sub End Class

NCIT, Chalakudy

78

Product Management System

SYSTEM TESTING & IMPLEMENTATION


SYSTEM TESTING Testing is the major quality measure employed during software development. After the coding phase, computer programs are available that can be executed for testing purposes. Testing not only has to uncover errors introduced during coding, but also locates errors committed during the previous phases. Thus, the aim of testing is to uncover requirements, design or coding errors in the program. System testing is an expensive but critical process that can take as much as fifty percent of the budget for program development. Consequential, different levels of testing are employed. In fact a successful test is one that finds an error. The system performance criteria deals with turnaround time backup, file protection and human factor. A test for the user acceptance should be carried out. The package developed was taken through different levels of testing and required modifications were made. TYPES OF TESTING System testing is the state of implementation, which is aimed at ensuring that the system works accurately and efficiently before live operation commences. Testing is vital to the success of the system. System testing makes a logical assumption that if all the parts of the system are correct, the goal will be successfully achieved. The candidate system is subject to a variety of tests. A series of tests are performed for the proposed system before the system is ready for user acceptance testing. Unit Testing Integration Testing Validation Testing Output Testing User Acceptance Testing

NCIT, Chalakudy

79

Product Management System

Unit Testing Unit Testing focuses on the verification effort on the smallest unit of software design the software component module. Using the component level design as a guide, important control paths are tested to uncover the errors within in the boundary of the module. The relative complexity of tests and uncovered errors is limited by the constrained scope established for unit testing. Each module was tested individually and the errors are corrected Integration Testing Integration Testing is a systematic technique for constructing the program structure while at the same time conducting test to uncover errors associated with interfacing. The objective is to take unit tested components and build a program structure that has been dictated by design. Each module after unit testing were integrated and tested and errors were fixed. Validation Testing Here the inputs are given by the user are validated. That is password validation, format of date are correct, textbox validation. Changes that need to be done after result of this testing. Output Testing Here the output is tested to view whether that screen is what which is desired. It is also checked whether it is to the satisfaction of the user. Changes that need to be done can be done after the result is seen.

User Acceptance Testing User acceptance testing is done in presence of user. The user will have some constraints and if some constraints are absent; it has to be added and then the user is satisfied

NCIT, Chalakudy

80

Product Management System

SYSTEM IMPLEMENTATION Implementation is the stage in the project where the theoretical design is turned into a working system and is giving confidence on the new system for the users that it will work efficiently and effectively. Apart from planning major task of preparing the implementation is education are training of users. The more complex system being implemented, the more involved will be the system analysis and the design effort required just for implementation. An implementation coordinating committee based on policies of individual organization has been appointed. The implementation process begins with preparing a plan for the implementation of the system. According to this plan, the activities are to be carried out, discussions made regarding the equipment and resources and the additional equipment has to be acquired to implement the new system. Implementation is the final and important phaseThe system can be implemented only after through testing is done and if it found to working according to the specification. This method also offers the greatest security since the old system can take over if the errors are found or inability to handle certain type of transactions while using the new system. At the beginning of the development phase, a preliminary implementation plan is created to schedule and manage the many different activities that must be integrated into plan. The implementation plan is updated throughout the development phase, culminating in a changeover plan for the operation phase. The major elements of implementation plan are test plan, training plan, equipment installation plan and a conversion plan. There are three types of implementation: Implementation of a computer system to replace a manual system. Implementation of a new computer system to replace an existing one. Implementation of a modified application to replace an existing one, using the same computer.

NCIT, Chalakudy

81

Product Management System

SYSTEM MAINTENANCE Maintenance is the enigma of system development. It holds the software industry captive, tying up programming resources. Analysts and programmers spend more time for maintaining program than they do writing them. Maintenance account 50-80 percent of total system development. Software need maintenance not because of their components wears out and need to be replaced, but because of there are some residual errors remaining in the system that must be removed as they are discovered. Maintenance work is based on the existing software, as compared to development work that creates new software. Consequently maintenance revolves around understanding existing system and maintainers spend most of the time not only understanding the code but also the related documents. Maintenance can be classified as: Corrective Maintenance Adaptive Maintenance Perfective Maintenance Corrective Maintenance Software testing will not user uncover all the error in the system. During the use of any large program errors will occur and reported to the developer. The processes that include the correction of errors called corrective maintenance. Adaptive maintenance An activity modifies the entire system to properly inter with the changing environment. Perfective Maintenance Perfective maintenance means enhancing the performance or modifying the program(s) to respond to the users additional or changing needs. Maintenance demands more orientation and training than any either programming activities, especially for entry-level programmers.

NCIT, Chalakudy

82

Product Management System

CONCLUSION & FUTURE ENHANCEMENT


The Product management system is computerized to done the transactions fast and accurate. This software helps to generate correct and clear reports. The manager and staff can be easily retries reports. Previously the transactions are stored in papers and records but after introducing this software they are stored on computer. It reduces time and work load of staff. There is a top down programming approach has been adopted while developing the project; each task is divided into separate modules. Hence, modification and enhancement can be easily made without affecting any other part of the program. This system has been developed to satisfy the needs of the user. The entire system is user-friendly and interactive. The system provides an efficient performance. The system was tested with all possible sample data and was found to have an effective planning of the functions or process with a high degree of accuracy and user friendliness. To conclude this, I thank all people who help me to complete this project work successfully. Other future planning, shares this software using internet. So this simple and fully equipped project helps us to get more confidence to handle projects in the future. All manual process will be completely computerized so the accuracy and efficiency of the system will be increased. The major features that can be included are: Interactive GUI. Detailed help for each transition. More reports can be added. Each module can be expanded to reach to the perfection.

NCIT, Chalakudy

83

Product Management System

BIBLIOGRAPHY

Elias M. Awad, System Analysis and Design, Galgota Publications. Pankaj Jalote, An Integrated Approach to Software Engineering, Narcosis Publishing House. Ramez Elmasri, Fundamentals of Database Systems, Pearson. Steven Holzner, Visual Basic .NET Programming, IDG Books.

NCIT, Chalakudy

84

Product Management System

SAMPLE SCREENS FORMS

LOGIN

NCIT, Chalakudy

85

Product Management System

MDI

NCIT, Chalakudy

86

Product Management System

MDI

NCIT, Chalakudy

87

Product Management System

STAFF REGISTRATION

NCIT, Chalakudy

88

Product Management System

MATERIAL REGISTRATION

NCIT, Chalakudy

89

Product Management System

COMPANY REGISTRATION

NCIT, Chalakudy

90

Product Management System

ITEM REGISTRATION

NCIT, Chalakudy

91

Product Management System

CUSTOMER REGISTRATION

NCIT, Chalakudy

92

Product Management System

VEHICLE REGISTRATION

NCIT, Chalakudy

93

Product Management System

PURCHASE ORDER

NCIT, Chalakudy

94

Product Management System

PURCHASE

NCIT, Chalakudy

95

Product Management System

PRODUCTION

NCIT, Chalakudy

96

Product Management System

SALES ORDER

NCIT, Chalakudy

97

Product Management System

SALES

NCIT, Chalakudy

98

Product Management System

SALES RETURN

NCIT, Chalakudy

99

Product Management System

WARRANTEE

NCIT, Chalakudy

100

Product Management System

REPORT

NCIT, Chalakudy

101

Product Management System

ITEM STOCK REPORT

NCIT, Chalakudy

102

Product Management System

MATERIAL STOCK REPORT

NCIT, Chalakudy

103

Product Management System

PURCHASE ORDER REPORT

NCIT, Chalakudy

104

Product Management System

PURCHASE REPORT

NCIT, Chalakudy

105

Product Management System

PRODUCTION REPORT

NCIT, Chalakudy

106

Product Management System

SALES ORDER REPORT

NCIT, Chalakudy

107

Product Management System

SALES REPORT

NCIT, Chalakudy

108

Product Management System

SALES RETURN REPORT

NCIT, Chalakudy

109

Product Management System

BILL

NCIT, Chalakudy

110