aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManager/ApartmentManager.csproj20
-rw-r--r--ApartmentManager/ApartmentManager/AppShell.xaml.cs21
-rw-r--r--ApartmentManager/ApartmentManager/Assets/Ostbanehus.jpgbin0 -> 106556 bytes
-rw-r--r--ApartmentManager/ApartmentManager/Handler/BoardApartmentsHandler.cs50
-rw-r--r--ApartmentManager/ApartmentManager/Handler/ResidentsHandler.cs62
-rw-r--r--ApartmentManager/ApartmentManager/Model/Resident.cs2
-rw-r--r--ApartmentManager/ApartmentManager/Persistency/ApiClient.cs1
-rw-r--r--ApartmentManager/ApartmentManager/Persistency/PersistenceFacade.cs59
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml14
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs (renamed from ApartmentManager/ApartmentManager/View/PlanPage.xaml.cs)0
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml (renamed from ApartmentManager/ApartmentManager/View/ResidentsPage.xaml)2
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml.cs (renamed from ApartmentManager/ApartmentManager/View/ResidentsPage.xaml.cs)0
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml31
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs30
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml22
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml.cs7
-rw-r--r--ApartmentManager/ApartmentManager/View/DefectsPicturesBoard.xaml17
-rw-r--r--ApartmentManager/ApartmentManager/View/PlanPage.xaml14
-rw-r--r--ApartmentManager/ApartmentManager/ViewModel/ApartmentsViewModel.cs10
-rw-r--r--ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs16
-rw-r--r--ApartmentManager/HousingWebApi/HousingWebApi.csproj315
21 files changed, 613 insertions, 80 deletions
diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
index 086b0da..89dcb5e 100644
--- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj
+++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
@@ -121,6 +121,9 @@
<Compile Include="View\ApartmentPage.xaml.cs">
<DependentUpon>ApartmentPage.xaml</DependentUpon>
</Compile>
+ <Compile Include="View\BoardMemberManageApartment.xaml.cs">
+ <DependentUpon>BoardMemberManageApartment.xaml</DependentUpon>
+ </Compile>
<Compile Include="View\BoardMembersDefectsPage.xaml.cs">
<DependentUpon>BoardMembersDefectsPage.xaml</DependentUpon>
</Compile>
@@ -139,15 +142,16 @@
<Compile Include="View\PersonalInfoPage.xaml.cs">
<DependentUpon>PersonalInfoPage.xaml</DependentUpon>
</Compile>
- <Compile Include="View\PlanPage.xaml.cs">
- <DependentUpon>PlanPage.xaml</DependentUpon>
+ <Compile Include="View\ApartmentPlanPage.xaml.cs">
+ <DependentUpon>ApartmentPlanPage.xaml</DependentUpon>
</Compile>
- <Compile Include="View\ResidentsPage.xaml.cs">
- <DependentUpon>ResidentsPage.xaml</DependentUpon>
+ <Compile Include="View\ApartmentResidentsPage.xaml.cs">
+ <DependentUpon>ApartmentResidentsPage.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="Assets\BrokenDownpipe.jpg" />
+ <Content Include="Assets\Ostbanehus.jpg" />
<Content Include="Assets\Person1.jpg" />
<Content Include="Assets\Person2.jpg" />
<Content Include="Assets\Person3.jpg" />
@@ -178,6 +182,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
+ <Page Include="View\BoardMemberManageApartment.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
<Page Include="View\BoardMembersDefectsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@@ -202,11 +210,11 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
- <Page Include="View\PlanPage.xaml">
+ <Page Include="View\ApartmentPlanPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
- <Page Include="View\ResidentsPage.xaml">
+ <Page Include="View\ApartmentResidentsPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
diff --git a/ApartmentManager/ApartmentManager/AppShell.xaml.cs b/ApartmentManager/ApartmentManager/AppShell.xaml.cs
index 5ccff1c..a673b1b 100644
--- a/ApartmentManager/ApartmentManager/AppShell.xaml.cs
+++ b/ApartmentManager/ApartmentManager/AppShell.xaml.cs
@@ -26,12 +26,29 @@ namespace ApartmentManager
DestPage = typeof(ApartmentPage),
IsSelected = true
},
+
new NavMenuItem()
{
- Symbol= Symbol.Accept,
+ Symbol = Symbol.Comment,
Label = "Defects",
DestPage = typeof(BoardMembersDefectsPage),
IsSelected = false
+ },
+
+ new NavMenuItem()
+ {
+ Symbol = Symbol.Bookmarks,
+ Label = "Residents",
+ DestPage = typeof(InfoForBoardMembers),
+ IsSelected = false
+ },
+
+ new NavMenuItem()
+ {
+ Symbol = Symbol.Bookmarks,
+ Label = "Apartments",
+ DestPage = typeof(BoardMembersPage),
+ IsSelected = false
}
});
@@ -46,7 +63,7 @@ namespace ApartmentManager
{
InitializeComponent();
- List<NavMenuItem> topNavMenuItems = navMenuItems.GetRange(0, 2);
+ List<NavMenuItem> topNavMenuItems = navMenuItems.GetRange(0, 4);
// List<NavMenuItem> bottomNavMenuItems = navMenuItems.GetRange(3, 2);
NavMenuList.ItemsSource = topNavMenuItems;
diff --git a/ApartmentManager/ApartmentManager/Assets/Ostbanehus.jpg b/ApartmentManager/ApartmentManager/Assets/Ostbanehus.jpg
new file mode 100644
index 0000000..a0d11c6
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/Assets/Ostbanehus.jpg
Binary files differ
diff --git a/ApartmentManager/ApartmentManager/Handler/BoardApartmentsHandler.cs b/ApartmentManager/ApartmentManager/Handler/BoardApartmentsHandler.cs
index f988489..46740d9 100644
--- a/ApartmentManager/ApartmentManager/Handler/BoardApartmentsHandler.cs
+++ b/ApartmentManager/ApartmentManager/Handler/BoardApartmentsHandler.cs
@@ -1,8 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
+using Windows.UI.Popups;
+using ApartmentManager.Model;
+using ApartmentManager.Persistency;
using ApartmentManager.ViewModel;
namespace ApartmentManager.Handler
@@ -15,5 +19,51 @@ namespace ApartmentManager.Handler
{
ApartmentsViewModel = apartmentsViewModel;
}
+
+ public void GetApartments()
+ {
+ Apartment apartment = new Apartment();
+ apartment.ApartmentNumber = ApartmentsViewModel.ApartmentsNumber;
+
+ var apartmentList = new PersistenceFacade().GetApartments(apartment);
+ ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Clear();
+
+ foreach (var apartments in apartmentList)
+ {
+ ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Add(apartments);
+ }
+ }
+
+ public void CreateApartment()
+ {
+ try
+ {
+ Apartment apartment = new Apartment();
+ apartment.ApartmentNumber = ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Count;
+ apartment.ApartmentNumber++;
+ apartment.ApartmentNumber = ApartmentsViewModel.ApartmentsNumber;
+ apartment.Address = ApartmentsViewModel.NewApartment.Address;
+ apartment.Floor = ApartmentsViewModel.NewApartment.Floor;
+ apartment.MonthlyCharge = ApartmentsViewModel.NewApartment.MonthlyCharge;
+ apartment.NumberOfRooms = ApartmentsViewModel.NewApartment.NumberOfRooms;
+ apartment.Size = ApartmentsViewModel.NewApartment.Size;
+
+ new PersistenceFacade().CreateApartment(apartment);
+
+ var apartmentslist = new PersistenceFacade().GetApartments(apartment);
+ ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Clear();
+
+ foreach (var apartmento in apartmentslist)
+ {
+ ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Add(apartmento);
+ }
+
+ //ApartmentsViewModel.ApartmentsCatalogSingleton.Apartment.Clear(apartment);
+ }
+ catch (Exception e)
+ {
+ new MessageDialog(e.Message).ShowAsync();
+ }
+ }
}
}
diff --git a/ApartmentManager/ApartmentManager/Handler/ResidentsHandler.cs b/ApartmentManager/ApartmentManager/Handler/ResidentsHandler.cs
index c04007f..d406880 100644
--- a/ApartmentManager/ApartmentManager/Handler/ResidentsHandler.cs
+++ b/ApartmentManager/ApartmentManager/Handler/ResidentsHandler.cs
@@ -1,4 +1,5 @@
using System;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -7,6 +8,7 @@ using Windows.UI.Popups;
using ApartmentManager.Model;
using ApartmentManager.Persistency;
using ApartmentManager.ViewModel;
+using Newtonsoft.Json;
namespace ApartmentManager.Handler
{
@@ -22,14 +24,17 @@ namespace ApartmentManager.Handler
{
Resident resident = new Resident();
resident.ApartmentNr = ApartmentViewModel.ApartmentNumber;
+
+ var residentsFromDatabase = ApiClient.GetData("api/ApartmentResidents/" + resident.ApartmentNr);
+ IEnumerable<Resident> residentlist = JsonConvert.DeserializeObject<IEnumerable<Resident>>(residentsFromDatabase);
- var residentlist = new PersistenceFacade().GetApartmentResidents(resident);
ApartmentViewModel.CatalogSingleton.Residents.Clear();
-
+ ApartmentViewModel.NewResident = new Resident();
foreach (var resident2 in residentlist)
{
ApartmentViewModel.CatalogSingleton.Residents.Add(resident2);
}
+
}
public void CreateResident()
@@ -37,8 +42,7 @@ namespace ApartmentManager.Handler
try
{
Resident resident = new Resident();
- resident.ResidentNr = ApartmentViewModel.CatalogSingleton.Residents.Count;
- resident.ResidentNr++;
+
resident.ApartmentNr = ApartmentViewModel.ApartmentNumber;
resident.FirstName = ApartmentViewModel.NewResident.FirstName;
resident.LastName = ApartmentViewModel.NewResident.LastName;
@@ -47,13 +51,14 @@ namespace ApartmentManager.Handler
resident.Picture = ApartmentViewModel.NewResident.Picture;
resident.Phone = ApartmentViewModel.NewResident.Phone;
- new PersistenceFacade().CreateResident(resident);
+ ApiClient.PostData("api/residents/", resident);
-
- var residentsFromDatabase = new PersistenceFacade().GetApartmentResidents(resident);
- ApartmentViewModel.CatalogSingleton.Residents.Clear();
+ var residentsFromDatabase = ApiClient.GetData("api/ApartmentResidents/" + resident.ApartmentNr);
+ IEnumerable<Resident> residentlist = JsonConvert.DeserializeObject<IEnumerable<Resident>>(residentsFromDatabase);
- foreach (var resident2 in residentsFromDatabase)
+ ApartmentViewModel.CatalogSingleton.Residents.Clear();
+ ApartmentViewModel.NewResident = new Resident();
+ foreach (var resident2 in residentlist)
{
ApartmentViewModel.CatalogSingleton.Residents.Add(resident2);
}
@@ -69,6 +74,7 @@ namespace ApartmentManager.Handler
try
{
Resident resident = new Resident();
+ resident.ResidentNr = ApartmentViewModel.NewResident.ResidentNr;
resident.ApartmentNr = ApartmentViewModel.ApartmentNumber;
resident.FirstName = ApartmentViewModel.NewResident.FirstName;
resident.LastName = ApartmentViewModel.NewResident.LastName;
@@ -77,17 +83,17 @@ namespace ApartmentManager.Handler
resident.Picture = ApartmentViewModel.NewResident.Picture;
resident.Phone = ApartmentViewModel.NewResident.Phone;
- //new PersistenceFacade().CreateHotel(hotel);
+ ApiClient.DeleteData("api/residents/" + resident.ResidentNr);
- ////HotelViewModel.Hotels.Hotels.Add(hotel);
- //var hotelsFromDatabase = new PersistenceFacade().GetHotels();
+ var residentsFromDatabase = ApiClient.GetData("api/ApartmentResidents/" + resident.ApartmentNr);
+ IEnumerable<Resident> residentlist = JsonConvert.DeserializeObject<IEnumerable<Resident>>(residentsFromDatabase);
- //HotelViewModel.HotelCatalogSingleton.Hotels.Clear();
- //foreach (var hotel1 in hotelsFromDatabase)
- //{
- // ApartmentViewModel.HotelCatalogSingleton.Hotels.Add(hotel1);
-
- //}
+ ApartmentViewModel.CatalogSingleton.Residents.Clear();
+ ApartmentViewModel.NewResident = new Resident();
+ foreach (var resident2 in residentlist)
+ {
+ ApartmentViewModel.CatalogSingleton.Residents.Add(resident2);
+ }
}
catch (Exception e)
{
@@ -99,6 +105,7 @@ namespace ApartmentManager.Handler
try
{
Resident resident = new Resident();
+ resident.ResidentNr = ApartmentViewModel.NewResident.ResidentNr;
resident.ApartmentNr = ApartmentViewModel.ApartmentNumber;
resident.FirstName = ApartmentViewModel.NewResident.FirstName;
resident.LastName = ApartmentViewModel.NewResident.LastName;
@@ -107,17 +114,16 @@ namespace ApartmentManager.Handler
resident.Picture = ApartmentViewModel.NewResident.Picture;
resident.Phone = ApartmentViewModel.NewResident.Phone;
- //new PersistenceFacade().CreateHotel(hotel);
-
- ////HotelViewModel.Hotels.Hotels.Add(hotel);
- //var hotelsFromDatabase = new PersistenceFacade().GetHotels();
-
- //HotelViewModel.HotelCatalogSingleton.Hotels.Clear();
- //foreach (var hotel1 in hotelsFromDatabase)
- //{
- // ApartmentViewModel.HotelCatalogSingleton.Hotels.Add(hotel1);
+ ApiClient.PutData("api/residents/" + resident.ResidentNr,resident);
+ var residentsFromDatabase = ApiClient.GetData("api/ApartmentResidents/" + resident.ApartmentNr);
+ IEnumerable<Resident> residentlist = JsonConvert.DeserializeObject<IEnumerable<Resident>>(residentsFromDatabase);
- //}
+ ApartmentViewModel.CatalogSingleton.Residents.Clear();
+ ApartmentViewModel.NewResident = new Resident();
+ foreach (var resident2 in residentlist)
+ {
+ ApartmentViewModel.CatalogSingleton.Residents.Add(resident2);
+ }
}
catch (Exception e)
{
diff --git a/ApartmentManager/ApartmentManager/Model/Resident.cs b/ApartmentManager/ApartmentManager/Model/Resident.cs
index f9cede7..e9f39cd 100644
--- a/ApartmentManager/ApartmentManager/Model/Resident.cs
+++ b/ApartmentManager/ApartmentManager/Model/Resident.cs
@@ -19,7 +19,7 @@ namespace ApartmentManager.Model
public int ResidentNr { get; set; }
public Resident() { }
- public Resident(string FirstName, string LastName, int Phone, DateTime BirthDate, string Email, int ApartmentNr, int ResidentNr)
+ public Resident(string FirstName, string LastName, int Phone, DateTime BirthDate, string Email, int ApartmentNr ,int ResidentNr)
{
this.FirstName = FirstName;
this.LastName = LastName;
diff --git a/ApartmentManager/ApartmentManager/Persistency/ApiClient.cs b/ApartmentManager/ApartmentManager/Persistency/ApiClient.cs
index e803005..2faa07a 100644
--- a/ApartmentManager/ApartmentManager/Persistency/ApiClient.cs
+++ b/ApartmentManager/ApartmentManager/Persistency/ApiClient.cs
@@ -24,6 +24,7 @@ namespace ApartmentManager.Persistency
if (response.IsSuccessStatusCode)
{
return response.Content.ReadAsStringAsync().Result;
+
}
else return null;
}
diff --git a/ApartmentManager/ApartmentManager/Persistency/PersistenceFacade.cs b/ApartmentManager/ApartmentManager/Persistency/PersistenceFacade.cs
index 882fd3a..1665833 100644
--- a/ApartmentManager/ApartmentManager/Persistency/PersistenceFacade.cs
+++ b/ApartmentManager/ApartmentManager/Persistency/PersistenceFacade.cs
@@ -23,6 +23,65 @@ namespace ApartmentManager.Persistency
handler.UseDefaultCredentials = true;
}
+ // Get apartments
+
+ public List<Apartment> GetApartments(Apartment apartment)
+ {
+ using (var client = new HttpClient(handler))
+ {
+ client.BaseAddress = new Uri(ServerUrl);
+ client.DefaultRequestHeaders.Clear();
+ client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
+ try
+ {
+ string apartments = "api/apartments/" + apartment.ApartmentNumber;
+ var response = client.GetAsync(apartments).Result;
+
+ if (response.IsSuccessStatusCode)
+ {
+ var apartmentList = response.Content.ReadAsAsync<IEnumerable<Apartment>>().Result;
+ return apartmentList.ToList();
+ }
+ }
+ catch (Exception e)
+ {
+ new MessageDialog("Cyka blyat").ShowAsync();
+
+ }
+ return null;
+ }
+ }
+
+ public void CreateApartment(Apartment apartment)
+ {
+ using (var client = new HttpClient(handler))
+ {
+ client.BaseAddress = new Uri(ServerUrl);
+ client.DefaultRequestHeaders.Clear();
+ client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
+ try
+ {
+ string postBody = JsonConvert.SerializeObject(apartment);
+ var response = client.PostAsync("api/apartments/",
+ new StringContent(postBody, Encoding.UTF8, "application/json"))
+ .Result;
+ if (response.IsSuccessStatusCode)
+ {
+ new MessageDialog("Success").ShowAsync();
+ }
+ else
+ {
+ new MessageDialog("Error").ShowAsync();
+ }
+
+ }
+ catch (Exception ex)
+ {
+ new MessageDialog(ex.Message).ShowAsync();
+ }
+ }
+ }
+
///Get Get Residents///
public List<Resident> GetApartmentResidents(Resident resident)
{
diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml
index 4f8b466..df51ff8 100644
--- a/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml
+++ b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml
@@ -1,5 +1,5 @@
<Page
- x:Class="ApartmentManager.View.ApartmentPlanPage"
+ x:Class="ApartmentManager.View.PlanPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ApartmentManager.View"
@@ -8,15 +8,7 @@
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <StackPanel Orientation="Horizontal" Margin="50" VerticalAlignment="Center" HorizontalAlignment="Center" >
- <Button Background="{x:Null}" Margin="20,0,20,0" >
- <SymbolIcon Symbol="Back" ></SymbolIcon>
- </Button>
- <Image Height="500" Width="1000" />
- <Button Background="{x:Null}" Margin="20,0,20,0" >
- <SymbolIcon Symbol="Forward" ></SymbolIcon>
- </Button>
- </StackPanel>
+ <Image Source="ms-appx:///Assets/plan.jpg" Margin="50"></Image>
+
</Grid>
-
</Page>
diff --git a/ApartmentManager/ApartmentManager/View/PlanPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs
index bce6221..bce6221 100644
--- a/ApartmentManager/ApartmentManager/View/PlanPage.xaml.cs
+++ b/ApartmentManager/ApartmentManager/View/ApartmentPlanPage.xaml.cs
diff --git a/ApartmentManager/ApartmentManager/View/ResidentsPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml
index 8c8d053..c68b1bc 100644
--- a/ApartmentManager/ApartmentManager/View/ResidentsPage.xaml
+++ b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml
@@ -29,7 +29,7 @@
<TextBox Text="{Binding NewResident.Phone, Mode=TwoWay}" />
<StackPanel Orientation="Horizontal">
<Button Margin="0,10,12,10" Content="Create" Width="125" Command="{Binding CreateResidentCommand}"/>
- <Button Margin="0,10,0,10" Content="Delte" Width="125" Command="{Binding DeleteResidentCommand}"/>
+ <Button Margin="0,10,0,10" Content="Delete" Width="125" Command="{Binding DeleteResidentCommand}"/>
<Button Margin="13,10,0,10" Content="Update" Width="125" Command="{Binding UpdateResidentCommand}"/>
</StackPanel>
</StackPanel>
diff --git a/ApartmentManager/ApartmentManager/View/ResidentsPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml.cs
index 46e9f6f..46e9f6f 100644
--- a/ApartmentManager/ApartmentManager/View/ResidentsPage.xaml.cs
+++ b/ApartmentManager/ApartmentManager/View/ApartmentResidentsPage.xaml.cs
diff --git a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml
new file mode 100644
index 0000000..5deab23
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml
@@ -0,0 +1,31 @@
+<Page
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:ApartmentManager.View"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:ViewModel="using:ApartmentManager.ViewModel"
+ x:Class="ApartmentManager.View.BoardMemberManageApartment"
+ mc:Ignorable="d">
+
+
+ <Page.DataContext>
+ <ViewModel:ApartmentsViewModel/>
+ </Page.DataContext>
+
+
+
+ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+ <StackPanel Margin="0 0" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="top" >
+ <Image Source="ms-appx:///Assets/plan.jpg" Margin="0 0" Width="400"></Image>
+ <Frame Background="Bisque">
+ <ListView HorizontalAlignment="Left" Margin="0,0,50,0" VerticalAlignment="Top" ItemsSource="{Binding ApartmentsCatalogSingleton.Apartment}" SelectedItem="{Binding NewApartment, Mode=TwoWay}"/>
+ </Frame>
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 100">
+ <Button Width="150" Content="New apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
+ <Button Width="150" Margin="50 0" Content="Delete apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
+ <Button Width="150" Content="Update apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
+ </StackPanel>
+ </StackPanel>
+ </Grid>
+</Page>
diff --git a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs
new file mode 100644
index 0000000..c291b8b
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace ApartmentManager.View
+{
+ /// <summary>
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ /// </summary>
+ public sealed partial class BoardMemberManageApartment : Page
+ {
+ public BoardMemberManageApartment()
+ {
+ this.InitializeComponent();
+ }
+ }
+}
diff --git a/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml b/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml
index 9acc60e..b606754 100644
--- a/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml
+++ b/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml
@@ -13,12 +13,22 @@
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <StackPanel Margin="50" Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="top" >
- <ListView HorizontalAlignment="Left" Margin="0,0,50,0" VerticalAlignment="Top" ItemsSource="{Binding ApartmentsCatalogSingleton.Apartment}" SelectedItem="{Binding NewApartment, Mode=TwoWay}"/>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 100">
- <Button Width="150" Content="Residents" Click="Apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
- <Button Width="150" Margin="40 0" Content="Defects" Click="ButtonBase_OnClick" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
- <Button Width="150" Content="Apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
+
+ <StackPanel Orientation="Vertical">
+ <TextBlock Text="Welcome to board memeber page" HorizontalAlignment="Center" FontSize="20" Margin="0 10"></TextBlock>
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="top" >
+ <Image Source="../Assets/Ostbanehus.jpg" Margin="0 0 0 0" Width="450"/>
+ <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="270 0">
+ <Button Width="150" Height="60" Content="Residents" Click="Apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
+ <Button Width="150" Height="60" Margin="0 20" Content="Defects" Click="Defect" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
+ <Button Width="150" Height="60" Content="Apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
+ </StackPanel>
+ </StackPanel>
+ <StackPanel Orientation="Vertical" VerticalAlignment="Center">
+ <Frame BorderThickness="50" Background="Bisque">
+ <ListView HorizontalAlignment="Left" VerticalAlignment="Center" ItemsSource="{Binding ApartmentsCatalogSingleton.Apartment}" SelectedItem="{Binding NewApartment, Mode=TwoWay}"/>
+ </Frame>
+ <Button Content="Manage apartment" Width="200" Height="80" Click="ApartmentManage" HorizontalAlignment="Left" Margin="200 0"></Button>
</StackPanel>
</StackPanel>
</Grid>
diff --git a/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml.cs b/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml.cs
index 2ac43c8..b7eb548 100644
--- a/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml.cs
+++ b/ApartmentManager/ApartmentManager/View/BoardMembersPage.xaml.cs
@@ -27,7 +27,7 @@ namespace ApartmentManager.View
this.InitializeComponent();
}
- private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
+ private void Defect(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(BoardMembersDefectsPage));
}
@@ -36,5 +36,10 @@ namespace ApartmentManager.View
{
this.Frame.Navigate(typeof(InfoForBoardMembers));
}
+
+ private void ApartmentManage(object sender, RoutedEventArgs e)
+ {
+ this.Frame.Navigate(typeof(BoardMemberManageApartment));
+ }
}
}
diff --git a/ApartmentManager/ApartmentManager/View/DefectsPicturesBoard.xaml b/ApartmentManager/ApartmentManager/View/DefectsPicturesBoard.xaml
index 6c038c7..e77d634 100644
--- a/ApartmentManager/ApartmentManager/View/DefectsPicturesBoard.xaml
+++ b/ApartmentManager/ApartmentManager/View/DefectsPicturesBoard.xaml
@@ -13,17 +13,18 @@
</Page.DataContext>
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <StackPanel Margin="0 50" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
- <Image Width="500" Source="../Assets/Person3.jpg"></Image>
- <StackPanel>
+ <StackPanel Orientation="Vertical">
+ <StackPanel Margin="0 50" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
+ <Image Width="500" Source="../Assets/Person3.jpg"></Image>
<Image Width="500" Source="../Assets/Person1.jpg" Height="309"></Image>
- </StackPanel>
- <StackPanel>
<Image Width="500" Source="../Assets/Person2.jpg"></Image>
</StackPanel>
- <!--<Image Source="{Binding ApartmentsCatalogSingleton.Defects[0].Picture}"></Image>
- <Image Source="{Binding ApartmentsCatalogSingleton.Defects[0].Picture2}"></Image>
- <Image Source="{Binding ApartmentsCatalogSingleton.Defects[0].Picture3}"></Image>-->
+ <StackPanel Orientation="Vertical">
+ <TextBlock Text="Description of the deffect:" HorizontalAlignment="Center" FontSize="20"></TextBlock>
+ <TextBlock Text="{Binding ApartmentsCatalogSingleton.Defects[0].Description}" TextWrapping="Wrap" Margin="0 10" Width="400"></TextBlock>
+ <TextBlock Text="Comment" HorizontalAlignment="Center" FontSize="20"></TextBlock>
+ <TextBlock Text="{Binding ApartmentsCatalogSingleton.Defects[0].Comment}" TextWrapping="Wrap" Margin="0 10" Width="400"></TextBlock>
+ </StackPanel>
</StackPanel>
</Grid>
</Page>
diff --git a/ApartmentManager/ApartmentManager/View/PlanPage.xaml b/ApartmentManager/ApartmentManager/View/PlanPage.xaml
deleted file mode 100644
index df51ff8..0000000
--- a/ApartmentManager/ApartmentManager/View/PlanPage.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-<Page
- x:Class="ApartmentManager.View.PlanPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:ApartmentManager.View"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
-
- <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <Image Source="ms-appx:///Assets/plan.jpg" Margin="50"></Image>
-
- </Grid>
-</Page>
diff --git a/ApartmentManager/ApartmentManager/ViewModel/ApartmentsViewModel.cs b/ApartmentManager/ApartmentManager/ViewModel/ApartmentsViewModel.cs
index 088023c..e00ef07 100644
--- a/ApartmentManager/ApartmentManager/ViewModel/ApartmentsViewModel.cs
+++ b/ApartmentManager/ApartmentManager/ViewModel/ApartmentsViewModel.cs
@@ -5,7 +5,9 @@ using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
+using System.Windows.Input;
using ApartmentManager.Annotations;
+using ApartmentManager.Common;
using ApartmentManager.Model;
namespace ApartmentManager.ViewModel
@@ -21,6 +23,12 @@ namespace ApartmentManager.ViewModel
public static int ApartmentsNumber { get; set; }
public Handler.BoardApartmentsHandler BoardApartmentsHandler { get; set; }
+ public ICommand CreateApartmentCommand { get; set; }
+ public ICommand DeleteApartmentCommand { get; set; }
+ public ICommand UpdateApartmentCommand { get; set; }
+
+ public ICommand DeleteDefectCommand { get; set; }
+
public ApartmentsViewModel()
{
NewUser = new User();
@@ -30,6 +38,8 @@ namespace ApartmentManager.ViewModel
BoardApartmentsHandler = new Handler.BoardApartmentsHandler(this);
ApartmentsCatalogSingleton = ApartmentsCatalogSingleton.Instance;
ApartmentsNumber = ApartmentsCatalogSingleton.User[0].ApartmentNr;
+ CreateApartmentCommand = new RelayCommand(BoardApartmentsHandler.CreateApartment);
+
}
public User NewUser
diff --git a/ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs b/ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs
index e461b1a..f100211 100644
--- a/ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs
+++ b/ApartmentManager/HousingWebApi/Controllers/ResidentsController.cs
@@ -22,9 +22,21 @@ namespace HousingWebApi.Controllers
return db.Residents;
}
+ // GET: api/Users/5
+ [ResponseType(typeof(Resident))]
+ public IHttpActionResult GetResident(int id)
+ {
+ Resident resident = db.Residents.Find(id);
+ if (resident == null)
+ {
+ return NotFound();
+ }
+
+ return Ok(resident);
+ }
// GET: api/Residents/1
-
- [Route("api/Residents/{id}")]
+
+ [Route("api/ApartmentResidents/{id}")]
[ResponseType(typeof(ResidentList))]
public IQueryable<ResidentList> GetResidents(int id)
{
diff --git a/ApartmentManager/HousingWebApi/HousingWebApi.csproj b/ApartmentManager/HousingWebApi/HousingWebApi.csproj
new file mode 100644
index 0000000..6f8fde1
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/HousingWebApi.csproj
@@ -0,0 +1,315 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
+ <Import Project="..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" />
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{D777744A-9676-4193-BD59-6F30C724C87A}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>HousingWebApi</RootNamespace>
+ <AssemblyName>HousingWebApi</AssemblyName>
+ <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+ <MvcBuildViews>false</MvcBuildViews>
+ <UseIISExpress>true</UseIISExpress>
+ <IISExpressSSLPort />
+ <IISExpressAnonymousAuthentication />
+ <IISExpressWindowsAuthentication />
+ <IISExpressUseClassicPipelineMode />
+ <UseGlobalApplicationHostFile />
+ <NuGetPackageImportStamp>
+ </NuGetPackageImportStamp>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
+ </Reference>
+ <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Security" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Abstractions" />
+ <Reference Include="System.Web.Routing" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Runtime.Serialization" />
+ <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
+ </Reference>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http">
+ </Reference>
+ <Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.WebRequest">
+ </Reference>
+ <Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Optimization">
+ <HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <Private>True</Private>
+ <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
+ </Reference>
+ <Reference Include="WebGrease">
+ <Private>True</Private>
+ <HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath>
+ </Reference>
+ <Reference Include="Antlr3.Runtime">
+ <Private>True</Private>
+ <HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.ApplicationInsights">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.Agent.Intercept">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.DependencyCollector">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.PerfCounterCollector">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.ServerTelemetryChannel">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.WindowsServer">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.AI.Web">
+ <HintPath>..\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Models\Apartment.cs" />
+ <Compile Include="Controllers\ApartmentsController.cs" />
+ <Compile Include="Controllers\DefectsController.cs" />
+ <Compile Include="Controllers\PastContractOwnersController.cs" />
+ <Compile Include="Controllers\ResidentsController.cs" />
+ <Compile Include="Controllers\UsersController.cs" />
+ <Compile Include="App_Start\BundleConfig.cs" />
+ <Compile Include="App_Start\FilterConfig.cs" />
+ <Compile Include="App_Start\RouteConfig.cs" />
+ <Compile Include="App_Start\WebApiConfig.cs" />
+ <Compile Include="Areas\HelpPage\ApiDescriptionExtensions.cs" />
+ <Compile Include="Areas\HelpPage\App_Start\HelpPageConfig.cs" />
+ <Compile Include="Areas\HelpPage\Controllers\HelpController.cs" />
+ <Compile Include="Areas\HelpPage\HelpPageAreaRegistration.cs" />
+ <Compile Include="Areas\HelpPage\HelpPageConfigurationExtensions.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\CollectionModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ComplexTypeModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\DictionaryModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\EnumTypeModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\EnumValueDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\IModelDocumentationProvider.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\KeyValuePairModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ModelDescriptionGenerator.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ModelNameAttribute.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ModelNameHelper.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ParameterAnnotation.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\ParameterDescription.cs" />
+ <Compile Include="Areas\HelpPage\ModelDescriptions\SimpleTypeModelDescription.cs" />
+ <Compile Include="Areas\HelpPage\Models\HelpPageApiModel.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\HelpPageSampleGenerator.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\HelpPageSampleKey.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\ImageSample.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\InvalidSample.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\ObjectGenerator.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\SampleDirection.cs" />
+ <Compile Include="Areas\HelpPage\SampleGeneration\TextSample.cs" />
+ <Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" />
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="DataModel.cs" />
+ <Compile Include="Models\Defect.cs" />
+ <Compile Include="Global.asax.cs">
+ <DependentUpon>Global.asax</DependentUpon>
+ </Compile>
+ <Compile Include="Models\PastContractOwner.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Models\Resident.cs" />
+ <Compile Include="ResidentList.cs" />
+ <Compile Include="Models\User.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Areas\HelpPage\HelpPage.css" />
+ <Content Include="Content\bootstrap.css" />
+ <Content Include="Content\bootstrap.min.css" />
+ <Content Include="favicon.ico" />
+ <Content Include="fonts\glyphicons-halflings-regular.svg" />
+ <Content Include="Global.asax" />
+ <Content Include="Scripts\bootstrap.js" />
+ <Content Include="Scripts\bootstrap.min.js" />
+ <Content Include="Areas\HelpPage\Views\Web.config" />
+ <Content Include="Areas\HelpPage\Views\Shared\_Layout.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\ResourceModel.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\Index.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\TextSample.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\SimpleTypeModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\Samples.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\Parameters.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ModelDescriptionLink.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\KeyValuePairModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\InvalidSample.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ImageSample.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\HelpPageApiModel.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\EnumTypeModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\DictionaryModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ComplexTypeModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\CollectionModelDescription.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ApiGroup.cshtml" />
+ <Content Include="Areas\HelpPage\Views\Help\Api.cshtml" />
+ <Content Include="ApplicationInsights.config">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <None Include="Scripts\jquery-1.10.2.intellisense.js" />
+ <Content Include="Scripts\jquery-1.10.2.js" />
+ <Content Include="Scripts\jquery-1.10.2.min.js" />
+ <Content Include="Scripts\modernizr-2.6.2.js" />
+ <Content Include="Scripts\respond.js" />
+ <Content Include="Scripts\respond.min.js" />
+ <Content Include="Web.config" />
+ <Content Include="Web.Debug.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ <Content Include="Web.Release.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </Content>
+ <Content Include="Areas\HelpPage\Views\_ViewStart.cshtml" />
+ <Content Include="Content\Site.css" />
+ <Content Include="Views\Web.config" />
+ <Content Include="Views\_ViewStart.cshtml" />
+ <Content Include="Views\Home\Index.cshtml" />
+ <Content Include="Views\Shared\Error.cshtml" />
+ <Content Include="Views\Shared\_Layout.cshtml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="App_Data\" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="fonts\glyphicons-halflings-regular.woff" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="fonts\glyphicons-halflings-regular.ttf" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="fonts\glyphicons-halflings-regular.eot" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Scripts\jquery-1.10.2.min.map" />
+ </ItemGroup>
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
+ <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
+ <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
+ </Target>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>True</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>58478</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>http://localhost:60916/</IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props'))" />
+ <Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
+ </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target> -->
+</Project> \ No newline at end of file