From 8bbccbeb922405b689b0cdf94f4649f1c71f626f Mon Sep 17 00:00:00 2001 From: Waldi Date: Fri, 10 Mar 2017 12:18:10 +0100 Subject: [PATCH] =?UTF-8?q?Umfeld=20Sortierung=20nach=20allen=20Gridcolums?= =?UTF-8?q?=20jetzt=20m=C3=B6glich,=20der=20bereich=20Notice=20erm=C3=B6gl?= =?UTF-8?q?icht=20jetzt=20bei=20allen=20multiline=20und=20return=20taste?= =?UTF-8?q?=20zum=20zeilenumbruch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/View/Detail/CustomerView.xaml | 22 ++++++++++++++----- .../ClientPartials/ValueListEntryDC.cs | 15 ++++++++++++- 2 files changed, 31 insertions(+), 6 deletions(-) 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