The app was built with C# in Visual Studio, .NET Framework, and WinForms UI. It utilizes SQL Server LocalDB for DBMS functionality, with Entity Framework for DB operations and ADO.NET for data access. SSDT used to design and manage the database schema. Dependencies are managed via NuGet packages.
The application is a powerful tool for data management and analysis of sales. The main functions of the application include authorization
, selecting a data table for administration
, viewing the current user
, and managing data
. Users can view, add, edit and delete data, ensuring that the information in the database is up to date and complete.
Analytics functionality allows you to analyze data in detail by sales, products, categories etc., saving analytical data in Excel for further analysis. Built-in SQL queries provide high performance and accuracy, loading data into the DataGridView and performing analytical operations with minimal latency.
The application was developed to provide
efficient data management and analysis of sales. It solves the problem of
the need to systematize and process information about sales and products, which allows companies to make more informed decisions and optimize their operations.
The login password is encrypted and hidden under * symbols, providing an additional level of security and confidentiality.
Users can easily find out information about their current account, providing control and convenience for personalizing their experience.
The administrator form contains several data tables that allow you to select the necessary information for subsequent operations.
The implementation of viewing, adding, editing and deleting records is carried out using built-in SQL queries. This ensures high productivity and accuracy of operations, and also minimizes the risk of errors.
Users can conduct detailed data analysis and save analytical information into Excel files for later sharing and further analysis.
All system errors that could occur were processed to ensure correct operation of the program.
Providing informative notifications to the user about errors and successful actions to increase understanding and ensure that all transactions are accounted for.
By using Windows Forms elements such as linkLabel
, Label
, TextBox
, Button
, MaskedTextBox
, ComboBox
, and dataGridView
, the application provides an attractive and intuitive interface, facilitating comfortable and efficient user interaction.
The application was built using C#
in Visual Studio
, with WinForms
chosen for the user interface due to its ease of use and rapid development capabilities. C# was selected for its widespread availability and robustness in software development, while Visual Studio provides an intuitive and efficient development environment.
To manage data, the application utilizes SQL Server LocalDB
, facilitating easy deployment and testing. Entity Framework
abstracts database operations, simplifying code and enhancing maintainability. ADO.NET
offers direct database access and flexible data management capabilities.
Database schema design is handled with SQL Server Data Tools (SSDT)
, integrated into Visual Studio. SSDT enables convenient visual modeling of database structure and efficient management of tables, keys, and relationships.
Dependencies and external components are managed through NuGet
, ensuring quick integration and up-to-date components throughout development. NuGet simplifies the process of adding, updating, and removing libraries and dependencies essential for application development.
To ensure the security and ease of use of the application, various software settings and restrictions have been applied. For example, the application form was placed in the center of the screen, providing a convenient layout for the user. Additionally, the size of the form has been fixed to prevent accidental changes to its appearance, and dragging the form has been disabled.
To improve security, the "Expand" button has been hidden so that all elements on the form are positioned correctly and make them easier to work with. The application also actively handles system errors, guaranteeing stable and reliable operation, and also provides the user with informative messages about emerging problems for a quick response and improved user experience.
Also, during authorization, after entering an incorrect password, the input field is automatically cleared, providing convenience to the user when trying to log in again and preventing possible input errors.
This conceptual database model describes the main entities and their relationships in a product supply and sales management system. The model presents several entities and their relationships:
Client ():
Sales of goods ( ):
Product ():
Delivery of goods ( ):
Supplier ():
Relationships between entities:
This model provides an overview of how customers, products, supplies, and suppliers are interconnected in the system.
Conceptual Model |
This logical database model describes the data structure for the inventory and sales system. The model contains several interconnected tables:
Product group ( ):
Product ():
Seasons ( ):
Product categories ( ):
Materials ():
Sales of goods ( ):
Contents of the implementation ( ):
Shops ():
In this model:
This structure allows you to effectively manage information about products, categories, materials, seasons, stores and sales, ensuring data integrity and consistency.
Logic Model |
This class model describes the structure of data and their relationships in the system of accounting for goods, their categories, materials, sales and other aspects. The model contains the following classes:
Implementation ():
Contents of the implementation ( ):
Product ():
Shops ():
Product group ( ):
Product categories ( ):
Materials ():
Seasons ( ):
Users ():
This model describes how entities are related to each other through navigation properties and also includes key attributes for each entity. It provides a structured view of data and its relationships, which helps in database development and management.
Class Model |
This section presents the database, including tables, their contents and key fields.
Database |
To run the program you will need Microsoft SQL Server LocalDB. If it is already installed on your computer, the installer window will not appear. However, if LocalDB is missing, you will need to download it to your computer.
Install DB |
Login |
When starting the program, you must go through authorization, for which two fields are provided: login and password. If you enter incorrect credentials or incomplete information (either just the login or just the password), an error window will appear containing the following messages.
Exception when logging in with empty fields |
Exception when logging in with invalid data |
Administration Form |
After successful authorization, you will see in the upper right corner the current account under which you are logged in, and you will also be given a choice of the necessary information to carry out various actions with it. In addition, you can navigate to sales analytics and other data to analyze it or save it to a file.
However, if the data is not selected and you try to open it, you will see an error message indicating that the data was not selected.
Users |
Shops |
Product Group |
Sales |
Sales Composition |
Materials |
Product by Season |
Product by Category |
Product |
You will be able to view, add, edit and delete data.
Exception when adding an empty entry |
Exception when adding an existing entry |
Notification of Successful Entry Addition |
Exception when editing with empty field |
Notification when editing without changes |
Notification of Successful Entry Editing |
Exception when deleting the account under which you are currently working |
Exception when deleting last user |
Exception when a new line is removed or when an entry is not selected |
Exception Notification Linked Records |
Deletion Confirmation |
Notification of Successful Record Deletion |
Search |
Users can benefit from stricter criteria restrictions when working with each form of data. Just enter the required details in the search field and you will get complete information about the relevant records.
Also below are warnings that may appear when searching on some data forms:
Exception when searching by ID |
Exception when searching by date |
Users have the ability to sort any data in ascending or descending order. Simply click on the column header to select the sort order you want.
Below are errors when sorting data::
Sorting products by price in ascending order |
Sorting products by price in descending order |
Analytics |
The analytical form provides a variety of analytical data about products, stores, categories, and more. Here you can view information, use the search function and export the data you need to an Excel file.
An example of analytical data output is given below:
Save Analytics |
Excel with Analytics |
Each table in a separate sheet |
Example of Saved Data |
Example of Saved Data 2 |
Program Completion Confirmation |
On Windows platform:
Download archive which has all needed application components. The application can be started by opening the .exe
file.
Note:
When you start the program, you must install SQL Server LocalDB on your computer. If it is not installed, an installer window will automatically open, giving you the opportunity to install the required component.