diff --git a/BeWo/View/Detail/CustomerView.xaml b/BeWo/View/Detail/CustomerView.xaml index 7aa43a78e..abb50de8b 100644 --- a/BeWo/View/Detail/CustomerView.xaml +++ b/BeWo/View/Detail/CustomerView.xaml @@ -252,11 +252,15 @@ - + - + + + + + @@ -276,7 +280,11 @@ - + + + + + @@ -296,12 +304,16 @@ - + - + + + + + diff --git a/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs b/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs index 2563f6fb0..03f221219 100644 --- a/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs +++ b/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs @@ -1,8 +1,10 @@ //using BeWo.Core.Service; +using System; + namespace BS.Shared.DataContracts { - public partial class ValueListEntryDC + public partial class ValueListEntryDC : IComparable { // private ValueListEntryDC _ParentEntry; @@ -50,5 +52,16 @@ namespace BS.Shared.DataContracts { return this.TypeDescription; } + + public int CompareTo(object obj) + { + + var ve2 = obj as ValueListEntryDC; + if (ve2 == null || String.IsNullOrEmpty(ve2.TypeDescription)) + return -1; + if (String.IsNullOrEmpty(TypeDescription)) + return 1; + return TypeDescription.CompareTo(ve2.TypeDescription); + } } } \ No newline at end of file