1 Project 6: Northwind Orders. 2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration.

Slides:



Advertisements
Similar presentations
WORKING SMART Crystal M. Thomas Henrico County DSS (804) POSSESS Central Region Member October 31, 2007.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 Project 6: Tic Tac Toe. 2 Tic Tac Toe A Challange Project 10 Points extra credit on final grade OK to work in groups of 2 or 3.
11 ASP.NET Controls II Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
1 Project 6: Cats in Tree. 2 Project 3: Cats in Tree In this project you will Create a class definition for a Cat class. Populate a BST with Cat information.
1 Project 7: Huffman Code. 2 Extend the most recent version of the Huffman Code program to include decode information in the binary output file and use.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Web Technologies Website Development Trade & Industrial Education
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
1 Software Systems Development CEN Spring 2011 TR 12:30 PM – 1:45 PM ENB 116 Instructor:Dr. Rollins Turner Dept. of Computer Science and Engineering.
1 Project 4: Vehicle Inventory. 2 Write a program to read a text file containing information about vehicles and output the information First in the order.
1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:
1 Project 5: New Venue. 2 New Venue Based on the posted New Venue scenario 077_Ticket_Booth_Scenarios.pdf.
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
11 Project 2 Temperature Conversion (Not graded).
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
Project 3: Ticket Printer
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
1 Project 2: Sorting Cats. Write a C++ console application to read a text file containing information about cats and output the information to the screen.
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
11 Project 2 Temperature Conversion. 22 Project 2: Temperature Conversion Write an ASP.NET Web Forms app to convert temperatures from Fahrenheit to Celsius.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
1 Project 5 Eyeglass Rx User Control. Eyeglass Rx Earlier in the semester we looked at an eyeglass prescription as an example of an HTML table. 2.
1 Project 6: New Venue. 2 New Venue Based on the posted New Venue scenario
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
1 Project 8: Tic Tac Toe. 2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating.
1 Customizing Forms and Writing QuickBooks Letters Lesson 15.
1 Project 7: Ticket_Booth_0 Using XML. 2 Ticket Booth 0 Base Level 0 of the real Ticket Booth program. Gets information for a single venue from an XML.
1 Project 12: Cars from File. This is an extension of Project 11, Car Class You may use the posted solution for Project 11 as a starting point for this.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Coldpruf Online Order Form
Guidelines for Designing Databases
Working in the Forms Developer Environment
GO! with Microsoft Office 2016
Required Data Files Review
Learning the Basics – Lesson 1
Database application MySQL Database and PhpMyAdmin
GO! with Microsoft Access 2016
Creating and Using a Database
Intro to PHP & Variables
HTML Forms and User Input
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Introduction to Access 2003
MODULE 7 Microsoft Access 2010
Benchmark Series Microsoft Word 2016 Level 2
CIS16 Application Programming with Visual Basic
Visual Studio.
Access: Queries II Participation Project
Guidelines for Microsoft® Office 2013
Grocery Store Outline csc242 – web programming.
Programming with Microsoft Visual Basic 2008 Fourth Edition
Coldpruf Online Order Form
Shelly Cashman: Microsoft Access 2016
Chapter 8 Using Document Collaboration and Integration Tools
Day 1: Getting Started with Microsoft Excel 2010
Presentation transcript:

1 Project 6: Northwind Orders

2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration purposes. There are 13 tables in the database In this project we are only concered with three of them. And only a few of the columns in those three tables.

The Northwind Traders Database You will need to create the tables of the Northwind Traders Database in your local database. For how to do this, see: 150_Northwind_Traders_Database.pdf 150_Northwind_Traders_Database.pdf 3

4 Northwind Traders Database These are the tables that we will use.

5 Table Customers In table Customers, we will be concerned with CustomerID and CompanyName. CustomerID is the primary key.

6 Table Orders Table Orders has a row for each order that has been entered. The customer for each order is identified by the CustomerID column. This is the same CustomerID that appears in the CustomerID column of table Customers.

Table Order Details 7 Table Order Details has a row for each line item of each order in table Orders. The OrderID identifies the order to which the Order Detail applies.

Table Order Details The table name consists of two words. You will need to enclose the name in square brackets when you refer to it in a SQL query. Example: select * from [order details] Try it for yourself! 8

9 Assignment Write an ASP.NET app that permits the user to determine the total value of all orders that have been entered for a specified customer. The user identifies a customer by typing the first few letters of the CompanyName (not CustomerID) into a TextBox.

10 Requirements If there are multiple customers whose CompanyName matches the letters entered by the user, the app will display a DropDownList with those companies' names as choices. The user can then select the company from the DropDownList. If there is only one company whose CompanyName matches the letters entered by the user, that company is immediately selected. The DropDown list is empty and disabled. If no company matches, the app displays an error message.

11 Requirements When the user has uniquely identified a company, the app determines the total value of all orders in the database for that company and displays the result. Total value of each oder item is the amount that Northwind Traders billed the customer: UnitPrice * Quantity – Discount Amount Column Discount in table Order Details is a fraction of UnitPrice * Quantity Discount Amount is Discount * (UnitPrice * Quantity)

Computing Total Value Cost calculations should be done in dollars and cents, like an accountant would do with a calculator. Intermediate results should be in Decimal with two decimal places. It is OK to use integer types in cost calculations. Use Decimal for anything that can have a fractional value. Example: Decimal base_cost = Decimal.Round(UnitPrice*Quantity, 2); Decimal discount_amt = Decimal.Round(base_cost*(Decimal)Discount, 2); Decimal net_cost = base_cost - discount_amt ; 12

13 Initial Page User enters one or more initial letters of company name.

14 After user has entered initial letters User presses Tab or Enter, or clicks outside the TextBox.

15 After tabbing out of the TextBox User can select a company name from the drop down list.

16 Selecting from the DropDownList User selects an item from the DropDownList.

17 Result Displayed App displays the total value of orders for the selected customer. User can now select another customer from the DropDownList or enter new initial letters into the TextBox.

18 User selects another customer from the DropDownList.

19 New Result App displays total value of orders for newly selected customer.

20 User enters letters that uniquely identify a customer. When user tabs out of the TextBox, app immediately displays total value of orders from that customer. DropDownList is empty and disabled.

21 User enters letters with no matching customer name. App displays error message. DropDownList is empty and disabled.

22 User Resizes Browser Window

23 User Resizes Browser Window Page content remains centered.

24 Requirements Page layout should match the examples. Use CSS styling as shown and discussed in class.

25 Requirements Cursor should be in the TextBox when the page is initially shown on the browser. User can start typing immediately without having to click on the TextBox. Remove any leading and trailing spaces from the text that the user enters before looking for matching company names. See C# string class Trim method. When the user tabs out of the TextBox after making a change, any previous output disappears. If there are no non-space characters in the TextBox, nothing more happens. Don't look for matches to a zero length string.

26 Requirements DropDownList has a dummy initial item "Select Customer". If user selects that item, any previous output disappears, but nothing else should happen. DropDownList is unchanged.

27 Design Matters Apply the principles of object oriented design that have been shown and discussed in class. Define classes for Customer, Order, and OrderDetail. Use objects of these classes where that information is needed. Projects will be graded on software design as well as functionality.

28 Submission Submit your web site files via Canvas Assignments. Zip your web site folder using the Windows “Send to Compressed Folder” command. Submit the.zip file

29 Ground Rules You may work with one or two other students. OK to work alone if you prefer. If you do collaborate All group members are expected to contribute. Only one group member should submit the website files in Canvas. Include a comment with the names of all group members. Other group members submit just a comment with the names of all group members.

30 Ground Rules Do not share your work with other students (outside your group.) Before or after submitting the project. OK to discuss the project. OK to look at others’ web sites with a browser. Do not copy any other student’s code. Or even look at it. Do not let anyone copy or examine your code.

31 Ground Rules Except for code posted on the class web site Do not copy code from the Internet or any other source. Write your own code.

32 Due Date Project is due by 11:59 PM, Wednesday, March 23. After Spring Break Project submitted after the deadline will be subject to a penalty of 10 points per hour or part thereof. End of Presentation