School of Informatics University of Edinburgh
Inventory System
Ken Dawson
Inventory System Ken Dawson The current inventory/orders database - - PowerPoint PPT Presentation
School of Informatics University of Edinburgh Inventory System Ken Dawson The current inventory/orders database Requirements for a new inventory system Orders as structured data An XML document type for an order Some benefits
School of Informatics University of Edinburgh
Ken Dawson
May 2007 Inventory System 2
May 2007 Inventory System 3
– PO #, supplier, date, (VAT); description, delivery
date, price, budget, warranty, serial #
– Owner, location, maker, model, serial #, manager,
allocated, OS, hostname, group and domain
– Serial #, hostname, model, reason, date
May 2007 Inventory System 4
Orders entered and edited via rfe using a custom data format with template:
date: supplier: .item: .warranty: .quantity: .price: .sno: .delivered:NOTYET .budget vat:1.175
May 2007 Inventory System 5
construction of the SQL queries
directly from hosts
http://ordershost.inf.ed.ac.uk/
May 2007 Inventory System 6
and disposal of equipment (WEEE directive)
be made of the data
from a single order
May 2007 Inventory System 7
whole order: PO #, order date, supplier, VAT multiplier
various items
quantity ordered, warranty, budget charged
to store delivery date and zero or more serial numbers
May 2007 Inventory System 8
PO # Supplier Order date VAT multiplier Order line 1 Order line 2 description price quantity warranty budget delivery date serial numbers serial number 1 serial number 2 description price quantity budget delivery date serial numbers serial number 1 serial number 2 warranty
May 2007 Inventory System 9
data structures within a flat file in a form that is both human and machine readable
the corresponding document type definition (DTD)
as attributes of elements
document so that it can be displayed in a more user friendly way
May 2007 Inventory System 10
http://homepages.inf.ed.ac.uk/ktd/inforder.dtd
http://homepages.inf.ed.ac.uk/ktd/inforder.xsl
http://homepages.inf.ed.ac.uk/ktd/small_order.cu
http://homepages.inf.ed.ac.uk/ktd/small_order.xm
http://homepages.inf.ed.ac.uk/ktd/small_order.xm
May 2007 Inventory System 11
readable format
and verifying the correctness of the document
processing the data from the XML file
May 2007 Inventory System 12
with the existing system with synchronized data
the old ways of doing things
available without losing any functionality from the old
drop the old system
May 2007 Inventory System 13
the XML format.
custom format.
format with data held in a database that holds data on orders, items, locations, people etc (e.g. the School database)
May 2007 Inventory System 14
table in an Ingres (and other) database
forms that allow one to query, edit and add data from several joined tables
School database
GUI for Ingres
May 2007 Inventory System 15
inventory):
– item, system, part, hostname, software, location,
(department, grant, type)
– http://www.dice.inf.ed.ac.uk/doc/database/dm/cluster
– order
May 2007 Inventory System 16
– item
– system
– hostname
May 2007 Inventory System 17
– new switch port table showing switch ports and the
locations they are linked to
– new port-use table linking switch port to MAC
address
– Add special field to item table to record the order
line and item count corresponding to the specific item (currently held in comments field)