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

1

Acknowledgement

Acknowledgement is not only a ritual but also an expression of indebtedness to all those
who help the process of project development. One of the most pleasant aspects in
collecting the necessary information, compiling it, is the opportunity to think of those who
actively contributed to it. We wish to express our heartfelt thanks to all those who assisted
us during this project.
We would like to express our profound and deep sense of gratitude to our guide Sumana
Bhattacharjee for her invaluable help, guidance and suggestions without which this project
would not have been successful.
We offer our sincere thanks to all our batch mates for their unconditional help and
inspiration at BRAINWARE (Branch sinthee). Lastly, We would like to express our sincere
gratitude to all the staffs, who helped us in their own way whenever we needed.

KOUSTAV KUNDU
SANTOSH KUMAR
SHAHID IQBAL

Contents Page
2

1. Introduction
1.1 Purpose
1.2 Scope
1.3 Technologies Used
1.4 Overview
2. Software Requirement Specification
2.1 Goals of the Proposed System
2.2 Interface Requirements
2.3 Functional Requirements
2.4 Non Functional Requirements
3. Feasibility Study
3.1 Technical Feasibility
3.2 Economical Feasibility
3.3 Operational Feasibility
4. Designing
4.1 Entity Relationship Diagram
4.2 Data Flow Diagrams
4.3 Data Tables
5. Coding
6. Snapshots
7. Testing
8. Implementation
9. Conclusion
10. Future Scope
11. Bibliography

1.0 INTRODUCTION
3

1.1) Purpose
• The Software is for the automation of Banking transaction system.
• It maintains three levels of users:-
Administrator Level
• Can read and write information about any Employee and item.
• Only admin read or write amount of purchase and sales in per day or
per months in account level.
Front desk level
• Can read only menu chart and take place order and table booking.

Home delivery level


• Can read only menu chart and take the order for home delivery.
1.2 Scope:-
It can be used in any bank and can make work easily done according to
requirements.

1.3 Technology Used:-


Technologies used in this project are:
 Front End: Microsoft Visual Basic 6.0
 Back End: Microsoft Access.
1.4 Overview:-
 Project is related to Banking transaction system which provides to admin read and
writes all data in bank

 The project maintains the customer Details


 The project maintains the customer records

2. Software Requirement Specification

2.1 Goals of the proposed system:-


The goals of the proposed system are:
 To provide “better and efficient" service to customers
 Reduce the workload of admin & employees.
 All details will be available on a click.

2.2 Interface requirements:-


In this project the required interfaces are:
 Login screen: Allows the admin and employee login to the system.
 Menu screen: Allows the user to choose his desired function interface to perform that
function.
 Accounts details screen: Allows admin to see the details of all sales and purchase in the
restaurant.
 Item add or delete screen: Allows the administrator to add or delete item in item list.
4

 Employee details screen: Allows admin to see the details of all employee in restaurant.
 Employee add screen: Allows the administrator to add a new employee in restaurant.
 Employee delete screen: Allows administrator to delete an employee in restaurant.

2.3 Functional requirements:-


The following functions can be performed using this application:
 Login for admin and employee.
 Modification, such as new item name, price and employee record can be added or deletion in
table can be done.
 Stock maintenance can be performed.

3. Feasibility study:-
Feasibility study is to check the viability of the project under consideration. Theoretically
various types of feasibilities are conducted, but we have conducted three type of feasibilities
explained as under.

3.1 Economic feasibility:-

3.2 Technical feasibility:-

3.3 Operational feasibility:-


5

4. Designing
Entity Relationship Diagram

R e s t a u r a n t M a n a g e m e n t S y

V is e w A c c o u n t s

T a b l e d e t a i ls V is e w O r sd e

E m p l o y e e h a s U s e r _ p a s s

C ro o n l t s

R se t g e i r s
T as k e

K e e p
t r as c k S u p p l ie r
t a k e s
o f
o r d o efr
T a b l e _ b o o k i n g A t t e n d a n c e F o r d e r

p u r c h a s e
C hk es c

U a p t de s M e n u j u i s e t si f
H o m e d e l i v e r y
6

4.2 Data Flow Diagram


7

4.2 Data Tables:-


Database used in this project is named “Restaurant” & the tables used are described
Below:-

I. Login:-

Attributes/columns Data Size Description


type
Employee_id Text 10 Unique login id.
password Text 10 Unique password.
Emp_type (user ) Text 15 Admin/Front desk/Home delivery.

II.Employee details:-
Attributes/columns Data type Size Description
Emp_id Text 10 Unique identification code.
Emp_Fname Text 80 Employee first name.
Emp Lname Text 80 Employee last name
Sex Text 80 Employee is male or female
Emp_add Text 200 Address of the employee.
Emp_contact no Long Phone number of employee.
integer
Qualification Text 80 Employee’s qualification
Joining date Date/Time Joining date of Employee
Emp status Text 80 Employee are permanent or temporary
Emp duty Text 80 Employee’s work in restaurant
Emp salary Text 80 Employee’s salary in restaurant
Performance Text 80 Employee’s performance

III. Menu details:-


attributes/columns Data type Size Description
Item_id Text 10 Item identification code.
Item_name Text 15 Item name
Item_type Text 15 Item types means item is Indian or other types
Price Currency Price of item
8

IV.Account details:-

attributes/columns Data type Description


Date Date/Time Date of sales & purchase
Total sales Currency It identifies total sales
Total purchase Currency It identifies total purchase

V.Attendance details:-

attributes/columns Data type Size Description


Eday Date/Time It identifies date
E_id Text 20 It identifies Employee id
E_name Text 20 It identifies Employee’s name
Slot1 Text 10
Slot2 Text 10
Slot3 Text 10
Slot4 Text 10

VI.Forder details:-

attributes/columns Data type Size Description


Order_id Text 10 Order identification code.
Item_name Text 15 Item name
Price Currency Price of item
Quantity Number Quantity of item
Odate Date/Time It identifies date of order
Time Date/Time Time of the receive order
Table no number Table no that give the order
Emp_id Text 15 Employee id that maintain the table

VII. Home delivery details:-

attributes/columns Data type Size Description


Hdate Date/Time It identifies date for home delivery
HDorder_id Text 20 It identifies home delivery order id
Item_name Text 20 It identifies Item’s name
Price Currency 10 It identifies price of item
9

Quantity Number 10 It identifies quantity of item


Time Date/Time 10 It identifies delivery of time
Cust_name Text 20 It identifies customer name
Cust_address Text 20 It identifies customer address
Cust_contact Text 20 It identifies customer contact no
HD_status Text 20 It identifies that item is delivered or not.
Deliveryman Text 20 It identifies delivery man

VIII. Purchase details:-


attributes/columns Data type Size Description
Pdate Date/Time 10 It identifies purchase date.
Item_name Text 15 Item name
Quantity Number Item quantity
Price Currency Price of item

IX. Supplier details:-


attributes/columns Data type Size Description
S_id Text 10 It identifies supplier id
Supp_name Text 20 Supplier name
Product Text 20 Types of product
Contact Number 10 Supplier contact no
Email Text 50 Supplier Email address

X. Table_booking details:-
attributes/columns Data type Size Description
Bdate Date/Time It identifies date of table booking.
Time Date/Time Time of table booking.
TableNo Number Booking of table no.
Cust_name Text 15 Customer name of table booking.

XI. Table details:-


10

attributes/columns Data type Size Description


TableNo Number It identifies table no.
Types Text 20 It identifies table is general or family

5. Coding:- In restaurant management system coding are used as followes-


ADD-
Private Sub cmdAdd_Click()

enabl1 (True)

Cmd = "ADD"

Dim objRs As New ADODB.Recordset

'Sql = "Select max(emp_id) as max_code from Employee"

sql = "Select emp_id as max_code from Employee ORDER BY joiningdate"

objRs.Open sql, objcon, adOpenKeyset, adLockReadOnly, adCmdText

If IsNull(objRs!max_code) Then

new_code = "EMP" & cnt

MsgBox (new_code)

Else

objRs.MoveLast

tempcode = Trim(objRs!max_code)

cnt = Mid$(tempcode, 4)

cnt = cnt + 1

new_code = "EMP" & cnt

End If

TextEid.Text = new_code

objRs.Close

Set objRs = Nothing

Exit Sub

LocalError:

MsgBox Err.Number & " - " & Err.Description

End Sub

MSFlexGrid
Private Sub MSFlexGrid1_Click ()

tempcode = Trim(MSFlexGrid1.Text)

Text1.Text = tempcode

Text2.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 2)
11
Text3.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 4)

Text4.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 3)

End Sub

SAVE
Private Sub Cmdsave_Click()

'On Error GoTo LocalError

If cmd = "ADD" Then

objcon.BeginTrans

Dim objRs As New ADODB.Recordset

objRs.Open "Employee", objcon, adOpenDynamic, adLockOptimistic, adCmdTable

With objRs

objRs.MoveLast

objRs.MoveNext

.AddNew

!Emp_id = UCase(Trim(TextEid.Text))

!Emp_Fname = UCase(Trim(TextEFname.Text))

!Emp_Lname = UCase(Trim(TextELname.Text))

!Emp_add = UCase(Trim(TextEaddr.Text))

!Emp_contact = Val(TextEcnt.Text)

!Emp_duty = UCase(Trim(Combo5.Text))

!sex = Combo2.Text

!Emp_salary = Val(TextEsal.Text)

!Qualification = Combo1.Text

!joiningdate = DTPicker1.Value

!Emp_status = Combo3.Text

!Emp_duty = Combo5.Text

!Performance = Combo4.Text

.Update

End With

MsgBox (" Data added ")

If objRs.state = adStateOpen Then objRs.Close

Call flex_grid1

objcon.CommitTrans

MSFlexGrid1.Refresh

Set objRs = Nothing

enabl1 (False)

Exit Sub

End If

If cmd = "EDIT" Then

Set objRs = New ADODB.Recordset


12
sql = "Update Employee Set Emp_Fname='" & UCase(Trim(TextEFname.Text)) & "',Emp_Lname='" &
UCase(Trim(TextELname.Text)) & "', Emp_add= '" & UCase(Trim(TextEaddr.Text)) & "', Emp_contact='" &
Trim(TextEcnt.Text) & "', Emp_duty='" & Trim(Combo5.Text) & "', Emp_salary=" & Val(TextEsal.Text) &
",joiningdate='" & DTPicker1.Value & "', Sex='" & Combo2.Text & "', Qualification='" & Combo1.Text & "',
Emp_status='" & Combo3.Text & "', Performance='" & Combo4.Text & "' Where Emp_id='" &
Trim(TextEid.Text) & "'"

'MsgBox (sql)

objRs.Open sql, objcon, adOpenKeyset, adLockBatchOptimistic, adCmdText

MsgBox ("New Data Updated ")

If objRs.state = adStateOpen Then objRs.Close

Call flex_grid1

Set objRs = Nothing

Call enabl1(False)

End If

End Sub

DELETE
Private Sub Cmd_delete_Click()

If Text1.Text = "" Or Text2.Text = "" Then

MsgBox ("Please Select Item")

Exit Sub

End If

Call flex_grid

objcon.BeginTrans

If MsgBox("Are You Sure to Delete item " + MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, 2), vbYesNo +


vbQuestion) = vbYes Then

Set objRs = New ADODB.Recordset

sql = "Delete * from Menu Where Item_id='" & tempcode & "'"

'sql = "Delete * from Menu Where Item_id"

'MsgBox (sql)

objRs.Open sql, objcon, adOpenKeyset, adLockBatchOptimistic, adCmdText

MsgBox (" Data deleted ")

objcon.CommitTrans

If objRs.state = adStateOpen Then objRs.Close

Call flex_grid

Set objRs = Nothing

End If

For i = 1 To MSFlexGrid2.Rows

new_code = "ITM" & i

Set objRs = New ADODB.Recordset

sql = "Update Menu Set Item_name='" & UCase(Trim(MSFlexGrid1.TextMatrix(i, 2))) & "', Price= " &
Val(MSFlexGrid1.TextMatrix(i, 4)) & ", Type='" & UCase(Trim(MSFlexGrid1.TextMatrix(i, 3))) & "',
Item_id='" & new_code & "' Where Item_id='" & Trim(MSFlexGrid1.TextMatrix(i, 1)) & "'"

'MsgBox (sql)

objRs.Open sql, objcon, adOpenKeyset, adLockBatchOptimistic, adCmdText


13
Next i

Exit Sub

End Sub

UPDATE
Private Sub CmdUpdate_Click()

Dim objrs1 As ADODB.Recordset

Set objrs1 = New ADODB.Recordset

objcon.BeginTrans

sql = "Update Homedelivery Set HD_status='" & Trim(MSFlexGrid2.TextMatrix(MSFlexGrid2.Row, 8)) & "',
deliveryman='" & Trim(Combo2.Text) & "' Where HDorder_id='" &
Trim(MSFlexGrid2.TextMatrix(MSFlexGrid2.Row, 0)) & "'"

MsgBox (sql)

'Item_Name='" & Trim(Text2.Text) & "', Quantity= '" & Val(Text3.Text) & "' ,Price='" & Val(text5.Text) & "'
,cust_name='" & Trim(text6.Text) & "' ,cust_address='" & trim(text7.text)&"',cust_contact='" & trim(text8.text)

objrs1.Open sql, objcon, adOpenKeyset, adLockBatchOptimistic, adCmdText

MsgBox (" Data updated ")

objcon.CommitTrans

Call flexgrid1

If objrs1.state = adStateOpen Then objRs.Close

End Sub

6. Snapshot:-

• Starting form:-

7. Testing:-
14

In these phases I had tried to check all the modules separately for there proper
formatting. After this step I had performed a unit test to check the functionality of
the whole system. Further I had come to know that project is running with all its
requirements.
8. Implementation:-

For the implementation of my project the mirror H/W & S/W requirements as
under

Steps implementation
Steps of implementation are:

• First load VB in system


• First make all form.
• Make Main menu. Join every form with Main menu.
• Main menu open .It shows all forms heading.
• Now choose what form will be open then click.
• After put various values we click save bottom.
• It automatically goes to report.

9. Conclusion:-

From a proper analysis of positive points and constraints on


the component, it can be safely concluded that the product is
a highly efficient GUI based component. This application is
working properly and meeting to all user requirements. This
component can be easily plugged in many other systems.

10. Future Scope:-

• Future scope of the application :


This application can be easily implemented under various situations. We can
add new features as and when we require. Reusability is possible as and when require
in this application. There is flexibility in all the modules.

• Software scope:

• Extensibility: This software is extendable in ways that its


original developers may not expect. The following principles enhance
extensibility like hide data structure, avoid traversing multiple links or
methods, avoid case statements on object type and distinguish public and
private operations.

• Reusability: Reusability is possible as and when require in


this application. We can update it next version. Reusable software reduces
design, coding and testing cost by amortizing effort over several designs.
Reducing the amount of code also simplifies understanding, which increases
the likelihood that the code is correct. We follow up both types of reusability:
Sharing of newly written code within a project and reuse of previously
written code on new projects.
15

• Understandability: A method is understandable if someone other than


the creator of the method can understand the code (as well as the creator
after a time lapse). We use the method, small and coherent helps to
accomplish this.

• Cost-effectiveness: Its cost is under the budget and make within given time
period. It is desirable to aim for a system with a minimum cost subject to the
condition that it must satisfy the
entire requirement. Scope of this document is to put down the requirements,
clearly identifying the information needed by the user, the source of the
information and outputs expected from the system.

END

Вам также может понравиться