Ngày nay, đời sống của con người ngày một phát triển kéo theo nhu cầu mua sắm, buôn bán của con người ngày càng tăng cao. Công việc quản lý của các chủ cửa hàng tạp hóa lớn nhỏ ngày càng khó khăn và phức tạp hơn. Có rất nhiều giải pháp phần mềm được đưa ra để giải quyết vấn đề này, nhưng nó đắt và khó áp dụng cho các cửa hàng quy mô vừa và nhỏ.Qua nghiên cứu, học hỏi từ thầy cô và bạn bè về giải pháp quản lý bán hàng kết hợp với quá trình khảo sát thực tế trên nhiều cửa hàng, em muốn đưa ra giải pháp bán hàng cho cửa hàng vừa và nhỏ. Hi vọng sản phẩm này có thể giúp các nhà quản lý kiểm soát được toàn bộ quá trình kinh doanh của cửa hàng mình.Vì vậy, em đã thực hiện dự án “XÂY DỰNG CHƯƠNG TRÌNH QUẢN LÝ BÁN HÀNG” cho cửa hàng tạp hóa ABC. Được sự hướng dẫn tận tình của thầy Trần Xuân Sang em đã hoàn thành bài báo cáo đồ án này. Mặc dù chúng tôi đã cố gắng hết sức tìm hiểu, phân tích, thiết kế và lắp đặt hệ thống nhưng không thể tránh khỏi những thiếu sót. Tôi mongADO nhận được sự thông cảm và góp ý của bạn. Xin chân thành cảm ơn.
Trang 1VINH UNIVERSITY TECHNICAL INSTITUTE AND TECHNOLOGY
.NET TECHNOLOGY PROJECT
SALE MANAGEMENT PROGRAM
TEACHER: TS Hoàng Hữu Việt
Student: Hồ Văn Cường Class: 59K – CNTT – CLC ID: 18574802010178
Trang 2TABLE OF CONTENTS
Trang 3Nowadays, people's lives are developing day by day, leading to increased shoppingand trading needs of people The management work of large and small grocery store owners
is more and more difficult and complicated There are many software solutions offered tosolve this problem, but it is expensive and difficult to apply to small and medium-sizedstores
Through research, learning from teachers and friends about sales managementsolutions combined with the actual survey process on many stores, I would like to come upwith a sales solution for small and medium stores Hopefully this product can helpmanagers control the entire business process of their store
Therefore, I have implemented the project "BUILDING A SALES MANAGEMENTPROGRAM" for an ABC grocery store With the enthusiasticguidance of Mr HoangHuu Viet, I have completed this project report Although we havetried our best to learn, analyze, design and install the system, it is inevitable that there will
be shortcomings I look forward to receiving your understanding and suggestions Thankyou sincerely
Performed by Student : Ho Van Cuong Student ID: 18574802010178
Class : K59-CLC-IT
Nghe An , June 6, 2021
Trang 4CHAPTER 1 OVERVIEW 1.1 Description of the problem
Sales management in enterprises is an important job, requiring the Managementdepartment to conduct many complex operations
The application of IT has brought a new breakthrough for sales management, helpingbusinesses capture information about goods, supplies, customer information, and the status
of orders in a way accurate and timely From there, managers can make the right plansand decisions, reduce costs and increase competitiveness, and improve production andbusiness results
1.2 Subject specification
Sales management software must support the management of information forbusinesses trading in goods and services automate the process of managing goods andmaterials, reducing labor costs, and increasing the accuracy of orders and provide promptservice to customers It was developed with the aim of promptly meeting all functions fromimport, export, inventory, goods arrangement management, revenue, order management inorder to increase production and business efficiency for Business
The management department of a ceramic shop has full control over the system, someemployees take on other tasks such as selling, importing goods, recording informationabout customers, suppliers and customers printing invoices
Each type of goods that the company is allowed to trade usually includes many items.Each item is identified by item name, unit of measure, suggested price and assigned a codecalled item code for easy tracking Shop owners, in addition to capturing the market, alsohave to monitor the sales situation of their goods to do business effectively At the sametime, receive a summary inventory report to see which items are still below the allowablethreshold, then propose to management for a solution, possibly selling at a discount torecover capital for trading other items
When the store buys goods, they have to carry out procedures for warehousing Each
Trang 5responsible for checking the quantity and quality of imported goods On the entry form, thesupplier's code and name are clearly written for easy tracking later; code and full name ofthe store employee responsible for stocking the same items, quantity, expiry date, date ofstocking, purchase unit price and the corresponding amount Import work happens everyday when goods are purchased.
When selling goods to customers, an invoice is issued Invoices are issued by only oneemployee and only for one customer The invoice includes information about item code,quantity, unit price, discount rate and total amount sold
At the end of the month, the manager will make statistics of the items to summarizethe revenue and check the business situation of the store
Trang 6- Displays a list of items by category.
- Display the goods the customer has selected to buy
- Display customer information
a Equipment and software
- MySQL database management system
- Install Visual Studio 2019
b Systematic program requirements are as follows
- The owner of the application has the right to control all activities of thesystem This person is provided with a username and password to log into the system
to perform his/her functions:
- Function to update, edit, delete items, types of goods, manufacturers,customers, employees (must control the system) It requires precision
- Receive payment, check, issue invoices for customer orders Display orders
- Statistics by date, time period
In addition to the above functions, the chapter must be designed so that it is easy tounderstand, the interface is easy to use, beautiful and easy for users to manipulate
2.2 SYSTEM ANALYSIS AND DESIGN 2.2.1 SITUATION SURVEY AND NEW SYSTEM BUILDING
* After the survey, I have grasped the following information:
Trang 7- Management of goods: goods code, name of goods, import price, selling price,quantity, image, details, code of goods, name of goods.
- Manufacturer management: manufacturer code, manufacturer name, representative,phone number, email
- Employee management: full name, address, phone number, date of birth and gender
Trang 8Figure 2.1 function hierarchy chart
2.2.2.1 Functional hierarchy diagram of the Admin job
Figure 2.2.2.1 Diagram of business functions Admin
2.2.2.2 Functional hierarchy diagram of warehouse management
Trang 9Figure 2.2 Functional chart of warehouse management
2.2.2.3 Functional hierarchy diagram of the Sales operation
Figure 2.3 Functional chart of sales
2.2.2.4 Function block diagram ORDER
Trang 10Figure 2.4 Function block diagram ORDER
CHAPTER III BUILDING MODELS – SCHEDULE
Trang 113.1 BUILD MODELS 3.1.1 Solutions
Figure 3.1 Diagrams model
3.1.2 SALES PROFIT DATABASE 3.1.2.1 The Users table stores the list of users Table of fields
Stt column
Automated Code
surname
Trang 123.1.2.2 The Customers table stores a list of customers The table contains the following
address
phone
3.1.2.3 The Categories table stores the type of goods The table contains the following
fields
3.1.2.4 The Suppliers table stores a list of suppliers of goods The table contains the
following fields
Stt column name datatypes meaning
Name
Trang 133.1.2.5 The Products table stores product details The table contains the following
fields
3.1.2.6 The Orders table stores purchase invoices Table of fields
Stt column name datatypes meaning
(FK)
Trang 14Stt column name datatypes meaning
2 DetailID (PK) int order detail code
3.1.2.8 The Staff table stores a list of employees Table of fields
Stt column
3.2 Design the theme 3.2.1 Login form
- Form name: frmLogin
Trang 15Figure 3.2 login form design.
Components on the form:
TextBox
txtUserNametxtPassword
Trang 16Figure 3.3 Main form design.
Components of the menu
Trang 17mnuStatistical Báo cáo – Thống kê
mnufrmRevenue Danh thu
mnufrmInventory Hàng tồn
Trang 18- Form name: frmCategory
Figure 3.4 Category form design
Components on the form:
TextBox
txtCategoryNametxtDescription
btnSearch
Trang 19- Form name: frmCustomers
Figure 3.5 Customers form design
Trang 20control Name Text
TextBox
txtCustomerNametxtAddress
txtPhonedateTimePicker1txtSex
Trang 21Figure 3.6 Suppliers form design
Components on the form
TextBox
txtCompanyNametxtContactNametxtPhone
txtAddresstxtEmail
btnSearch
Trang 22- Form name: frmStaff
Figure 3.7 Staff form design
Trang 23Control Name Text
TextBox
txtStaffNametxtAddresstxtPhonedateTimePicker1txtSex
Trang 24Figure 3.8 Prpoducts form design.
Components on the form:
cboSupplier
TextBox
txtProductNametxtQuantitytxtimportpricetxtPricetxtImage
Trang 26Figure 3.9 Pass form designComponents on the form:
TextBox
txtPass1txtPass1txtPass1
Trang 27Figure 3.10 Invoice form design
Components on the form:
dateTimePicker dateTimePicker1
TextBox
txtTotalAmount, txtIntoMoney, txtPrice, txtSale,txtProductID, txtQuantity, txtAddress,txtCustomerName, txtCustomerID, txtOrderID,txtStaffName
ComboBox cboStaffID, cboPhone, cboProductName,
cboOrderID
Trang 28Button btnAdd, btnDelete, btnNew, btnXoa, btnSave,
btnCancel, btnClose , btnSeach
3.2.10 Print form:
- Form name: frmPrint
Figure 3.11 Print form designComponents on the form:
Label
lb_name , lb_sdt ,lb_address , lb_date ,lb_ID, lb_tong
Trang 293.2.11 Search Order form:
- Form name: frmSearchOrder
Figure 3.12 SearchOrder form design
Components on the form:
Label
lb_name , lb_sdt ,lb_address , lb_date ,lb_ID, lb_tong
DataGridView dataGridView1
Button btnPrint, btnDelete, btnClose
Trang 30- Form name: frmInventory
Figure 3.13 Inventory form design
Components on the form:
Trang 31Figure 3.14 Revenue form design
- Components on the form:
DataGridView dataGridView1
Button btnSearch, button1, btnClose
ComboBox cbo_Order , cbo_Phone , cbo_Product , cbo_Staff
TextBox txtday1 , txtday2
Trang 32On the basis of studying knowledge from the ".NET Technology" textbook of TeacherHoang Huu Viet and some related documents, I carried out the topic "Sales Management"and achieved the following results:
- Completed the objectives and tasks set out by a management system program, withthe same functions as the design analysis system described above
- Build a complete program that can be applied in practice
I would like to express my sincere thanks to Professor “Hoang Huu Viet” for helping
us to complete this thesis
Due to limited qualifications and time, defects are inevitable We look forward toreceiving the suggestions of teachers, teachers and friends to make the work more complete
Trang 33RESEARCH PAPERS
[1] https://www.w3schools.com/