From c85e21a5eab9fce08a714cc01a9fc555b5d9c162 Mon Sep 17 00:00:00 2001 From: Lyndon Date: Mon, 1 Jul 2019 15:11:19 +0200 Subject: [PATCH] =?UTF-8?q?Bugfixes=20f=C3=BCr=20die=20Anzeige=20der=20Ter?= =?UTF-8?q?mine=20im=20HomeView=20Buttons=20zur=20Erzeugung=20und=20dem=20?= =?UTF-8?q?L=C3=B6schen=20von=20Testterminen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWo.csproj | 1 + BeWo/BeWoApp.xaml.cs | 3 +- BeWo/Core/BeWoUtils.cs | 1 + BeWo/MainControl.xaml.cs | 8 +- BeWo/MainWindow.xaml.cs | 5 +- BeWo/Scheduler/Utils/AppointmentExtensions.cs | 5 + .../View/AbstractAppointmentEditForm.cs | 2 +- BeWo/Scheduler/View/NewSchedulerView.xaml | 80 +- BeWo/Scheduler/View/NewSchedulerView.xaml.cs | 340 ++++----- .../View/SchedulerAppointmentEditForm.xaml | 93 +-- .../View/SchedulerAppointmentEditForm.xaml.cs | 42 +- .../Scheduler/ViewModel/CustomFieldStorage.cs | 15 + BeWo/ServiceProxy/Generated.cs | 37 + BeWo/ServiceProxy/ServiceFacade.cs | 9 +- BeWo/View/HomeDragPanelView.xaml | 246 +++--- BeWo/View/HomeDragPanelView.xaml.cs | 573 ++++++++++++-- BeWo/View/Master/SchedulerMasterView.xaml | 8 +- BeWo/View/Master/SchedulerMasterView.xaml.cs | 17 +- BeWo/ownChat/ChatView.xaml.cs | 36 +- BeWoPlanerMobil/BeWoPlanerMobil.csproj | 1 + BeWoPlanerMobil/Content/BeWoMobileStyle.css | 6 +- BeWoPlanerMobil/Scripts/mainView.js | 52 +- BeWoPlanerMobil/Util/JSONCustomer.cs | 7 +- BeWoPlanerMobil/Views/Main/Main.cshtml | 28 +- Data/Access/SearchDAO.cs | 90 ++- Data/Data.csproj | 2 + Data/DefaultHibernateSessionManager.cs | 9 +- .../Entities/Employee2SchedulerAppointment.cs | 49 +- Data/Entities/SchedulerAppointment.cs | 11 +- Data/WCFHibernateSessionManager.cs | 9 +- Host/Multitenancy/demo.config | 4 +- Service/Core/Utils.cs | 22 + Service/ServiceContracts/IResourceService.cs | 12 + .../EmployeeServiceImp.cs | 3 +- .../OperationsServiceImp.cs | 90 ++- .../ResourceServiceImp.cs | 720 +++++++++++++++++- Shared/BeWoEntityEnums.cs | 3 +- Shared/Core/DateTimeUtils.cs | 106 ++- Shared/Core/Utils.cs | 100 ++- .../DataContracts/SchedulerAppointmentDC.cs | 8 +- Shared/Extensions/DateTimeExtensions.cs | 34 + 41 files changed, 2343 insertions(+), 544 deletions(-) diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index e5656c134..d9cc1558a 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -606,6 +606,7 @@ ProxyLoginView.xaml + SchulbegleitenderDienstEmployeeView.xaml diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 52210e7c3..d5a355832 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -659,7 +659,6 @@ namespace BeWo } } - internal void FirePropertyChanged(string pPropertyName) { if (PropertyChanged != null) @@ -985,7 +984,7 @@ namespace BeWo #else Login login = new Login(BeWoApp.Tenant); #endif - chatServerURL = login._serverUrl; + chatServerURL = login.ServerUrl; } return chatServerURL; diff --git a/BeWo/Core/BeWoUtils.cs b/BeWo/Core/BeWoUtils.cs index 3e043849b..9b68ee089 100644 --- a/BeWo/Core/BeWoUtils.cs +++ b/BeWo/Core/BeWoUtils.cs @@ -52,6 +52,7 @@ using DevExpress.Xpf.Bars; using DevExpress.Xpf.DocumentViewer; using DevExpress.Xpf.Printing.PreviewControl.Bars; using DevExpress.XtraScheduler; +using Utils = BS.Shared.Core.Utils; namespace BeWo.Core { diff --git a/BeWo/MainControl.xaml.cs b/BeWo/MainControl.xaml.cs index e3b44636a..848b9f4f0 100644 --- a/BeWo/MainControl.xaml.cs +++ b/BeWo/MainControl.xaml.cs @@ -923,12 +923,12 @@ namespace BeWo //Hier das mit Chat Refreshen if (BeWoApp.MainControl != null && BeWoApp.MainControl.HomeView.ServiceChatView != null) { - if (BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl != null && - BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.newThread != null) + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer != null) { - BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.newThread = null; - BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.disableKontaktNachrichtenThread = true; + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer.Stop(); + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer = null; + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.ShouldInterruptContactsThread = true; } if (BeWoApp.MainControl.HomeView.ServiceChatView.ServiceChat._emojiView != null) diff --git a/BeWo/MainWindow.xaml.cs b/BeWo/MainWindow.xaml.cs index 413e51823..dbcc36e9e 100644 --- a/BeWo/MainWindow.xaml.cs +++ b/BeWo/MainWindow.xaml.cs @@ -82,9 +82,10 @@ namespace BeWo if(BeWoApp.MainControl != null && BeWoApp.MainControl.HomeView.ServiceChatView != null) { if (BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl != null && - BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.newThread != null) + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer != null) { - BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.newThread = null; + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer.Stop(); + BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.GlobalListeningThreadtimer = null; //BeWoApp.MainControl.HomeView.ServiceChatView.ChatMainControl.disableKontaktNachrichtenThread = true; } diff --git a/BeWo/Scheduler/Utils/AppointmentExtensions.cs b/BeWo/Scheduler/Utils/AppointmentExtensions.cs index d04cd8980..af5f2c007 100644 --- a/BeWo/Scheduler/Utils/AppointmentExtensions.cs +++ b/BeWo/Scheduler/Utils/AppointmentExtensions.cs @@ -85,6 +85,11 @@ namespace BeWo.Scheduler.Utils return appointment.GetCustomFieldStorage()?.Originator; } + public static long? CF_SchedulerAppointmentOid(this Appointment appointment) + { + return appointment.GetCustomFieldStorage()?.SchedulerAppointmentOid; + } + diff --git a/BeWo/Scheduler/View/AbstractAppointmentEditForm.cs b/BeWo/Scheduler/View/AbstractAppointmentEditForm.cs index 6e9f9d438..018d08d29 100644 --- a/BeWo/Scheduler/View/AbstractAppointmentEditForm.cs +++ b/BeWo/Scheduler/View/AbstractAppointmentEditForm.cs @@ -15,7 +15,7 @@ namespace BeWo.Scheduler.View { public class AbstractAppointmentEditForm : UserControl { - protected AbstractAppointmentEditForm() { } + public AbstractAppointmentEditForm() { } public AbstractAppointmentEditForm(SchedulerControl schedulerControl, Appointment appointment) { diff --git a/BeWo/Scheduler/View/NewSchedulerView.xaml b/BeWo/Scheduler/View/NewSchedulerView.xaml index f2c17be99..97a7e6be4 100644 --- a/BeWo/Scheduler/View/NewSchedulerView.xaml +++ b/BeWo/Scheduler/View/NewSchedulerView.xaml @@ -23,7 +23,7 @@ - + @@ -265,8 +265,8 @@ + dxschint:VerticalAppointmentContentPanel.AlwaysOnNewRow="True" TextWrapping="Wrap" Margin="11,6,0,0" + Foreground="{Binding Path=CustomViewInfo[CustomFieldStorage].ForegroundColor}" /> @@ -282,16 +282,16 @@ - + - + - + @@ -320,17 +320,17 @@ - + - + + Visibility="{Binding Path=CustomViewInfo[CustomFieldStorage].ToolTipResourcesVisibility}" /> @@ -401,10 +401,10 @@ - + - + - +