From 2f508df281c56ac18805796d828c851484e23788 Mon Sep 17 00:00:00 2001 From: Husky Date: Wed, 12 Feb 2020 13:12:55 +0100 Subject: [PATCH] Initial COmmit --- .gitignore | 4 + KanSan.sln | 25 ++++ KanSan/App.xaml | 9 ++ KanSan/App.xaml.cs | 17 +++ KanSan/AssemblyInfo.cs | 10 ++ KanSan/Baustelle.cs | 13 ++ KanSan/KanSan.csproj | 56 ++++++++ KanSan/KanSan.csproj.user | 14 ++ KanSan/Kunden.cs | 14 ++ KanSan/LeistungsverzeichnisBaustelle.cs | 9 ++ KanSan/Leistungsverzeichniss.cs | 13 ++ KanSan/MainWindow.xaml | 16 +++ KanSan/MainWindow.xaml.cs | 39 ++++++ .../20200212120350_InitialCreate.Designer.cs | 124 ++++++++++++++++++ .../20200212120350_InitialCreate.cs | 115 ++++++++++++++++ .../Migrations/KanSanContextModelSnapshot.cs | 122 +++++++++++++++++ KanSan/Model.cs | 38 ++++++ KanSan/kanSan.db | Bin 0 -> 57344 bytes 18 files changed, 638 insertions(+) create mode 100644 .gitignore create mode 100644 KanSan.sln create mode 100644 KanSan/App.xaml create mode 100644 KanSan/App.xaml.cs create mode 100644 KanSan/AssemblyInfo.cs create mode 100644 KanSan/Baustelle.cs create mode 100644 KanSan/KanSan.csproj create mode 100644 KanSan/KanSan.csproj.user create mode 100644 KanSan/Kunden.cs create mode 100644 KanSan/LeistungsverzeichnisBaustelle.cs create mode 100644 KanSan/Leistungsverzeichniss.cs create mode 100644 KanSan/MainWindow.xaml create mode 100644 KanSan/MainWindow.xaml.cs create mode 100644 KanSan/Migrations/20200212120350_InitialCreate.Designer.cs create mode 100644 KanSan/Migrations/20200212120350_InitialCreate.cs create mode 100644 KanSan/Migrations/KanSanContextModelSnapshot.cs create mode 100644 KanSan/Model.cs create mode 100644 KanSan/kanSan.db diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb37ef2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.vs/* +/KanSan/bin/Debug/* +/KanSan/obj/Debug/* +/KanSan/obj/* diff --git a/KanSan.sln b/KanSan.sln new file mode 100644 index 0000000..5a1fbd5 --- /dev/null +++ b/KanSan.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29728.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KanSan", "KanSan\KanSan.csproj", "{B73CD234-11F8-4FC9-BAC1-AA3DF3D7AB6A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B73CD234-11F8-4FC9-BAC1-AA3DF3D7AB6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B73CD234-11F8-4FC9-BAC1-AA3DF3D7AB6A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B73CD234-11F8-4FC9-BAC1-AA3DF3D7AB6A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B73CD234-11F8-4FC9-BAC1-AA3DF3D7AB6A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BA021C9A-6B88-4B87-8189-93AC075F3D8F} + EndGlobalSection +EndGlobal diff --git a/KanSan/App.xaml b/KanSan/App.xaml new file mode 100644 index 0000000..daebe0a --- /dev/null +++ b/KanSan/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/KanSan/App.xaml.cs b/KanSan/App.xaml.cs new file mode 100644 index 0000000..d128e5d --- /dev/null +++ b/KanSan/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace KanSan +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/KanSan/AssemblyInfo.cs b/KanSan/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/KanSan/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/KanSan/Baustelle.cs b/KanSan/Baustelle.cs new file mode 100644 index 0000000..c3d4a65 --- /dev/null +++ b/KanSan/Baustelle.cs @@ -0,0 +1,13 @@ +using System; + +namespace KanSan +{ + public class Baustelle + { + public Guid BaustelleID { get; set; } + + public Kunden Kunde { get; } = new Kunden(); + public string Ort { get; set; } + public string Strasse { get; set; } + } +} \ No newline at end of file diff --git a/KanSan/KanSan.csproj b/KanSan/KanSan.csproj new file mode 100644 index 0000000..637684c --- /dev/null +++ b/KanSan/KanSan.csproj @@ -0,0 +1,56 @@ + + + + WinExe + netcoreapp3.1 + true + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + + ..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.4.0.39\Assemblies\4.6\Syncfusion.DocIO.Base.dll + + + ..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.4.0.39\Assemblies\4.6\Syncfusion.DocIO.WPF.dll + + + ..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.4.0.39\Assemblies\4.6\Syncfusion.DocToPDFConverter.Base.dll + + + ..\..\..\..\..\..\Program Files (x86)\syncfusion\essential studio\wpf\17.4.0.39\assemblies\4.6\syncfusion.grid.wpf.dll + + + ..\..\..\..\..\..\Program Files (x86)\syncfusion\essential studio\wpf\17.4.0.39\assemblies\4.6\Syncfusion.GridCommon.Wpf.dll + + + ..\..\..\..\..\..\Program Files (x86)\syncfusion\essential studio\wpf\17.4.0.39\assemblies\4.6\Syncfusion.Linq.Base.dll + + + ..\..\..\..\..\..\Program Files (x86)\syncfusion\essential studio\wpf\17.4.0.39\assemblies\4.6\Syncfusion.Shared.Wpf.dll + + + ..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.4.0.39\Assemblies\4.6\Syncfusion.XlsIO.Base.dll + + + ..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.4.0.39\Assemblies\4.6\Syncfusion.XlsIO.WPF.dll + + + + + + PreserveNewest + + + + \ No newline at end of file diff --git a/KanSan/KanSan.csproj.user b/KanSan/KanSan.csproj.user new file mode 100644 index 0000000..644b0a6 --- /dev/null +++ b/KanSan/KanSan.csproj.user @@ -0,0 +1,14 @@ + + + + + + Designer + + + + + Designer + + + \ No newline at end of file diff --git a/KanSan/Kunden.cs b/KanSan/Kunden.cs new file mode 100644 index 0000000..0542e14 --- /dev/null +++ b/KanSan/Kunden.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +namespace KanSan +{ + public class Kunden + { + public Guid KundenID { get; set; } + public string Vorname { get; set; } + public string Nachname { get; set; } + + public List Baustellen { get; } = new List(); + } +} \ No newline at end of file diff --git a/KanSan/LeistungsverzeichnisBaustelle.cs b/KanSan/LeistungsverzeichnisBaustelle.cs new file mode 100644 index 0000000..1120068 --- /dev/null +++ b/KanSan/LeistungsverzeichnisBaustelle.cs @@ -0,0 +1,9 @@ +namespace KanSan +{ + public class LeistungsverzeichnisBaustelle + { + public int LeistungsverzeichnisBaustelleID { get; set; } + public Baustelle Baustelle { get; set; } + public Leistungsverzeichniss Leistungsverzeichniss { get; set; } + } +} \ No newline at end of file diff --git a/KanSan/Leistungsverzeichniss.cs b/KanSan/Leistungsverzeichniss.cs new file mode 100644 index 0000000..9f5e1eb --- /dev/null +++ b/KanSan/Leistungsverzeichniss.cs @@ -0,0 +1,13 @@ +using System; + +namespace KanSan +{ + public class Leistungsverzeichniss + { + public Guid LeistungsverzeichnissID { get; set; } + public string Position { get; set; } + public string PositionBeschreibung { get; set; } + public string PositionEinheit { get; set; } + public decimal PositionEinheitspreis { get; set; } + } +} \ No newline at end of file diff --git a/KanSan/MainWindow.xaml b/KanSan/MainWindow.xaml new file mode 100644 index 0000000..d58f630 --- /dev/null +++ b/KanSan/MainWindow.xaml @@ -0,0 +1,16 @@ + + + + +