Você está na página 1de 63

SYNOPSIS The Project is entitled Vehicle Showroom Management System.

The main objective of this project is to each and every process done in a firm is stored in a firm is stored in a system for easy access and future reference. In today's information-rich society, every field is computerized. Each and every process done in a firm is stored in a firm is stored in a system for easy access and future reference. In a vehicle showroom there will be vehicle sales and information regarding that sale such as when it has been sold, to whom, details of customer, about the amount and details of the vehicle etc. Also showroom has to record the details of employees working there. The Computerization of Vehicle Showroom management system plays an important role in any countrys economic development. The propose software assist the authorities in dealing with their proceedings in accordance with the existing rules and regulations. The system facilitates an easy and user-friendly means to the different users present in the vehicle Management System. Intense care has been provided in each step to handle the software as user friendly one. It helps in minimizing the time and maintaining the level of production. This project maintains the details about employees, Enquiry, Sales and Service. The major advantage of this project is it helps in total vehicle show room management automation. This Project is made using VB basic as front end and Microsoft Access as back end. MODULES DESCRIPTION: Login Employee Info Manufacture Info Enquiry Info Vehicle Booking Info Vehicle Service Info

Login: This module used for security purpose .user give username and password .if user give correct username and password user will allow otherwise user is not enter to application. Employee Info: Employee Id, Employee Name, Gender ,Phone Number, Address, Salary, Father Name , Date Of Birth, Date Of Joining, Email Address are registered here. Using this module we can maintain the employee details. By using this Enquiry by, Service by fields are automatically fetched. Manufacturer Info: Manufacture Id, Company Name, Phone No, Address, Email Id, Website Name, Description

are registered here. By using this we can maintain the manufacturer Information. Vehicle manufacturing company like TVS, Honda, Fiat, and Maruthi are maintained by this module. Enquiry Info Enquiry Id, Enquiry Date, Customer Name, Phone No, Address, Email ID, Company Name, Vehicle Type, Model Name, Enquiry By are registered here. This could range from a simple orders list to more sophisticated reports such as top enquiry items, etc. Vehicle Booking Info Booking id, Booking Date, Register Name, Customer Phone Number, Customer Address, Email Id, Company Name is fetched by manufacturer information module, Model Name like kick start or fully loaded, Vehicle Type like two wheeler or four wheeler, Vehicle Color like pale yellow, Amount of initial payment, Mode of Payment that means cash or credit, Registration Number, Booking By are maintained here. By using this module we can estimate number of booking for a day. It is used to company development analyze. Vehicle Service Info The completed services are usually recorded in a service book which is rubber stamped by the service center upon completion of each service.

CONTENTS

Chapter No 1.

Title Introduction 1.1. 1.2. Organization Profile Problem Statement

Page No 1

2.

System Analysis 2.1. Approach 2.2. Existing System 2.3. Proposed System 2.4. Need For Computerization

3.

System Configuration 3.1. Hardware Configuration 3.2. Software Configuration

4.

System Development 4.1. Project Specification 4.2. Module Description 4.3. Form Validation

5.

System Design 5.1. Input Design 5.2. Code Design 5.3. Database Design 5.4. Output Design 5.5. Data Flow Diagram

6. 7. 8. 9. 10.

Testing and Implementation Future Enhancement Conclusion Bibliography Appendices A. Input Screen B. Sampling Code

Chapter1

INTRODUCTION
1.1 Organization Profile
5

1.2 Problem Statement This project Vehicle Showroom Management System deals with computerizing the vehicle showroom management process. If we are maintaining the process in manual way it takes more time to maintain every detail in papers, security of information is lacked and confusion occur in the transactions. No effective communication between customer and the vendor. Customer spent lots of time for this process. To avoid all the above problems this project is made. Vehicle Showroom Management System reduces the time. It introduces a new channel to interact with customers. It adapts to all networks. This is the objective of the project.

Chapter 2

SYSTEM ANALYSIS
8

2. 2.1.APPROACH

SYSTEM ANALYSIS

The data which were manually collected and the same is analyzed for computerization. System Analysis means the set of requirement and the description for the new system. This aims to understand how an existing system operation there by project to proposed system. 2.2.EXISTING SYSTEM The existing system is the manual system. The manual system is prone to error. It is time consuming. It is very difficult for a person to produce the report. There are chances for changing the scheme report and do malpractice. This system involves a lot of manual entries with the applications to perform the desired task. Usage of papers in the payment process leads to less efficiency, less accuracy and less productivity. Less control of Amounts. Time delay between the payment and its receipt.

LIMITATTIONS OF EXISTING SYSTEM: Increasing expenditure for papers shuffling and storage. Increasing labors and hence errors..

2.3.Proposed System Proposed system is being developed using visual basic 6 as front end and Ms-Access as back end. The aim of proposed system is to develop a system of improved facilities. The proposed system can overcome all the limitations of the existing system. 1. The primary aim of the new system is to speedup transactions. The report is prepared for the schemes and implemented by the concerned officials. 2. Computerized management process.
9

3. It comes as no surprise to one that when everything is being converted to computerize. Already the business has to global with the coming of Internet. Now, no more the individual aims at the local market is also just a click of button away. Dozens of companies are in the race to convince auction and bidding that a pot of Policys awaits those who conduct their business on the Internet. In this fast race of business and moneymaking, no country, no company and no individual want to fall back. Everyone wants to lead the group. Hence, everyone is trying to make the best use of Internet.

ADVANTAGES OF THE PROPOSED SYSTEM:

The system is very simple in design and to implement. The system requires very low system resources and the system will work in almost all configurations.

1. Security of data. 2. Proper control of administrator 3. Minimum time for needed for the various processing. 4. Greater efficiency & Better service. 5. A member can add a new account whenever he wants. 6. Owner can add property info at anytime and anywhere. 7. Admin can control overall system. 2.4 NEED FOR COMPUTERIZATION The storage and the retrieval of the data were difficult and data entry was time consuming are some of the reasons for computerization are: Can be used to give operational characteristics. For the usage of 24 hours usage. For the users comfort ability. To get the information in worldwide level. To reach people who is abroad. To achieve secrecy and confidentiality
10

Its user friendly and helps in obtaining knowledge.

11

Chapter 3

System Configuration
3.SYSTEM CONFIGURATION
12

3.1.Software requirements: Operating System Server: Windows XP or later Database Server: Microsoft SQL Server-2005 Client: Microsoft Internet Explorer Tools: Microsoft Visual Studio .Net-2008 User Interface: Asp.Net with Ajax Code Behind: ASP.Net 3.2.Hardware Specification: Processor: Intel Pentium or More Ram: 512 MB Ram Hard Disk: PC with 20GB

13

Chapter 4

System Specifications
14

4.SYSTEM SPECIFICATIONS 4.1 PROJECT SPECIFICATION MICROSOFT WINDOWS XP Microsoft Windows XP is a series of operating systems produced by Microsoft. Microsoft introduced an operating environment named windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces (GUIs). Microsoft Windows came to dominate the worlds personal computer market, overtaking Mac OS, which has been introduced in 1984. The most recent client version of Windows is Windows 7; the most recent server version is Windows server 2008 R2; the most recent mobile version is Windows Phone 7. Future of Windows XP The window XP service pack is the operating system which provides more security, flexibility and high performance in comparison with the previous version and offers full level compatibility with the windows updating and innovative support services creates the best desktop operating system for business. Architectural independence Less Crashing Faster Internet Performance Better Photo Handling and Printing Treats a CD-RW like a real drive System Restore Centralized Administration Large memory space Remote access server MICROSOFT VISUAL BASIC Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. Visual Basic is designed to be relatively easy to learn and use .Visual Basic was derived from
15

BASIC and enables the rapid application development (RED) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, Or ActiveX Data Objects and creation ActiveX controls and objects. Programs written on Visual Basic can also use the Windows API, but doing so requires external function declarations.

Properties, Events and Methods: Properties define the characteristic of a size and color etc. sometimes it is the way in which it behaves the method is as action that can he performed on objects.VB forms and controls are object, which expose the own properties, methods and events.

Developing an Application: Visual programming Setup Code programming Setup

Visual basic involves designing an application with various tools. The code programming step involves writing the program using a text editor.

Programming Fundamentals: Visual basic uses building blocks such as variables, Data types Procedures, Functions and Controls structures in its programming environment. Using the Menu Editor: A Menu Editor can be used to add a new command to the existing menu which creates menu bar, change or delete an existing menu. Data Environment: The Data Environment Designer allows quick and building of hierarchical record set during the design time. Programming is the result in Data Environment Object however requires the knowledge of ADO programming Model combines with the characters of hierarchical record set. Element used in Visual basic: The Text Box:
16

The text box is the standard control for accepting input from the user as well as to display the output. It can handle string (text) and numeric data but not images or pictures. String in a text box can be converted to a numeric data by using the function Val (text).

The Label Box: The label is a very useful control for Visual Basic, as it is not only used to provide instructions and guides to the users, it can also be used to display outputs. One of its most important properties is caption. Using the syntax Label Caption, it can display text and numeric data. You can change caption in the properties window and also at runtime.

The Command Button: The command button is one of the most important controls as it is used to execute commands. It display an illusion that the button is pressed when the user click on it. The most common event associated with the command button is the click event.

The Image Box: The Image Box is another control that handles images and pictures. It functions almost identically to the picture box. However, there is one major difference, the image in an image box is stretchable, which means it can be resizes. This features is not available in the picture Box.

The Combo Box: The function of the combo Box is also to present a list of items where the user can click and select the items from the list. However, the user needs to click on the small arrowed head on the right of the combo box to see the items which are presented in a dropdown list. In order to add items to the list, you can also use the Add Item method. The Check Box: The Check Box control lets the user selects or unselects an option. When the Check Box is checked, its value is set to 1 and when it is unchecked, the value is set to 0. You can include the statements check1. Value=1 to mark the Check Box and Check1.Value=0 to unmark the Check Box, as well as use them to initiate certain actions. 4.2. MODULE DESCRIPTION
17

Owner Info Member Info Properties Info Booking Info Staff Info Profile Login: This module used for security purpose .user give username and password .if user give correct username and password user will allow otherwise user is not enter to application. Employee Info: Employee Id, Employee Name, Gender ,Phone Number, Address, Salary, Father Name , Date Of Birth, Date Of Joining, Email Address are registered here. Using this module we can maintain the employee details. By using this Enquiry by, Service by fields are automatically fetched. Manufacturer Info: Manufacture Id, Company Name, Phone No, Address, Email Id, Website Name,

Description are registered here. By using this we can maintain the manufacturer Information. Vehicle manufacturing company like TVS, Honda, Fiat, and Maruthi are maintained by this module. Enquiry Info Enquiry Id, Enquiry Date, Customer Name, Phone No, Address, Email ID, Company Name, Vehicle Type, Model Name, Enquiry By are registered here. This could range from a simple orders list to more sophisticated reports such as top enquiry items, etc. Vehicle Booking Info Booking id, Booking Date, Register Name, Customer Phone Number, Customer Address, Email Id, Company Name is fetched by manufacturer information module, Model Name like kick start or fully loaded, Vehicle Type like two wheeler or four wheeler, Vehicle Color like pale yellow,
18

Amount of initial payment, Mode of Payment that means cash or credit, Registration Number, Booking By are maintained here. By using this module we can estimate number of booking for a day. It is used to company development analyze. Vehicle Service Info The completed services are usually recorded in a service book which is rubber stamped by the service center upon completion of each service. 4.3 FORM VALIDATION Owner Info Form: Validation was done to ensure that the owner has entered numeric values in numeric fields and has entered the alphabets for text fields and has entered the correct date in the date/time field. Member Info Form: Validation was done to ensure that the member has entered numeric values in numeric fields and has entered the alphabets for text fields and has entered the correct date in the date/time field. Property Info Form: Each field was tested by the programmer. Validation was done to ensure the owner has enters a numeric value in the amount field.

19

Chapter 5

System Design
5.SYSTEM DESIGN
20

Design is a iterative process thought which requirements a translated into or blue print for constructing the software design must implement all the implicit all threw implicit requirements and explicit requirements. It must be a readable and understandable. It is not coding. The initial focus of the project will be on in-house league formats. However, the user interface is designed to organize the users' data efficiently and intuitively and can be easily extended to support almost any kind of athletic event. The scheduling system will be developed in Java, while web-based components will be developed in HTML. 5.1.Input Design Input design is the process of converting a user-oriented description of the input into a computerbased system. This design is important to avoid errors in the data input process and show the correct direction to the management for getting correct information from the computerized system. It is achieved by creating user-friendly screens for the data entry to handle large volume of data. The goal of designing input is to make data entry easier and to free from errors. The data entry screens is designed such a way that all the data manipulates can be performed. It also provides record viewing facilities. When the data is entered it will check for its validity. Data can be entered with the help of the screen. Appropriate message are provided as when needed so that the user will not be in maize of instant. The design of input focuses on controlling the amount of input required, controlling the errors, avoiding delay, avoiding extra steps and keeping the process simple. The input is designed in such a way so that it provides security.

5.2.CODE DESIGN A code is an ordered collection of symbols designed to prove unique identification to an entry or an attribute. Purpose of using code is: To achieve unique identification. Can be used instead of the name. To specify an objects physical or performance characteristics.
21

Can be used to give Operational characteristics. 5.3.DATA BASE DESIGN Table : Login Field Name LoginId UserId Password Usertype Data Type Text Text Text Text Size 50 50 50 50 Description Login Id User Id Password User Type

Table : Employee Info Field Name EmpId EmpName Gender PhNo Address Salary FName DOB DOJ EmailId Data Type Number Text Text Text Text Number Text Date/Time Date/Time Text 50 Size 20 50 50 50 50 20 50 Description Employee Id Employee Name Gender Phone No Address Salary Father Name Date Of Birth Date Of Joining Email Id

22

Table : Manufacturer Info Field Name Mid CompanyName PhoneNo Address EmailId WebSiteName EmailId Description Data Type Number Text Text Text Text Text Text Text Size 20 50 50 50 50 50 50 50 Description Manufacture id Company Name Phone Number Address Email Id WebSite Name Email Id Description

Table : Property Info Field Name PropertyId PropertyType PropertyAge PropertyDescription PropertySquareFeet PostDate FurnishedType Address OwnerName ContactNumber EmailId MonthlyRent AdvanceAmount Data Type Number Text Text Text Number Date/Time Text Text Text Text Text Text Text 50 50 50 50 50 50 50 Size 20 50 50 50 20 Description Property Id Property Type Property Age Property Description Property(SquareFeet) Post Date Furnished Type Address Owner Name Contact Number Email Id Monthly Rent Advance Amount

23

Table : Service Info Field Name Sid SDate CustomerName PhoneNo Address RegNo VehicleType CompanyName ModelName ServiceAmount ServiceBy Description Data Type Number Date/Time Text Text Text Text Text Text Text Text Text Text 50 50 50 50 50 50 50 50 50 50 Size 20 Description Service Id Service Date Customer Name Phone Number Address Registration Number Vehicle Type Company Name Model Name Service Amount Service By Description

Table : Booking Info Field Name Bid BookingDate RegisterName PhoneNo Address EmailId CompanyName ModelName Vehicle Type VehicleColor Amount ModePayment Data Type Number Date/Time Text Text Text Text Text Text Text Text Text Text
24

Size 20

Description Booking Id Booking Date

50 50 50 50 50 50 50 50 50 50

Register Name Phone Number Address Email Id CompanyName ModelName Vehicle Type VehicleColor Amount ModePayment

RegNo BookingBy

Text Text

50 50

RegNo BookingBy

25

Table : Customer Info

Field Name Id Name Address

Data Type Number Text Text

Size 10 50 100

Description Id Name Address

Table : Enquiry Info Field Name EId EDate CustomerName PhoneNo Address EmailId CompanyName VechileType ModelName EnquiryBy 5.4.Output Design Designing computer output should processed in an organized, well thought out manner; the right output must be developed while ensuring that each output element is designed so that people will find the system can use easily and effectively. When analysis designs computer output should design: Identify the specific output that is needed to meet the requirements. Create document, report, or other formats that contain information produced by the system. Select the appropriate methods for presenting the information.
26

Data Type Number Text Text Text Text Text Text Text Text Text

Size 10 50 50 50 50 50 50 50 50 50

Description EId EDate CustomerName PhoneNo Address EmailId CompanyName VechileType ModelName EnquiryBy

A quality output is one, which meets the requirements of the end user and presents the information clearly. In output designs it is determined how the information is to be displaced for immediate need and also the hard copy output. It is the most important and direct source information to the user. Efficient and intelligent output design improves the systems relationship to help user decision making.

27

5.5Data Flow Diagram

28

Chapter 6

Testing and Implementation


29

6. SYSTEM IMPLEMENTATION AND TESTING 6.1.SYSTEM TESTING A strategy for software testing may also be viewed in the context of the spiral. Unit testing begins at the vertex of the spiral and concentrates on each unit of the software as implemented in source code. Testing progress by moving outward along the spiral to integration testing, where the focus is on the design and the construction of the software architecture. Talking another turn on outward on the spiral we encounter validation testing where requirements established as part of software requirements analysis are validated against the software that has been constructed. Finally we arrive at system testing, where the software and other system elements are tested as a whole. UNIT TESTING All modules were tested and individually as soon as they were completed and were checked for their correct functionality. Unit testing focuses verification effort on the smallest unit of software design, the module. The unit testing we have is white box oriented and some modules the steps are conducted in parallel. To follow the concept of white box testing we have tested each form .we have created independently to verify that Data flow is correct, All conditions are exercised to check their validity, All loops are executed on their boundaries. INTEGRATION TESTING The entire project was split into small program; each of this single programs gives a frame as an output. These programs were tested individually; at last all these programs where combined together by creating another program where all these constructors were used. It give a lot of problem by not functioning is an integrated manner. The user interface testing is important since the user has to declare that the arrangements made in frames are convenient and it is satisfied. when the frames where given for the test, the end user gave suggestion. Based on their suggestions the frames where modified and put into practice.

30

VALIDATION TESTING At the culmination of the black box testing software is completely assembled as a package. Interfacing errors have been uncovered and corrected and a final series of test i.e., Validation succeeds when the software function in a manner that can be reasonably Accepted by the customer. 6.2. SYSTEM IMPLEMENTATION System implementation is stage in the project where the theoretical design is turned into the working system. The most crucial stage is giving the users confidence that the new system will work effectively and efficiently. The performance of reliability of the system is tested and it gained acceptance. The system was implemented successfully. Implementation is a process that means converting a new system in to operation. Proper implementation is essential to provide a reliable system to meet organization requirements. During the implementation stage a live demon was undertaken and made in front of end-users. The various features provided in the system were discussed during implementation.

31

7.FUTURE ENHANCEMENT In future we will add automated mobile alerts for members and owners means if any user places an order then alerts will automatically go to the member mobile. Also if any owner signs up into our site then his user name and password sends to his mobile. Any property updates will also sends to his mobile. If any new discounts or offers also sends to owners mobile. Now we are maintaining owner, user communication through email id, but in future we will implement it with mobile alerts by sending all customers booking and personal information automatically to vendors mobile immediately. We also extend our website too many cities and also with much more cities. Also we will provide automated mail communication between owners and administrator.

32

Chapter 8

Conclusion

33

8.CONCLUSION The main purpose of Vehicle Management System. We are maintaining good communication between owners and the members. The Computerization of Vehicle Showroom management system plays an important role in any countrys economic development. The propose software assist the authorities in dealing with their proceedings in accordance with the existing rules and regulations. The system facilitates an easy and user-friendly means to the different users present in the vehicle Management System. Intense care has been provided in each step to handle the software as user friendly one. It helps in minimizing the time and maintaining the level of production. This project maintains the details about employees, Enquiry, Sales and Service. The major advantage of this project is it helps in total vehicle show room management automation.

34

Chapter 10

Appendices

35

APPENDICES A.INPUT SCREEN Login Page

36

Admin Page

Home Page

37

Employee Info

Manufacturer Info

38

Vehicle Purchase Info

Enquiry Info Page

39

Vehicle Booking Info

Vehicle Service Info

40

B.SAMPLE CODE Login page Form Private Sub cmdExit_Click() End End Sub Private Sub cmdLogin_Click() If txtUserId.Text = "" Then MsgBox "Please Enter the User Id" txtUserId.SetFocus ElseIf txtPassword.Text = "" Then MsgBox "Please Enter the Password" txtPassword.SetFocus ElseIf cmbUserType.Text = "" Then MsgBox "Please Select the User type" cmbUserType.SetFocus Else Dim qry As String qry = "select * from Login where UserId='" + txtUserId.Text + "' and [Password]='" + txtPassword.Text + "' and UserType='" + cmbUserType.Text + "'" dataLogin.RecordSource = qry dataLogin.Refresh
41

If Not dataLogin.Recordset.EOF Then Me.Hide frmMain.Show Else MsgBox "Invalid User" txtUserId.SetFocus End If End If End Sub Private Sub Form_Load() dataLogin.DatabaseName = DBName dataLogin.RecordsetType = 1 End Sub Manufacture Info Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from ManufactureInfo where Mid='" + txtMId.Text + "'" dataManufractureinfo.RecordSource = qry dataManufractureinfo.Refresh

42

If Not dataManufractureinfo.Recordset.EOF Then dataManufractureinfo.Recordset.MoveFirst dataManufractureinfo.Recordset.Delete MsgBox "Deleted"

txtMId.Text = "" txtCompanyName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = "" txtWebSiteName.Text = "" txtDescription.Text = "" txtSearchbox.Text = "" txtMId.SetFocus Else MsgBox "Not Found" End If End If End Sub

43

Private Sub cmdNew_Click() txtMId.Text = "" txtCompanyName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = "" txtWebSiteName.Text = "" txtDescription.Text = "" txtSearchbox.Text = "" txtMId.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from ManufactureInfo where Mid='" + txtMId.Text + "'" dataManufractureinfo.RecordSource = qry dataManufractureinfo.Refresh If Not dataManufractureinfo.Recordset.EOF Then dataManufractureinfo.Recordset.MoveFirst dataManufractureinfo.Recordset.Edit Else dataManufractureinfo.Recordset.AddNew

44

End If dataManufractureinfo.Recordset(0) = txtMId.Text dataManufractureinfo.Recordset(1) = txtCompanyName.Text dataManufractureinfo.Recordset(2) = txtPhNo.Text dataManufractureinfo.Recordset(3) = txtAddress.Text dataManufractureinfo.Recordset(4) = txtEMailId.Text dataManufractureinfo.Recordset(5) = txtWebSiteName.Text dataManufractureinfo.Recordset(6) = txtDescription.Text dataManufractureinfo.Recordset.Update MsgBox "Saved" txtMId.Text = "" txtCompanyName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = "" txtWebSiteName.Text = "" txtDescription.Text = "" txtSearchbox.Text = "" txtMId.SetFocus End Sub

45

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from ManufactureInfo where Mid='" + txtSearchbox.Text + "'" dataManufractureinfo.RecordSource = qry dataManufractureinfo.Refresh If Not dataManufractureinfo.Recordset.EOF Then dataManufractureinfo.Recordset.MoveFirst txtMId.Text = dataManufractureinfo.Recordset(0) txtCompanyName.Text = dataManufractureinfo.Recordset(1) txtPhNo.Text = dataManufractureinfo.Recordset(2) txtAddress.Text = dataManufractureinfo.Recordset(3) txtEMailId.Text = dataManufractureinfo.Recordset(4) txtWebSiteName.Text = dataManufractureinfo.Recordset(5) txtDescription.Text = dataManufractureinfo.Recordset(6) txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub Form_Load()

46

dataManufractureinfo.DatabaseName = DBName dataManufractureinfo.RecordsetType = 1 End Sub

Enquiry Info Page Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from Enquiry where Eid='" + txtEid.Text + "'" dataEnquiryInfo.RecordSource = qry dataEnquiryInfo.Refresh If Not dataEnquiryInfo.Recordset.EOF Then dataEnquiryInfo.Recordset.MoveFirst dataEnquiryInfo.Recordset.Delete MsgBox "Deleted" txtEid.Text = "" txtEnquiryDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = ""

47

txtCompanyName.Text = "" txtVehicleType.Text = "" txtModelName.Text = "" txtEnquiryBy.Text = "" txtSearchbox.Text = "" txtEid.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtEid.Text = "" txtEnquiryDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = "" txtCompanyName.Text = "" txtVehicleType.Text = "" txtModelName.Text = ""

48

txtEnquiryBy.Text = "" txtSearchbox.Text = "" txtEid.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from Enquiry where Eid='" + txtEid.Text + "'" dataEnquiryInfo.RecordSource = qry dataEnquiryInfo.Refresh If Not dataEnquiryInfo.Recordset.EOF Then dataEnquiryInfo.Recordset.MoveFirst dataEnquiryInfo.Recordset.Edit Else dataEnquiryInfo.Recordset.AddNew End If

dataEnquiryInfo.Recordset(0) = txtEid.Text dataEnquiryInfo.Recordset(1) = txtEnquiryDate.Text dataEnquiryInfo.Recordset(2) = txtCustomerName.Text dataEnquiryInfo.Recordset(3) = txtPhNo.Text dataEnquiryInfo.Recordset(4) = txtAddress.Text

49

dataEnquiryInfo.Recordset(5) = txtEMailId.Text dataEnquiryInfo.Recordset(6) = txtCompanyName.Text dataEnquiryInfo.Recordset(7) = txtVehicleType.Text dataEnquiryInfo.Recordset(8) = txtModelName.Text dataEnquiryInfo.Recordset(9) = txtEnquiryBy.Text

dataEnquiryInfo.Recordset.Update MsgBox "Saved" txtEid.Text = "" txtEnquiryDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtEMailId.Text = "" txtCompanyName.Text = "" txtVehicleType.Text = "" txtModelName.Text = "" txtEnquiryBy.Text = "" txtSearchbox.Text = "" txtEid.SetFocus End Sub

50

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from Enquiry where Eid='" + txtSearchbox.Text + "'"

dataEnquiryInfo.RecordSource = qry dataEnquiryInfo.Refresh

If Not dataEnquiryInfo.Recordset.EOF Then dataEnquiryInfo.Recordset.MoveFirst txtEid.Text = dataEnquiryInfo.Recordset(0) txtEnquiryDate.Text = dataEnquiryInfo.Recordset(1) txtCustomerName.Text = dataEnquiryInfo.Recordset(2) txtPhNo.Text = dataEnquiryInfo.Recordset(3) txtAddress.Text = dataEnquiryInfo.Recordset(4) txtEMailId.Text = dataEnquiryInfo.Recordset(5) txtCompanyName.Text = dataEnquiryInfo.Recordset(6) txtVehicleType.Text = dataEnquiryInfo.Recordset(7) txtModelName.Text = dataEnquiryInfo.Recordset(8) txtEnquiryBy.Text = dataEnquiryInfo.Recordset(9)

51

txtSearchbox.Text = ""

Else MsgBox "Not Found" End If

End Sub

Private Sub cmdView_Click() rptEnquiry.Show End Sub

Private Sub Form_Load() dataEnquiryInfo.DatabaseName = DBName dataEnquiryInfo.RecordsetType = 1

End Sub Vehicle Booking Info

Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then
52

Dim qry As String qry = "select * from BookingInfo where Bid='" + txtBid.Text + "'" dataVechileBookinginfo.RecordSource = qry dataVechileBookinginfo.Refresh

If Not dataVechileBookinginfo.Recordset.EOF Then dataVechileBookinginfo.Recordset.MoveFirst dataVechileBookinginfo.Recordset.Delete MsgBox "Deleted"

txtBid.Text = "" txtBookingDate.Text = "" txtRegisterName.Text = "" txtPhNo.Text = "" txtEmailId.Text = "" txtCompanyName.Text = "" txtModelName.Text = "" txtVehicleType.Text = "" txtVehicleColor.Text = "" txtAmount.Text = "" txtModePayment.Text = "" txtRegNo.Text = "" txtBookingBy.Text = ""

txtSearchbox.Text = "" txtBid.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtBid.Text = "" txtBookingDate.Text = "" txtRegisterName.Text = "" txtPhNo.Text = "" txtEmailId.Text = ""
53

txtCompanyName.Text = "" txtModelName.Text = "" txtVehicleType.Text = "" txtVehicleColor.Text = "" txtAmount.Text = "" txtModePayment.Text = "" txtRegNo.Text = "" txtBookingBy.Text = ""

txtSearchbox.Text = "" txtBid.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from BookingInfo where Bid='" + txtBid.Text + "'" dataVechileBookinginfo.RecordSource = qry dataVechileBookinginfo.Refresh

If Not dataVechileBookinginfo.Recordset.EOF Then dataVechileBookinginfo.Recordset.MoveFirst dataVechileBookinginfo.Recordset.Edit Else dataVechileBookinginfo.Recordset.AddNew End If dataVechileBookinginfo.Recordset(0) = txtBid.Text dataVechileBookinginfo.Recordset(1) = txtBookingDate.Text dataVechileBookinginfo.Recordset(2) = txtRegisterName.Text dataVechileBookinginfo.Recordset(3) = txtPhNo.Text dataVechileBookinginfo.Recordset(4) = txtAddress.Text dataVechileBookinginfo.Recordset(5) = txtEmailId.Text dataVechileBookinginfo.Recordset(6) = txtCompanyName.Text dataVechileBookinginfo.Recordset(7) = txtModelName.Text dataVechileBookinginfo.Recordset(8) = txtVehicleType.Text dataVechileBookinginfo.Recordset(9) = txtVehicleColor.Text dataVechileBookinginfo.Recordset(10) = txtAmount.Text dataVechileBookinginfo.Recordset(11) = txtModePayment.Text dataVechileBookinginfo.Recordset(12) = txtRegNo.Text
54

dataVechileBookinginfo.Recordset(13) = txtBookingBy.Text dataVechileBookinginfo.Recordset.Update MsgBox "Saved" txtBid.Text = "" txtBookingDate.Text = "" txtRegisterName.Text = "" txtPhNo.Text = "" txtEmailId.Text = "" txtCompanyName.Text = "" txtModelName.Text = "" txtVehicleType.Text = "" txtVehicleColor.Text = "" txtAmount.Text = "" txtModePayment.Text = "" txtRegNo.Text = "" txtBookingBy.Text = ""

txtSearchbox.Text = "" txtBid.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from BookingInfo where Bid='" + txtSearchbox.Text + "'" dataVechileBookinginfo.RecordSource = qry dataVechileBookinginfo.Refresh

If Not dataVechileBookinginfo.Recordset.EOF Then dataVechileBookinginfo.Recordset.MoveFirst txtBid.Text = dataVechileBookinginfo.Recordset(0) txtBookingDate.Text = dataVechileBookinginfo.Recordset(1) txtRegisterName.Text = dataVechileBookinginfo.Recordset(2) txtPhNo.Text = dataVechileBookinginfo.Recordset(3) txtAddress.Text = dataVechileBookinginfo.Recordset(4) txtEmailId.Text = dataVechileBookinginfo.Recordset(5) txtCompanyName.Text = dataVechileBookinginfo.Recordset(6) txtModelName.Text = dataVechileBookinginfo.Recordset(7)
55

txtVehicleType.Text = dataVechileBookinginfo.Recordset(8) txtVehicleColor.Text = dataVechileBookinginfo.Recordset(9) txtAmount.Text = dataVechileBookinginfo.Recordset(10) txtModePayment.Text = dataVechileBookinginfo.Recordset(11) txtRegNo.Text = dataVechileBookinginfo.Recordset(12) txtBookingBy.Text = dataVechileBookinginfo.Recordset(13)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click() rptBookingInfo.Show End Sub Private Sub Form_Load() dataVechileBookinginfo.DatabaseName = DBName dataVechileBookinginfo.RecordsetType = 1 End Sub

Vehicle Service Info Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from ServiceInfo where Sid='" + txtSId.Text + "'" dataVechileServiceinfo.RecordSource = qry dataVechileServiceinfo.Refresh If Not dataVechileServiceinfo.Recordset.EOF Then dataVechileServiceinfo.Recordset.MoveFirst dataVechileServiceinfo.Recordset.Delete MsgBox "Deleted"

txtSId.Text = ""
56

txtServiceDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtRegNo.Text = "" txtVehicleType.Text = "" txtCompanyName.Text = "" txtModelName.Text = "" txtServiceAmount.Text = "" txtServiceBy.Text = "" txtDesription.Text = ""

txtSearchbox.Text = "" txtSId.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtSId.Text = "" txtServiceDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtRegNo.Text = "" txtVehicleType.Text = "" txtCompanyName.Text = "" txtModelName.Text = "" txtServiceAmount.Text = "" txtServiceBy.Text = "" txtDesription.Text = ""

txtSearchbox.Text = "" txtSId.Text = SetFocus End Sub

57

Private Sub cmdSave_Click() Dim qry As String qry = "select * from ServiceInfo where Sid='" + txtSId.Text + "'" dataVechileServiceinfo.RecordSource = qry dataVechileServiceinfo.Refresh

If Not dataVechileServiceinfo.Recordset.EOF Then dataVechileServiceinfo.Recordset.MoveFirst dataVechileServiceinfo.Recordset.Edit Else dataVechileServiceinfo.Recordset.AddNew End If dataVechileServiceinfo.Recordset(0) = txtSId.Text dataVechileServiceinfo.Recordset(1) = txtServiceDate.Text dataVechileServiceinfo.Recordset(2) = txtCustomerName.Text dataVechileServiceinfo.Recordset(3) = txtPhNo.Text dataVechileServiceinfo.Recordset(4) = txtAddress.Text dataVechileServiceinfo.Recordset(5) = txtRegNo dataVechileServiceinfo.Recordset(6) = txtVehicleType.Text dataVechileServiceinfo.Recordset(7) = txtCompanyName.Text dataVechileServiceinfo.Recordset(8) = txtModelName.Text dataVechileServiceinfo.Recordset(9) = txtServiceAmount.Text dataVechileServiceinfo.Recordset(10) = txtServiceBy.Text dataVechileServiceinfo.Recordset(11) = txtDesription.Text dataVechileServiceinfo.Recordset.Update MsgBox "Saved" txtSId.Text = "" txtServiceDate.Text = "" txtCustomerName.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtRegNo.Text = "" txtVehicleType.Text = "" txtCompanyName.Text = "" txtModelName.Text = "" txtServiceAmount.Text = "" txtServiceBy.Text = "" txtDesription.Text = "" txtSearchbox.Text = ""

58

txtSId.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from ServiceInfo where sid='" + txtSearchbox.Text + "'" dataVechileServiceinfo.RecordSource = qry dataVechileServiceinfo.Refresh

If Not dataVechileServiceinfo.Recordset.EOF Then dataVechileServiceinfo.Recordset.MoveFirst txtSId.Text = dataVechileServiceinfo.Recordset(0) txtServiceDate.Text = dataVechileServiceinfo.Recordset(1) txtCustomerName.Text = dataVechileServiceinfo.Recordset(2) txtPhNo.Text = dataVechileServiceinfo.Recordset(3) txtAddress.Text = dataVechileServiceinfo.Recordset(4) txtRegNo.Text = dataVechileServiceinfo.Recordset(5) txtVehicleType.Text = dataVechileServiceinfo.Recordset(6) txtCompanyName.Text = dataVechileServiceinfo.Recordset(7) txtModelName.Text = dataVechileServiceinfo.Recordset(8) txtServiceAmount.Text = dataVechileServiceinfo.Recordset(9) txtServiceBy.Text = dataVechileServiceinfo.Recordset(10) txtDesription.Text = dataVechileServiceinfo.Recordset(11)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub Form_Load() dataVechileServiceinfo.DatabaseName = DBName dataVechileServiceinfo.RecordsetType = 1 End Sub

Employee info

59

Private Sub cmdDelete_Click() If MsgBox("Are you delete this record?", vbYesNo) = vbYes Then Dim qry As String qry = "select * from Employee where EmpId='" + txtEid.Text + "'" dataEmployeeInfo.RecordSource = qry dataEmployeeInfo.Refresh

If Not dataEmployeeInfo.Recordset.EOF Then dataEmployeeInfo.Recordset.MoveFirst dataEmployeeInfo.Recordset.Delete MsgBox "Deleted" txtEid.Text = "" txtEmpName.Text = "" txtGender.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtSalary.Text = "" txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtEMailId.Text = ""

txtSearchbox.Text = "" txtEid.SetFocus Else MsgBox "Not Found" End If End If End Sub Private Sub cmdNew_Click() txtEid.Text = "" txtEmpName.Text = "" txtGender.Text = "" txtPhNo.Text = "" txtAddress.Text = "" txtSalary.Text = ""
60

txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtEMailId.Text = ""

txtSearchbox.Text = "" txtEid.SetFocus End Sub Private Sub cmdSave_Click() Dim qry As String qry = "select * from Employee where EmpID='" + txtEid.Text + "'" dataEmployeeInfo.RecordSource = qry dataEmployeeInfo.Refresh

If Not dataEmployeeInfo.Recordset.EOF Then dataEmployeeInfo.Recordset.MoveFirst dataEmployeeInfo.Recordset.Edit Else dataEmployeeInfo.Recordset.AddNew End If

dataEmployeeInfo.Recordset(0) = txtEid.Text dataEmployeeInfo.Recordset(1) = txtEmpName.Text dataEmployeeInfo.Recordset(2) = txtGender.Text dataEmployeeInfo.Recordset(3) = txtPhNo.Text dataEmployeeInfo.Recordset(4) = txtAddress.Text dataEmployeeInfo.Recordset(5) = txtSalary.Text dataEmployeeInfo.Recordset(6) = txtFName.Text dataEmployeeInfo.Recordset(7) = txtDOB.Text dataEmployeeInfo.Recordset(8) = txtDOJ.Text dataEmployeeInfo.Recordset(9) = txtEMailId.Text

dataEmployeeInfo.Recordset.Update MsgBox "Saved" txtEid.Text = "" txtEmpName.Text = "" txtGender.Text = ""


61

txtPhNo.Text = "" txtAddress.Text = "" txtSalary.Text = "" txtFName.Text = "" txtDOB.Text = "" txtDOJ.Text = "" txtEMailId.Text = "" txtSearchbox.Text = "" txtEid.SetFocus End Sub

Private Sub cmdSearch_Click() Dim qry As String qry = "select * from Employee where EmpID='" + txtSearchbox.Text + "'" dataEmployeeInfo.RecordSource = qry dataEmployeeInfo.Refresh

If Not dataEmployeeInfo.Recordset.EOF Then dataEmployeeInfo.Recordset.MoveFirst txtEid.Text = dataEmployeeInfo.Recordset(0) txtEmpName.Text = dataEmployeeInfo.Recordset(1) txtGender.Text = dataEmployeeInfo.Recordset(2) txtPhNo.Text = dataEmployeeInfo.Recordset(3) txtAddress.Text = dataEmployeeInfo.Recordset(4) txtSalary.Text = dataEmployeeInfo.Recordset(5) txtFName.Text = dataEmployeeInfo.Recordset(6) txtDOB.Text = dataEmployeeInfo.Recordset(7) txtDOJ.Text = dataEmployeeInfo.Recordset(8) txtEMailId.Text = dataEmployeeInfo.Recordset(9)

txtSearchbox.Text = "" Else MsgBox "Not Found" End If End Sub Private Sub cmdView_Click()
62

rptEmployeeReport.Show End Sub Private Sub Form_Load() dataEmployeeInfo.DatabaseName = DBName dataEmployeeInfo.RecordsetType = 1 End Sub

63

Você também pode gostar