From edc2e7e8960ab6d40f6d1da90d3f32a39fb34ed3 Mon Sep 17 00:00:00 2001 From: Waldi Date: Mon, 25 Jul 2016 09:26:56 +0200 Subject: [PATCH] BeWo Server-Client update --- .../MainActivityMitarbeiter.java | 1 + BeWo/MainControl.xaml.cs | 8 +- BeWo/MainWindow.xaml.cs | 5 +- BeWo/View/ChatView.xaml | 2 +- BeWo/View/ChatView.xaml.cs | 781 +++++++++++------- BeWo/View/Detail/EmployeeView.xaml | 16 +- BeWo/View/Detail/EmployeeView.xaml.cs | 6 +- BeWo/View/HomeDragPanelView.xaml.cs | 371 +++++++-- BeWo/View/MiniChatView.xaml.cs | 141 ++-- BeWoChatServer/BeWoChatServer.csproj | 4 +- Data/Access/SearchDAO.cs | 10 +- Host/Multitenancy/demo.config | 8 +- Service/DCEntityMapper/PersonDC_Person.cs | 2 + Shared/DataContracts/PersonDC.cs | 3 + 14 files changed, 897 insertions(+), 461 deletions(-) diff --git a/Android/BewoMitarbeiterApp/app/src/main/java/beyondsoft/bewomitarbeiterapp/MainActivityMitarbeiter.java b/Android/BewoMitarbeiterApp/app/src/main/java/beyondsoft/bewomitarbeiterapp/MainActivityMitarbeiter.java index 1e4c0c9ca..af6612ea6 100644 --- a/Android/BewoMitarbeiterApp/app/src/main/java/beyondsoft/bewomitarbeiterapp/MainActivityMitarbeiter.java +++ b/Android/BewoMitarbeiterApp/app/src/main/java/beyondsoft/bewomitarbeiterapp/MainActivityMitarbeiter.java @@ -146,6 +146,7 @@ public class MainActivityMitarbeiter extends Activity { //nachricht an server senden welcher name jetz aktiv connected ist dataOutputStream = new DataOutputStream(socket.getOutputStream()); + // name = name + "/1" + "?" + personOid; // byte[] ts = name.getBytes(); // dataOutputStream.write(ts); diff --git a/BeWo/MainControl.xaml.cs b/BeWo/MainControl.xaml.cs index af42029b1..892de68fa 100644 --- a/BeWo/MainControl.xaml.cs +++ b/BeWo/MainControl.xaml.cs @@ -804,8 +804,7 @@ namespace BeWo NavigateTo(GetViewForUIContext(UIContext.Customer)); } } -//----------------------------------------------------------------------------------------------------------------- - //############# Button Wohnheim klick ####################################################### + private void button_Wohnheim_Click(object sender, RoutedEventArgs e) { if (DoSaveCheck()) @@ -813,8 +812,7 @@ namespace BeWo NavigateTo(GetViewForUIContext(UIContext.Wohnheim)); } } - //############# Button Wohnheim klick ####################################################### -//------------------------------------------------------------------------------------------------------------------ + private void button_Employee_Click(object sender, RoutedEventArgs e) { if (DoSaveCheck()) @@ -839,7 +837,7 @@ namespace BeWo Cache.GetInstance().ClearAll(); _Views = new Dictionary(); - _HomeView.CloseConnection(); + _HomeView.CloseServerConnection(); var animation = new DoubleAnimationUsingKeyFrames(); diff --git a/BeWo/MainWindow.xaml.cs b/BeWo/MainWindow.xaml.cs index d04bf6a2b..058fee8b4 100644 --- a/BeWo/MainWindow.xaml.cs +++ b/BeWo/MainWindow.xaml.cs @@ -5,6 +5,7 @@ using System.Windows; using System.Windows.Controls; using BeWo.Core.Config; using BeWo.ServiceProxy; +using BeWo.View; namespace BeWo @@ -78,7 +79,9 @@ namespace BeWo return; } } - + + BeWoApp.MainControl.HomeView.CloseServerConnection(); + BeWoApp.CurrentBeWo.DocumentWatcher.LoescheTempDateien(); Application.Current.Shutdown(); diff --git a/BeWo/View/ChatView.xaml b/BeWo/View/ChatView.xaml index bf8e5ab06..4b5ed3da3 100644 --- a/BeWo/View/ChatView.xaml +++ b/BeWo/View/ChatView.xaml @@ -13,7 +13,7 @@ + VerticalContentAlignment="Center" Width="462" Height="25" ToolTip="Schreiben Sie hier eine Nachricht hinein" KeyDown="OnKeyDownHandler" GotFocus="OnFocus" LostFocus="OnDefocus" Text="Nachricht schreiben" Foreground="DarkGray" >