Chương trình quản lý bán hàng ( Lập trình ADO.NET VÀ C# )

33 89 0
Chương trình quản lý bán hàng (  Lập trình ADO.NET VÀ C# )

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

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.

ADO.NET Quản lý bán hàng VINH 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 ADO.NET Quản lý bán hàng NGHỆ AN, 06/20201 TABLE OF CONTENTS Trang ADO.NET Quản lý bán hàng Nowadays, people's lives are developing day by day, leading to increased shopping and 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 to solve this problem, but it is expensive and difficult to apply to small and medium-sized stores Through research, learning from teachers and friends about sales management solutions combined with the actual survey process on many stores, I would like to come up with a sales solution for small and medium stores Hopefully this product can help managers control the entire business process of their store Therefore, I have implemented the project "BUILDING A SALES MANAGEMENT PROGRAM" for an ABC grocery store With the enthusiastic guidance of Mr HoangHuu Viet, I have completed this project report Although we have tried 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 Thank you sincerely Performed by Student : Ho Van Cuong Student ID: 18574802010178 Class : K59-CLC-IT Nghe An , June 6, 2021 Trang ADO.NET Quản lý bán hàng CHAPTER OVERVIEW 1.1 Description of the problem Sales management in enterprises is an important job, requiring the Management department to conduct many complex operations The application of IT has brought a new breakthrough for sales management, helping businesses 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 plans and decisions, reduce costs and increase competitiveness, and improve production and business results 1.2 Subject specification Sales management software must support the management of information for businesses trading in goods and services automate the process of managing goods and materials, reducing labor costs, and increasing the accuracy of orders and provide prompt service to customers It was developed with the aim of promptly meeting all functions from import, export, inventory, goods arrangement management, revenue, order management in order to increase production and business efficiency for Business The management department of a ceramic shop has full control over the system, some employees take on other tasks such as selling, importing goods, recording information about 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 code called item code for easy tracking Shop owners, in addition to capturing the market, also have to monitor the sales situation of their goods to business effectively At the same time, receive a summary inventory report to see which items are still below the allowable threshold, then propose to management for a solution, possibly selling at a discount to recover capital for trading other items When the store buys goods, they have to carry out procedures for warehousing Each time the warehouse is imported, an import invoice is generated Each import invoice only deals with the import of goods from one supplier and is made by an employee and is Trang ADO.NET Quản lý bán hàng responsible for checking the quantity and quality of imported goods On the entry form, the supplier's code and name are clearly written for easy tracking later; code and full name of the store employee responsible for stocking the same items, quantity, expiry date, date of stocking, purchase unit price and the corresponding amount Import work happens every day when goods are purchased When selling goods to customers, an invoice is issued Invoices are issued by only one employee 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 summarize the revenue and check the business situation of the store CHAPTER SYSTEM SURVEY AND ANALYSIS 2.1 ANALYSIS OF TOPIC REQUIREMENTS * THEME NAME “Building a sales management program” 2.1.1 FUNCTION This is a sales management program that helps users manage their stores well Has the following functions: Trang ADO.NET - Allow to update rows in the database Quản lý bán hàng - Displays a list of items by category - Display the goods the customer has selected to buy - Display customer information - Manage orders - Updating goods, manufacturers, product types, - Order processing - Statistics of customers who buy during the day, in a period of time 2.1.2 REQUIREMENTS 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 the system 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 to understand, 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: - Customer management: Each customer can manage the following information: full name, address, phone number, Date of birth and gender Trang ADO.NET Quản lý bán hàng - 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 2.2.2 SYSTEM ANALYSIS - Build functional hierarchy chart Data Flow Diagram: We build the data flow chart as follows SALE MANAGEMENT PROGRAM Trang ADO.NET Quản lý bán hàng Figure 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 ADO.NET Quản lý bán hàng Figure 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 ADO.NET Quản lý bán hàng Figure 2.4 Function block diagram ORDER CHAPTER III BUILDING MODELS – SCHEDULE Trang 10 ADO.NET DataGridView Quản lý bán hàng btnDelete Xoá btnEdit Sửa btnSave Ghi btnCancel Huỷ bỏ btnClose Kết thúc dataGridView1 3.2.4 Customers form - Form name: frmCustomers Figure 3.5 Customers form design Trang 19 ADO.NET Components on the form: control Quản lý bán hàng Name Text txtCustomerName txtAddress TextBox txtPhone dateTimePicker1 txtSex btnAll Hiển thị tất btnSearch btnNew Thêm btnDelete Xoá btnEdit Sửa btnSave Ghi btnCancel Huỷ bỏ btnClose Kết thúc Button DataGridView dataGridView1 3.2.5 Suppliers form - Form name: frmSuppliers Trang 20 ADO.NET Quản lý bán hàng Figure 3.6 Suppliers form design Components on the form Control Name Text txtCompanyName txtContactName TextBox txtPhone txtAddress txtEmail Button btnAll Hiển thị tất btnSearch btnNew btnDelete Thêm Xoá Trang 21 ADO.NET DataGridView Quản lý bán hàng btnEdit Sửa btnSave Ghi btnCancel Huỷ bỏ btnClose Kết thúc dataGridView1 3.2.6 Staff form - Form name: frmStaff Figure 3.7 Staff form design Components on the form: Trang 22 ADO.NET Control Quản lý bán hàng Name Text txtStaffName txtAddress TextBox txtPhone dateTimePicker1 txtSex btnAll Hiển thị tất btnSearch btnNew Thêm btnDelete Xoá btnEdit Sửa btnSave Ghi btnCancel Huỷ bỏ btnClose Kết thúc Button DataGridView dataGridView1 3.2.7 Products form - Form name: frmProducts Trang 23 ADO.NET Quản lý bán hàng Figure 3.8 Prpoducts form design Components on the form: Control ComboBox Name Text cboCategaory, cboSupplier txtProductName txtQuantity txtimportprice TextBox txtPrice txtImage txtDescription Trang 24 ADO.NET Quản lý bán hàng btnAll Hiển thị tất btnSearch Button PictureBox DataGridView btnOpen Mở btnNew Thêm btnDelete Xoá btnEdit Sửa btnSave Ghi btnCancel Huỷ bỏ btnClose Kết thúc pictureBox1 dataGridView1 3.2.8 Pass form - Form name: frmPass Trang 25 ADO.NET Quản lý bán hàng Figure 3.9 Pass form design Components on the form: Control Name Text txtPass1 TextBox txtPass1 txtPass1 btnCancel Huỷ bỏ btnNew Đổi Button 3.2.9 Invoice form - Form name: frmInvoice Trang 26 ADO.NET Quản lý bán hàng Figure 3.10 Invoice form design Components on the form: Control Name dateTimePicker dateTimePicker1 Text txtTotalAmount, txtIntoMoney, txtPrice, txtSale, TextBox txtProductID, txtQuantity, txtAddress, txtCustomerName, txtCustomerID, txtOrderID, txtStaffName ComboBox DataGridView cboStaffID, cboPhone, cboProductName, cboOrderID dataGridView1 Trang 27 ADO.NET Button Quản lý bán hàng btnAdd, btnDelete, btnNew, btnXoa, btnSave, btnCancel, btnClose , btnSeach 3.2.10 Print form: - Form name: frmPrint Figure 3.11 Print form design Components on the form: Control Name Text lb_name , lb_sdt , Label lb_address , lb_date , lb_ID, lb_tong DataGridView dataGridView1 Trang 28 ADO.NET Quản lý bán hàng 3.2.11 Search Order form: - Form name: frmSearchOrder Figure 3.12 SearchOrder form design Components on the form: Control Name Text lb_name , lb_sdt , Label lb_address , lb_date , lb_ID, lb_tong DataGridView dataGridView1 Button btnPrint, btnDelete, btnClose Trang 29 ADO.NET Quản lý bán hàng 3.2.12 Inventory form: - Form name: frmInventory Figure 3.13 Inventory form design Components on the form: Control Name Text Label Lb_tb DataGridView dataGridView1 Button btnSearch, button1, btnClose ComboBox cboProduct 3.2.13 Revenue form: - Form name: frmRevenue Trang 30 ADO.NET Quản lý bán hàng Figure 3.14 Revenue form design - Components on the form: Control Name Text Label Lb_N , Lb_B , Lb_L DataGridView dataGridView1 Button btnSearch, button1, btnClose ComboBox cbo_Order , cbo_Phone , cbo_Product , cbo_Staff TextBox txtday1 , txtday2 Trang 31 ADO.NET Quản lý bán hàng CONCLUDE On the basis of studying knowledge from the ".NET Technology" textbook of Teacher Hoang 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, with the 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 to receiving the suggestions of teachers, teachers and friends to make the work more complete Trang 32 ADO.NET Quản lý bán hàng RESEARCH PAPERS [1] https://www.w3schools.com/ Trang 33 ... frmProducts Trang 23 ADO.NET Quản lý bán hàng Figure 3.8 Prpoducts form design Components on the form: Control ComboBox Name Text cboCategaory, cboSupplier txtProductName txtQuantity txtimportprice... dataGridView1 Button btnSearch, button1, btnClose ComboBox cbo_Order , cbo_Phone , cbo_Product , cbo_Staff TextBox txtday1 , txtday2 Trang 31 ADO.NET Quản lý bán hàng CONCLUDE On the basis of studying... table contains the following fields Stt column name datatypes meaning SupplierID(PK) int Supplier code CompanyName nvarchar(100) ContactName nvarchar(50) Contact Name Address nvarchar(250) Company

Ngày đăng: 24/08/2021, 21:41

Mục lục

    1.1. Description of the problem

    CHAPTER 2. SYSTEM SURVEY AND ANALYSIS

    2.1. ANALYSIS OF TOPIC REQUIREMENTS

    2.2. SYSTEM ANALYSIS AND DESIGN

    2.2.1. SITUATION SURVEY AND NEW SYSTEM BUILDING

    2.2.2.1. Functional hierarchy diagram of the Admin job

    2.2.2.2. Functional hierarchy diagram of warehouse management

    2.2.2.3. Functional hierarchy diagram of the Sales operation

    2.2.2.4. Function block diagram ORDER

    3.1.2.2. The Customers table stores a list of customers. The table contains the following fields

Tài liệu cùng người dùng

Tài liệu liên quan