80 lines
1.9 KiB
C#
80 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows;
|
|
|
|
using BeWo.Core;
|
|
using BeWo.Core.Service;
|
|
using BeWo.ServiceProxy;
|
|
using BeWo.ViewModel;
|
|
using BeWo.ViewModel.ListViewModel;
|
|
|
|
using BS.Shared;
|
|
using BS.Shared.Extensions;
|
|
using System.Windows.Controls;
|
|
|
|
namespace BeWo.View.Detail
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for EmploymentTypeView.xaml
|
|
/// </summary>
|
|
public partial class NationalityView : BeWoView
|
|
{
|
|
private ValueListView organisationView = null;
|
|
|
|
//private ValueListView nationality = null;
|
|
//private ValueListView aufenthaltsstatus = null;
|
|
//private ValueListView migrationshintergrund = null;
|
|
|
|
public NationalityView(ValueListEntryListVM pViewModelOrganisation)
|
|
{
|
|
this.InitializeComponent();
|
|
|
|
organisationView = new ValueListView(pViewModelOrganisation);
|
|
|
|
organisationView.SetValue(Grid.RowProperty, 0);
|
|
|
|
rootGrid.Children.Add(organisationView);
|
|
|
|
}
|
|
|
|
public override bool IsDirty
|
|
{
|
|
get
|
|
{
|
|
bool dirty = false;
|
|
|
|
if (!dirty && organisationView != null)
|
|
dirty = this.organisationView.IsDirty;
|
|
|
|
return dirty;
|
|
}
|
|
}
|
|
|
|
public override string Title
|
|
{
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
protected override void Save()
|
|
{
|
|
bool valid = true;
|
|
|
|
if (organisationView != null)
|
|
{
|
|
if (valid && this.organisationView.IsDirty)
|
|
this.organisationView.SaveData();
|
|
}
|
|
|
|
}
|
|
|
|
internal override DependencyObject ValidationOnSaveRootElement
|
|
{
|
|
get { return this.borderTemp; }
|
|
}
|
|
|
|
}
|
|
} |