From 02936b753277b5fc740ede0ea95071da7f631834 Mon Sep 17 00:00:00 2001 From: Donatas Adamonis Date: Mon, 1 May 2017 20:32:59 +0200 Subject: user info --- ApartmentAdmin | 2 +- .../ApartmentManager/ApartmentManager.csproj | 16 +++++++ ApartmentManager/ApartmentManager/Assets/plan.jpg | Bin 0 -> 69301 bytes .../ApartmentManager/Model/Resident.cs | 34 +++++++++++++++ ApartmentManager/ApartmentManager/Model/User.cs | 10 +++++ .../ApartmentManager/View/ApartmentPage.xaml.cs | 2 +- .../ApartmentManager/View/PersonalInfoPage.xaml | 46 +++++++++++++++------ .../ApartmentManager/View/PlanPage.xaml | 14 +++++++ .../ApartmentManager/View/PlanPage.xaml.cs | 30 ++++++++++++++ .../ApartmentManager/View/ResidentsPage.xaml | 29 +++++++++++++ .../ApartmentManager/View/ResidentsPage.xaml.cs | 30 ++++++++++++++ HousingDatabase.ldf | Bin 8388608 -> 8388608 bytes HousingDatabase.mdf | Bin 8388608 -> 8388608 bytes 13 files changed, 198 insertions(+), 15 deletions(-) create mode 100644 ApartmentManager/ApartmentManager/Assets/plan.jpg create mode 100644 ApartmentManager/ApartmentManager/Model/Resident.cs create mode 100644 ApartmentManager/ApartmentManager/View/PlanPage.xaml create mode 100644 ApartmentManager/ApartmentManager/View/PlanPage.xaml.cs create mode 100644 ApartmentManager/ApartmentManager/View/ResidentsPage.xaml create mode 100644 ApartmentManager/ApartmentManager/View/ResidentsPage.xaml.cs diff --git a/ApartmentAdmin b/ApartmentAdmin index f4d7fc3..da22548 160000 --- a/ApartmentAdmin +++ b/ApartmentAdmin @@ -1 +1 @@ -Subproject commit f4d7fc3fa885184fb073fbae2aea28a476a85b80 +Subproject commit da22548164ed3a3a9b89f25b31780c35a89a3b3f diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj index 36cb8cd..cbffb62 100644 --- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj +++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj @@ -104,6 +104,7 @@ + @@ -118,6 +119,12 @@ PersonalInfoPage.xaml + + PlanPage.xaml + + + ResidentsPage.xaml + @@ -125,6 +132,7 @@ + @@ -159,6 +167,14 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + diff --git a/ApartmentManager/ApartmentManager/Assets/plan.jpg b/ApartmentManager/ApartmentManager/Assets/plan.jpg new file mode 100644 index 0000000..54df873 Binary files /dev/null and b/ApartmentManager/ApartmentManager/Assets/plan.jpg differ diff --git a/ApartmentManager/ApartmentManager/Model/Resident.cs b/ApartmentManager/ApartmentManager/Model/Resident.cs new file mode 100644 index 0000000..b86cf03 --- /dev/null +++ b/ApartmentManager/ApartmentManager/Model/Resident.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Windows.UI.Xaml.Controls; + +namespace ApartmentManager.Model +{ + class Resident + { + public string Name { get; set; } + public string LastName { get; set; } + public int Phone { get; set; } + public DateTime BirthDate { get; set; } + public string Email { get; set; } + public Image Picture { get; set; } + public int ApartmentNr { get; set; } + + public Resident(string Name, string LastName, int Phone, DateTime BirthDate, string Email, int ApartmentNr) + { + this.Name = Name; + this.LastName = LastName; + this.Phone = Phone; + this.BirthDate = BirthDate; + this.Email = Email; + this.ApartmentNr = ApartmentNr; + } + public override string ToString() + { + return string.Format($"Name: {Name}, LastName: {LastName}, Birth Date: {BirthDate}, Phone {Phone}, Email {Email} "); + } + } +} diff --git a/ApartmentManager/ApartmentManager/Model/User.cs b/ApartmentManager/ApartmentManager/Model/User.cs index 4559cb0..d9591ab 100644 --- a/ApartmentManager/ApartmentManager/Model/User.cs +++ b/ApartmentManager/ApartmentManager/Model/User.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Windows.UI.Xaml.Controls; namespace ApartmentManager.Model { @@ -13,7 +14,16 @@ namespace ApartmentManager.Model public int Phone { get; set; } public DateTime BirthDate { get; set; } public string Email { get; set; } + public Image Picture { get; set; } public int ApartmentNr { get; set; } + public string SecondName { get; set; } + public string SecondLastName { get; set; } + public string SecondBirthDate { get; set; } + public string SecondPhone { get; set; } + public string SecondEmail { get; set; } + public string Username { get; set; } + public string Password { get; set; } + public User() { } diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs index f977517..38c1673 100644 --- a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs +++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs @@ -29,7 +29,7 @@ namespace ApartmentManager.View private void click(object sender, RoutedEventArgs e) { - + Frame.Navigate(typeof(PlanPage)); } private void GotoPernalInfoPage(object sender, RoutedEventArgs e) diff --git a/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml index 5e84fcf..2d09cb1 100644 --- a/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml +++ b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml @@ -1,26 +1,46 @@  + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + +