/School-Managment-System-Desktop-Application

The School Management System is a comprehensive application designed to streamline school data management. This repository contains the source code for a desktop application developed in C# using the .NET Framework. The system consists of two main components: the database (Microsoft SQL) and the desktop application itself.

Primary LanguageC#

School Management System - Desktop Application

0

Build and Run Instructions

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

Clone the Repository

git clone  https://github.com/BorisPaunovic/School-Managment-System-Desktop-Application.git

Build the Solution

Visual Studio

  1. Open the project in Visual Studio.
  2. Build the solution by pressing Ctrl + Shift + B or navigating to Build > Build Solution in the menu.

CMD Alternative

cd ../School-ZavrsniFinal/School/Program.cs

# Build the solution
dotnet build

# Run the application
dotnet run

Configure Database Connection

Visual Studio

  1. Open the project in Visual Studio.
  2. Navigate to the App.config file in the project.
  3. Locate the connection string in Settings1.settings file and modify it according to your SQL Server configuration.
 
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="SchoolDAL" GeneratedClassName="Settings1">
  <Profiles />
  <Settings>
    <Setting Name="ConnectionString" Type="(Connection string)" Scope="Application">
      <DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;ConnectionString&gt;Data Source= *********YOUR SERVER*********;Initial Catalog=SchoolDB;Integrated Security=True&lt;/ConnectionString&gt;
  &lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
      <Value Profile="(Default)">Data Source= *********YOUR SERVER********* ;Initial Catalog=SchoolDB;Integrated Security=True</Value>
    </Setting>
  </Settings>
</SettingsFile>

CMD Alternative

Use your preferred text editor to edit the Settings1.settings file.

notepad ../School-ZavrsniFinal/School/Settings1.settings

Run the Application

Visual Studio

  1. Set the startup project to the main application.
  2. Press F5 or select Debug > Start Debugging from the menu.

CMD Alternative

Navigate to the project's executable directory and run the application.

cd ../School-ZavrsniFinal/School/obj/Debug
 School.exe

///////////////
OR
//////////////

cd ../School-ZavrsniFinal/School

# Build the solution
dotnet build

# Run the application
dotnet run

Access the Application

Once the application is running, log in with your credentials and start using the School Management System directly within the application.

User Manual

The School Management System is a comprehensive application designed to streamline school data management. This repository contains the source code for a desktop application developed in C# using the .NET Framework. The system consists of two main components: the database (Microsoft SQL) and the desktop application itself.

School Management System/Dashboard

Logging in to the Application

To access the School Management System, launch the application and enter your username and password on the login page.

4

Figure 1 - Logging in to the application

Upon successful login, you will be redirected to the main page, known as "Main/Dashboard."

Creating a New Account

New users can create an account by clicking the "Sign in" button on the login page.

6

Figure 2 - New User Creation Page

Fill in the required information to create an account, and choose the option to be an administrator if needed. Afterward, log in to the application.

Working with the Application

The main page provides a quick menu on the left side, displaying commands such as Dashboard, Courses, Students, Teachers, Countries, Subjects, and Users (visible only for administrators). The Dashboard page serves the same purpose.

Main Page

7

Figure 3 - Main Page

Viewing Data

Data related to specific topics is presented in tables at the bottom of the page. Controls for entering, deleting, and updating data are available at the top. A search bar with filters enhances the data viewing experience.

Data Management and Viewing Page

8

Figure 4 - Data Management and Viewing Page

Entering Data

To add new data, click the "Add" button for the respective data type. Fill in all required fields on the data entry page and click "Save." Confirmation or error messages will guide you.

9

Figure 5 - New Data Entry Page

Deleting Data

Select the item to delete from the list and click the "Delete" button for the respective data type. Confirm the deletion when prompted.

13

Figure 6 -Delete entry prompt

Updating Data

Updating data involves selecting the item from the table, clicking the "Update" button, and modifying the fields on the update page. Save the changes, and error notifications will guide you if needed.

14

Figure 7 - Data Updating Page

Database

The School Management System utilizes Microsoft SQL as its relational database, comprising nine tables for efficient data organization. SMS Database Diagram

Figure 8 - SMS Database Diagram For more information, refer to the detailed Database Documentation.

Issues and Contributions

If you encounter any issues or would like to contribute, please open an issue or fork the repository and submit a pull request.