diff --git a/BeWo/Core/BeWoUtils.cs b/BeWo/Core/BeWoUtils.cs index 609fd88ad..d8b3e3b23 100644 --- a/BeWo/Core/BeWoUtils.cs +++ b/BeWo/Core/BeWoUtils.cs @@ -2133,8 +2133,6 @@ namespace BeWo.Core { BeWo.Scheduling.View.AbsenceTimesCreationView newView = new Scheduling.View.AbsenceTimesCreationView(start, end, customer, employees, notice, appointment, schedulerCallback); - - newView.ShowDialog(); } diff --git a/BeWo/Scheduler/View/NewSchedulerView.xaml b/BeWo/Scheduler/View/NewSchedulerView.xaml index f5d187b71..c1ecff876 100644 --- a/BeWo/Scheduler/View/NewSchedulerView.xaml +++ b/BeWo/Scheduler/View/NewSchedulerView.xaml @@ -1898,6 +1898,14 @@ Content="{markup:Translate In Zeiterfassung übertragen}" ItemClick="ZeiterfassungButtonItem_OnItemClick" /> + + + employee2SchedulerAppointment.Employee).ToList(); + + // Betreff des Termins als Notiz der einzutragenden Abwesenheit nutzen + String notice = "(aus Kalender übertragen)"; + if (appointment.Subject.IsNotNullOrEmpty()) + { + notice = appointment.Subject + " " + notice; + } + + BeWoUtils.CreateAbsenceTime(appointment.Start, appointment.End, customerList, employeeList, notice, appointment, absenceTimes => + { + try + { + IgnoreManualAppointmentCreation = true; + IgnoreChangeEvents = true; + } + finally + { + IgnoreManualAppointmentCreation = false; + IgnoreChangeEvents = false; + } + }); + } private bool IgnoreManualAppointmentCreation { get; set; } diff --git a/BeWo/Scheduling/View/AbsenceTimesCreationView.xaml b/BeWo/Scheduling/View/AbsenceTimesCreationView.xaml index 60a22f97b..c41e36579 100644 --- a/BeWo/Scheduling/View/AbsenceTimesCreationView.xaml +++ b/BeWo/Scheduling/View/AbsenceTimesCreationView.xaml @@ -5,8 +5,168 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:BeWo.Scheduling.View" mc:Ignorable="d" - Title="AbsenceTimesCreationView" Height="450" Width="800"> - - - + xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" + xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" + xmlns:converter="clr-namespace:BeWo.Converter" + xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" + dx:ThemeManager.ThemeName="Office2010Black" + Title="BeWoPlaner" + Height="250" MinHeight="250" Width="400" MinWidth="400" + WindowStartupLocation="CenterScreen" + ResizeMode="CanResizeWithGrip"> + + + + + + + + + + + + + + + + + + + + + + + + + + + +