Professional Documents
Culture Documents
Id No: 178801209
Yangzhou university
Course Title:
Principle of Database System.
Project Name :
Inventory management System.
Submitted By:
HOSSAIN GAZI JUBAIR (许飞) Submitted To:
Id no: 178801209 Professor Dr Caikou Chen
Major: Software Engineering Collage Of Information Technology
Department Of Software Engineering
YZU
Email: yzcck@126.com
Phone: 13952780010
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
Contents:
1. Background.
2. Goal.
2.1: Conceptual.
3. Database Design.
3.3.1: E - R Diagram:
3.3.2: Logical Data Model Design.
3.3.3: Relational schema.
3.3.4: Functional Dependencies.
3.3.5: primary key, foreign key, candidate key, Others key.
3.3.6: Normalization 3NF and B CNF.
4: Function Design / System Design.
5: Front - End Design.
5.1: programming Language.
6: Data Server Design.
7: What is DBMS.
8: Implementation.
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
1. Background:
Most of the contemporary Information systems are based on the
Database technology as a collection of logically related data, and DBMS
as a software system allowing the users to define, create, maintain and
control access to the database.
The process of constructing such kind of systems is not so simple. It
involves a mutual development of application program and database.
The application program is actually the bridge between the users and
the database, where the data is stored. Thus, the well-developed
application program and database are very important for the
reliability, flexibility and functionality of the system.
The so defined systems differentiate to each other and their
development comprises a great variety of tasks to be resolved and
implemented.
The basic idea can be depicted on Figure 1.1 below:
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
This decision is made because the short time schedule of four weeks and
the not experienced java abilities of the team. The teams minimum
target is to show these core functionalities in a user friendly Graphic
User Interface (GUI). This consideration is taken into the architecture of
the database, which tries to ensure a built on architecture. Additional
functionality has to be integrated in an easy way.
Examples of these additional features can be:
Overviews of the entities Employee, Customer, Product, and Order.
Error checking of the application.
Possibility to arrange the customer information for the manager of the
Company. This enables the manager to get a greater knowledge about
the customers.
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
3. Database Design:
Database is a file composed of records, each containing fields together
with a set of operations it helps in organizing data in a logical order for
references.
Database contains related data which are organized together in a group
of object, table, and file. It can be in form of node. In this project a
relational database concept will be used in this appraisal, related data
will be store or organize in different table.
2.1: Conceptual:
The Inventory Management System is a real-time inventory
database capable of connecting multiple stores. This can be used to
track the inventory of a single store, or to manage the distribution of
stock between several branches of a larger franchise. However, the
system merely records sales and restocking data and provides
notification of low stock at any location through email at a specified
interval. The goal is to reduce the strain of tracking rather than to
handle all store maintenance. Further features may include the ability
to generate reports of sales, but again the interpretation is left to the
management. In addition, since theft does occasionally occur, the
system provides solutions for confirming the store inventory and for
correcting stock quantities.
3.3.1: E - R Diagram:
ER Diagram :
This diagram was developed to tell how the different entities in the
system are linked to each other entity with their attributes also listed.
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
Pk Roles_id Pk Per_id
Pk Login_id
Key Role_name Key Per_role_id
Key Login_role_id
Key Role_desc CK Per_mobile
CK Login_username
key Per_name
Key User_password
fk Roles_id
fk Per_id
User
Pk User_id
Key User_name
Customer CK User_mobile
Pk cus_id CK User_email
Key cus_name Key User_address
Key cus_add Fk Login_id
Key cus_pass Fk cus_id
CK cus_mobile Fk Inv_id
Ck cus_email Fk pay_id
Payment
Inventory
Pk pay_id
Stock
Pk Inv_id Key pay_cus_id
Pk Stk_id
Key Inv_type Key pay_desc
Key Stk_type
Key Inv_items Key Pay_data
Key Stk_desc
Key Inv_num key Pay_amt
Key Inv_desc
Fk Stk_id
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
Pk Roles_id Pk Per_id
Pk Login_id
Key Role_name Key Per_role_id
Key Login_role_id
Key Role_desc CK Per_mobile
CK Login_username
key Per_name
Key User_password
Fk Roles_id
Fk Per_id
User
Pk User_id
Key User_name
Employee CK User_mobile
CK User_email
Pk Em_id Key User_address
Key Em_dep_id Fk Login_id
Key Em_name Fk Em_id
Key Em_code Fk Leave_id
CK Em_mobile Fk Salary_id
Ck Em_email
Salary
Leave
Pk Salary_id
Department Pk Leave_id Key Salary_em_id
Pk Dep_id Key Leave_em_id Key Salary_month
Key Dep_title Key Leave_type_id Key Salary_date
Key Dep_desc Key Leave_from key Salary_desc
Key Leave_status
Fk Dep_id
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
3.3.3: Relational schema:
Those attributes which can uniquely identify entity are the candidate
keys, One of these attributes will be primary key, Foreign key and the
other keys.
Table 1. Associating entities with candidate keys, primary key and others
keys.
Entity Candidate Primary Foreign key others Keys
key key
Inventory management System Hossain Gazi Jubair(许飞)
Login Login_userna Login_id Roles_id, Login_role_id,
Id No: 178801209
me Per_id User_password
Primary key
Primary key
7: What is DBMS?
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
SQLite:
8: Implementation:
Inventory management System database:
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
The database has JDBC (Java database connectivity) support. The
creation of the tables is made by using the query language SQL. Two
examples of the code are included below:
Interface:
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209
Inventory management System Hossain Gazi Jubair(许飞)
Id No: 178801209