Your SlideShare is downloading. ×
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

IT BILLING AND RESTAURANT RECORD KEEPING SYSTEM

6,886

Published on

A REPORT COMPLIED BY LALINDRA DE SILVA TO A RESTAURANT IN THE COASTAL BELT OF SRI LANKA,SILK-ROUTE HE AND HIS FRIENDS HAVE CONDUCTED THE PROJECT A HANDFUL OF PROGRAMMERS HAVE DEVELOP THE SYSTEM WHILE …

A REPORT COMPLIED BY LALINDRA DE SILVA TO A RESTAURANT IN THE COASTAL BELT OF SRI LANKA,SILK-ROUTE HE AND HIS FRIENDS HAVE CONDUCTED THE PROJECT A HANDFUL OF PROGRAMMERS HAVE DEVELOP THE SYSTEM WHILE MR. LALINDRA DE SILVA SOLELY HAS COMPILED THE REPORT AND AND SOLE OWNERSHIP IS WITH MR. LALINDRA DE SILVA.
all rights reserved.

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,886
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
328
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Module: Programming Project Billing & Restaurant Record Keeping System Company – SILKROUTE Prepared by STRIDERS Course Name – Diploma in Information Technology
  • 2. List of Group members Name Reg ID Signature Lalindra De Silva 10590 Shanuka Gamage 10050 Hansajith Chathuranga 10581 Sandaru Maduranga 08452 Nirosh Amaresinghe 08291 Shanika Nishani 08292 Eshani Jayasekera 9708 Sameera Silva 8541 Suraj De Zoysa 8540
  • 3. Acknowledgement We wish to thank Mr Sujeewa Nishantha Manager of SilkRoute Restaurant,for granting the permission to access information within the restaurant. We owe our special thanks to Amila Bandara – Course Director of Siksil Institute of Information Technology, for the guidance and support given to us from the very beginning to produce a successful project.We are also thankful to Mr Thuresh Wimalakeethi –Lecturer,for helping us in code through out the project and Mr Nimantha Gunawardena for the assistance In theory. We would like to thank the instructors of Siksil Institute of Information Technology ,Ms Thilini Nemasha,Mr Suraj & Mr. Tharaka for helping us to clarify any error codes and helped us in every possible ways. Last but not least, our heartfelt gratitude goes to our parents and siblings for encouraging us and helping with necessary assistance during the completion of the project. This project would not have been possible if not for the support received from all of you. Thank you.
  • 4. Abstract The Silk Route Restaurant is one of the premiere Restaurants in the coastal belt of the island nation. It is very important that such an organization should have an efficient internally computerized system to handle and maintain all the records involving the restaurant. During our research on the restaurant we found that the billing system, accounts records and other documents are maintained in a file based method. Therefore we decided that we should develop a system around this requirement which will increase the efficiency of the maintenance of the records. We planned to overcome this weakness by developing a computerized system facilitates all the requirements expected by the restaurant. Finally we were able to implement a successful computerized system which caters to the needs of the restaurant. In this project we were able to overcome almost all the weaknesses which were at the manual system by adding up more residential characteristics. We were finally able to produce a computerized system that could make a big difference in the restaurant sector.
  • 5. Table of Contents 1. Introduction 1.1 Project…………………………………………………………..1 1.2 Objectives………………………………………………………2 1.3 Restaurant Background…………………………………………3 1.4 About the existing System………………………………………4 1.5 Scenario………………………………………………………….5 1.6 Problem of the existing system…………………………………..6 1.7 Solution…………………………………………………………..7 1.8 Facts about the new system………………………………………8 1.9 Advantages of the new system……………………………………9 2. Project Management 2.1 Methodology for Level 1………………………………………..10 2.2 Methodology for Level 2………………………………………..11 2.3 Methodology for Level 3………………………………………..12 2.4 Methodology for Level 4 ……………………………………….13 2.5 Context Diagram………………………………………………...14 2.6 Level 1 Data Flow Diagram……………………………………..15 2.7 ER Diagram……………………………………………………...16 3. System Development 3.1 Interfaces/Welcome form………………………………………..17 3.2 MDI Parent form………………………………………………...18 3.3 Customer Interface………………………………………………19 3.4 Order Interface…………………………………………………..20 3.5 Database Table Screen Shots……………………………………21
  • 6. 4. Coding 4.1 Welcome Interface………………………………………………25 4.2 Login Interface…………………………………………………..26 4.3 Main Interface…………………………………………………...28 4.4 Customer Details Interface………………………………………32 4.5 Order Details Interface…………………………………………..35 5. Conclusion…………………………………………………………..38 6. Activity Plan………………………………………………………...39 7. Suggestions………………………………………………………….40
  • 7. Table of figure Interfaces Figure 1………………………………………………………..17 Figure 2………………………………………………………..18 Figure 3………………………………………………………..19 Figure 4………………………………………………………...20 Database Table Screen Shots Figure 5…………………………………………………………21 Figure 6…………………………………………………………22 Figure 7…………………………………………………………23 Figure 8…………………………………………………………24
  • 8. 1.Introduction 1.1 Project Our final module was to program a system using VB.Net and SQL Server/Ms Access.The project task given to us was to find a company or an organization and develop a computerized system or an existing computerized system in order to increase the effficency of the normal procedure of the company.As a group mwe decided to choose the SILKROUTE Restaurant as a company where we could find a requirement to implement a successful computerized system.During the first visit we observed the existing system and we found out that the billing system and maintenance of records of the cashier is done manually using a file based method. Therefore we gave our attention to avoid this weakness by building a computerized system to replace the file based system that will help the restaurant to give a more efficient ,effective,productive service to the customer.
  • 9. 1.2 Objectives Develop a computerized system to store and retrieve billing records of customers. To computerize the file based system we designed a system which enables easy access to billing records and restaurant records etc.. A special feature of our system is the login method which requires a username and a password which increases the security of the stored data. Through out the system we gave special attention to build interfaces that are user friendly which will make our system a successful one.
  • 10. 1.3 Restaurant Background Known as Taprobane,Serendib,Ceiloa,Ceylan and Ceylon,Sri Lanka has been a strategic naval link and an important trading hub since ancient times. Due to her position on the major sea routes,the riches of the world changed hands I in the island nation. The Pearl of The Indian Ocean as referred to by enamored visitors,was a key port of call on the naval Silk Route. The Silk Route café and Restaurant in Bentota, Sri Lanka serves a unique selection of dishes from the countries in the ancient land and naval silk routes. The ancient world map style menu is designed to take you on a culinary journey from the plains of Mongolia, to the mountains of China, through the strait of Malacca to the ports of Serendib, and into the trails of Hindustan across the desserts of Arabia, to the valleys of Byzantine and on to the streets of Rome. Silk Route menu is inspired by the vibrant cultures of these great lands, their mastery of the use of spices, herbs and flavors’ and their distinct styles of cooking, the café’s décor, plays tribute to the design elements of their architectural aesthetic ideals and to their modes of transport that linked the silk routes. Just like the merchants of the olden days made Serendib a must in their ports of call, the Silk Route café and restaurant is a must for the connoisseurs traveling on the southern coast of Sri Lanka
  • 11. 1.4 About the existing system The existing system was a day to day normal routine system which you associate with most of the restaurants in Sri Lanka. In this System once a customer comes to the restaurant the waiter comes near to him assigns a table gives a menu card and writes down the order. After that he goes and informs the kitchen of the order and gives the order information to the cashier to prepare the bill. Once the customer finish his or her meal he then goes and shows the bill to the customer the customer pays by cash or credit card. The waiter takes the money to the cashier the cashier takes the money gives the balance to the waiter and enters the transaction data into a receipt and keeps one copy to him and give the original receipt to the waiter to give to the customer.
  • 12. 1.5 Scenario The newly designed and developed computerized system to be implemented in the restaurant by our team STRIDERS consists of about five interfaces created with the help of VB.Net ,SQL Server/MS Access. Firstly there is a Welcome Form. In it There are two buttons, one is to login and the other is to cancel. Once you login then you go into the second interface which is the login form. In the login form you have to enter your username and password to proceed forward or you could sign in or cancel. Once you enter the correct username and pass word you go to the main form. In the main form there are four buttons. There are customer, customer records, order and order records. Once you click the customer button you get a customer details window to enter data, when you click the order you get the order details window. The customer records and order records are both connected to the data base.
  • 13. 1.6 Problem of the existing system • Inconsistency • Compatibility • Lack of relationship • Lack of flexibility • Low speed to data access • Time wastage • Poor performance • Lack maintainability • Non efficient representation of data. • Requires a large storage space
  • 14. 1.7 Solution • Store billing records as scanned images • Store backups in case of a loss • Requirement of user name and password to login to the system. • Designed user friendly interfaces.
  • 15. 1.8 Facts about the new system The scope of our project in building a computerized system for Silk Route to handle billing restaurant records was to include the employees who are involved in the process of billing of a customer to storage of restaurant records and enables to view the records as desired. The employees are given limited access in the system in order to safe guard the privacy and security of the records.
  • 16. 1.9 Advantages of the new system • Fast storage and retrieval of data. • Increased accuracy of data. • User friendly interfaces. • Reduce human energy. • Reduce time waste. • Increased privacy due to high security. • Reduce storage space. • Prevent data loss by backups stored in several locations. • High efficiency through out the system. • Increase the productivity of the company.
  • 17. 2. Project Management 2.1 Methodology for Level 1 Eg:- Cashier Welcome Form MDI Parent Form 1 Login Form Main form Username Password Login in Cancel Order Sign out Create Password Back Change Password Order Detail s Order Record s Customer Details Customer Records Order no Date Data Grid View Total Prev Clear Save Cancel Customer Customer ID New Cancel Save Age New Save Age Cancel Next First Name Last Name Birthday Gender Country Customer ID First Name Last Name Birthday Gender Country Wedding Anniversary Preview Next Delete
  • 18. 2.2 Methodology for Level 2 Eg: - Manager Martial Status Wedding Anniversary Martial Status Welcome Form MDI Parent Form 2 Login Form Main form Username Password Login in Cancel Order Sign out CreateBack Change Password Order Detail s Order Record s Customer Details Customer Records Order no Date Data Grid View Total Prev Clear Save Cancel Customer Customer ID New Cancel Save Age New Save Age Cancel Next First Name Last Name Birthday Gender Country Martial Status Customer ID First Name Last Name BirthdayGender Country Martial Status Wedding Anniversary Preview Next Delete Report Daily Weekly Monthly Yearly
  • 19. 2.3 Methodology for Level 3 Eg:- Assistant Manager Wedding Anniversary Welcome Form MDI Parent Form 2 Login Form Main form Username Password Login in Cancel Order Sign out Create Passw Back Change Password Order Detail s Order Record s Customer Details Customer Records Order no Date Data Grid View Total Prev Clear Save Cancel Customer Customer ID New Cancel Save Age New Save Age Cancel Next First Name Last Name Birthday Gender Country Martial Status Customer ID First Name Last Name BirthdayGender Country Martial Status Wedding Anniversary Preview Next Delete Report Daily Weekly Monthly Yearly
  • 20. 2.4 Methodology for Level 4 Eg:- Administrator Wedding Anniversary Welcome Form MDI Parent Form 1 Login Form Main form Username Password Login in Cancel Order Sign out Create Password Back Change Password Order Detail s Order Record s Customer Details Customer Records Order no Date Data Grid View Total Prev Clear Save Cancel Customer Customer ID New Cancel Save Age New Save Age Cancel Next First Name Last Name Birthday Gender Country Martial Status Customer ID First Name Last Name Birthday Gender Country Martial Status Wedding Anniversary Preview Next Delete
  • 21. 2.5 Context Diagram Billing System Bill Order Details Customer Details Sales Reports Sales Analysis Nationality Report Customer Management Wedding Anniversary
  • 22. 2.6 Level 1 Data Flow Diagram Food Order Receipt Reports 2 Update Food Sold 3 Generate Report 1 Order ProcessCustomer Menu Customer Sales Database Management Order
  • 23. 2.7 ER Diagram Generat es Generat es Sales Analysis Sales Analysis Reports Sales Report s Sales Report s Nationalit y Report Nationalit y Report AnniversaryAnniversary Marital Status S Marital Status S Amoun t Amoun t GenderGender Customer Order DateDate PayPay AgeAge NameName DOBDOB Quantit y Quantit y Order No Order No Quantit y Quantit y DateDate Amoun t Amoun t Amoun t Amoun t
  • 24. 3 . System Development 3.1 Interfaces DateDate
  • 25. Figure 1- Welcome form Welcome interface is viewed to all the employees who use the system in which they should login to get access to the system. 3.2 Interface
  • 26. Figure 2- MDI Parent form This is the Main Interface which appears to all the employees who successfully signs in the accessibility to different parts of the system from the main interface is decided by the user name entered in the sign in form.
  • 27. 3.3 Interface Figure 3- Customer When you click the button customer you get the customer details
  • 28. 3.4 Interface Figure 4- Order When you click the order button you get the details of the orders.
  • 29. 3.5 Database Table Screen Shots. Table Name : Table No 1 Primary Key Field: Explanation: This is the Database Table Screen Shot of the login interface. The Database is filled with the necessary data to run the programme. With the inserted data only the user will be able to manipulate the software. In this case only by these inserted passwords will anyone will be able to log in to the software. Once the correct username and password is inserted only you will be granted access. Any misspelling would result in showing a message box saying unable to login. So it is important for the user to type the capital and simple words where it is necessary and correctly where it is required. Figure 5
  • 30. Table Name: Table No 2 Primary Key Field:ItemNo Explanation: This is the database table screen shot of the customer records . In here as you can see all the data that has been entered about the customers gets stored in here. And down below is the item details database table screen shot. Figure 6
  • 31. Table Name:Table No 3 Primary Key Field:Customer ID Explanation: This is the database table screen shot for the customer records. In here as you can see all the relevant details that should be entered are given. These are the items in the customer records . This is maintained to keep a record of the customers that visit the restaurant.
  • 32. Figure 7 Table Name:Table No 4 Primary Key Field: Explanation: This is the main Database of the food items to be sold at the restaurant. Each specific food item is given a item no and item name to be inserted in the bill and records. This is just a snap shot of the items to be sold at the restaurant, to give an idea how the database would look.
  • 33. Figure 8 4. Coding 4.1 Welcome Interface Public Class MDIParent2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) LoginForm2.Show() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Close() End Sub Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click LoginForm2.Show() End Sub Private Sub Label1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Label1.MouseLeave Label1.Height = 62 Label1.Width = 509 End Sub Private Sub Label1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseMove
  • 34. Label1.Width = 515 Label1.Height = 68 End Sub End Class 4.2 Login Interface Public Class LoginForm2 Dim cnn As SqlClient.SqlConnection Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim sqlCommandUser As New SqlClient.SqlCommand("Select * from tblUser where UserName='" & UsernameTextBox.Text & "' and [Password] = '" & PasswordTextBox.Text & "'", cnn) Dim drUser As SqlClient.SqlDataReader drUser = sqlCommandUser.ExecuteReader If drUser.Read Then If drUser.Item("UserType") = "MA" Then MDIParent2.Hide() MDIParent1.Show() MDIParent1.Button6.Enabled = True Me.Close() ElseIf drUser.Item("UserType") = "CA" Then MDIParent2.Hide() MDIParent1.Show() MDIParent1.Button6.Enabled = False MDIParent1.EditMenu.Enabled = False Me.Close() End If Else MsgBox("Invalied User Name or Password")
  • 35. End If End Sub Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click Me.Close() End Sub Private Sub LoginForm2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cnn = New SqlClient.SqlConnection cnn.ConnectionString = "Data Source=ZYKO-PCSQLEXPRESS;Initial Catalog=SilkRoute;Integrated Security=True" cnn.Open() gCnn = New SqlClient.SqlConnection gCnn.ConnectionString = "Data Source=ZYKO-PCSQLEXPRESS;Initial Catalog=SilkRoute;Integrated Security=True" gCnn.Open() End Sub End Class
  • 36. 4.3 Main Interface Public Class MDIParent1 Private Sub NewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem.Click Customerdetails.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button2.Visible = True Button4.Visible = True Button7.Visible = False Button8.Visible = False Button9.Visible = False Button10.Visible = False End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Button7.Visible = True Button8.Visible = True Button9.Visible = False Button10.Visible = False Button2.Visible = False Button4.Visible = False End Sub
  • 37. Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Me.Close() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click MDIParent2.Show() Me.Hide() Button2.Visible = False Button4.Visible = False Button7.Visible = False Button8.Visible = False Button9.Visible = False Button10.Visible = False End Sub Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click Form4.Show() End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Button9.Visible = True Button10.Visible = True Button2.Visible = False Button4.Visible = False Button7.Visible = False Button8.Visible = False End Sub
  • 38. Private Sub NewToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem1.Click Form2.Show() End Sub Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click New_Password.Show() Button2.Visible = False Button4.Visible = False Button7.Visible = False Button8.Visible = False Button9.Visible = False Button10.Visible = False End Sub Private Sub MenuStrip_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles MenuStrip.ItemClicked End Sub Private Sub MDIParent1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Button2.Visible = False Button4.Visible = False Button7.Visible = False Button8.Visible = False Button9.Visible = False
  • 39. Button10.Visible = False End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Customerdetails.Show() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Form4.Show() End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Form2.Show() End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click End Sub End Class
  • 40. 4.4 Customer Details Public Class Customerdetails Dim cnn As SqlClient.SqlConnection Dim da As SqlClient.SqlDataAdapter Dim ds As DataSet Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Hide() End Sub Private Sub Clear() TextBox1.Text = "" End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cnn = New SqlClient.SqlConnection cnn.ConnectionString = "Data Source=ZYKO-PCSQLEXPRESS;Initial Catalog=SilkRoute;Integrated Security=True" cnn.Open() Dim commandPara As New SqlClient.SqlCommand Dim drPara As SqlClient.SqlDataReader commandPara.CommandText = "Select nCusId from Para" commandPara.Connection = cnn drPara = commandPara.ExecuteReader If drPara.Read Then If drPara.Item("nCusId") < 10 Then
  • 41. TextBox4.Text = "000" & drPara.Item("nCusId") ElseIf drPara.Item("nCusId") < 100 Then TextBox4.Text = "00" & drPara.Item("nCusId") End If End If drPara.Close() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim UpdateCusId As New SqlClient.SqlCommand Dim insert As New SqlClient.SqlCommand insert.CommandText = "INSERT into Customer(CustomerID,FirstName,LastName,Age,Gender,Country,MaritalStatus ,BirthDay, Anniversary) values('" & TextBox4.Text & "','" & TextBox1.Text & "','" & TextBox3.Text & "','" & TextBox2.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox1.Text & "','" & DateTimePicker1.Value & "','" & DateTimePicker2.Value & "')" insert.Connection = cnn insert.ExecuteNonQuery() UpdateCusId.CommandText = "Update Para set nCusID = nCusId+1" UpdateCusId.Connection = cnn UpdateCusId.ExecuteNonQuery() MsgBox("Save Complete", 40 + MsgBoxStyle.OkOnly, "SilkRoute") End Sub
  • 42. Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged End Sub Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox3.SelectedIndexChanged End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Call Clear() End Sub End Class
  • 43. 4.5 Order Details Public Class Form2 Dim con As New SqlClient.SqlConnection Dim da, da2 As New SqlClient.SqlDataAdapter Dim ds, ds2 As New DataSet Dim dr As SqlClient.SqlDataReader Dim ncr As Integer Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con = New SqlClient.SqlConnection con.ConnectionString = "Data Source=ZYKO-PCSQLEXPRESS;Initial Catalog=SilkRoute;Integrated Security=True" con.Open() End Sub Private Sub total() Dim i As Integer Dim total As Double total = 0 End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Me.Close() End Sub
  • 44. Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick End Sub Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit If e.ColumnIndex = 0 Then Dim commandItem As New SqlClient.SqlCommand Dim drItem As SqlClient.SqlDataReader commandItem.Connection = gCnn commandItem.CommandText = "Select * from Items Where ItemNo = '" & DataGridView1.Rows(e.RowIndex).Cells(0).Value & "'" drItem = commandItem.ExecuteReader If drItem.Read Then DataGridView1.Rows(e.RowIndex).Cells(1).Value = drItem.Item("ItemName") DataGridView1.Rows(e.RowIndex).Cells(2).Value = Format(drItem.Item("Price"), "###,###.00") Else MsgBox("invalied item") End If drItem.Close() End If
  • 45. End Sub Private Sub DataGridView1_CellLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellLeave End Sub Private Sub DataGridView1_CellValueChanged (ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click End Sub End Class
  • 46. 5. Conclusion We were able to create a computerized system for Silk Route to maintain billing & Restaurant records .This system is able to store billing records securely and retrieve the records whenever needed easily.Data entering of customers and employees are also included in this system along with the order and the billing process.Customers,restaurant records and employees are interconnected in order to maintain the accuracy of this system .This system can also be further improved adding many other features and including the other systems as well. Finally we believe that we were able to launch an effective computerized system to the restaurant causing the restaurant to perform well in the future regarding the billing and restaurant records.
  • 47. 6. Activity Plan Group Member Activity Lalindra De Silva Took the lead role in doing the report. Entered Data to the database and helped to make the software. Shanuka Gamage Took the lead role in making the software. Hansajith Chathuranga Printed the report. Nirosh Amarasinghe Found a company to make the software. Shanika Nishani Prepared the note book. Documented every thing necessary Sandaru Maduranga Helped with the programming. Eshani Jayasekera Gave ideas to make the Programme.
  • 48. Sameera Silva Was engaged in the work in the Software. Suraj De Soysa Binded the report. Suggestions

×