Uploaded by brawlsedi

Davletov Jasurbek Program Engineering Course work

advertisement
MINISTRY OF HIGHER EDUCATION, SCIENCE AND
INNOVATIONS OF THE REPUBLIC OF UZBEKISTAN
BUKHARA STATE UNIVERSITY
Department of "INFORMATION SYSTEMS AND DIGITAL
TECHNOLOGIES"
"Registered"
Faculty of Physics, Mathematics and
Information Technologies
________________
"____" ___________ 20__ y.
"Registered"
"Information Systems and Digital
Technologies"
department
_________________
"____" ___________ 20__ y.
"Software Engineering"
from science
__________________________________________________________________
On the topic of ___________________________________________________
COURSE WORK
COMPLETED: 60610200 - Information
Systems and Technologies (Industries and
Industries)
4th year student in the field of education
___________________________________
SCIENTIFIC SUPERVISOR:
" Information Systems and Digital
Technologies"
____________________________________
Bukhara – 2024
Head of the Department of "Information
Systems and Digital Technologies"
To TR Shafiyev
60610200 - Information Systems and Technologies
(Industries and Industries)
4th year student of _________ group, field of study
__________________________________
From
_______________________________
APPLICATION
You asked me to
“__________________________________________________”
(name of science)
__________________________________________________________________
”
from the subject
“________________________________________________________”
(name of the topic)
__________________________________________________________________
I would like to ask you to allow me to attach my coursework on the topic.
_______________ /______________________/
date signature
2
BUKHARA STATE UNIVERSITY
FACULTY OF INFORMATION TECHNOLOGY
"I confirm"
Head of Department
_______
____________________
“___”__________ 20__ year
COURSE WORK ASSIGNMENT
1.To the
student_________________________________________________________
(last name, first name, middle name)
2. Field of study__________________________________________________
(route name)
3.
Science____________________________________________________________
____
(name of science)
4. The topic of the course work is
______________________________________________
(coursework and object name)
__________________________________________________________________
5. Case manager
_______________________________________________________
(surname, first name, patronymic, academic degree and title)
No.
1
2
3
4
5
6
7
8
9
Work plan (schedule)
Deadline
Login
Why an online bookstore?
Advantages and disadvantages of the site
About the programming language in which the
application was created and its capabilities
Database used for the application
Connecting a site to SQL Server
Registration, Login and Logout
Main menus
Differences between Super Admin, Admin and
User
Orders and their confirmation
Conclusion and suggestions
List of used literature
3
Applications
6. Information required to complete the work
__________________________________________________________________
________________________________________________________________
7. The deadline for submitting the work is
“___”___________ 20__
8. Coursework supervisor
____________ ________
FISH. (signature)
9. Student: “I took it to complete the assignment” ____________ ________
FISH. (signature)
10. Date of assignment
“___”___________ 20__
Subject: Online bookstore
TABLE OF CONTENTS
INTRODUCTION.......................................................................................................
.................7
CHAPTER 1. ONLINE PLATFORMS
1.1. Why an online bookstore?................................................................................8
1.2.
Advantages
and
disadvantages
of
the
site........................................................................11
1.3.Database used for the application........................................................12
1.4.About the programming language in which the application was created and its
capabilities................................15
CHAPTER 2. BACKEND
2.1.Connecting
the
site
to
SQL
Server........................................................................21
2.2.
Registration,
Login
and
Logout........................................................................................22
2.3.Main menus........................................................................................................23
2.4.
Differences
between
Super
Admin,
Admin
and
User........................................................26
2.5.
Orders
and
their
confirmation........................................................................................28
CONCLUSION...........................................................................................................
.....32
4
REFERENCES................................................................................................33
5
Bukhara State University
Information Systems and Technologies (Networks and Areas) 4th year student,
group 1-1ATT-21 _______________________________________________ of
_______________________________________________________________
Coursework
on
the
topic
__________________________________________________________________
REVIEW
Relevance of the topic________________________________________________
__________________________________________________________________
________________________________________________________________
Achievements_______________________________________________________
__
__________________________________________________________________
________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
________________
Coursework
weaknesses________________________________________________
__________________________________________________________________
__________________________________________________________________
Conclusion (recommended for defense, not recommended for defense)
__________________________________________________________________
6
__________________________________________________________________
_____________
Scientific
advisor:
_______________________________________________________
(FISH., signature)
Bukhara State University
Information Systems and Technologies (Networks and Areas) 4th year student,
group 1-1ATT-21 _______________________________________________ of
_______________________________________________________________
Coursework
on
the
topic
__________________________________________________________________
REVIEW
Relevance of the topic________________________________________________
__________________________________________________________________
________________________________________________________________
Achievements_______________________________________________________
__
__________________________________________________________________
________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
________________
7
Coursework
weaknesses________________________________________________
__________________________________________________________________
__________________________________________________________________
Conclusion (recommended for defense, not recommended for defense)
__________________________________________________________________
__________________________________________________________________
_____________
Scientific
advisor:
_______________________________________________________
(FISH. signature)
ENTRANCE
In the 21st century, various online services have developed. Among them,
various online stores, courses, libraries, educational platforms, and many other
services have developed. It is very easy for people to order all kinds of products
without leaving their homes. For this, going to the store, choosing it, or performing
similar actions can be done through a single site or program, a simple telegram bot
or channels.
We will create a site like these platforms on the topic of this course work. This
site is an online bookstore where we can choose a book we like and get brief
information about it. And we can buy it whenever we want. To create this site, we
used the C# programming language .NET MVC. This allows us to create a lot of
conveniences in creating our site. At the same time, we used SQL Server as a
database. At the same time, authentication functions such as registration, login and
logout are also implemented easily and securely. This provides security and
convenience for our users. The differences between the Super Admin, Admin and
User roles and their powers are also detailed in the site's management system.
Separate processes have been established for accepting, confirming and
tracking orders, which ensures convenient and fast service for our customers. The
8
SQL Server chosen as the database allows us to easily and efficiently perform
operations such as adding, updating and deleting products.
Creating a site using .NET MVC offers many conveniences, including
separate sections for login and registration, which ensures a secure and convenient
service for our users. During this coursework, we learned how to create a userfriendly and effective online bookstore platform using modern technologies and
programming languages.
CHAPTER 1. ONLINE PLATFORMS
1.1.Why an online bookstore?
What are the most popular books purchased by young people in bookstores
and online stores? The following small study is about the most popular books and
their brief content. In the Asaxiy.uz online store, Javlon Jovliyev's novel "Korqma"
was found to be the most popular work among young people in the last 2-3 months
and throughout the year. It is no exaggeration to say that the reason why this work
is so popular and popular is that it raises educational and social problems, especially
because it is written about students.
The events of the novel cannot be expressed in brief words. It captivates you
with the melody of the past and the future, makes you think, cry and laugh bitterly.
The students who studied in Germany at the beginning of the last century, their
advice and tragic fate are weighed against the goals of today's youth.
Halis Karabenli's "Some Love from a Distance" is also the most popular book
among readers. It begins with the lines "Look at the sky, pray, love life, sing, walk
in the rain, love spring, don't grow up, smile, smile, because you are beautiful in this
position." It would not be wrong to say that it has attracted the attention of readers.
Amina Shenlikoglu's works are the best-selling on iBook.uz
Amina Shenlikoglu's books are at the top of the list of authors whose works are most
frequently downloaded by readers via the iBook.uz website.
No matter which work of this writer you read, in all of them we find advice
that encourages a person to perfection and strengthens faith.
9
In particular, the work "Maria" can be called a great monument to the glorification
of faith without any exaggeration. The writer wrote this work based on a real life
event. The events of the work took place in Germany and Turkey. Its main character,
a Christian girl Maria, is seen as a racist, even a nationalist, at the beginning of the
work. But over time, she realizes that representatives of other races and nationalities
are also human beings like herself.
"The Imam's Mannequin Daughter" is also written by Amina Şenlikoğlu and
is a work that clearly demonstrates the importance of being educated in helping
women find their place in society and avoid being spiritually backward.
Akrom Malik's story "The Ring" is also considered the most widely read work
by readers, and its painful statements, events, and shortcomings for Muslims around
the world will not leave any open-hearted Muslim without pain.
These works were purchased mainly by readers aged 17 to 30. The majority
of them are readers from Fergana, Samarkand, Namangan, and Surkhandarya
regions.
According to data from the Book.uz bookstore, the best and most sold books during
the summer months and last September-October are:
Zarifa Saidnosirova's book "My Mother" is not only a biographical work, but also a
beautiful love story with vivid and vivid images, which has great educational value.
Every reader who reads the book will feel a sense of respect and love for such
a great writer and great person as Oybek. In addition to Oybek, there is another main
character in the book. This is Zarifa Apo, who devoted her whole life to Oybek,
sought to alleviate his difficult fate, and became his worthy companion. This is not
only Oybek's personal life, but also a love and loyalty epic of two great figures who
are worthy of each other.
This work was purchased mostly by the audience aged 18–40. The work itself
was purchased by more than 6,000 people.
Murat Tosun — "Mothers Raised by Scholars." This book tells the story of
how mothers of great people raised their children and how much suffering they
endured. Therefore, we can learn a lesson by reading about each mother. This work
10
was most popular among the audience aged 19-38.
Malala Yousafzai — "I Am Malala." This book is an autobiographical account
of the difficulties she faced in fighting for the rights of women and girls, and the
harassment and threats she faced after advocating for girls to go to school. This work
was most popular with an audience between the ages of 21 and 42.
Around 2,000 copies of these books were purchased in stores and online.
Best-selling books from Akademnashr
Anvar Narzullayev is at the top of the list of authors whose works are being read
most frequently by readers through "Akademnashr". His book "Pythonda protsorlash
asolari" is considered one of the first and most complete guides in the Uzbek
language on the basics of programming.
Special video lessons have been recorded for each section of the book, which
can be accessed via the QR code provided in the book. Practical exercises for the
lessons and their answers have been uploaded to the Github platform. Despite the
fact that the manual is written based on the Python programming language, it is
recommended for all enthusiasts who are taking their first steps in programming.
Another of the best-selling books in this store is Rakhshona Ahmedova's book
of short stories and tales titled "Under the Umbrella." It reveals the writer's global
travel, her study of and observation of many countries and people. The fact that she
saw, felt, and experienced the character, worldview, and attitude to life of the
Japanese, Korean, and Chinese peoples on that land, and then wrote them down, is
clearly evident in several of her stories.
Zohidbek Turdialiyev — "Super Mathematics". This book is dedicated to
current issues in mathematics. The provision of solutions to problems and examples
of varying complexity makes it convenient for the reader. The book is intended for
applicants preparing for higher education institutions, young students, and their
teachers.
1.2. Advantages and disadvantages of the site
11
Amenities:
1. Online shopping: Customers can order books at any time without having to
go to the store. This saves time and energy.
2. Wide selection: Books across genres, authors, and topics are all in one place.
Customers can easily find the books they need using search or filter functions.
3. User interface ease: If the site is intuitive and simple to use, users of all ages
can easily use it.
4. Delivery service: Customers can receive the books they order at their address,
which is especially useful for those living in remote areas.
5. Recommendations and user reviews: Reviews and ratings from other users
help buyers choose books.
Disadvantages:
1. Technical failures: If there are problems with the server or site performance,
users will not be able to place orders.
2. Delays in courier services: Delays in delivery can cause customer
dissatisfaction.
3. Lack of live advice: Some users want to ask questions about a book, but they
may have difficulty if the site doesn't have this option.
4. Search engine complexity: If the search engine is not well optimized, users
may not be able to find the book they are looking for.
5. Security issues: If a site fails to take care to protect users' personal information
and payment details, they could be at risk.
6. Inconvenience for offline users: Customers who cannot connect to the Internet
cannot use the site's services.
1.3.Database used for the application
We used Microsoft SQL Server to build this application.
1. Microsoft SQL Server
History
The history of Microsoft SQL Server begins with the first Microsoft SQL
Server product, SQL Server 1.0, a 16-bit server for the OS/2 operating system in
12
1989, and continues to the present day. Its name is entirely descriptive, it is a server
program that responds to queries in the SQL language .
Versions
MS SQL Server for OS/2 was started in 1989 by Sybase , Ashton-Tate , and
Microsoft as a project to port Sybase SQL Server to OS/2.
SQL Server 4.2 for NT was released in 1993, marking the introduction of Windows
NT.
continues to develop its own variant of SQL Server, Sybase Adaptive Server
Enterprise, independently of Microsoft .
SQL Server 7.0 was released in 1998, marking a change in source code from C to
C++.
SQL Server 2005, released in 2005, completes a complete overhaul of the
legacy Sybase code to Microsoft code.
SQL Server 2012, released in 2012, adds columnar memory caching, aka
xVelocity.
SQL Server 2017, released in 2017, adds Linux support for these Linux
platforms: Red Hat Enterprise Linux , SUSE Linux Enterprise Server , Ubuntu &
Docker Engine .
SQL Server 2019, released in 2019, adds improvements to big data clusters,
"Intelligent Database", improved monitoring features, an updated developer
experience, and updates/completions for Linux-based installations. SQL Server
2022, released in 2022.
Current status
As of February 2024, the following versions will be supported by Microsoft:
● SQL Server 2014
● SQL Server 2016
● SQL Server 2017
● SQL Server 2019
● SQL Server 2022
Starting with SQL Server 2016, the product is supported only on x64
13
processors and requires a minimum 1.4 GHz processor, with 2.0 GHz or higher
recommended.
The current version is Microsoft SQL Server 2022, released on November 16, 2022.
The RTM version is 16.0.1000.6.
Architecture
The protocol layer implements the external interface to SQL Server. All
operations that can be invoked on SQL Server are delivered to it through a
Microsoft-defined format called Tabular Data Stream (TDS). TDS is an application
layer protocol used to transfer data between a database server and a client. Originally
developed and implemented by Sybase Inc. in 1984 for the Sybase SQL Server
relational database engine, and later by Microsoft in Microsoft SQL Server, TDS
packets can be encapsulated into other physical transport-dependent protocols,
including TCP/IP , named pipes , and shared memory . Thus, access to SQL Server
is available through these protocols. In addition, the SQL Server API is exposed
through web services .
Data storage
A data store is a database that is a collection of tables with sorted columns.
SQL Server supports a variety of data types, including Integer , Float, Decimal, Char
(including character strings), Varchar (variable-length character strings), Binary (
for unstructured blocks of data), Text (for textual data), and others. When rounding
floats to integers, either symmetric arithmetic rounding or symmetric rounding
(correction) is used, depending on the arguments: SELECT Round(2.5, 0) returns 3
.
Microsoft SQL Server also allows you to define and use user-defined
composite types (UDTs). It also provides server statistics as virtual tables and views
(called Dynamic Management Views or DMVs). In addition to tables, a database
can also contain other objects such as views , stored procedures , indexes , and
constraints , along with a transaction log . A SQL Server database can contain a
maximum of 2 31 objects and can span multiple OS-level files with a maximum file
size of 2 60 bytes (1 exabyte). Database data is stored in primary data files with the
14
extension .mdf. Secondary data files, defined with the extension .ndf, are used to
distribute a single database data across multiple files and, optionally, multiple file
systems. Log files are defined with the extension .ldf.
Parallelism and locking
SQL Server allows multiple clients to access the same database at the same
time. Therefore, it must control concurrent access to shared data to ensure data
integrity—when multiple clients update the same data or when clients try to read
data that is being modified by another client. SQL Server provides two modes of
concurrency control: pessimistic concurrency and optimistic concurrency . When
pessimistic concurrency control is used, SQL Server manages concurrent access
using locks.
1.4.About the programming language in which the application was created and its
capabilities
Visual Studio programming environment and C# programming language
Visual Studio
Visual Studio is an integrated development environment (IDE) from
Microsoft . It is used to develop computer programs, including websites , web
applications , web services , and mobile applications . Visual Studio uses Microsoft
software development platforms such as the Windows API , Windows Forms ,
Windows Presentation Foundation , Windows Store , and Microsoft Silverlight . It
can develop both native code and managed code .
Visual Studio includes a code editor ( code completion component) that
supports IntelliSense , as well as code refactoring . The integrated debugger works
as both a source-level debugger and a machine-level debugger. Other built-in tools
include a code profiler, a designer for creating GUI applications, a web designer , a
class designer, and a database schema designer. It accepts plugins that extend
functionality at almost all levels, including support for source control systems (such
15
as Subversion and Git) and adding new toolsets, such as editors and visual designers
for domain-specific languages , or toolsets for other aspects of software development
(such as the Azure DevOps client: Team Explorer).
supports 36 different programming languages , and allows the code editor and
debugger to support (to varying degrees) almost any programming language,
provided that language-specific services are available. Built-in languages include C
, C++ , C++/CLI , VisualBasic.NET , C# , F# , JavaScript , TypeScript , XML ,
XSLT , HTML , and CSS . Support for other languages, such as Python , Ruby ,
Node.js , and others, is available through M plugins . Java (and J# ) was previously
supported.
Architecture
Visual Studio does not support any programming language, solution, or tool;
instead, it allows you to connect functionality coded as a VSPackage. When
installed, the functionality is available as a Service. The IDE provides three services:
SVsSolution, which provides project and solution enumeration ; SVsUIShell, which
provides window and UI functionality (including tabs, toolbars, and tool windows);
and SVsShell, which handles registering VSPackages. The IDE is also responsible
for coordinating and enabling communication between services. All editors,
designers, project types, and other tools are implemented as VSPackages. Visual
Studio uses COM to access VSPackages. The VisualStudio SDK also includes the
Managed Package Framework ( MPF ), a set of managed wrappers around COM
interfaces that allow you to write packages in any CLI-compatible language .
However, MPF does not provide all the functionality provided by the Visual Studio
COM interfaces. The services can then be used to create other packages that add
functionality to the Visual Studio IDE.
Support for programming languages is added using a special VSPackage
called a language service. A language service defines various interfaces that a
VSPackage application can implement to support various features. Features that can
16
be added in this way include syntax highlighting, statement completion, bracket
matching, parameter information hints, member lists, and error flags for background
compilation. If an interface is implemented, the functionality is available for a
language. Language services are implemented on a per-language basis.
Implementations can reuse code derived from a parser or compiler for a language.
Language services can be implemented in either native code or managed code . For
native code, the native COM interfaces or the Babel Framework (part of the Visual
Studio SDK) can be used. Visual Studio does not include built-in source control
support, but it defines two alternative ways for source control systems to integrate
with the IDE. The Source Control VSPackage can provide its own customized user
interface. In contrast, a source control plug-in that uses MSSCCI (Microsoft Source
Code Control Interface) provides a set of functions that can be used to implement
various source control functions with the standard Visual Studio user interface.
MSSCCI was first used to integrate Visual SourceSafe with Visual Studio 6.0, but
was later exposed through the Visual Studio SDK. Visual Studio .NET 2002 used
MSSCCI 1.1, and Visual Studio .NET 2003 used MSSCCI 1.2. Visual Studio 2005,
2008, and 2010 use MSSCCI Version 1.3, which supports renaming and deletion, as
well as asynchronous opening.
Visual Studio supports running multiple instances of the environment (each
with its own set of VSPackages). Samples use different registry hives (see MSDN 's
definition of the term "registry hive" ) to store their configuration state, distinguished
by their AppId (Application ID). Samples are launched by an AppId-specific .exe
that picks up the AppId, sets the root hive, and starts the IDE. VSPackages registered
for a single AppId are bundled with other VSPackages for that AppId. Different
product editions of Visual Studio are created using different AppIds. Visual Studio
Express editions are installed with their own AppIds, but the Standard, Professional,
and Team Suite products have the same AppId. This means that Express editions can
be installed side-by-side with other editions, unlike other editions that update the
same installation. The Professional edition includes a superset of VSPackages from
the Standard edition, and the Community edition includes a superset of VSPackages
17
from both other editions. The AppId system is used by the Visual Studio Shell in
Visual Studio 2008 .
Code editor
Studio includes a code editor that supports syntax highlighting and code
completion using IntelliSense for variables , functions , methods , loops , and LINQ
queries . [20] IntelliSense is supported for embedded languages, as well as for XML , Cascading Style Sheets
, and JavaScript for web and web application development . Autocomplete
suggestions appear in a model-less list box above the code editor window, near the
editing cursor . In Visual Studio 2008, it can be temporarily made semi-transparent
to allow you to see code that is obstructed by it. The code editor is used for all
supported languages.
The Visual Studio Code Editor also supports bookmarking in the code for
quick navigation. Other navigation aids include collapsed code blocks and advanced
search , in addition to plain text search and regex search . The code editor also
includes a multi-item clipboard and a task list. The code editor supports code
snippets, which are templates for repetitive code that can be stored and inserted into
the code and customized for the project you are working on. A management tool for
code snippets is also built in. These tools appear as floating windows that can be
configured to automatically hide when not in use or when docked to the side of the
screen. The Visual Studio Code editor also supports code refactoring , including
reordering parameters, renaming variables and methods, extracting interfaces , and
encapsulating class members inside properties. The online version of Visual Studio
Code is available at Visual Studio Code
C# Programming Language
C# ( pronounced C sharp ) is a general-purpose high-level programming
language that supports multiple paradigms . The C# language is statically typed,
strongly typed , lexically scoped , imperative , declarative , functional , generic ,
object-oriented ( class- based) and component-oriented programming disciplines.
The C# programming language was developed in 2000 by Anders Hejlsberg
of Microsoft and later approved as an international standard by Ecma (ECMA-334)
18
in 2002 and ISO / IEC (ISO/IEC 23270) in 2003. Microsoft introduced the C#
language along with the .NET Framework and Visual Studio , both of which were
closed source . At that time, Microsoft had no open source products. Four years later,
in 2004, a free and open source project called Mono began providing a crossplatform compiler and runtime environment .
For the C# programming language. A decade later, Microsoft released Visual
Studio Code (a code editor), Roslyn (a compiler), and the .NET Framework (a
software framework), all of which support C# and are free, open source, and crossplatform. Mono was also acquired by Microsoft, but was not integrated with .NET.
As of November 2022, the latest stable version of the language is C# 11.0, which
was released in 2022 with .NET 7.0.
Design goals
The Ecma standard lists these design goals for C#:
● is designed to be a simple, modern, general-purpose, object-oriented
programming language.
● The language and its implementation have strong type checking, array bounds
checking It should support software engineering principles such as detecting
attempts to use uninitialized variables and automatic garbage collection .
Software robustness, durability, and programmer productivity are important.
● is intended for use in developing software components suitable for
deployment in distributed environments .
● Portability is very important for source code and programmers, especially
those familiar with C and C++ .
● Support for internationalization very important.
● is designed for writing applications for host and embedded systems, ranging
from very large systems using complex operating systems to very small
systems with isolated functions .
● Although C# applications are designed to be economical in terms of memory
and processing power requirements, the language is not intended to directly
compete with C or assembly language in terms of performance and size.
19
CHAPTER 1. BACKEND
2.1.Connecting the site to SQL Server
appsettings.json
Program.cs
20
Figure 1. By clicking on this section, we enter
the database and the following window will open (Figure 1).
Figure 2. In this section, we will find the database we
created in SQL Server and click the "OK" button to connect our program to SQL
Server (Figure 2).
2.2. Registration, Login and Logout
Like every website, our website also has registration and login windows. To
create these windows in our project, we use ready-made libraries of .NET MVC,
which provide us with Registration Login and Logout windows.
21
Figure 3.
Figure 4.
This by means of roads We can access the Identity pages and open the login or
registration windows (Figure 3-4).
2.3. Main menus
Main pages on our site 5th and they are:
22
Home Page->
Figure 5.
On this page, we have a brief overview of our site and can keep up to date
with various promotions (Figure 5) .
About us ->
Figure 6.
In this section, we provide a brief introduction to the site and its creative team
( Figure 6 ).
News->
23
Figure 7.
This is also one of the main parts of the site, where you can stay informed
about the latest books on the site and purchase the ones you like ( Figure 7 ).
Contact->
Figure 8.
If you have any errors or requests or suggestions, you can contact the site
admins in the contact section ( Figure 8 ).
Books->
24
Figure 9.
And one of the most important parts of our site is the shop section, where you
can briefly get acquainted with all types of books and have the opportunity to buy
the book you like. In this section, you will find books on the topic you like. Just click
one button. These sections are the main parts of our site, you can get to know the
rest in more detail in the following paragraphs ( Figure 9 ).
25
2.4. Differences between Super Admin, Admin and User
There are 3 types of users on the site: SuperAdmin, Admin and User. The
main difference between them is that SuperAdmin can view all users, delete them,
and view the list of all products. Admin can only add new products, delete them,
update them, and perform similar actions. User, as we all know, can only view books,
get information, and buy them. That's their main difference.
With these codes, we can assign a user role and display the appropriate
windows.
The SuperAdmin window looks like this:
26
Figure 10.
In this section, we view a list of all users in the database and perform various
actions on them ( Figure 10 ).
Figure 11.
The next window is for performing actions on products. Only SuperAdmins
and Admins assigned by SuperAdmins can see these windows ( Figure 11 ).
Figure 12.
Using these pages, admins can add new books or delete books ( Figure 12 ).
27
2.5. Orders and their confirmation
After selecting a book, we need to confirm it for purchase, for this we have
new windows, which are arranged as follows. The user adds the book they like to
their cart and has the option to delete it during confirmation if they wish.
Cart->
Figure 13.
The cart page displays a list of books added to our cart. We can delete or
update books from this page by entering the quantity of books and clicking the
Update Cart button, which will update the cart. To go to the cart page, select a book
or select the cart section from the Shop page ( Figure 13 ).
Figure 14.
The next step is to confirm, that is, after making sure that the book is correct,
we proceed to confirm it. To do this, we select Checkout from the Cart or we can
also select it from the profile page ( Figure 14 ).
28
Confirm->
Figure 15.
This page will display a list of books we have approved and the total amount
to be paid. After we enter all the personal information, we confirm and the order is
accepted ( Figure 15 ).
If we want to see the orders we have made, we select the My Orders section
from the profile and it will show us our orders ( Figure 16 ).
16 .
29
Figure 17.
This page will list all our unreceived orders. If our order arrives, a field will
appear in our order to enter a new code. The delivery person gives us a special code.
If we enter the special code in this field, we confirm that we have received the order.
If the code is entered correctly, the order will be deleted from our history. If the code
is incorrect, the order will not be confirmed. We can enter the code only if the
delivery person has given us the book ( Figure 17 ).
Figure 18.
This confirms that we have received the order and we can return to the main
page and order the book we want ( Figure 18 ).
30
Profile->
Figure 19.
On this page, we will see our profile information (Figure 19). If we want to
log out, we will need to confirm that we really want to log out ( Figure 20 ).
Figure 20.
CONCLUSION
31
1. Advantages and disadvantages of the site:
● Conveniences: ease of use, 24/7 service, and a wide range.
● Disadvantages: possible technical glitches, internet connection dependency,
and long shipping times.
2. Connecting the site to SQL Server:
● Using SQL Server to manage the database plays a critical role in ensuring the
reliable and efficient operation of a site.
3. Registration, Login and Logout:
● Implement registration, login, and logout functions to authenticate users and
ensure their security.
4. Main menus:
● Creating main navigation menus for users, ensuring they can use the site
efficiently and conveniently.
5. Differences between Super Admin, Admin and User:
● Information about the differences between the Super Admin, Admin, and User
roles in the site management system and their powers.
6. Orders and their confirmation:
● Establish processes for receiving, confirming, and tracking orders.
7. Database used for the application:
● Description of the database selected for the application and methods of its use.
During this coursework, I gained knowledge and experience in the above
topics. During the project implementation, I learned how to create a user-friendly
and effective online bookstore platform using modern technologies and
programming languages. This experience helped me gain broader knowledge in the
IT field.
REFERENCES USED
Main literature
1. "C# Programming Basics", Author: Dilmurod Rahmatullayev.
2. “Database and SQL Basics”, Author: Khurshidbek Abdurahmonov.
3. "COLLECTION OF MATERIALS", Author: Rakhmonjonovich.
Websites
1. https://learn.microsoft.com/ru-ru/ef/core/
2. https://medium.com/syncfusion/sql-a-complete-guide-for-beginners5861b376b8c4
3. https://www.w3schools.com/
4. https://stackoverflow.com/
5. https://themewagon.com/
6. https://www.free-css.com/free-css-templates
7. https://www.sql-practice.com/
8. https://learn.microsoft.com/ru-ru/sql/ssms/download-sql-servermanagement-studio-ssms?view=sql-server-ver16
Download