Professional Documents
Culture Documents
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded.
Acknowledgement
We as a team would like to extend our deepest gratitude to the module leader for
providing us with this wonderful opportunity. This has been a great learning experience
for us as it created an environment to work as a team. We would also like to extend our
gratitude towards institution Itahari International College for giving us the resources to
complete the project on time.
Lastly, we would like to thank everyone that has been a part of this project and have
encouraged and guided us to successful completion of this project.
Abstract
5.2 User_details.cs................................................................................................. 38
5.8 Customer_details.cs......................................................................................... 44
6 Testing ................................................................................................................... 51
6.2 Validate whether user detail page is viewed for user ....................................... 53
6.3 To check whether incomplete detail gives access to the system ..................... 57
6.27 To test whether items not sold for too long gets displayed in unsold section
112
6.28 To test whether a user gets inactive after not purchasing for 31 days ........ 114
1 Introduction
The system is a web application that actively manages the detail of items, User’s and can
keep the record of sold items. The system is developed as a team by members that are
well versed within the problem domain. It is developed within a set timeframe. The system
‘EazyStocks’ is developed keeping in mind the services it is to provide for management
of stocks in an Inventory. EazyStocks is accessible by an admin or staff that are registered
to the system. Each of them has features exclusive to them. The admin is able to register
a staff into the system, but the staff can’t. The staff can be modified, meaning their details
can be edited or deleted. The system is able to Add item to the stock, which can also be
edited or deleted. For each Item supplier is also added which can also be modified. The
system stores all the items under appropriate category.
CS6004NT Application Development
2 User Manual
This set of user manual is to facilitate the user with instruction on how the system interacts
and works. The displayed pictures below show how to operate the system.
Button 1: This field takes in email address for user and admin of the system.
Button 2: This field takes in password for admin and user of the system.
Button 3: Sing in as admin checkbox marks whether the information filled in 1 and 2 field
is for admin or for user.
Button 4: This button is clicked after entering correct credentials into 1 and 2 textfields
and is used to get access to the system.
Button 7: This button adds user into the system after filling in the appropriate details.
Button 8: This button is used to update any details related to user that is to be altered.
Button 9: The details to be altered are put into the fields without changing other data that
are not to be edited after pressing this button. Then button no 8 is pressed for updation
of altered data.
Button 10: This button deletes the selected user from the table and database.
Button 11: This button adds customer into the system after filling in the appropriate details.
Button 12: This button is used to update any details related to customer that is to be
altered.
Button 13: The details to be altered are put into the fields without changing other data that
are not to be edited after pressing this button. Then button no 12 is pressed for updation
of altered data.
Button 14: This button deletes the selected customer from the table and database.
Button 17: Edit button is used to alter the name of category if it is to be changed.
Button 18: Delete button deletes the selected category from the table and database.
Button 19: This button adds supplier into the system after filling in the appropriate details.
Button 20: This button is used to update any details related to supplier that is to be altered.
Button 21: The details to be altered are put into the fields without changing other data that
are not to be edited after pressing this button. Then button no 20 is pressed for updation
of altered data.
Button 22: This button deletes the selected supplier from the table and database.
Button 23: This button adds items into the system after filling in the appropriate details.
Button 24: This button is used to update any details related to items that is to be altered.
Button 25: The details to be altered are put into the fields without changing other data that
are not to be edited after pressing this button. Then button no 24 is pressed for updation
of altered data.
Button 26: This button deletes the selected item from the table and database.
Button 27: This button adds sales details into the system after filling in the appropriate
details.
Button 28: This dropdown feature displays all the purchases done by certain customer.
Button 29 Profile: This feature is exclusively for User; it features password change
functionality for User.
Button 30: This button functions to change the password for user. After new password Is
filled this button is pressed.
CS6004NT Application Development
4 System Architecture
4.2.1 Category
Classes Purpose
universalconnect The purpose of this class is to SQL
connection object which is used
throughout the project. This class creates
a universal connection string by which is
created the connection object.
Dashboard The purpose of this class is to create
connection for executing SQL query for
data retrieval of Out of stock items, Unsold
item and inactive user from the database
and displaying them in tables
Purchase_details This class retrieves data related to
purchase history of customer by creating
a connection and fetching data from
database.
Sales_details The main purpose of this class is to
facilitate CRUD operations where the
methods within perform insertion, update
and deletion of the data. It adds sales
data, gets the sales details and remove
the sales.
Item_details The purpose of this class is to create a
global connection which helps with the
CRUD operation. The methods within the
class uses universalconn to add new
items, get items, update supplier and
remove items.
CS6004NT Application Development
5 Method Description
5.1 User_details.aspx.cs
Page_Load()
Page_Load method loads the Grid view persistently for every reload.
addBtn_click()
This method is triggered only after add user button is pressed. It creates an object
addUser of User_details class after which it gets all the value from text fields of Add User
page and then calls another method newUser. An update message is pushed out
representing the addition of new user. Then all the text fields are emptied after.
RetrieveGridView()
This method creates a instance getUser of user_details class which then gets and
displays the data of grid view. Then calls a getUser method is called.
UserSelectCommand()
UserSelectCommand method contains switch case where edituser and deleteuser are
two cases. This method executes one block of code among these two cases. Case
edituser shows the selected user in the suitable textfields and case deleteuser removes
the selected user from the gridview and calls the RemoveUser method.
updateBtn_Click()
this method is executed only when the update user button is pressed in the user details
page.
CS6004NT Application Development
5.2 User_details.cs
NewUser()
GetUsers()
This method is used to retrieve the user’s data from user_details table. This method is
being added by the RetrieveGridView() method.
UpdateUsers()
RemoveUser()
This method takes user_id as a parameter. This methods delete the selected user from
database.
CS6004NT Application Development
5.3 Category.aspx.cs
Page_Load()
Page_Load method loads the Grid view persistently for every reload.
addBtn_Click()
This method is triggered only after add category button is pressed. It creates an object
addCategory of category class after which it gets all the value from text fields of
category page and then calls another method newCategory. An update message is
pushed out representing the addition of new category. Then all the text fields are
emptied after.
RetrieveGridView()
This method creates an instance addCategory of user_details class which then gets and
displays the data of grid view. Then calls a getCategory method is called.
CategorySelectCommad()
updateBtn_Click()
this method is executed only when the update category button is pressed in the
category details page. It creates a instance updateCat of category class. It then updates
the category and pushes a update message after which a RetrieveGridView() method is
called.
CS6004NT Application Development
5.4 Category.cs
newCategory()
This method takes a category_type as a parameter. This method inserts the values of
new category and store to the database. This method is being called by the
addBtn_click() method.
GetCategory()
This method is used to retrieve the category data from category table. This method is
being added by the RetrieveGridView() method.
updateCategory()
This method takes category_type as a parameter. This method updates the values of
category and store into the database. This method is being called by the
updateBtn_Click() method.
RemoveCategory()
This method takes category_id as a parameter. This methods deletes the selected
category from database.
CS6004NT Application Development
5.5 Supplier.aspx.cs
Page_Load()
Page_Load method loads the Grid view persistently for every reload.
addBtn_Click()
This method is triggered only after add user button is pressed. It creates an object
addSupplier of Supplier class after which it gets all the value from text fields of Supplier
page and then calls another method newSupplier. An update message is pushed out
representing the addition of new Supplier. Then all the text fields are emptied after.
RetrieveGridView()
This method creates an instance addSupplier of Supplier class which then gets and
displays the data of grid view. Then calls a GetSupplier method is called.
SupplierSelectCommad()
updateBtn_Click()
this method is executed only when the update supplier button is pressed in the supplier
details page. It creates an instance updateSupplier of supplier class. It then updates the
supplier and pushes a update message after which a RetrieveGridView() method is
called.
CS6004NT Application Development
5.6 Supplier.cs
newSupplier()
GetSupplier()
This method is used to retrieve the supplier’s data from Supplier table.
updateSupplier()
RemoveSupplier()
This method takes supplier_id as a parameter. This method then deletes the selected
category from database.
CS6004NT Application Development
5.7 Customer_details.aspx.cs
Page_Load()
Page_Load method loads the Grid view persistently for every reload.
addBtn_Click()
This method is triggered only after add Customer button is pressed. It creates an object
addCustomer of Customer_details class after which it gets all the value from text fields
of Customer_details page and then calls another method newCustomer. An update
message is pushed out representing the addition of new customer. Then all the text
fields are emptied after.
RetrieveGridView()
CustomerSelectCommad()
updateBtn_Click()
this method is executed only when the update customer button is pressed in the
customer details page. It creates an instance updateCustomer of Customer_details
class. It then updates the customer and pushes a update message after which a
RetrieveGridView() method is called.
CS6004NT Application Development
5.8 Customer_details.cs
newCustomer()
This method takes a name, address, contact_no as a parameter. This method inserts
the values of new customer and stores into the database. This method is being called
by the addBtn_click() method.
GetCustomer()
This method is used to retrieve the customer data from Customer table and displays
them in Grid format.
updateCustomer()
This method takes ‘name’, ‘address’, ‘contact_no’ and ‘email’ as a parameter. This
method updates the values of customer and stores into the database. This method is
being called by the updateBtn_Click() method.
RemoveCustomer()
This method takes Customer_id as a parameter. This method then deletes the selected
Customer from database.
CS6004NT Application Development
5.9 Item_details.aspx.cs
Page_load()
Page_Load method loads the Grid view persistently for every reload and binds the
category and supplier dropdownlist.
addBtn_Click()
This method is triggered only after add Item button is pressed. It creates an object
addItem of Item_details class after which it gets all the value from text fields of
item_details page and then calls another method newItem. An update message is pushed
out representing the addition of new Item. Then all the text fields are emptied after.
RetrieveGridView()
This method creates an instance getItem of Item_details class which then gets and
displays the data of grid view.
ItemSelectCommad()
ItemSelectCommand method contains switch case where edititem and deleteitem are two
cases. This method executes one block of code among these two cases. Case edititem
shows the selected supplier in the suitable textfield and case deleteitem removes the
selected Item from the gridview and calls the RemoveItem method.
updateBtn_Click()
This method is executed only when the update item button is pressed in the item details
page. It creates an instance updateItem of Item_details class. It then updates the item
and pushes a update message after which a RetrieveGridView() method is called.
CS6004NT Application Development
5.10 Item_details.cs
NewItems()
GetItems()
This method is used to retrieve the items data from item_details table and displays them
in Grid format.
updateItem()
RemoveItem()
This method takes item_id as a parameter. This method then deletes the selected item
from database.
CS6004NT Application Development
5.11 Sales_details.aspx.cs
Page_Load()
Page_Load method loads the Grid view persistently for every reload and binds the
category and supplier dropdownlist.
addBtn_Click
This method is triggered only after add Item button is pressed. It creates an object
addSales of Sales_details class after which it gets all the value from text fields of
Sales_details page and then calls another method newSales. An update message is
pushed out representing the addition of new Item. Then all the text fields are emptied
after.
RetrieveGridView()
This method creates an instance getSales of Sales_details class which then gets and
displays the data of grid view.
SalesSelectCommad()
5.12 Sales_details.cs
newSales()
GetSales()
This method is used to retrieve the items data from sales_details table and displays the
last data of sales detail in Grid format.
RemoveSales()
This method takes sales_id as a parameter. This method then deletes the selected item
from database.
CS6004NT Application Development
5.13 Purchase_history
Page_Load
RetrieveGridView()
5.14 Purchase_details
GetPurchase
This method retrieves purchase data from the database tables and displays them in
Data Table.
5.15 Dashboard1
Page_Load()
This method creates multiple instances of ckass like getOutOfStock, getUnsoldItem and
getInactiveCustomer and binds them and to the table.
RetrieveGridView()
This method creates an instance getOutOfStock and retrieves the out of stock data
which is bonded to the table.
5.16 Dashboard
GetOutofStockItem()
This method basically gets all the Out of stock related data’s from database and sorts
them into ascending order according to the order type defined.
UnsoldItem()
CS6004NT Application Development
This item gets all the items data that have not been sold for 31 days and binds them to
a table.
inactiveCustomer()
This method gets all the user who have not purchased for last 31 days and binds them
to a table.
CS6004NT Application Development
6 Testing
Figure 61: Empty Fields and initial table values in User addition page
CS6004NT Application Development
Figure 62: Filling new user details and adding the user
Figure 104: Changing the required data except for other and updating
6.27 To test whether items not sold for too long gets displayed in
unsold section
Table 38 To test whether items not sold for too long gets displayed in unsold section
6.28 To test whether a user gets inactive after not purchasing for 31 days
Table 39 To test whether a user gets inactive after not purchasing for 31 days
1.
The stock management system developed is made within visual studio as a Integrated
development environment and C # as a programming language. The system is able
to manage the items and associated users and suppliers related to them. It actively
manages the stock and also automatically lists out the items that are not available.
The project is developed in group, where all the group members were given out
individual tasks to carry out. This group of people have really been great, and I am
very thankful for their contribution to the project. I managed the Item and sales addition
feature as well as query for the dashboard of the system. I oversaw the working of
purchase history of a customer, for which a month worth of data is stored and
displayed. All of us contributed to the documentation of the system. Working with
CS6004NT Application Development
Visual studio has also been a kind of experience. I liked the functionality of the
integrated development and what it contributes to the developers but the only thing
where I found it hard to get by was debugging the code. The project has been
wonderful, and all the members were co-operative.
2.
My major contribution in this project lies in adding customer. I also contributed group
in formulating ideas let us not say that I alone did this task, but all the group members
discussed together and decided how to formulate the ideas and implement them in
the simplest and fastest way with a better result. This assignment is part of the
Application Development module which was a group project so working together and
the best utilization of having a team member on it for developing any project and its
impact on a project was the main moto of the whole work. While this assignment was
in progress, I used visual studio code for the development of the project, it is
lightweight but very powerful source code editor with inbuilt support for the .NET
framework which we used to develop the system. Also, while doing the other various
tasks of this assignment, all of us contributed to the documentation of the system., I
felt glad to have such a group member who worked hand in hand with each other and
made this assignment possible within the time frame.
3.
project in an easier and faster way to get the best result. I would also like to thank all
my group members of this project for working together, sharing knowledge, and for
encouraging me to learn more and more skills throughout the completion of this
project. They also helped with documentation of the system. I felt glad while doing this
assignment with my group. Enjoyed everything about this assignment. Using visual
studio for the development and using it also was a great experience.
4.
In the starting phase of the project, we as a group member discussed about the project
and planned the work, completed the individual tasks and gathered all the tasks
together and made a whole project. Being the only girl member in group made me
uncomfortable for a while but adjusted within a short period of time. I faced problem
while doing my individual task as this type of task which is a part of a big project but
separated into fragments was my first time. But researching about the task and
implementing it was easier as the tasks mainly required me to focus on a single
propose. I am really glade as my group members helped me a lot in doing the project.
Despite those problems and their solution I enjoyed doing this assignment with the
group which I was in, it is because I was able to learn lot of things which would have
not been possible if this assignment would be a solo task. All of us contributed to the
documentation of the system. I over saw the working of add category feature. Also,
visual studio for performing the coding part made as the visual studio is very user-
friendly environment for code editing. Best user guidance is also available on visual
studio which made it easier for performing the task.
CS6004NT Application Development
8 Conclusion
The project has been a great opportunity to try and implement some ideas into making a
wonderful stock management system. The system has couple of great features ranging
from feature like adding stocks to recording of sales and generating reports. The system
developed is sure to be a helping hand and easing the arduous task of managing stocks
the old way.
This project has given us a chance to work as a team and try and coordinate with the
members into building a system. It tested the collaborative aspect of members and
reflected the time management skills of each and every group member. It helped us
realize the most basic essence of group working and time management to get the work
done. This year has not been great so far, all the group members were required to stay
home due to pandemic, so the workflow was greatly hindered.
This project has taught us the working of asp.net and MySQL. It also taught time
management for effective workflow. This had been a great experience that taught us
working with a group and division of work, so it helped us realize the necessity of optimal
work environment and co-operative team members. We learnt it was better to work with
group, but the workload division is the most difficult part. As a final product a functioning
inventory management system is developed.
CS6004NT Application Development
9 References