0% found this document useful (0 votes)
46 views

Oracle Final Project - Sample - Report

This document describes an online bookstore project for an industrial engineering course. It includes sections on how the project supports sustainability and society, a comparison of programming languages used, tables and forms created in the database, and code examples for different features like user login, searching, ordering and updating quantities.

Uploaded by

saeedmurdi5
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Oracle Final Project - Sample - Report

This document describes an online bookstore project for an industrial engineering course. It includes sections on how the project supports sustainability and society, a comparison of programming languages used, tables and forms created in the database, and code examples for different features like user login, searching, ordering and updating quantities.

Uploaded by

saeedmurdi5
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Department of Industrial Engineering

Faculty of Engineering
King Abdul-Aziz University

IE323
Section (GA)

Final Project
Industrial Engineering Bookstore
(IEBK)

Name ID #

Date of Submission:

Sunday 18/04/2021
Contents
Introduction: ..........................................................................................1
How this project will support the environment: ...................................1
How this project will support the society: ............................................1
How this project contributes to health and safety: ................................1
Comparison between C# and Oracle: ....................................................1
Estimated cost for project:.....................................................................2
The sustainability of the project: ...........................................................2
Created tables: .......................................................................................2
Codes for the procedures of all the innovations: ..................................8
Reports: ................................................................................................27
Table of comparison between alternatives: .........................................28
Table of innovations: ...........................................................................29
Conclusion: ..........................................................................................30
Reference: ............................................................................................30
Introduction:
Nowadays, the internet and computers made our life easier especially in the business field.
Customers can buy anything, from anywhere by only few clicks. Business owners also are
making a huge amount of profit by selling their products on the internet. One of online business
are bookstores. Starting an online bookstore business needs to take the supply and demand into
account to provide the right number of books to the customers without any financial loss. This
project’s goal is to establish an online bookstore for industrial engineering students at King
Abdul-Aziz University called industrial engineering bookstore. The project aims to help the
students to find the books for their courses and to help the business owners in making a simple
data analysis based on the orders and this will be done through oracle forms and other tools.

How this project will support the environment:


Preserving the environment is a priority to the industrial engineering bookstore and this priority
will be achieved through many aspects. First, the bookstore banned the use of the paper bills
and the electronic bills will be used instead. This decision will help to reduce cutting down
tress and contributes to preserving vegetation. Second, recyclable and environmentally friendly
bags will be used instead of plastic bags since the impact of the plastic bags on the environment
is very high. Finally, low emission of CO2 cars will be used in the delivery process.

How this project will support the society:


The project is supporting the society by increasing the scientific and cultural outcomes of the
industrial engineering students which could lead eventually to country development, The
prosperity of civilization and the increase in the economic resources of the Kingdom of Saudi
Arabia.

How this project contributes to health and safety:


Nowadays, the whole word faces the COVID-19 pandemic which is known as coronavirus
pandemic. A significant social and economic disruption caused by the pandemic. In order to
reduce the infection rate, a lot of countries have restricted free movement and closed their
borders. Moreover, quarantines and lockdowns were enforced by governments. The world
health organization suggests social distancing to overcome this pandemic. In this project,
students do not need to go anywhere to buy a book, they can order while they are at home and
the order will be arrived at their home. This project will help students to avoid interacting with
people directly which reduces the probability of increasing the infection rate and that
contributes to the health and safety of the whole society and world not only the students.

Comparison between C# and Oracle:


C# programming language is used to create programs that used by a single person or to
perform day to day tasks. On the other hand, oracle usually used when creating database-
oriented projects. So, using oracle in this project is much more efficient than using C#
programming language.

1
Estimated cost for project:
The project started in March 30, 2021 and a lot of tasks were involved in this project such as:
brainstorming for project’s idea, creating logo for the project, creating tables, searching and
learning about new innovations, testing and writing the report. To complete the project I
needed an average of 3 hours daily. 18 working days * 3 hours per day = 54 total working
hours. If the cost per hour is equal to SAR 70, the total estimated cost would be = 54 total
working hours * SAR 70 cost per hour = SAR 3,780

The sustainability of the project:


This project will help universities to provide books for their students through an official
platform. Since the Saudi public universities are non-profit universities, the books will be sold
with competitive prices. The idea of establishing an online bookstore is costing less money
than renting or buying a place to establish the bookstore. For these reasons the project will be
a sustainable project.

Created tables:
1-Books

Create table books (


ISBN varchar2(13),
Book_Name varchar2(70),
Authers_Names varchar2(65),
Course_No varchar2(5),
Edition varchar2(2),
Price number(6),
CONSTRAINTS BOOKS_ISBN_PK PRIMARY KEY (ISBN));

alter table books


add (BIM BLOB);

alter table books


add (available_qty number(3));

2
2- Students

Create table Students (


Student_id varchar2(7) constraints st_id unique,
Student_password varchar2(30) constraints sp not null ,
Student_name varchar2(50) constraints sn not null,
Student_phone_number varchar2(10) constraints spn not null,
Student_Location_Details varchar2(200) constraints sld not null);

3- orders

Create table orders (


ISBN varchar2(13),
Quantity number(2) constraints qua not null,
order_date date not null,
arrival_date date not null,
order_number number(10),
CONSTRAINTS ISBN_FK FOREIGN KEY (ISBN) REFERENCES books (ISBN));

alter table orders


add (Total_price number(6,2));

alter table orders


add (card_no number(16) not null);

alter table orders


add (cvv number(3) not null);

3
alter table orders
add (CARD_EX_M number(2) not null);

alter table orders


add (CARD_EX_Y number(4) not null);

alter table orders


add (name_on_card varchar2(30) not null);

alter table orders


add (student_ID varchar2(7));

4- Admins
create table admins (
user_id varchar2(10) constraint AD_UQ unique,
a_password varchar2(20) not null);

Screen shots of the forms:


1- Login form

4
After login as student:
2- Books search engine form

3- Ordering form

5
4- Completing the order

After login as admin:


1- Main menu for admins

6
2- Adding a new book

3- Showing all the registered students

7
4- Showing all the received orders

Codes for the procedures of all the innovations:

1- Create an account for a student:

8
2- Login for students:

9
3- Alert when trying to exit the ordering process:

10
4- Search box with changeable images depending on the book:

Search by course number:

11
Search by book’s ISBN:

12
5- Student cannot proceed with the order if the book is out of stock:

13
6- A timer to close the payment form after 5 minutes if its not filled for
security reasons:

14
After a timer of 300,000 milliseconds (5 minutes) was created, a message will appear and the
form will be closed when the timer is expired as shown in the following image:

15
7- Calendar:

8- Arrival date cannot be less than the order date:

16
9- Unique order number for each order:

17
10- Dynamic total price that changes depending on the quantity:

18
11- Updating the available quantity after each order.
This innovation was done by calling a global variable of the quantity from the
previous form:

19
Then, when the quantity is changed the available quantity will be subtracted from
quantity into a non-visible item box:

After that, a post insert trigger is initiated to update the quantity in the data base with
the new value, the value of the non-visible text item.

20
12- Order cannot be done if the quantity exceeds the number of books on
stock:

21
13- Establishing a SQL plus database connection with Microsoft
office via Devart tool:
To establish a connection after installing the Devart tool, we can open an excel
sheet then go to devart tool

Then press on get data

An import data wizard window will appear, we need to fill the text items
with the SQL plus user, password and server.

22
After that we will have the access to all the tables in the server, we can
choose which table we want to import from object option.

The data of chosen table from the data base will be previewed before
inserting them in the following image:

23
The following image shows the data after the importing process:

Now, the excel sheet is connected with orders table that is on SQL plus, if the
data on SQL plus is changed or updated all what we have to do in excel sheet is
to refresh the page through the refresh button on Devart section:
24
14- A button to open a specific excel file

25
15- Changeable image depending on the book:

26
Reports:

27
Table of comparison between alternatives:
Alternative designs
S.No Criteria for Comparison Oracle & C#
developer

1 Ease of Programming/ Developing Easy to program and Hard to program or


develop develop
2 User-friendliness It has a welcoming It does not have a
friendly interface welcoming friendly
interface as much as
oracle & developer have
3 Interactive Wizards It has a lot of It does not have
interactive wizards interactive wizards as
that facilitates the much as oracle &
work developer have
4 Web-based Output It can be run easily It does not use a web-
on desktop and web- based environment, it
based environment uses its own windows
5 Project Cost Depending on the It dose not need any
number of servers server unlike the oracle,
and development, it it depends on a single
could cost much user. So, it could cost
more the C# less then oracl
6 Overall Features The features are The feature are mainly
mainly database- are for single users
oriented projects

28
Table of innovations:
Innovations:
S.NO Problem / Need for the What is the How it has improved Level of
innovation innovation added the project. complexity

1. Register to access the Create an account Make the order process Moderate
system much easier
2. Login to Access the Login [1] Make the order process Moderate
system much easier
3. Exiting the system Alert to confirm. [2] The user will not lose Easy
without placing an order any progress if the exit
button was pressed by
mistake.
4. Finding a book by course Search box [3] Facilitate the search High
number or ISBN to order process
5. Order can be proceeded Order cannot be It helped the project to Easy
even when no books were completed if the be more realistic
available available quantity =0
6. Secure sensitive A timer that closes It increases the security Moderate
information the payment form level
when it expired after
5 minutes [4]
7. Entering the date in Calendar [5] It facilitates the date High
wrong format entry
8. Choosing an arrival date Inserting an arrival It will help the Easy
before the order date date less than the employees not to waste
order date will clear time and effort in the
the item box of the review orders process
arrival date
9. |Distinguishing between Generating a unique It facilitates the delivery Easy
orders number for each and order tracking
order [6] process.
10. Calculating the total price Dynamic total price The total price will be Easy
depending on quantity that changes calculated automatically
depending on the and stored into the data
quantity base without wasting
time and effort from the
employees.
11. Available quantity not Updating the The available number of High
changed after each order available quantity books on the data base
after each order will reflect the number
in reality.
12. Orders exceeds the An order cannot be It helps to make a more Easy
available quantity done if the chosen logical project that
quantity exceeds the reflects the reality.
number of books
available
13. Data analysis for orders Establishing a SQL The orders data will be High
plus database analyzed to have a
connection with better picture and
Microsoft office via visualization about the
Devart tool [7] orders’ future.

29
14. Open a specific excel Creating a button that The data analysis excel Easy
sheet from oracle forms open that specific file sheet will be opened
on the system [8] directly and easily from
the forms.
15. See the cover of the book Changeable image Reducing the Moderate
before procced to buy depending on the probability of choosing
book [9] the wrong book

Conclusion:
At the end of the project, I learned a lot of things about oracle environment, and I also applied
what I learned in the course. In addition, many of innovations were leaned from the internet
and applied in this project. Finally, I hope this project will help universities for establishing
their own bookstores.

Reference:
1- Log in
https://www.youtube.com/watch?v=hdNe3QDFbzE
2- Alert
https://www.youtube.com/watch?v=1Bt-2SCsMKQ
3- Search box
https://www.youtube.com/watch?v=mW20yGlgl1U
4- Timer
https://www.youtube.com/watch?v=If6UXgWJGi8
5- Calendar
https://www.youtube.com/watch?v=k_wvOT8zkAI&t=323s
6- Generating unique number
https://www.youtube.com/watch?v=jVoPJD4ALCA
7- Devart tool for establishing connection between excel and SQL plus
https://www.devart.com/
https://www.youtube.com/watch?v=RTxD704odIQ
8- Open a specific excel file
https://www.araboug.org/ib/topic/9049-%D9%85%D9%85%D9%83%D9%86-
%D8%B4%D8%B1%D8%AD-%D8%B9%D9%86-
%D8%A7%D9%84%D8%A8%D8%A7%D9%83%D9%8A%D8%AC-dde/
9- Animated button
https://www.youtube.com/watch?v=Z4qAyUOq70o
10- changeable image depending on the book
https://www.youtube.com/watch?v=44hVrrB2_nQ

30

You might also like