diff --git a/BeWo/Core/BeWoUtils.cs b/BeWo/Core/BeWoUtils.cs index 18886ec3f..26166481d 100644 --- a/BeWo/Core/BeWoUtils.cs +++ b/BeWo/Core/BeWoUtils.cs @@ -1777,14 +1777,14 @@ namespace BeWo.Core klient = BS.Shared.Translation.Translator.Translate("Klient/in") + " " + result.CustomerName; } - var msg = string.Format("Die für {2} genehmigten FLS ({0:N}) werden mit diesem Eintrag überschritten. ({1:N}).", result.ApprovedHours, result.HoursNew, klient); + var msg = string.Format("Die für {2} genehmigten FLS ({0:N}) werden mit diesem Eintrag ({1:N}) überschritten.", result.ApprovedHours, result.HoursNew, klient); if (!BeWoApp.LoggedOnUser.HasRight(UserRightType.ServiceRecord_AllowCreateMoreFLSThanApproved)) { - MessageBox.Show(msg + ").\nSpeichern nicht möglich.", "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Information); + MessageBox.Show(msg + "\nSpeichern nicht möglich.", "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Information); lValid = false; } - else if (MessageBox.Show(msg + ").\nMöchten Sie trotzdem speichern?", "Speichern", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.No) + else if (MessageBox.Show(msg + "\nMöchten Sie trotzdem speichern?", "Speichern", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.No) { lValid = false; exitLoop = true; diff --git a/BeWo/View/BeWoFileView.xaml.cs b/BeWo/View/BeWoFileView.xaml.cs index 15c779b35..582d036ec 100644 --- a/BeWo/View/BeWoFileView.xaml.cs +++ b/BeWo/View/BeWoFileView.xaml.cs @@ -278,7 +278,7 @@ namespace BeWo.View n.IsSelected = true; new DispatcherTimer( - TimeSpan.FromMilliseconds(200), + TimeSpan.FromMilliseconds(100), DispatcherPriority.Background, (s1, e1) => { diff --git a/BeWo/View/Detail/Accounting/InvoiceOverview.xaml b/BeWo/View/Detail/Accounting/InvoiceOverview.xaml index 62f2b2b70..68a6dec2b 100644 --- a/BeWo/View/Detail/Accounting/InvoiceOverview.xaml +++ b/BeWo/View/Detail/Accounting/InvoiceOverview.xaml @@ -46,8 +46,8 @@ - - + + @@ -70,7 +70,11 @@ - + diff --git a/BeWo/View/Detail/Accounting/InvoiceOverview.xaml.cs b/BeWo/View/Detail/Accounting/InvoiceOverview.xaml.cs index f370be0aa..a81149a9f 100644 --- a/BeWo/View/Detail/Accounting/InvoiceOverview.xaml.cs +++ b/BeWo/View/Detail/Accounting/InvoiceOverview.xaml.cs @@ -354,6 +354,23 @@ namespace BeWo.View.Detail.Accounting } } } + + private void TableView_OnCustomRowAppearance(object sender, CustomRowAppearanceEventArgs e) + { + if (e.Property != null && e.Property.Name == "Background") + { + var ib = datagrid_invoices.GetRow(e.RowHandle) as InvoiceBaseVM; + if (ib != null && !String.IsNullOrEmpty(ib.BackgroundColor)) + { + e.Result = new SolidColorBrush((Color)ColorConverter.ConvertFromString(ib.BackgroundColor)); + e.Handled = true; + } + + + } + + //var data = srGridControl.rowhan + } } } \ No newline at end of file diff --git a/BeWo/View/Detail/UserView.xaml b/BeWo/View/Detail/UserView.xaml index d35f59f2e..f8eea7b56 100644 --- a/BeWo/View/Detail/UserView.xaml +++ b/BeWo/View/Detail/UserView.xaml @@ -44,6 +44,10 @@ + + + +