Service Center Management Project Report

53

Transcript of Service Center Management Project Report

Page 1: Service Center Management Project Report
Page 2: Service Center Management Project Report

A

PROJECT REPORTON

“ AUTOMOBILE SERVICE CENTER ”

Bachelor Of Engineering in Computer Science6TH SEM

SESSION 2010-2011

GUIDED BY: SUBMITTED BY:

MRS. PRIYANKA AGRAWAL NEERAJ SINGH RAJPUT MEGHA SHRI SAO

DEPARTMENT OF COMPUTER SCIENCE ENGINEERING CHHATTISGARH INSTITUTE OF MANAGEMENT AND TECHNOLOGY

GANIYARI , BHILAI-3 (C.G.)

Page 3: Service Center Management Project Report

CERTIFICATE

Page 4: Service Center Management Project Report

ACKNOWLEDGEMENT

Page 5: Service Center Management Project Report

SYNOPSIS

Name of Project:- Automobile Service center.

Language used :-

Frontend- Microsoft Visual Basic .

Backend –Microsoft Access.

Description of project :- This project is based on customer record service . By this we can store the data of availability of automobiles models , customers bike’s servicing , servicing report , customers reports etc .

Technique used:- It is based on data entry management .

Utility of the project:-

Since the project is based on the customer record requirement , it is user friendly too .

Future Enhancement:-

In future it can be used to maintain the record of the customer.

Page 6: Service Center Management Project Report

HARDWARE REQUIREMENT

Monitor SVGA Monitor or VGA monitor

Keyboard 101 keys

Mouse One PC mouse

Processor Pentium III

RAM 128 MB

Disk space 20 GB

Page 7: Service Center Management Project Report

SOFTWARE REQUIREMENT

Operating system

- Windows 98

- Windows 2000

- Windows XP

Front End

- Visual Basic 6.0

Back End

- MS ACCESS

Page 8: Service Center Management Project Report

INTRODUCTION

Page 9: Service Center Management Project Report

INTRODUCTION TO FRONT END

VISUAL BASIC 6.0

Visual basic is primarily a visual design (GUI) environment. Visual Basic is object-oriented, i.e. it revolves around ready-made objects, and it is event driven, i.e. all the activities in a program are triggered by one event or another. Each object has its own properties, determining its position, size, color, the appearance and nature of its text, and much more. Each object also has its own event handling procedures. The Visual Basic system knows what a button is and how it works. It also knows how to handle images, menus, dialog boxes, drives and directory lists, and much else.

The programmer’s job is to determine where, how and when an object appears on screen, what its caption reads, and what happens when an event occurs, that event might be opening of the form, the user clicking on a button or typing text into a box. The programmer does not have to write code to trap these events- the system does that automatically. Because the program code runs in response to events, and as at any point on a whole range of events might be possible, the flow of execution is not as fixed as in a traditional program. Operations do not have to

Page 10: Service Center Management Project Report

follow a set sequence and can be easily interrupted, suspended abandoned.

ADVANTAGES OF USING VISUAL BASIC 6.0

1. Visual basic applications are event driven means the user is in control the application. The user generates a steam of event each time he or she clicks with the mouse of presses a key on the keyboard. Your visual basic application responds to those events through the code you’ve written and attached to these events.

2. Visual basic supports the principle of object oriented design. This means that we can compartmentalize different aspects of our application as objects and develop and test those objects independently of the rest of the application. By modifying certain properties and invoking the methods of those objects, we experts a great deal of control over the user’s interaction with the visual basic.

3. Programs we’ve written.

4. Although visual basic does not comply with all concepts and principle behind the object-oriented development model supported by visual C++

5. Environments, visual basic include enough of these to more than satisfy all but the most ardent followers of Objected Oriented Programming.

Page 11: Service Center Management Project Report

6. Microsoft has visual basic to complete windows application development system. This means that our visual basic application will look and behave like other windows program our users might work with. In other words, our visual basic applications will confirm to the windows look and feel without any extra work on our part. Unlike visual C++ and other development platforms we don’t have to go to extreme measures to employ even the most sophisticated windows features in our visual basic application.

7. Visual basic is infinitely extensible through the use of active-x controls, dynamically linked libraries (DLLs), add-ins etc. we can create this active-x controls DLLs, and add-ins with visual basic 6.0 or buy them off the shelf from a large number of third party software vendors. Infact, one of the major influences driving to rapid adoption of visual basic 6 is the desire of many developers to create an active-x controls and DLLs for use in other windows applications such excel, word, and access.

INTEGRATED DEVELOPMENT ENVIRONMENT

VB provides IDE (Integrated Development Environment). The IDE is where you do programming in VB-just as the name says; you develop your project in the Integrated Development Environment. It is called integrated because we can access virtually all of the development tools that we need from one screen called an interface

Over the years the IDE has become more powerful, and with that power has come complex. The IDE use to be more or

Page 12: Service Center Management Project Report

less invisible to programmer but now that they are kinds of project portion, active-x controls to add, version study. The IDE is also commonly referred as the design environment or the program.

The visual basic IDE has three distinct states:

1. Design2. Run3. Debug

The IDE is composed of these components:

1. The Menu Bar2. The Tool Bar3. The Projected Explorer4. The Properties Windows5. The Form Layout Windows

6. The Tool Box

PARTS OF VISUAL BASIC

Projects can become quite advanced in visual basic, even containing sub projects of different types. Visual basic projects usually contain three types of items.

1. Global Items2. Forms3. Modules

1. Global Items Global items are accessible to all modules and form in a

project and you declare them with the PUBLIC keyword.

Page 13: Service Center Management Project Report

However, Microsoft recommends that you keep the number of global items to an absolute minimum and, infact, suggests there use only when you need to communicate between forms. One reason to avoid global variables in their accessibility from anywhere in the program while you’re working with a global variable in one part of a program, another part of the program might be busy changing that variable, giving you unpredictable results.

2. Forms Forms are familiar to all VB programmers, of course- they

are templates you base windows on. Besides standard forms, VB also supports multiple documents interface (MDI) forms, as well as whole number of predefined forms.

3. Modules Modules are collection of code and data that function

something like object in object-oriented programming (OOP), but without defining OOP characteristics like inheritance, polymorphism, and so on. The point behind the program. We will discuss the importance of doing this later in this project when we cover VB programming techniques and style breaking a large program into smaller, self-contained modules can be invaluable for creating and maintaining code.

Page 14: Service Center Management Project Report

RELATIONAL DATABASEMANAGEMENT SYSTEM

Information is the backbone of any organization this need for managing data and retrieving information has led to an extensive use of computer in the business world. Realization the data is major management resource, has led to the invention of various means of the managing them effectively. This is where relational management database comes into picture. This rdbms has eliminated explicit parent- child relation.

A data base management system offers a systematic approach for managing database or a collection or database of files. A DBMS enables users to access and manipulate information with minimum effort. In such a system, one can easily add data elements to the elements no longer needed. A relational database is a database that is perceived by the user as collection of time varying, normalized relation pf assorted degrees. In other words, the term relational database means a database for which the operators available to the users or one that operate on relational structures. It does not necessarily means that data is stored in the form of tables.

Page 15: Service Center Management Project Report

All data represented in one and only one way, by explicit values. Since the attributes are unique at intersection of a row and a column, there is only one value.

REQUIREMENT ANALYSISA requirement determination involves study in the current

system to find out how it works where improvement should be made. System study results in an evaluation of how many current methods are working and whether improvements are necessary if possible. They consider both computer and manual methods.

This is the first and most important phase of the system development. Determining the user’s requirement to develop a system is main objective of this phase.

Requirements determination is done by the following steps:

Studying manual system Observing the system process Determining problem faced by the

user in the existing system Determining the enhancement

required in the proposed system.

The existing system and problems faced by the user are known by studying the manual system and interviewing the

Page 16: Service Center Management Project Report

existing system. Interviewing the user are found very useful and helpful for finding enhancement required in proposed system.

Page 17: Service Center Management Project Report

MS Access

It is an interactive relational management system for Microsoft windows. It helps to store, find, organize and present data meaning fully.Microsoft access is a GUI.

Microsoft access takes fully advantage of the graphical power in windows which gives access to data and simple ways to view and works with the information.

It is powerful for querying capability that’s helpful to find the information regardless of format or location. You can use one query to work with the data stored in different database and can change query at any time.

Ms Access is used for data publishing: WYSIWYG (what you see is what you get) which helps –to produce effective forms and reports to meet your exact specifications. You can data, combine forms and reports into one document.

Page 18: Service Center Management Project Report

INTRODUCTION

This System introduce the concept necessary for Automobile Service Center.

This system helps the end-user to maintain record of vehicle and its servicing.This system helps to maintain detail information of customers.

Through this system we maintain the details of customers who appear their vehicle in the service center. This system help the user to input the nodel entry which related to customers and easily to get data with description of model. In computer , user has to maintain each indivisual customer record.

Through this system we can easily maintain cutomer record and servicing detailes of all customer with time period. And we efficiently maintain servicing records

.

In this system we use Front-End as VISUAL BASIC and Back-End as MS ACCESS.

Page 19: Service Center Management Project Report

FLOW CHART

Page 20: Service Center Management Project Report

PASS WORD FLOW CHART

MAIN MENU FLOW CHART

START

PW=INPUT PASSWORD

IF PW = VALID

PW=VALID

MAIN MENU

YES

EXIT FROM PROJECT

STOP

M

Page 21: Service Center Management Project Report

BUT =INPUT VALUE

IF

BUT=1MODEL ENTRY

YES

NO

IF BUT=2

IF BUT=3

IF BUT=4

YES

CUSTOMER ENTRY

NO

NO

SERVICING ENTRY

MODEL REPORT

YES

YES

NO

C

M

Page 22: Service Center Management Project Report

CODING & SNAPSHOTS

IF

BUT=5

IF

BUT=6

IF

BUT=7

STOP

CUSTOMER REPORT

HELP

SERVICING REPORT

YES

YES

YES

NO

NO

NO

C

Page 23: Service Center Management Project Report

Option ExplicitDim rs As New ADODB.RecordsetDim sql As String

Private Sub cmbcolor_KeyPress(KeyAscii As Integer)valid1 KeyAsciiEnd Sub

Private Sub cmbmodel_Click()If cmbmodel.Locked = True Then Exit SubIf cmbmodel.ListIndex <> -1 ThencloseRSrs.Open "select numofserv from freeservice where sno=" & Mid(cmbmodel.Text, 1, InStr(cmbmodel.Text, "-") - 1), con, adOpenKeyset, adLockPessimistic, adCmdTextIf rs.RecordCount > 0 Thentxtnos.Text = rs(0)cmbcolor.SetFocusEnd IfEnd IfEnd Sub

Private Sub cmdrefresh_Click()cmdsave.Enabled = Falsecmdnew.Enabled = Truecmdupdate.Enabled = Falsecmdmod.ZOrder 0cmdmod.Enabled = Truecmdfind.Enabled = TrueForm_LoadEnd SubPrivate Sub cmdclos_Click()Frame5.Visible = FalseEnd SubPrivate Sub cmdclose_Click()Unload MeEnd SubPrivate Sub cmdfind_Click()

Page 24: Service Center Management Project Report

Frame5.Visible = TruecloseRSsql = "select cust_id,cust_name,model,d_o_sold from cust_detl order by cust_id"rs.Open sql, con, adOpenKeyset, adLockPessimistic, adCmdTextList1.ClearIf rs.RecordCount > 0 ThenWhile rs.EOF = False List1.AddItem rs(0) & " " & Chr(9) & rs(1) & Chr(9) & rs(2) & Chr(9) & rs(3) rs.MoveNextWendEnd IfEnd SubPrivate Sub CMDMOD_Click()dtpDosold.Enabled = Truecmdmod.ZOrder 1locktext Me, Falsecmdupdate.Enabled = Truecmdnew.Enabled = Falsecmdfind.Enabled = FalseEnd Sub

Sub cmdnew_Click()cleartext MedtpDosold.Value = Datelocktext Me, FalsecloseRScmbmodel.ListIndex = -1cmbcolor.ListIndex = -1sql = "select max(cust_id) from cust_detl"rs.Open sql, con, adOpenKeyset, adLockPessimistic, adCmdTextIf IsNull(rs(0)) Thentxtcid.Text = 1Elsetxtcid.Text = rs(0) + 1End IfdtpDosold.Enabled = True

Page 25: Service Center Management Project Report

txtcname.SetFocuscmdnew.Enabled = Falsecmdupdate.Enabled = Falsecmdfind.Enabled = Falsecmdsave.Enabled = Truecmdmod.Enabled = FalseEnd SubPrivate Sub cmdsave_Click()If Len(txtcname.Text) = 0 Thentxtcname.SetFocusMsgBox "Plz Enter Customer Name"Exit SubEnd IfIf Len(txtcadd.Text) = 0 Thentxtcadd.SetFocusMsgBox "Plz Enter Customer Address"Exit SubEnd Iftxtphno.Text = IIf(Len(txtphno.Text) = 0, "-", txtphno.Text)txtmobno.Text = IIf(Len(txtmobno.Text) = 0, "-", txtmobno.Text)If Len(txtframeno.Text) = 0 Thentxtframeno.SetFocusMsgBox "Plz Enter Frame No"Exit SubEnd IfIf Len(txtengno.Text) = 0 Thentxtengno.SetFocusMsgBox "Plz Enter Engine No"Exit SubEnd IfIf Len(cmbmodel.Text) = 0 Thencmbmodel.SetFocusMsgBox "Plz Select Model Name"Exit SubEnd IfIf Len(cmbcolor.Text) = 0 Thencmbcolor.SetFocusMsgBox "Plz Select Model Color"

Page 26: Service Center Management Project Report

Exit SubEnd IfIf Len(txtregno.Text) = 0 Thentxtregno.SetFocusMsgBox "Plz Enter Registration No"Exit SubEnd IfIf dtpDosold.Value > Date ThendtpDosold.SetFocusMsgBox "Plz Check The Sold Date"Exit SubEnd Ifsql = "insert into cust_detl values(" & CInt(txtcid.Text) & ",'" & UCase(Trim(txtcname.Text)) & "','" & UCase(Trim(txtcadd.Text)) & "','" & Trim(txtphno.Text) & "','" & Trim(txtmobno.Text) & "','" & UCase(Trim(txtframeno.Text)) & "','" & UCase(Trim(txtengno.Text)) & "','" & cmbmodel.Text & "'," & CInt(txtnos.Text) & ",'" & Trim(cmbcolor.Text) & "','" & UCase(Trim(txtregno.Text)) & "',#" & CDate(dtpDosold.Value) & "#,FALSE)"con.Execute sqlMsgBox "Record Succesfully Saved"Form_LoadEnd SubPrivate Sub cmdupdate_Click()If Len(txtcname.Text) = 0 Thentxtcname.SetFocusMsgBox "Plz Enter Customer Name"Exit SubEnd IfIf Len(txtcadd.Text) = 0 Thentxtcadd.SetFocusMsgBox "Plz Enter Customer Address"Exit SubEnd Iftxtphno.Text = IIf(Len(txtphno.Text) = 0, "-", txtphno.Text)txtmobno.Text = IIf(Len(txtmobno.Text) = 0, "-", txtmobno.Text)If Len(txtframeno.Text) = 0 Then

Page 27: Service Center Management Project Report

txtframeno.SetFocusMsgBox "Plz Enter Frame No"Exit SubEnd IfIf Len(txtengno.Text) = 0 Thentxtengno.SetFocusMsgBox "Plz Enter Engine No"Exit SubEnd IfIf Len(cmbmodel.Text) = 0 Thencmbmodel.SetFocusMsgBox "Plz Enter Model Name"Exit SubEnd IfIf Len(cmbcolor.Text) = 0 Thencmbcolor.SetFocusMsgBox "Plz Select Model Color"Exit SubEnd IfIf Len(txtregno.Text) = 0 Thentxtregno.SetFocusMsgBox "Plz Enter Registration No"Exit SubEnd IfIf dtpDosold.Value > Date ThendtpDosold.SetFocusMsgBox "Plz Check The Sold Date"Exit SubEnd Ifsql = "update cust_detl set cust_name='" & UCase(Trim(txtcname.Text)) & "',address='" & UCase(Trim(txtcadd.Text)) & "',ph_no='" & Trim(txtphno.Text) & "',mob_no='" & Trim(txtmobno.Text) & "',frame_no='" & UCase(Trim(txtframeno.Text)) & "',engine_no='" & UCase(Trim(txtengno.Text)) & "',model='" & UCase(Trim(cmbmodel.Text)) & "',color='" & UCase(Trim(cmbcolor.Text)) & "',REG_NO='" & UCase(Trim(txtregno.Text)) & "',d_o_sold=#" &

Page 28: Service Center Management Project Report

CDate(dtpDosold.Value) & "#,nos=" & CInt(txtnos.Text) & " WHERE CUST_ID=" & CLng(txtcid.Text)con.Execute sqlMsgBox "Record Succesfully Updated"Form_Loadcmdupdate.ZOrder 1End Sub

Private Sub list1_dblClick()closeRSsql = "select * from cust_detl where cust_id=" & Mid(List1.Text, 1, InStr(List1.Text, " ") - 1)rs.Open sql, con, adOpenKeyset, adLockPessimistic, adCmdTextIf rs.RecordCount > 0 ThenseeFrame5.Visible = FalseElseExit SubEnd IfEnd SubPrivate Sub Form_Load()locktext Me, Truecenterfrm MecloseRSrs.Open "select sno,modelname from freeservice", con, adOpenKeyset, adLockPessimistic, adCmdTextcmbmodel.ClearIf rs.RecordCount > 0 Then While rs.EOF = False cmbmodel.AddItem rs(0) & "-" & rs(1) rs.MoveNext WendEnd If closeRSdtpDosold.Value = Date

Page 29: Service Center Management Project Report

rs.Open "select * from cust_detl", con, adOpenKeyset, adLockPessimistic, adCmdTextIf rs.RecordCount = 0 Thencmdsave.Enabled = Falsecmdnew.Enabled = Truecmdupdate.Enabled = Falsecmdfind.Enabled = FalsedtpDosold.Enabled = Falsecmdmod.Enabled = FalseElsedtpDosold.Enabled = Falsecmdsave.Enabled = Falsecmdnew.Enabled = Truecmdupdate.Enabled = Falsecmdmod.Enabled = Truecmdfind.Enabled = TrueseeEnd IfEnd Sub

Private Sub txtcname_KeyPress(KeyAscii As Integer)valid1 KeyAsciiEnd Sub

Private Sub txtmobno_keypress(KeyAscii As Integer)valid KeyAsciiEnd Sub

Private Sub txtmodel_KeyPress(KeyAscii As Integer)valid1 KeyAsciiEnd Sub

Private Sub txtphno_keypress(KeyAscii As Integer)valid KeyAsciiEnd Sub

Private Sub closeRS()If rs.State = 1 Then

Page 30: Service Center Management Project Report

rs.CloseSet rs = NothingEnd IfEnd Sub

Private Sub see()txtcid.Text = rs(0)txtcname.Text = rs(1)txtcadd.Text = rs(2)txtphno.Text = rs(3)txtmobno.Text = rs(4)txtframeno.Text = rs(5)txtengno.Text = rs(6)

txtnos.Text = rs(8)cmbcolor.Text = rs(9)txtregno.Text = rs(10)dtpDosold.Value = rs(11)End Sub

LOGIN FORM

Page 31: Service Center Management Project Report

Option ExplicitPrivate Sub cmdclose_Click()Unload MeEnd SubPrivate Sub cmdlogin_Click()If Len(txtuname.Text) = 0 ThenMsgBox "Plz Enter User Name"txtuname.SetFocusExit SubEnd IfIf Len(txtpass.Text) = 0 ThenMsgBox "Plz Enter Password"txtpass.SetFocusExit SubEnd IfIf UCase(txtpass.Text) = "RAJPUT" Then MsgBox "Welcome" Unload Me frmSplash.ShowElse MsgBox "Invalid Password ,Try again." txtpass.SetFocus txtpass.Text = ""End IfEnd SubPrivate Sub Form_Load()centerfrm MeEnd Sub

SPLASH SCREEN

Page 32: Service Center Management Project Report

Option Explicit

Private Sub Timer1_Timer()

pbar1.Value = pbar1.Value + 10

Label13.Caption = "Loding ....." & pbar1.Value & "%"

If pbar1.Value >= 100 Then

Timer1.Enabled = False

Unload Me

frmContainer.Show

End If

End Sub

Page 33: Service Center Management Project Report

MAIN SCREEN

Private Sub cmdCE_Click()

Dim cd As New frmcust_detail

cd.Show

End Sub

Private Sub cmdCR_Click()

Page 34: Service Center Management Project Report

If ServiceDataEnv.rscmdcustomer.State = 1 Then ServiceDataEnv.rscmdcustomer.Close

ServiceDataEnv.cmdcustomer

ServiceDataEnv.rscmdcustomer.Requery (0)

custdatareport.Show

End Sub

Private Sub cmdH_Click()

frmAbout.Show

End Sub

Private Sub cmdME_Click()

Dim fn As New frmnos

fn.Show

End Sub

Private Sub cmdMR_Click()

Page 35: Service Center Management Project Report

MODEL ENTRY

Private Sub cmdME_Click()

Dim fn As New frmnos

fn.Show

End Sub

Page 36: Service Center Management Project Report

CUSTOMER ENTRY

Private Sub cmdCE_Click()

Dim cd As New frmcust_detail

cd.Show

End Sub

Page 37: Service Center Management Project Report

SERVICING ENTRY

Private Sub cmdSE_Click()

Dim sd As New frmsevice_detl

sd.Show

End Sub

Page 38: Service Center Management Project Report

MODEL REPORT

Private Sub cmdMR_Click()

If ServiceDataEnv.rscmdfservice.State = 1 Then ServiceDataEnv.rscmdfservice.Close

ServiceDataEnv.cmdfservice

ServiceDataEnv.rscmdfservice.Requery (0)

Fserdatareport.Show

End Sub

Page 39: Service Center Management Project Report

CUSTOMER REPORT

Private Sub cmdCR_Click()

If ServiceDataEnv.rscmdcustomer.State = 1 Then ServiceDataEnv.rscmdcustomer.Close

ServiceDataEnv.cmdcustomer

ServiceDataEnv.rscmdcustomer.Requery (0)

custdatareport.Show

End Sub

Page 40: Service Center Management Project Report

SERVICING REPORT

Private Sub cmdSR_Click()

If ServiceDataEnv.rscmdservice.State = 1 Then ServiceDataEnv.rscmdservice.Close

ServiceDataEnv.cmdservice

ServiceDataEnv.rscmdservice.Requery (0)

ServDataReport.Show

End Sub

Page 41: Service Center Management Project Report

ABOUT

Private Sub cmdH_Click()

frmAbout.Show

End Sub

Page 42: Service Center Management Project Report

REFERENCE

For the completion of this project we refer to the following

Books…

1. Visual Basic 6.0 Programming

By Streven Holzner

2. Database Programming with Visual Basic

By Curtis L. Smith

3. Complete Reference

By Ivan Baros

Page 43: Service Center Management Project Report