Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Internet Ordering TrophyNut OrderSystem Service Unit Instructions Troop by Girl Ordering.
Trails End Popcorn System for Unit Leaders. Is it hard? How does it work? 1. Log In 2. Add your Scout List (optional but good!) 3. Approve Scout Orders.
Costpoint Credit Card Training Log In
CC SQL Utilities.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Craig J. Nichols, Secretary. FLEET User Manual May 2013.
Accessing and Using the e-Book Collection from EBSCOhost ® When an arrow appears, click to proceed to the next slide at your own pace. To go back, click.
Once you have obtained your log-on and password, enter the log-on assigned to you and your password.
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Accounts Receivable Presented by: Robert Myers Presented by: Robert Myers.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Introduction to Structured Query Language (SQL)
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
IMPROVED SYSTEM NEW LOOK
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
Introduction to Structured Query Language (SQL)
Navigation instructions Begin the tutorial Creating the Performance Plan Performance Management System Tutorial for Managers Estimated Time to Complete:
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
Chapter 3 Maintaining a Database
Integrated Enterprise System 11/1/11Create travel expense report ESS 6.03 vers Employee Self Service – Create a Travel Expense Report tutorial Effective.
DISTRICT ONLY CONTACT: The new MRPC program is a single database designed to be accessed by ALL users within your district. When you receive the program.
Advanced Forms Lesson 10.
Working with a Database
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Lead Management Tool Partner User Guide March 15, 2013
Lesson 17 Getting Started with Access Essentials
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Excel CREATING A WORKSHEET AND CHART. Personal Budget Worksheet We will create a personal budget worksheet that shows you income each month and your expenses.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
1. To start the process, Warehouse Stationery (WSL) will invite you to use The Warehouse Group Supplier Electronic Portal and will send you the link to.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
Warehouse Report. Log into EDS using your Address/User Id and Password. If you have forgotten your password, click on the Forgot Password? link.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
CIS 250 Advanced Computer Applications Introduction to Access.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
ITCS373: Internet Technology Lecture 5: More HTML.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
Select Customer Menu Option Notice there are two options in the Customer Menu. The first, Customer Contact Menu, records information to assist you in.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Select the Services Purchase Order Menu Select Add Recycling Services Purchase Order to create a new Services Purchase Order.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Install Appaserver ©Tim Riley. Apache Group ©Tim Riley Add yourself to the apache group. Both the apache user and group are called “www-data”. This step.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
Online Catalog Tutorial. Introduction Welcome to the Online Catalog Tutorial. This is the place to find answers to all of your online shopping questions.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
PestPac Software. Leads The Leads Module allows you to track all of your pending sales for your company from the first contact to the close. By the end.
PestPac Software. Pay On Commission Commission can be paid on Production, Receipt, or Up-Front. Production: Commission will be paid when work is completed/an.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
Create Purchase Order Application Using Appaserver
Microsoft Office Access 2003
Presentation transcript:

Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables.

Purchase Order Database Design ©Tim Riley From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* Allocate 30 characters of text for each vendor name. Allocate 4 characters of database space for the purchase time. The format will be HH24. For example, 1310 represents 1:10 PM. The time will be automatically pre-populated in the data entry form. It's possible that two or more purchases could occur at the same minute. So include the vendor in the primary key.

Purchase Inventory ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* many There is a many-to-many relationship between purchase order and inventory. Inventory are goods available for sale. Inventory is recorded as an asset until sold. It is recorded in the books at cost. When sold, the cost of inventory is recorded in the account called cost-of-goods- sold. Total cost-of- goods sold is subtracted from total revenues to yield gross- margin. Inventory inventorychar 30*

Purchase Inventory ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Inventory inventorychar 30* Purchase_ Inventory purchase_datedate* purchase_timetime 4* vendorchar 30* inventorychar 30* quantityinteger cost_per_itemfloat Convert the many-to-many relationship into two many- to-one relationships. Record the quantity purchased and the cost per item. The primary key of the new table are the primary keys of both tables. The new table is usually named by combining the names of both many-to-many tables.

Purchase Plant and Equipment ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Plant_Equipment plant_equipmentchar 30* Purchase_ Plant_Equipment purchase_datedate* purchase_timetime 4* vendorchar 30* plant_equipmentchar 30* quantityinteger cost_per_itemfloat Record the quantity purchased and the cost per item. Plant is the business term for buildings. Plant and equipment are buildings, machines, furniture, and tools that are used to add value to products and services. Their costs are material enough to warrant additional book-keeping. Plant and equipment are recorded as an asset. They are systematically expensed over time in the account called depreciation expense.

Purchase Supplies ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Supply supplychar 30* Purchase_ Supply purchase_datedate* purchase_timetime 4* vendorchar 30* supplychar 30* quantityinteger cost_per_itemfloat Record the quantity purchased and the cost per item. Supplies are products that cost less than a material amount. Supplies are expensed when purchased into the account called supplies expense.

Purchase Services ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Service servicechar 30* Purchase_ Service purchase_datedate* purchase_timetime 4* vendorchar 30* servicechar 30* hoursinteger cost_per_hourfloat Record the hours worked and the cost per hour. Services are consumed upon purchase. Services are expensed when purchased into the account called {service} expense. Replace {service} with the actual service. For example, Lawn Mowing expense.

Receive Inventory ©Tim Riley Purchase_ Inventory purchase_datedate* purchase_timetime 4* vendorchar 30* inventorychar 30* quantityinteger cost_per_itemfloat Receive_ Inventory received_datedate* received_timetime 4* vendorchar 30* inventorychar 30* purchase_datedate purchase_timetime 4 quantityinteger Partial shipments are possible. Foreign key to purchase inventory table. } Record the quantity received.

Receive Supplies ©Tim Riley Purchase_ Supply purchase_datedate* purchase_timetime 4* vendorchar 30* supplychar 30* quantityinteger cost_per_itemfloat Receive_ Supply received_datedate* received_timetime 4* vendorchar 30* supplychar 30* purchase_datedate purchase_timetime 4 quantityinteger Partial shipments are possible. Foreign key to purchase supply table. } Record the quantity received.

Receive Equipment ©Tim Riley Purchase_ Plant_Equipment purchase_datedate* purchase_timetime 4* vendorchar 30* plant_equipmentchar 30* quantityinteger cost_per_itemfloat Receive_ Plant_Equipment received_datedate* received_timetime 4* vendorchar 30* plant_equipmentchar 30* purchase_datedate purchase_timetime 4 quantityinteger Partial shipments are possible. Foreign key to purchase plant equipment table. } Record the quantity received.

Make Payment ©Tim Riley Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* amount_duefloat Purchase_ Order_Payment payment_datedate* payment_timetime 4* vendorchar 30* purchase_datedate purchase_timetime 4 bankchar 30 account_numberchar 30 amount_paidfloat Foreign key to purchase order table. } Partial payments are allowed. Cash_Account bankchar 30* account_numberchar 30* Bank bankchar 30*

Purchase Order Database Tables ©Tim Riley Log in with your address and password of changeit.

Become Administrator Role ©Tim Riley Choose the administrator role.

Purchase Order Database Tables ©Tim Riley From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* To preserve relational integrity, create all one tables first. Insert the vendor attribute very first.

Insert Attribute ©Tim Riley Choose the insert attribute menu item.

Insert Vendor Attribute ©Tim Riley The attribute name is vendor, the datatype is Text, and the size is 30 characters. Leave everything else blank.

Insert Vendor Attribute ©Tim Riley Scroll to the bottom of the top frame. Press the button.

Insert Vendor Attribute ©Tim Riley The new vendor attribute is inserted into the attribute table.

Purchase Order Database Tables ©Tim Riley From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* Second, insert the vendor folder.

Insert Folder ©Tim Riley Choose the insert folder menu item.

Insert Vendor Folder ©Tim Riley The folder name is vendor, the form is Prompt, and the insert screen will have 5 blank rows for data entry. Leave everything else blank. When the user chooses to lookup this folder, the Prompt form displays a query screen to select subsets. The alternative to the Prompt form is the Table form. The Table form displays all of the rows without a query screen first.

Insert Vendor Folder ©Tim Riley Scroll to the bottom of the top frame. Press the button.

Insert Vendor Folder Attribute ©Tim Riley Upon pressing, the bottom frame displays rows to insert the new folder's attributes.

Insert Vendor Folder Attribute ©Tim Riley Choose Vendor from the attribute drop-down, and enter 1 for the primary key index. Leave everything else blank. To show Appaserver that an attribute is not participating in the primary key, enter an integer in the display order column and leave the primary key index blank. Currently, the vendor folder only has one attribute, and it's the primary key. The press the button.

From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* Insert Vendor Relationship ©Tim Riley The next screen that appears in the bottom frame allows you to insert relations for the vendor folder. However, this folder doesn't have any many-to-one relationships. Instead, the vendor folder has a one-to-many relationship. This one-to-many relationship will be inserted into the relation folder when we insert the purchase order folder. When we insert the purchase order folder, the relationship will be many- to-one.

Insert Vendor Relationship ©Tim Riley The bottom frame allows you to insert relations for the vendor folder. However, this folder doesn't have any many-to-one relationships. Press the button without filling out this form..

Insert Vendor Permissions ©Tim Riley This screen allows you to insert permissions for the vendor folder. The permissions are insert, update, and lookup. Since the update permission has more authority than the lookup permission, the update permission assumes the user has lookup permission. The permissions for a folder are assigned to roles. Only a supervisor should be allowed to insert and update vendors. The press the button.

Insert Vendor Role Operation ©Tim Riley Allow the supervisor to be able to delete vendors. An operation places a yes/no check-box at the beginning of each row following a query. The delete operation places a trash-can check-box on each row. The press the button.

Insert Vendor Folder Complete ©Tim Riley We have just inserted rows into the following tables: 1) folder 2) folder_attribute 3) role_folder 4) role_operation The next step is to create the vendor table in the RDBMS.

Create Vendor Table ©Tim Riley Scroll to the top of the top frame. This will expose the menu choices. We're going to run a process.

Create Vendor Table ©Tim Riley Choose the Create Table process.

Create Vendor Table ©Tim Riley Choose the Finance application and the Vendor folder. This will create the vendor table in the RDBMS. All processes that manipulate the database have a Really yn safety mechanism. Choosing No (or leaving at Select) will only display the work that will take place. Choosing Yes will really do the work. Choose No the first time. Finally press.

Create Vendor Table ©Tim Riley This is the create table command that will be sent to the RDBMS. The create unique index command enforces the element uniqueness integrity constraint. Next, set Really yn to Yes, and press.

Create Vendor Table ©Tim Riley The table is created. Any error messages would have appeared in the bottom frame.

Populate Vendor Table ©Tim Riley Switch to the supervisor role.

Populate Vendor Table ©Tim Riley Choose the menu item of insert vendor.

Populate Vendor Table ©Tim Riley Optionally, we could enter in each vendor one at a time by pressing each time. Remember when we set the insert rows number to 5? This asterisk means vendor is the primary key. Press without entering in a vendor name.

Populate Vendor Table ©Tim Riley By leaving any primary key attribute blank on the top frame, you get rows in the bottom frame to insert new data. Enter in all the new rows, then press in the bottom frame once. If we need to add more than 5 vendors in the bottom frame, then press again in the top frame to get 5 more empty rows.

Populate Vendor Table ©Tim Riley Type in some vendor names. Then press.

Populate Vendor Table ©Tim Riley The insert succeeded.

Lookup Vendor Table ©Tim Riley Choose the menu item lookup vendor. The table was empty prior to our insert. However, this count won't get updated until the top frame get repainted.

Lookup Vendor Table ©Tim Riley This is the prompt form. Remember when we chose this form over the table form when we inserted this folder? Each attribute will have some mechanism to query subsets.

Lookup Vendor Table ©Tim Riley Lookup all vendors that begin with a. Then press.

Lookup Vendor Table ©Tim Riley All rows matching the lookup query in the top frame are displayed in the bottom frame. Remember, we inserted the Delete operation to the supervisor role into the role operation folder for the vendor folder?

Create Purchase Order Table ©Tim Riley From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* Insert the purchase order attributes.

Insert Purchase Order Attributes ©Tim Riley Choose the insert attribute menu item.

Insert Purchase Order Attributes ©Tim Riley The attribute datatype is current date. The only difference between datatypes of date and current date is current date will prepopulate the field with the current date. The attribute name is purchase_date. The attribute width is 10 characters. The standard format for date is yyyy-mm-dd. However, users can change the way dates are displayed to the American format – mm/dd/yyyy.

Insert Purchase Order Attributes ©Tim Riley Leave everything else blank, and scroll down to the bottom of the top frame. Press the button in the top frame.

Insert Purchase Order Attributes ©Tim Riley The bottom frame shows the results. Press the button in the top frame. This will clear the form so we can insert the purchase time attribute. Press the button so we don't have to use the scroll bar to get to the top.

Insert Purchase Order Attributes ©Tim Riley The attribute name is purchase_time. The attribute datatype is current time. The only difference between datatypes of time and current time is current time will prepopulate the field with the current time. The attribute width is 4 characters. The standard format for time is HH24, which is down to the minute. However, you can have times down to the second by making the width 7. Then the format is HH24:SS. For example 1310:15 is 1:10 PM and 15 seconds.

Insert Purchase Order Attributes ©Tim Riley The bottom frame shows the results. Leave everything else blank, and scroll down to the bottom of the top frame. Press the button in the top frame.

Create Purchase Order Table ©Tim Riley From Purchase_ Order purchase_datedate* purchase_timetime 4* vendorchar 30* Vendor vendorchar 30* Insert the purchase order folder.

©Tim Riley Insert Purchase Order Folder Choose the insert folder menu item.

Insert Purchase Order Folder ©Tim Riley The folder name is purchase_order. The form type is Prompt. The number of rows to insert is 1. We will generate a one-to-many data entry screen. The top frame will be to insert the one purchase order. The bottom frame will be to insert many rows in each related folder: 1) Purchase Inventory 2) Purchase Plant Equipment 3) Purchase Supply 4) Purchase Service The behavior will be just like inserting folders. The top frame inserts the folder. Then the bottom frame inserts many rows in each related folder: 1) Attribute 2) Relation 3) Role Folder 4) Role Operation

Insert Purchase Order Folder ©Tim Riley Scroll to the bottom of the top frame. Press the button.

Insert Purchase Order Folder Attributes ©Tim Riley Insert the purchase order's 3 primary key attributes. Press in the bottom frame.

Insert Purchase Order Relation ©Tim Riley Purchase order has a many-to-one relation to vendor. Choose Null for the related attribute. The related attribute is part of the relation table's primary key. So it must be populated with something. The Null string provides this placeholder. Press in the bottom frame.

Insert Purchase Order Permissions ©Tim Riley Give both insert and update permissions to supervisors and users. Press in the bottom frame.

Insert Purchase Order Operations ©Tim Riley The delete operation places a trash can next to each row following a query. The detail operation places a magnifying glass next to each row following a query. By checking the magnifying glass, the bottom screen will then display for this purchase order the related folders: 1) Purchase Inventory 2) Purchase Plant Equipment 3) Purchase Supply 4) Purchase Service Press in the bottom frame.

Insert Purchase Order Complete ©Tim Riley We have just inserted rows into the following tables: 1) folder 2) relation 3) folder_attribute 4) role_folder 5) role_operation The next step is to create the purchase order table in the RDBMS.

Create Purchase Order Table ©Tim Riley

Create Purchase Order Table ©Tim Riley

Purchase Order Design ©Tim Riley Purchase_Order Vendor Inventory Purchase_ Inventory The rest of the tutorial will create these 2 tables with only minimum callouts. We created these 2 tables. Each screen title will provide you with a guide.

Insert Purchase Inventory Attributes ©Tim Riley

Insert Purchase Inventory Attributes ©Tim Riley

Insert Purchase Inventory Attributes ©Tim Riley

Insert Purchase Inventory Attributes ©Tim Riley

Insert Purchase Inventory Attributes ©Tim Riley

Insert Inventory Folder ©Tim Riley

Insert Inventory Folder ©Tim Riley Now we're going to insert the inventory folder.

Insert Inventory Folder Attribute ©Tim Riley

Insert Inventory Relation ©Tim Riley The inventory folder doesn't have any many-to-one relationships.

Insert Inventory Permissions ©Tim Riley

Insert Inventory Operations ©Tim Riley

Insert Purchase Inventory Folder ©Tim Riley Now we're going to insert the purchase inventory folder.

Insert Purchase Inventory Attributes ©Tim Riley

Insert Purchase Inventory Relations ©Tim Riley Pair 1tom order is the feature that automatically displays each many related table in sequence when inserting into the one table.

Insert Purchase Inventory Permissions ©Tim Riley

Insert Purchase Inventory Operations ©Tim Riley

Insert Purchase Inventory Completed ©Tim Riley

Create Inventory Table ©Tim Riley

Create Purchase Inventory Table ©Tim Riley

Insert Inventory Item ©Tim Riley The two new tables are created. Now populate them.

Insert Inventory Item ©Tim Riley

Insert Inventory Item ©Tim Riley

Insert Purchase Order ©Tim Riley

Insert Purchase Order ©Tim Riley

Insert Purchase Order Inventory ©Tim Riley

Insert Purchase Order Completed ©Tim Riley

Lookup Purchase Order ©Tim Riley The insert screen has a lookup feature. Let's lookup the purchase order we just inserted.

Lookup Purchase Order ©Tim Riley

Purchase Order Detail ©Tim Riley The detail operation allows you to view all of the rows in each one-to-many related table. Currently, we've only created the purchase inventory table. If you were to delete this purchase order, then all of the rows in the one-to-many related tables would be deleted also. This is necessary to enforce the relational integrity constraint.

Purchase Order Detail ©Tim Riley

Insert Purchase Order Inventory ©Tim Riley You can insert new inventory purchases for this purchase order here.

Insert Purchase Order Inventory ©Tim Riley You can insert new inventory purchases for this purchase order here. However, we only inserted one inventory item – widget. Inserting another widget for this purchase order would be rejected because it would violate the element uniqueness integrity constraint.

Purchase Order Design ©Tim Riley Purchase_Order Vendor InventoryPlant EquipmentSupplyService Purchase_ Inventory Purchase_ Plant Equipment Purchase_ Supply Purchase_ Service We created these 4 tables. The other purchase tables plus the receive and payment tables still need to be created.