new project
This commit is contained in:
7
ProtRPP/DataModels/IId.cs
Normal file
7
ProtRPP/DataModels/IId.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace SchoolAgainStudyDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
||||
18
ProtRPP/DataModels/Models/IDiy.cs
Normal file
18
ProtRPP/DataModels/Models/IDiy.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface IDiy : IId
|
||||
{
|
||||
string Title { get; }
|
||||
string Description { get; }
|
||||
DateTime DateCreate { get; }
|
||||
int TaskId { get; }
|
||||
int StudentId { get; }
|
||||
Dictionary<int, IInterest> DiyInterests { get; }
|
||||
}
|
||||
}
|
||||
16
ProtRPP/DataModels/Models/IInterest.cs
Normal file
16
ProtRPP/DataModels/Models/IInterest.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface IInterest : IId
|
||||
{
|
||||
string Title { get; }
|
||||
string Description { get; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
18
ProtRPP/DataModels/Models/ILesson.cs
Normal file
18
ProtRPP/DataModels/Models/ILesson.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface ILesson : IId
|
||||
{
|
||||
string Title { get; }
|
||||
DateTime DateEvent { get; }
|
||||
int ProductId { get; }
|
||||
int TeacherId { get; }
|
||||
Dictionary<int, IMaterial> LessonMaterials { get; }
|
||||
|
||||
}
|
||||
}
|
||||
14
ProtRPP/DataModels/Models/IMaterial.cs
Normal file
14
ProtRPP/DataModels/Models/IMaterial.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface IMaterial : IId
|
||||
{
|
||||
string Title { get; }
|
||||
string SphereUse { get; }
|
||||
}
|
||||
}
|
||||
17
ProtRPP/DataModels/Models/IProduct.cs
Normal file
17
ProtRPP/DataModels/Models/IProduct.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface IProduct : IId
|
||||
{
|
||||
string Title { get; }
|
||||
string Description { get; }
|
||||
DateTime DateCreate { get; }
|
||||
int StudentId { get; }
|
||||
Dictionary<int, IInterest> ProductInterests { get; }
|
||||
}
|
||||
}
|
||||
18
ProtRPP/DataModels/Models/IStudent.cs
Normal file
18
ProtRPP/DataModels/Models/IStudent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface IStudent : IId
|
||||
{
|
||||
string Name { get; }
|
||||
int Class { get; }
|
||||
string Email { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
Dictionary<int, IInterest> StudentInterests { get; }
|
||||
}
|
||||
}
|
||||
17
ProtRPP/DataModels/Models/ITask.cs
Normal file
17
ProtRPP/DataModels/Models/ITask.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface ITask : IId
|
||||
{
|
||||
string Title { get;}
|
||||
DateTime DateIssue { get;}
|
||||
DateTime DateDelivery { get;}
|
||||
int TeacherID { get; }
|
||||
Dictionary<int, IMaterial> TaskMaterials { get; }
|
||||
}
|
||||
}
|
||||
18
ProtRPP/DataModels/Models/ITeacher.cs
Normal file
18
ProtRPP/DataModels/Models/ITeacher.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyDataModels.Models
|
||||
{
|
||||
public interface ITeacher : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string Post { get; }
|
||||
string Phone { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
Dictionary<int, IMaterial> TeacherMaterials { get; }
|
||||
}
|
||||
}
|
||||
9
ProtRPP/DataModels/SchoolAgainStudyDataModels.csproj
Normal file
9
ProtRPP/DataModels/SchoolAgainStudyDataModels.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
37
ProtRPP/ProtRPP.sln
Normal file
37
ProtRPP/ProtRPP.sln
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.3.32825.248
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProtRPP", "ProtRPP\ProtRPP.csproj", "{CE9F6507-16F9-4952-9615-9641F4A15F9B}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SchoolAgainStudyDataModels", "DataModels\SchoolAgainStudyDataModels.csproj", "{F18AAD1E-69E3-4EE9-B68D-343A4C0B6482}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchoolAgainStudyContracts", "SchoolAgainStudyContracts\SchoolAgainStudyContracts.csproj", "{1B711AB6-B957-4D97-A53C-D867E7A1EA25}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CE9F6507-16F9-4952-9615-9641F4A15F9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CE9F6507-16F9-4952-9615-9641F4A15F9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CE9F6507-16F9-4952-9615-9641F4A15F9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CE9F6507-16F9-4952-9615-9641F4A15F9B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F18AAD1E-69E3-4EE9-B68D-343A4C0B6482}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F18AAD1E-69E3-4EE9-B68D-343A4C0B6482}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F18AAD1E-69E3-4EE9-B68D-343A4C0B6482}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F18AAD1E-69E3-4EE9-B68D-343A4C0B6482}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1B711AB6-B957-4D97-A53C-D867E7A1EA25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1B711AB6-B957-4D97-A53C-D867E7A1EA25}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1B711AB6-B957-4D97-A53C-D867E7A1EA25}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1B711AB6-B957-4D97-A53C-D867E7A1EA25}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {FBA73E9A-452F-45B0-ABBB-DCE8356CAE87}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
39
ProtRPP/ProtRPP/Form1.Designer.cs
generated
Normal file
39
ProtRPP/ProtRPP/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,39 @@
|
||||
namespace ProtRPP
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
10
ProtRPP/ProtRPP/Form1.cs
Normal file
10
ProtRPP/ProtRPP/Form1.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace ProtRPP
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
17
ProtRPP/ProtRPP/Program.cs
Normal file
17
ProtRPP/ProtRPP/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace ProtRPP
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
11
ProtRPP/ProtRPP/ProtRPP.csproj
Normal file
11
ProtRPP/ProtRPP/ProtRPP.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,26 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class DiyBindingModel : IDiy
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||
|
||||
public int TaskId { get; set; }
|
||||
|
||||
public int StudentId { get; set; }
|
||||
|
||||
public Dictionary<int, IInterest> DiyInterests { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class InterestBindingModel : IInterest
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class LessonBindingModel : ILesson
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateEvent { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||
|
||||
public int ProductId { get; set; }
|
||||
|
||||
public int TeacherId { get; set; }
|
||||
|
||||
public Dictionary<int, IMaterial> LessonMaterials { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class MaterialBindingModel : IMaterial
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string SphereUse { get; set; } = string.Empty;
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class ProductBindingModel : IProduct
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||
|
||||
public int StudentId { get; set; }
|
||||
|
||||
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class StudentBindingModel : IStudent
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public int Class { get; set; }
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public Dictionary<int, IInterest> StudentInterests { get; set; } = new() ;
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class TaskBindingModel : ITask
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateIssue { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||
|
||||
public DateTime DateDelivery { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||
|
||||
public int TeacherID { get; set; }
|
||||
|
||||
public Dictionary<int, IMaterial> TaskMaterials { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using SchoolAgainStudyDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SchoolAgainStudyContracts.BindingModel
|
||||
{
|
||||
public class TeacherBindingModel : ITeacher
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Post { get; set; } = string.Empty;
|
||||
|
||||
public string Phone { get; set; } = string.Empty;
|
||||
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public Dictionary<int, IMaterial> TeacherMaterials { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DataModels\SchoolAgainStudyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user