diff --git a/Hospital/Class1.cs b/Hospital/Class1.cs new file mode 100644 index 0000000..64ce510 --- /dev/null +++ b/Hospital/Class1.cs @@ -0,0 +1,7 @@ +namespace Hospital +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/Hospital/Hospital.csproj b/Hospital/Hospital.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Hospital/Hospital.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Hospital/Hospital.sln b/Hospital/Hospital.sln new file mode 100644 index 0000000..8656779 --- /dev/null +++ b/Hospital/Hospital.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32825.248 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalContracts", "..\HospitalContracts\HospitalContracts.csproj", "{852D330A-F5B2-4ADE-A27B-A58F9CAAE379}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalDataModels", "..\HospitalDataModels\HospitalDataModels.csproj", "{D5C93D6A-22C6-4B67-B76C-6FC183D46513}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalDataBaseImplements", "..\HospitalDataBaseImplements\HospitalDataBaseImplements.csproj", "{2B6A087F-E3CA-439E-9FC8-954575466B8B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalView", "..\HospitalView\HospitalView.csproj", "{7CBB7FFE-03C3-4F80-9A30-C1825E2C7340}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {852D330A-F5B2-4ADE-A27B-A58F9CAAE379}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {852D330A-F5B2-4ADE-A27B-A58F9CAAE379}.Debug|Any CPU.Build.0 = Debug|Any CPU + {852D330A-F5B2-4ADE-A27B-A58F9CAAE379}.Release|Any CPU.ActiveCfg = Release|Any CPU + {852D330A-F5B2-4ADE-A27B-A58F9CAAE379}.Release|Any CPU.Build.0 = Release|Any CPU + {D5C93D6A-22C6-4B67-B76C-6FC183D46513}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D5C93D6A-22C6-4B67-B76C-6FC183D46513}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D5C93D6A-22C6-4B67-B76C-6FC183D46513}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D5C93D6A-22C6-4B67-B76C-6FC183D46513}.Release|Any CPU.Build.0 = Release|Any CPU + {2B6A087F-E3CA-439E-9FC8-954575466B8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B6A087F-E3CA-439E-9FC8-954575466B8B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B6A087F-E3CA-439E-9FC8-954575466B8B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B6A087F-E3CA-439E-9FC8-954575466B8B}.Release|Any CPU.Build.0 = Release|Any CPU + {7CBB7FFE-03C3-4F80-9A30-C1825E2C7340}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7CBB7FFE-03C3-4F80-9A30-C1825E2C7340}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7CBB7FFE-03C3-4F80-9A30-C1825E2C7340}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7CBB7FFE-03C3-4F80-9A30-C1825E2C7340}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9B904E8C-42AE-49A1-8B82-064C15007A35} + EndGlobalSection +EndGlobal diff --git a/HospitalContracts/BindingModels/IllnessBindingModel.cs b/HospitalContracts/BindingModels/IllnessBindingModel.cs new file mode 100644 index 0000000..4b81472 --- /dev/null +++ b/HospitalContracts/BindingModels/IllnessBindingModel.cs @@ -0,0 +1,22 @@ +using HospitalDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class IllnessBindingModel + { + public int Id { get; set; } + public string IllnessName { get; set; } = string.Empty; + public string Form { get; set; } = string.Empty; + public Dictionary IllnessSymptoms + { + get; + set; + } = new(); + + } +} diff --git a/HospitalContracts/BindingModels/KurseBindingModel.cs b/HospitalContracts/BindingModels/KurseBindingModel.cs new file mode 100644 index 0000000..1066d7d --- /dev/null +++ b/HospitalContracts/BindingModels/KurseBindingModel.cs @@ -0,0 +1,17 @@ +using HospitalDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class KurseBindingModel + { + public int Id { get; set; } + public string Duration { get; set; } = string.Empty; + public int CountInDay { get; set; } + public int MedicinesId { get; set; } + } +} diff --git a/HospitalContracts/BindingModels/MedicinesBindingModel.cs b/HospitalContracts/BindingModels/MedicinesBindingModel.cs new file mode 100644 index 0000000..9646db3 --- /dev/null +++ b/HospitalContracts/BindingModels/MedicinesBindingModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class MedicinesBindingModel + { + public int Id { get; set; } + public string MedicineName { get; set; } = string.Empty; + public string Group { get; set; } = string.Empty; + } +} diff --git a/HospitalContracts/BindingModels/ProceduresBindingModel.cs b/HospitalContracts/BindingModels/ProceduresBindingModel.cs new file mode 100644 index 0000000..ded23da --- /dev/null +++ b/HospitalContracts/BindingModels/ProceduresBindingModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class ProceduresBindingModel + { + public int Id { get; set; } + public string ProcedureName { get; set; } = string.Empty; + public string Type { get; set; } = string.Empty; + } +} diff --git a/HospitalContracts/BindingModels/RecipesBindingModel.cs b/HospitalContracts/BindingModels/RecipesBindingModel.cs new file mode 100644 index 0000000..7ec5df9 --- /dev/null +++ b/HospitalContracts/BindingModels/RecipesBindingModel.cs @@ -0,0 +1,29 @@ +using HospitalDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class RecipesBindingModel + { + public int Id { get; set; } + public string Dose { get; set; } = string.Empty; + public DateTime Date { get; set; } = DateTime.Now; + public string ModeOfApplication { get; set; } = string.Empty; + public Dictionary MedicinesRecipe + { + get; + set; + } = new(); + + public Dictionary ProceduresRecipe + { + get; + set; + } = new(); + + } +} diff --git a/HospitalContracts/BindingModels/SymptomsBindingModel.cs b/HospitalContracts/BindingModels/SymptomsBindingModel.cs new file mode 100644 index 0000000..d555717 --- /dev/null +++ b/HospitalContracts/BindingModels/SymptomsBindingModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class SymptomsBindingModel + { + public int Id { get; set; } + public string SymptomName { get; set; } = string.Empty; + public string Description { get; set; } = string.Empty; + + } +} diff --git a/HospitalContracts/HospitalContracts.csproj b/HospitalContracts/HospitalContracts.csproj new file mode 100644 index 0000000..da5e060 --- /dev/null +++ b/HospitalContracts/HospitalContracts.csproj @@ -0,0 +1,18 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + diff --git a/HospitalContracts/SearchModels/IllnessSearchModel.cs b/HospitalContracts/SearchModels/IllnessSearchModel.cs new file mode 100644 index 0000000..1d6ba8c --- /dev/null +++ b/HospitalContracts/SearchModels/IllnessSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class IllnessSearchModel + { + public int? Id { get; set; } + public string? IllnessName { get; set; } + + } +} diff --git a/HospitalContracts/SearchModels/KurseSearchModel.cs b/HospitalContracts/SearchModels/KurseSearchModel.cs new file mode 100644 index 0000000..5401e84 --- /dev/null +++ b/HospitalContracts/SearchModels/KurseSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class KurseSearchModel + { + public int? Id { get; set; } + public int? MedicinesId { get; set; } + } +} diff --git a/HospitalContracts/SearchModels/MedicinesSearchModel.cs b/HospitalContracts/SearchModels/MedicinesSearchModel.cs new file mode 100644 index 0000000..1d1cfec --- /dev/null +++ b/HospitalContracts/SearchModels/MedicinesSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class MedicinesSearchModel + { + public int? Id { get; set; } + public string? MedicinesName { get; set; } + } +} diff --git a/HospitalContracts/SearchModels/ProceduresSearchModel.cs b/HospitalContracts/SearchModels/ProceduresSearchModel.cs new file mode 100644 index 0000000..cfda996 --- /dev/null +++ b/HospitalContracts/SearchModels/ProceduresSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class ProceduresSearchModel + { + public int? Id { get; set; } + public string? ProceduresName { get; set; } + } +} diff --git a/HospitalContracts/SearchModels/RecipesSearchModel.cs b/HospitalContracts/SearchModels/RecipesSearchModel.cs new file mode 100644 index 0000000..ec0394d --- /dev/null +++ b/HospitalContracts/SearchModels/RecipesSearchModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class RecipesSearchModel + { + public int? Id { get; set; } + } +} diff --git a/HospitalContracts/SearchModels/SymptomsSearchModel.cs b/HospitalContracts/SearchModels/SymptomsSearchModel.cs new file mode 100644 index 0000000..8938083 --- /dev/null +++ b/HospitalContracts/SearchModels/SymptomsSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.SearchModels +{ + public class SymptomsSearchModel + { + public int Id { get; set; } + public string? SymptomsName { get; set; } + } +} diff --git a/HospitalContracts/ViewModels/IllnessViewModel.cs b/HospitalContracts/ViewModels/IllnessViewModel.cs new file mode 100644 index 0000000..cdaa27a --- /dev/null +++ b/HospitalContracts/ViewModels/IllnessViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class IllnessViewModel + { + } +} diff --git a/HospitalContracts/ViewModels/KurseViewModel.cs b/HospitalContracts/ViewModels/KurseViewModel.cs new file mode 100644 index 0000000..ee0ddda --- /dev/null +++ b/HospitalContracts/ViewModels/KurseViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class KurseViewModel + { + } +} diff --git a/HospitalContracts/ViewModels/MedicinesViewModel.cs b/HospitalContracts/ViewModels/MedicinesViewModel.cs new file mode 100644 index 0000000..b29320f --- /dev/null +++ b/HospitalContracts/ViewModels/MedicinesViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class MedicinesViewModel + { + } +} diff --git a/HospitalContracts/ViewModels/ProceduresViewModel.cs b/HospitalContracts/ViewModels/ProceduresViewModel.cs new file mode 100644 index 0000000..6714634 --- /dev/null +++ b/HospitalContracts/ViewModels/ProceduresViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class ProceduresViewModel + { + } +} diff --git a/HospitalContracts/ViewModels/RecipesViewModel.cs b/HospitalContracts/ViewModels/RecipesViewModel.cs new file mode 100644 index 0000000..752e32b --- /dev/null +++ b/HospitalContracts/ViewModels/RecipesViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class RecipesViewModel + { + } +} diff --git a/HospitalContracts/ViewModels/SymptomsViewModel.cs b/HospitalContracts/ViewModels/SymptomsViewModel.cs new file mode 100644 index 0000000..3128441 --- /dev/null +++ b/HospitalContracts/ViewModels/SymptomsViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.ViewModels +{ + internal class SymptomsViewModel + { + } +} diff --git a/HospitalDataBaseImplements/Class1.cs b/HospitalDataBaseImplements/Class1.cs new file mode 100644 index 0000000..5ac846c --- /dev/null +++ b/HospitalDataBaseImplements/Class1.cs @@ -0,0 +1,7 @@ +namespace HospitalDataBaseImplements +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/HospitalDataBaseImplements/HospitalDataBaseImplements.csproj b/HospitalDataBaseImplements/HospitalDataBaseImplements.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/HospitalDataBaseImplements/HospitalDataBaseImplements.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/HospitalDataModels/HospitalDataModels.csproj b/HospitalDataModels/HospitalDataModels.csproj new file mode 100644 index 0000000..27ac386 --- /dev/null +++ b/HospitalDataModels/HospitalDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/HospitalDataModels/IId.cs b/HospitalDataModels/IId.cs new file mode 100644 index 0000000..31b3723 --- /dev/null +++ b/HospitalDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/HospitalDataModels/Models/IIllnessModel.cs b/HospitalDataModels/Models/IIllnessModel.cs new file mode 100644 index 0000000..5944ff0 --- /dev/null +++ b/HospitalDataModels/Models/IIllnessModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface IIllnessModel : IId + { + string IllnessName { get; } + string Form { get; } + Dictionary IllnessSymptoms { get; } + Dictionary IllnessKurse { get; } + } +} diff --git a/HospitalDataModels/Models/IKurseModel.cs b/HospitalDataModels/Models/IKurseModel.cs new file mode 100644 index 0000000..475f2a8 --- /dev/null +++ b/HospitalDataModels/Models/IKurseModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface IKurseModel: IId + { + string Duration { get; } + int CountInDay { get; } + int MedicinesId { get; } + } +} diff --git a/HospitalDataModels/Models/IMedicinesModel.cs b/HospitalDataModels/Models/IMedicinesModel.cs new file mode 100644 index 0000000..74a4f6b --- /dev/null +++ b/HospitalDataModels/Models/IMedicinesModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface IMedicinesModel: IId + { + string MedicineName { get; } + string Group { get; } + } +} diff --git a/HospitalDataModels/Models/IProceduresModel.cs b/HospitalDataModels/Models/IProceduresModel.cs new file mode 100644 index 0000000..b6c899a --- /dev/null +++ b/HospitalDataModels/Models/IProceduresModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface IProceduresModel: IId + { + string ProcedureName { get; } + string Type { get; } + } +} diff --git a/HospitalDataModels/Models/IRecipesModel.cs b/HospitalDataModels/Models/IRecipesModel.cs new file mode 100644 index 0000000..736f681 --- /dev/null +++ b/HospitalDataModels/Models/IRecipesModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface IRecipesModel: IId + { + string Dose { get; } + DateTime Date { get; } + string ModeOfApplication { get; } + Dictionary MedicinesRecipe { get; } + Dictionary ProceduresRecipe { get; } + } +} diff --git a/HospitalDataModels/Models/ISymptomsModel.cs b/HospitalDataModels/Models/ISymptomsModel.cs new file mode 100644 index 0000000..b5be64a --- /dev/null +++ b/HospitalDataModels/Models/ISymptomsModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalDataModels.Models +{ + public interface ISymptomsModel: IId + { + string SymptomName { get; } + string Description { get; } + //Dictionary IllnessSymptoms { get; } + } +} diff --git a/HospitalView/Form1.Designer.cs b/HospitalView/Form1.Designer.cs new file mode 100644 index 0000000..7e73333 --- /dev/null +++ b/HospitalView/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace HospitalView +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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 + } +} \ No newline at end of file diff --git a/HospitalView/Form1.cs b/HospitalView/Form1.cs new file mode 100644 index 0000000..11f284a --- /dev/null +++ b/HospitalView/Form1.cs @@ -0,0 +1,10 @@ +namespace HospitalView +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/HospitalView/Form1.resx b/HospitalView/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/HospitalView/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/HospitalView/HospitalView.csproj b/HospitalView/HospitalView.csproj new file mode 100644 index 0000000..b57c89e --- /dev/null +++ b/HospitalView/HospitalView.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/HospitalView/Program.cs b/HospitalView/Program.cs new file mode 100644 index 0000000..f048a90 --- /dev/null +++ b/HospitalView/Program.cs @@ -0,0 +1,17 @@ +namespace HospitalView +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [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()); + } + } +} \ No newline at end of file