Jede Menge Bugs
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
<TextBlock VerticalAlignment="Center" Grid.Column="3" Grid.Row="0" Grid.RowSpan="2" Margin="0,0,3,0" Visibility="{Binding Path=IsDeleted, Converter={StaticResource ReactivationRight2VisibilityConverter}, ConverterParameter=SupportConcept}">
|
||||
<Hyperlink TargetName="_NewWindow" Foreground="#FFFFFFFF" Click="Hyperlink_Hilfeplan_Reaktivieren_Click" Tag="{Binding}">Reaktivieren</Hyperlink>
|
||||
</TextBlock>
|
||||
<Button x:Name="btnOpenServiceRecordView" Grid.Column="4" Grid.Row="0" Grid.RowSpan="2" Width="25" Height="25" Style="{DynamicResource TransparentButtonStyle}" ToolTip="{markup:Translate In Zeiterfassung öffnen}" Tag="{Binding}" Margin="0,0,2,0" Click="btnOpenServiceRecordView_Click">
|
||||
<Button x:Name="btnOpenServiceRecordView" Grid.Column="4" Grid.Row="0" Grid.RowSpan="2" Width="25" Height="25" Style="{DynamicResource TransparentButtonStyle}" ToolTip="{markup:Translate In Zeiterfassung öffnen}" Tag="{Binding}" Margin="0,0,2,0" Click="BtnOpenServiceRecordView_Click">
|
||||
<Image Source="Ressources\Icons\HistoryDisabled.png" />
|
||||
</Button>
|
||||
</Grid>
|
||||
@@ -295,8 +295,8 @@
|
||||
</TransformGroup>
|
||||
</Path.RenderTransform>
|
||||
</Path>
|
||||
<ToggleButton Checked="togglebutton_maximise_Checked"
|
||||
Unchecked="togglebutton_maximise_Unchecked"
|
||||
<ToggleButton Checked="Togglebutton_maximise_Checked"
|
||||
Unchecked="Togglebutton_maximise_Unchecked"
|
||||
Margin="3,6,3,0"
|
||||
x:Name="togglebutton_maximise"
|
||||
Grid.Column="0" Grid.Row="0" Width="25" Height="25"
|
||||
@@ -492,11 +492,11 @@
|
||||
|
||||
<Button Margin="3,3,3,3" x:Name="button_Minimize"
|
||||
Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right"
|
||||
Style="{DynamicResource MinimizeFullyButtonStyle }" Click="togglebuttonChat_Minimize_Checked" />
|
||||
Style="{DynamicResource MinimizeFullyButtonStyle }" Click="TogglebuttonChat_Minimize_Checked" />
|
||||
|
||||
<ToggleButton Margin="3,3,3,3" x:Name="button_Maximize"
|
||||
Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right"
|
||||
Style="{DynamicResource MaximizeButtonStyle}" Checked="togglebuttonChat_maximise_Checked" Unchecked="togglebuttonChat_maximise_Unchecked" />
|
||||
Style="{DynamicResource MaximizeButtonStyle}" Checked="TogglebuttonChat_maximise_Checked" Unchecked="TogglebuttonChat_maximise_Unchecked" />
|
||||
|
||||
<Button Margin="3,3,3,3" x:Name="button_close"
|
||||
Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right"
|
||||
|
||||
@@ -13,17 +13,21 @@ using System.Windows.Input;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Threading;
|
||||
|
||||
using BeWo.Core;
|
||||
using BeWo.Core.Config;
|
||||
using BeWo.ServiceProxy;
|
||||
using BeWo.View;
|
||||
using BeWo.View.Navigation;
|
||||
using BeWo.View.Navigation.Filter;
|
||||
|
||||
using BS.Shared;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
using ChatController.HauptKlassen;
|
||||
using DevExpress.Xpf.Core;
|
||||
using DevExpress.Xpf.Grid;
|
||||
|
||||
namespace BeWo
|
||||
@@ -33,7 +37,7 @@ namespace BeWo
|
||||
/// </summary>
|
||||
public partial class BeWoApp : Application, INotifyPropertyChanged
|
||||
{
|
||||
private static FrameworkElement _lockedContent;
|
||||
private static FrameworkElement _lockedContent;
|
||||
|
||||
public static LoginControl LoginControl;
|
||||
|
||||
@@ -145,9 +149,9 @@ namespace BeWo
|
||||
|
||||
internal static UserDC LoggedOnUser
|
||||
{
|
||||
get { return _LoggedOnUser; }
|
||||
get => _LoggedOnUser;
|
||||
|
||||
set
|
||||
set
|
||||
{
|
||||
_LoggedOnUser = value;
|
||||
if (_LoggedOnUser != null)
|
||||
@@ -161,11 +165,7 @@ namespace BeWo
|
||||
|
||||
ServiceFacade.DoEmployeeServiceAsync(s => s.LoadCompactEmployee(value.Employee.EmployeeOid), r2 => { _CompactLoggedOnEmployee = r2; });
|
||||
|
||||
if (MainControl != null)
|
||||
{
|
||||
MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal,
|
||||
(Action) (() => MainControl.InitOffeneTermine()));
|
||||
}
|
||||
MainControl?.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => MainControl.InitOffeneTermine()));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -520,12 +520,13 @@ namespace BeWo
|
||||
{
|
||||
get
|
||||
{
|
||||
string lockTime = _Mandator.Settings.SplitToKeyValuePairList(";", "=").FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value;
|
||||
var lockTime = _Mandator.Settings.SplitToKeyValuePairList(";", "=").FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value;
|
||||
|
||||
if (_LoggedOnUser != null && lockTime != null)
|
||||
if(_LoggedOnUser != null && lockTime != null)
|
||||
{
|
||||
return Convert.ToInt32(lockTime);
|
||||
}
|
||||
|
||||
return _LockUITime;
|
||||
}
|
||||
|
||||
@@ -533,9 +534,12 @@ namespace BeWo
|
||||
{
|
||||
_LockUITime = value;
|
||||
|
||||
if (_LoggedOnUser == null) return;
|
||||
if (_LoggedOnUser == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
AutoLockUI.LockUITime = value;
|
||||
AutoLockUI.LockUITime = value;
|
||||
AutoLockUI.StopTimer();
|
||||
AutoLockUI.StartAutoLockUIOption();
|
||||
}
|
||||
@@ -724,7 +728,7 @@ namespace BeWo
|
||||
{
|
||||
if (MainControl != null)
|
||||
{
|
||||
MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => MainControl.ShowControlAsModalPopUp(new ExceptionMessageBox(message, ex, showDetails))));
|
||||
MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => MainControl.ShowControlAsModalPopup(new ExceptionMessageBox(message, ex, showDetails))));
|
||||
}
|
||||
else if (LoginControl != null)
|
||||
{
|
||||
@@ -750,12 +754,12 @@ namespace BeWo
|
||||
EventManager.RegisterClassHandler(typeof (Window), UIElement.PreviewMouseDownEvent, new MouseButtonEventHandler(OnPreviewMouseDown));
|
||||
EventManager.RegisterClassHandler(typeof (Window), UIElement.PreviewKeyDownEvent, new KeyEventHandler(OnPreviewKeyDown));
|
||||
|
||||
IEnumerable<KeyValuePair<string, string>> settingsKVPList = _Mandator.Settings.SplitToKeyValuePairList(";", "=");
|
||||
var settingsKeyValuePairList = _Mandator.Settings.SplitToKeyValuePairList(";", "=").ToList();
|
||||
|
||||
string x = settingsKVPList.FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value ?? "NULL";
|
||||
int y = _LockUITime;
|
||||
var x = settingsKeyValuePairList.FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value ?? "NULL";
|
||||
var y = _LockUITime;
|
||||
|
||||
AutoLockUI.LockUITime = Convert.ToInt32(settingsKVPList.FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value ?? LockUITime.ToString());
|
||||
AutoLockUI.LockUITime = Convert.ToInt32(settingsKeyValuePairList.FirstOrDefault(f => f.Key.Equals("TimeUntilUILock")).Value ?? LockUITime.ToString());
|
||||
|
||||
|
||||
AutoLockUI.DoAutoLockUIEvent += AutoLockUIDoAutoLockUIEvent;
|
||||
@@ -885,7 +889,7 @@ namespace BeWo
|
||||
|
||||
}
|
||||
|
||||
private void btnOpenServiceRecordView_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnOpenServiceRecordView_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var btn = sender as Button;
|
||||
if (btn == null) return;
|
||||
@@ -898,37 +902,36 @@ namespace BeWo
|
||||
MainControl.NavigateToServiceRecordView(dc.SupportConceptOid);
|
||||
}
|
||||
|
||||
private void togglebutton_maximise_Checked(object sender, RoutedEventArgs e)
|
||||
private void Togglebutton_maximise_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MainControl != null)
|
||||
MainControl.Maximize();
|
||||
}
|
||||
|
||||
private void togglebutton_maximise_Unchecked(object sender, RoutedEventArgs e)
|
||||
private void Togglebutton_maximise_Unchecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MainControl != null)
|
||||
MainControl.Minimize();
|
||||
}
|
||||
|
||||
private void togglebuttonChat_maximise_Unchecked(object sender, RoutedEventArgs e)
|
||||
private void TogglebuttonChat_maximise_Unchecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MainControl.HomeView.ServiceChatView != null)
|
||||
MainControl.HomeView.ServiceChatView.Normal();
|
||||
}
|
||||
|
||||
private void togglebuttonChat_maximise_Checked(object sender, RoutedEventArgs e)
|
||||
private void TogglebuttonChat_maximise_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MainControl.HomeView.ServiceChatView != null)
|
||||
MainControl.HomeView.ServiceChatView.Maximize();
|
||||
}
|
||||
|
||||
private void togglebuttonChat_Minimize_Checked(object sender, RoutedEventArgs e)
|
||||
private void TogglebuttonChat_Minimize_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MainControl.HomeView.ServiceChatView != null)
|
||||
MainControl.HomeView.ServiceChatView.Minimize();
|
||||
}
|
||||
|
||||
|
||||
private void FrameLeftMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
var border = (Border) sender;
|
||||
@@ -963,13 +966,13 @@ namespace BeWo
|
||||
return;
|
||||
}
|
||||
|
||||
if (CurrentBeWo.MainWindow.Content is LockedPage)
|
||||
if (CurrentBeWo.MainWindow?.Content is LockedPage)
|
||||
{
|
||||
AutoLockUI.StartAutoLockUIOption();
|
||||
return;
|
||||
}
|
||||
|
||||
_lockedContent = CurrentBeWo.MainWindow.Content as FrameworkElement;
|
||||
_lockedContent = CurrentBeWo.MainWindow?.Content as FrameworkElement;
|
||||
|
||||
if (_lockedContent is Grid && (_lockedContent as Grid).Children.Contains(LoginControl))
|
||||
{
|
||||
@@ -977,17 +980,25 @@ namespace BeWo
|
||||
return;
|
||||
}
|
||||
|
||||
WindowCollection fenster = CurrentBeWo.Windows;
|
||||
//OpenDevExpressEditForms = (from Window x in fenster where !x.Title.Equals("BeWoPlaner") || x.GetType() != typeof (MainWindow) select x).ToList();
|
||||
var openWindowCollection = Current.Windows;
|
||||
foreach(var blubb in openWindowCollection)
|
||||
{
|
||||
var abc = (Window) blubb;
|
||||
|
||||
if(!abc.Title.Equals("BeWoPlaner") && blubb.GetType() == typeof(WindowContentHolder))
|
||||
{
|
||||
abc.Close();
|
||||
}
|
||||
}
|
||||
|
||||
//OpenDevExpressEditForms.ForEach(fe => fe.Close());
|
||||
MainControl.HideCurrentModalViewWindows();
|
||||
|
||||
var lockedPage = new LockedPage();
|
||||
var lockedPage = new LockedPage();
|
||||
lockedPage.ButtonLogin.Click += UnlockBeWoPlaner;
|
||||
|
||||
CurrentBeWo.MainWindow.Content = lockedPage;
|
||||
CurrentBeWo.MainWindow.Focus();
|
||||
|
||||
Current.Dispatcher.Invoke(new Action(() => CurrentBeWo.MainWindow?.Activate()));
|
||||
|
||||
AutoLockUI.StartAutoLockUIOption();
|
||||
}
|
||||
@@ -1010,8 +1021,7 @@ namespace BeWo
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
username = String.Format("{0}//Version={1}", username, "Sperrung aufgehoben");
|
||||
username = $"{username}//Version=Sperrung aufgehoben";
|
||||
|
||||
ServiceFacade.DoUserServiceAsync(u => u.IsUserValid(username, password, ""), r =>
|
||||
{
|
||||
@@ -1021,22 +1031,15 @@ namespace BeWo
|
||||
return;
|
||||
}
|
||||
|
||||
Current.Dispatch(delegate
|
||||
{
|
||||
CurrentBeWo.MainWindow.Content = _lockedContent;
|
||||
//foreach(Window form in OpenDevExpressEditForms)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// //form.Show();
|
||||
// }
|
||||
// catch(Exception exception)
|
||||
// {
|
||||
// ShowError("Ein Fehler ist beim Entsperren aufgetreten", exception, true);
|
||||
// }
|
||||
//}
|
||||
AutoLockUI.HasJustBeenUnlocked = true;
|
||||
|
||||
Current.Dispatcher.Invoke(delegate
|
||||
{
|
||||
CurrentBeWo.MainWindow.Content = _lockedContent;
|
||||
|
||||
MainControl.ShowCurrentModalViewWindowsAgain();
|
||||
});
|
||||
}, true);
|
||||
}, true);
|
||||
}
|
||||
|
||||
private static void OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
|
||||
|
||||
@@ -11,33 +11,41 @@ namespace BeWo.Core
|
||||
public delegate void DoAutoLockUI();
|
||||
public static event DoAutoLockUI DoAutoLockUIEvent;
|
||||
|
||||
static public void StartAutoLockUIOption()
|
||||
public static bool HasJustBeenUnlocked { get; set; }
|
||||
|
||||
public static void StartAutoLockUIOption()
|
||||
{
|
||||
HasJustBeenUnlocked = false;
|
||||
System.Windows.Interop.ComponentDispatcher.ThreadIdle += DispatcherQueueEmptyHandler;
|
||||
}
|
||||
|
||||
static void _timerTick(object sender, EventArgs e)
|
||||
private static void _timerTick(object sender, EventArgs e)
|
||||
{
|
||||
if (_Timer == null) return;
|
||||
if (_Timer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
System.Windows.Interop.ComponentDispatcher.ThreadIdle -= DispatcherQueueEmptyHandler;
|
||||
_Timer.Stop();
|
||||
_Timer = null;
|
||||
|
||||
if (DoAutoLockUIEvent != null)
|
||||
DoAutoLockUIEvent();
|
||||
DoAutoLockUIEvent?.Invoke();
|
||||
}
|
||||
|
||||
public static void StopTimer()
|
||||
{
|
||||
if (_Timer == null) return;
|
||||
if (_Timer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
System.Windows.Interop.ComponentDispatcher.ThreadIdle -= DispatcherQueueEmptyHandler;
|
||||
_Timer.Stop();
|
||||
_Timer = null;
|
||||
}
|
||||
|
||||
static void DispatcherQueueEmptyHandler(object sender, EventArgs e)
|
||||
private static void DispatcherQueueEmptyHandler(object sender, EventArgs e)
|
||||
{
|
||||
if (_Timer == null)
|
||||
{
|
||||
@@ -55,13 +63,18 @@ namespace BeWo.Core
|
||||
else
|
||||
{
|
||||
if (LockUITime == 0)
|
||||
StopTimer();
|
||||
{
|
||||
StopTimer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void ResetLockUITimer()
|
||||
{
|
||||
if (_Timer == null) return;
|
||||
if (_Timer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_Timer.Enabled = false;
|
||||
_Timer.Enabled = true;
|
||||
|
||||
@@ -8,7 +8,6 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Forms;
|
||||
@@ -45,19 +44,18 @@ using Image = System.Windows.Controls.Image;
|
||||
using MessageBox = System.Windows.MessageBox;
|
||||
using Panel = System.Windows.Controls.Panel;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Threading;
|
||||
using BeWo.ownChat;
|
||||
using BeWo.PasswortSecurity;
|
||||
using ChatController.HauptKlassen;
|
||||
using DevExpress.Xpf.Bars;
|
||||
using DevExpress.Xpf.DocumentViewer;
|
||||
using DevExpress.Xpf.Printing.PreviewControl.Bars;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BeWo.Core
|
||||
{
|
||||
public static class BeWoUtils
|
||||
{
|
||||
public static ModalViewWindow CurrentModalViewWindow { get; set; }
|
||||
|
||||
public static Dictionary<string, string> ParseQuery(string query)
|
||||
{
|
||||
try
|
||||
@@ -290,12 +288,12 @@ namespace BeWo.Core
|
||||
else if (tType == typeof (OrganisationVM))
|
||||
{
|
||||
View = new OrganisationView(viewModel as OrganisationVM) { ParentView = ownerView, MinWidth = 800, IsInWindow = true };
|
||||
(View as OrganisationView).OrganisationSavedOrUpdated += organisationSavedOrUpdated;
|
||||
((OrganisationView) View).OrganisationSavedOrUpdated += organisationSavedOrUpdated;
|
||||
}
|
||||
else if (tType == typeof (PersonVM))
|
||||
{
|
||||
View = new PersonView(viewModel as PersonVM) {ParentView = ownerView, MinWidth = 800, IsInWindow = true};
|
||||
(View as PersonView).PersonSavedOrUpdated += personSavedOrUpdated;
|
||||
((PersonView) View).PersonSavedOrUpdated += personSavedOrUpdated;
|
||||
}
|
||||
else if (tType == typeof (TeamVM))
|
||||
{
|
||||
@@ -316,24 +314,30 @@ namespace BeWo.Core
|
||||
|
||||
View.ModalEditViewUpdateCallback = applyChanges;
|
||||
|
||||
var modalViewWindow = new ModalViewWindow(View, ownerView, allowSaveIfParentDirty);
|
||||
CurrentModalViewWindow = new ModalViewWindow(View, ownerView, allowSaveIfParentDirty) {Title = viewModel.ToString()};
|
||||
|
||||
BeWoApp.MainControl.OpenedModalViewWindows.Add(modalViewWindow);
|
||||
BeWoApp.MainControl.OpenedModalViewWindows.Add(CurrentModalViewWindow);
|
||||
|
||||
foreach (var window in BeWoApp.MainControl.OpenedModalViewWindows.Where(window => !BeWoApp.MainControl.OpenedModalViewWindows.Last().Equals(window)))
|
||||
{
|
||||
ShowModalBackground(window.RootGrid);
|
||||
}
|
||||
|
||||
var dialogResult = modalViewWindow.ShowDialog();
|
||||
//var dialogResult =
|
||||
CurrentModalViewWindow.Show();
|
||||
}
|
||||
|
||||
if (BeWoApp.MainControl.OpenedModalViewWindows.Count > 1)
|
||||
public static void RemoveModalViewWindow()
|
||||
{
|
||||
if(BeWoApp.MainControl.OpenedModalViewWindows.Count > 1 && CurrentModalViewWindow != null)
|
||||
{
|
||||
var nextToLastWindow = BeWoApp.MainControl.OpenedModalViewWindows.ElementAt(BeWoApp.MainControl.OpenedModalViewWindows.Count - 2);
|
||||
nextToLastWindow.RootGrid.Children.RemoveAt(1);
|
||||
var nextToLastWindowWithModalBackground = BeWoApp.MainControl.OpenedModalViewWindows.ElementAt(BeWoApp.MainControl.OpenedModalViewWindows.Count - 2);
|
||||
nextToLastWindowWithModalBackground.RootGrid.Children.RemoveAt(1);
|
||||
}
|
||||
|
||||
BeWoApp.MainControl.OpenedModalViewWindows.Remove(modalViewWindow);
|
||||
BeWoApp.MainControl.OpenedModalViewWindows.Remove(CurrentModalViewWindow);
|
||||
|
||||
CurrentModalViewWindow = BeWoApp.MainControl.OpenedModalViewWindows.Count > 0 ? BeWoApp.MainControl.OpenedModalViewWindows.ElementAt(BeWoApp.MainControl.OpenedModalViewWindows.Count - 1) : null;
|
||||
}
|
||||
|
||||
public static bool CheckViewIsCalledFromWindow(BeWoView view)
|
||||
@@ -341,7 +345,7 @@ namespace BeWo.Core
|
||||
return ((Grid) view.Parent).Parent.GetType() == typeof (Window);
|
||||
}
|
||||
|
||||
private static void ShowModalBackground(Grid gridToBlock)
|
||||
private static void ShowModalBackground(Panel gridToBlock)
|
||||
{
|
||||
var detailViewBackGround = new Grid
|
||||
{
|
||||
@@ -352,11 +356,15 @@ namespace BeWo.Core
|
||||
};
|
||||
|
||||
if (gridToBlock.Children.OfType<Grid>().Any(obj => obj.Name.Equals("DetailViewBackGround")))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Grid.SetColumnSpan(detailViewBackGround, 3);
|
||||
Grid.SetRowSpan(detailViewBackGround, 3);
|
||||
|
||||
gridToBlock.Children.Add(detailViewBackGround);
|
||||
|
||||
Panel.SetZIndex(detailViewBackGround, int.MaxValue - 1);
|
||||
}
|
||||
|
||||
@@ -1051,7 +1059,7 @@ namespace BeWo.Core
|
||||
else if (typeof(T) == typeof(CompactOrganisationDC))
|
||||
{
|
||||
var updatedOrganisation = new CompactOrganisationDC();
|
||||
|
||||
// TODO: in Endlosschleife gefangen, wenn in modalem Fenster geöffnet
|
||||
ServiceFacade.DoCustomerServiceSync(s => updatedOrganisation = s.LoadOrganisationCompact((updatedObject as CompactOrganisationDC).OrganisationOid));
|
||||
|
||||
foreach (var item in ServiceRecordView2.ViewModel.VMList.Where(item => item.CostBearer.Equals(updatedOrganisation)))
|
||||
@@ -1888,7 +1896,6 @@ namespace BeWo.Core
|
||||
BeWoApp.MainControl.EndWaiting();
|
||||
}
|
||||
|
||||
|
||||
public static PasswortSecurityStrength CheckPasswordSecurity(string paswd)
|
||||
{
|
||||
PasswortSicherheit pwS = new PasswortSicherheit();
|
||||
@@ -1973,8 +1980,6 @@ namespace BeWo.Core
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void OwnChatSynchronisationVeranlassen()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d" Width="Auto" Background="{StaticResource LoginBackground}" SnapsToDevicePixels="False">
|
||||
mc:Ignorable="d" Width="Auto" Background="{StaticResource LoginBackground}" SnapsToDevicePixels="False" Focusable="True">
|
||||
<Page.Resources>
|
||||
<Storyboard x:Key="OnLoaded1">
|
||||
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridLogin" Storyboard.TargetProperty="(UIElement.Opacity)">
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
|
||||
namespace BeWo
|
||||
{
|
||||
@@ -10,10 +9,8 @@ namespace BeWo
|
||||
InitializeComponent();
|
||||
Loaded += LockedPage_Loaded;
|
||||
|
||||
|
||||
|
||||
LblVersion.Content = BeWoApp.Version;
|
||||
lblGesperrt.Content = String.Format("Gesperrt von Benutzer {0} {1}", BeWoApp.LoggedOnUser.Employee.FirstName, BeWoApp.LoggedOnUser.Employee.LastName);
|
||||
lblGesperrt.Content = $"Gesperrt von Benutzer {BeWoApp.LoggedOnUser.Employee.FirstName} {BeWoApp.LoggedOnUser.Employee.LastName}";
|
||||
}
|
||||
|
||||
private void LockedPage_Loaded(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -5,7 +5,6 @@ using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
@@ -21,7 +20,6 @@ using BeWo.SchulbegleitenderDienst;
|
||||
using BeWo.ServiceProxy;
|
||||
using BeWo.View;
|
||||
using BeWo.View.Detail;
|
||||
using BeWo.View.Detail.Report;
|
||||
using BeWo.View.Master;
|
||||
using BeWo.View.Navigation;
|
||||
using BeWo.ViewModel;
|
||||
@@ -29,7 +27,6 @@ using BeWo.ViewModel;
|
||||
using BS.Shared;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
using DevExpress.Xpf.Editors;
|
||||
using DevExpress.Xpf.Scheduler;
|
||||
using Hyperlink = System.Windows.Documents.Hyperlink;
|
||||
@@ -53,23 +50,18 @@ namespace BeWo
|
||||
CustomerTeam
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Interaktionslogik für MainControl.xaml
|
||||
/// </summary>
|
||||
public partial class MainControl : UserControl
|
||||
public partial class MainControl
|
||||
{
|
||||
private const string _PINInfoText = "Um Zugriff auf Ihre Daten zu bekommen, benötigen wir eine PIN.";
|
||||
private readonly Stack<Control> _ModalPopUpControls = new Stack<Control>();
|
||||
private readonly Stack<Control> _ModalPopupControls = new Stack<Control>();
|
||||
|
||||
private BeWoView _CurrentDetailView;
|
||||
|
||||
private Control _CurrentModalPopUp;
|
||||
private Control _CurrentModalPopup;
|
||||
|
||||
private HomeDragPanelView _HomeView;
|
||||
|
||||
private bool _IsMaximized;
|
||||
|
||||
private bool _TermineInitialized;
|
||||
private bool _TermineInitialized;
|
||||
|
||||
private Dictionary<UIContext, BeWoView> _Views = new Dictionary<UIContext, BeWoView>();
|
||||
private WaitLayer2 _WaitLayer;
|
||||
@@ -88,14 +80,13 @@ namespace BeWo
|
||||
|
||||
OpenedModalViewWindows = new List<ModalViewWindow>();
|
||||
|
||||
if (!String.IsNullOrWhiteSpace(BeWoApp.AppSettings.TimeRecordingMenuName))
|
||||
if (!string.IsNullOrWhiteSpace(BeWoApp.AppSettings.TimeRecordingMenuName))
|
||||
{
|
||||
button_serviceRecord.Content = BeWoApp.AppSettings.TimeRecordingMenuName;
|
||||
}
|
||||
|
||||
BeWoApp.InitAutoUILocking();
|
||||
|
||||
|
||||
|
||||
#if DEBUG
|
||||
//nix
|
||||
#else
|
||||
@@ -117,9 +108,6 @@ namespace BeWo
|
||||
this.button_SchulbegleitenderDienst.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public List<ModalViewWindow> OpenedModalViewWindows { get; set; }
|
||||
@@ -129,7 +117,7 @@ namespace BeWo
|
||||
get { return _Views; }
|
||||
}
|
||||
|
||||
public Grid ModalPopUpBackGround { get; private set; }
|
||||
public Grid ModalPopupBackGround { get; private set; }
|
||||
|
||||
public HomeDragPanelView HomeView
|
||||
{
|
||||
@@ -150,14 +138,9 @@ namespace BeWo
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsMaximized
|
||||
{
|
||||
get { return _IsMaximized; }
|
||||
public bool IsMaximized { get; set; }
|
||||
|
||||
set { _IsMaximized = value; }
|
||||
}
|
||||
|
||||
private bool _HatNeueTermine;
|
||||
private bool _HatNeueTermine;
|
||||
public bool HatNeueTermine
|
||||
{
|
||||
get { return _HatNeueTermine; }
|
||||
@@ -254,7 +237,7 @@ namespace BeWo
|
||||
AnimateOpacity(pOpacitiy, 500);
|
||||
}
|
||||
|
||||
public void ChangePopUpOpacityMode(bool isPopUpVisible)
|
||||
public void ChangePopupOpacityMode(bool isPopUpVisible)
|
||||
{
|
||||
if (isPopUpVisible)
|
||||
{
|
||||
@@ -268,23 +251,24 @@ namespace BeWo
|
||||
|
||||
public void CloseCurrentPopUp()
|
||||
{
|
||||
if (ModalPopUpBackGround != null)
|
||||
if (ModalPopupBackGround != null)
|
||||
{
|
||||
Dispatcher.BeginInvoke(
|
||||
DispatcherPriority.Normal,
|
||||
(Action) delegate
|
||||
{
|
||||
grid_main.Children.Remove(_CurrentModalPopUp);
|
||||
_CurrentModalPopUp = null;
|
||||
if (_ModalPopUpControls.Count == 0)
|
||||
grid_main.Children.Remove(_CurrentModalPopup);
|
||||
_CurrentModalPopup = null;
|
||||
|
||||
if(_ModalPopupControls.Count == 0)
|
||||
{
|
||||
grid_main.Children.Remove(ModalPopUpBackGround);
|
||||
ModalPopUpBackGround = null;
|
||||
grid_main.Children.Remove(ModalPopupBackGround);
|
||||
ModalPopupBackGround = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Control control = _ModalPopUpControls.Pop();
|
||||
_CurrentModalPopUp = control;
|
||||
var control = _ModalPopupControls.Pop();
|
||||
_CurrentModalPopup = control;
|
||||
grid_main.Children.Add(control);
|
||||
Panel.SetZIndex(control, int.MaxValue);
|
||||
}
|
||||
@@ -292,6 +276,36 @@ namespace BeWo
|
||||
}
|
||||
}
|
||||
|
||||
public void HideCurrentModalViewWindows()
|
||||
{
|
||||
if(ModalPopupBackGround != null)
|
||||
{
|
||||
Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) delegate
|
||||
{
|
||||
ModalPopupBackGround.Visibility = Visibility.Collapsed;
|
||||
|
||||
foreach(var modalPopup in OpenedModalViewWindows)
|
||||
{
|
||||
modalPopup.Hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: öffnet nur ein modales Fenster
|
||||
public void ShowCurrentModalViewWindowsAgain()
|
||||
{
|
||||
if(OpenedModalViewWindows.Count > 0 && ModalPopupBackGround != null)
|
||||
{
|
||||
ModalPopupBackGround.Visibility = Visibility.Visible;
|
||||
|
||||
foreach(var modalPopup in OpenedModalViewWindows)
|
||||
{
|
||||
modalPopup.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void EndWaiting()
|
||||
{
|
||||
Dispatcher.BeginInvoke(
|
||||
@@ -341,30 +355,30 @@ namespace BeWo
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowControlAsModalPopUp(Control control)
|
||||
public void ShowControlAsModalPopup(Control control)
|
||||
{
|
||||
ShowControlAsModalPopUp(control, HorizontalAlignment.Center, VerticalAlignment.Center);
|
||||
ShowControlAsModalPopup(control, HorizontalAlignment.Center, VerticalAlignment.Center);
|
||||
}
|
||||
|
||||
public void ShowControlAsModalPopUp(Control control, HorizontalAlignment ha, VerticalAlignment va)
|
||||
public void ShowControlAsModalPopup(Control control, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
|
||||
{
|
||||
Dispatcher.BeginInvoke(
|
||||
DispatcherPriority.Normal,
|
||||
(Action) delegate
|
||||
{
|
||||
if (_CurrentModalPopUp != null)
|
||||
if (_CurrentModalPopup != null)
|
||||
{
|
||||
grid_main.Children.Remove(_CurrentModalPopUp);
|
||||
_ModalPopUpControls.Push(_CurrentModalPopUp);
|
||||
grid_main.Children.Remove(_CurrentModalPopup);
|
||||
_ModalPopupControls.Push(_CurrentModalPopup);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowModalBackground();
|
||||
}
|
||||
|
||||
_CurrentModalPopUp = control;
|
||||
control.HorizontalAlignment = ha;
|
||||
control.VerticalAlignment = va;
|
||||
_CurrentModalPopup = control;
|
||||
control.HorizontalAlignment = horizontalAlignment;
|
||||
control.VerticalAlignment = verticalAlignment;
|
||||
Grid.SetColumnSpan(control, 3);
|
||||
Grid.SetRowSpan(control, 3);
|
||||
grid_main.Children.Add(control);
|
||||
@@ -632,7 +646,7 @@ namespace BeWo
|
||||
ApplicationCommands.Save,
|
||||
(s, e) =>
|
||||
{
|
||||
if (_CurrentModalPopUp == null)
|
||||
if (_CurrentModalPopup == null)
|
||||
{
|
||||
_CurrentDetailView.SaveData();
|
||||
}
|
||||
@@ -643,13 +657,13 @@ namespace BeWo
|
||||
},
|
||||
(s, e) =>
|
||||
{
|
||||
if (_CurrentModalPopUp == null)
|
||||
if (_CurrentModalPopup == null)
|
||||
{
|
||||
e.CanExecute = _CurrentDetailView != null ? _CurrentDetailView.IsDirty : false;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.CanExecute = _CurrentDetailView != null && (_CurrentModalPopUp is BeWoView && ((BeWoView) _CurrentModalPopUp).IsDirty);
|
||||
e.CanExecute = _CurrentDetailView != null && (_CurrentModalPopup is BeWoView && ((BeWoView) _CurrentModalPopup).IsDirty);
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -664,7 +678,7 @@ namespace BeWo
|
||||
ApplicationCommands.Close,
|
||||
(s, e) =>
|
||||
{
|
||||
if (_CurrentModalPopUp == null && DoSaveCheck())
|
||||
if (_CurrentModalPopup == null && DoSaveCheck())
|
||||
{
|
||||
if (_CurrentDetailView.ParentView != null)
|
||||
_CurrentDetailView.ParentView.ChildViewClosed();
|
||||
@@ -757,14 +771,19 @@ namespace BeWo
|
||||
|
||||
internal void ShowModalBackground()
|
||||
{
|
||||
ModalPopUpBackGround = new Grid();
|
||||
ModalPopUpBackGround.IsHitTestVisible = true;
|
||||
ModalPopUpBackGround.Background = Brushes.White;
|
||||
ModalPopUpBackGround.Opacity = .5;
|
||||
Grid.SetColumnSpan(ModalPopUpBackGround, 3);
|
||||
Grid.SetRowSpan(ModalPopUpBackGround, 3);
|
||||
grid_main.Children.Add(ModalPopUpBackGround);
|
||||
Panel.SetZIndex(ModalPopUpBackGround, int.MaxValue - 1);
|
||||
ModalPopupBackGround = new Grid
|
||||
{
|
||||
IsHitTestVisible = true,
|
||||
Background = Brushes.White,
|
||||
Opacity = .5
|
||||
};
|
||||
|
||||
Grid.SetColumnSpan(ModalPopupBackGround, 3);
|
||||
Grid.SetRowSpan(ModalPopupBackGround, 3);
|
||||
|
||||
grid_main.Children.Add(ModalPopupBackGround);
|
||||
|
||||
Panel.SetZIndex(ModalPopupBackGround, int.MaxValue);
|
||||
}
|
||||
|
||||
private void logoutanimation_Completed(object sender, EventArgs e)
|
||||
@@ -1038,17 +1057,17 @@ namespace BeWo
|
||||
|
||||
private void maximizeAnimation_Completed(object sender, EventArgs e)
|
||||
{
|
||||
_IsMaximized = true;
|
||||
IsMaximized = true;
|
||||
}
|
||||
|
||||
private void minimizeAnimation_Completed(object sender, EventArgs e)
|
||||
{
|
||||
_IsMaximized = false;
|
||||
IsMaximized = false;
|
||||
}
|
||||
|
||||
private void toolbarRoot_MouseEnter(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (_IsMaximized)
|
||||
if (IsMaximized)
|
||||
{
|
||||
AnimateToolbarIn(500);
|
||||
}
|
||||
@@ -1056,7 +1075,7 @@ namespace BeWo
|
||||
|
||||
private void toolbarRoot_MouseLeave(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (_IsMaximized)
|
||||
if (IsMaximized)
|
||||
{
|
||||
AnimateToolbarOut(200);
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void ConstructObject()
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
IsEmployeeBrushVisible = true;
|
||||
|
||||
if (BeWoApp.LoggedOnUser.HasRight(UserRightType.KalenderMitarbeitertermineAnsehen))
|
||||
@@ -471,7 +471,7 @@ namespace BeWo.Scheduler.View
|
||||
break;
|
||||
}
|
||||
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
|
||||
//private void Synchronize()
|
||||
@@ -497,18 +497,18 @@ namespace BeWo.Scheduler.View
|
||||
#region InitViewModel
|
||||
private void InitViewModel()
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
ViewModel = new NewSchedulerViewModel();
|
||||
ViewModel.ViewModelChanged += ViewModel_ViewModelChanged;
|
||||
ViewModel.ViewModelChanged += UpdateRequestStringEvent;
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
|
||||
private void ViewModel_ViewModelChanged(object sender, EventArgs<ISchedulerViewModel> e)
|
||||
{
|
||||
this.Dispatch(() =>
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
|
||||
UpdateDataSource(e.Data);
|
||||
|
||||
@@ -522,13 +522,13 @@ namespace BeWo.Scheduler.View
|
||||
_IstErsterAufruf = false;
|
||||
}
|
||||
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
});
|
||||
}
|
||||
|
||||
private void InitScheduler()
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
Scheduler.Start = DateTime.Now;
|
||||
_TimelineDayCount = 0;
|
||||
Scheduler.DayView.NavigationButtonVisibility = NavigationButtonVisibility.Always;
|
||||
@@ -549,7 +549,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
Scheduler.TimelineView.NavigationButtonVisibility = NavigationButtonVisibility.Always;
|
||||
Scheduler.TimelineView.ResourcesPerPage = 0;
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
|
||||
private void InitRights()
|
||||
@@ -565,7 +565,7 @@ namespace BeWo.Scheduler.View
|
||||
{
|
||||
try
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
IgnoreChangeEvents = true;
|
||||
|
||||
Scheduler.Storage.BeginUpdate();
|
||||
@@ -619,13 +619,13 @@ namespace BeWo.Scheduler.View
|
||||
{
|
||||
Scheduler.Storage.EndUpdate();
|
||||
IgnoreChangeEvents = false;
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateSchedulerSettings()
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
var settings = ViewModel.GetActiveSettings();
|
||||
|
||||
Scheduler.Start = settings.StartDate;
|
||||
@@ -675,15 +675,15 @@ namespace BeWo.Scheduler.View
|
||||
MessageBox.Show("Ein Fehler bei der Darstellung ist aufgetreten.", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
|
||||
private void UpdateCustomFieldMappings(ISchedulerViewModel vm)
|
||||
{
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
Scheduler.Storage.AppointmentStorage.CustomFieldMappings.Clear();
|
||||
vm.AddCustomFieldsMapping(Scheduler.Storage);
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -937,7 +937,7 @@ namespace BeWo.Scheduler.View
|
||||
return;
|
||||
}
|
||||
|
||||
WriteToDebugLog("Appointment chaning...");
|
||||
//WriteToDebugLog("Appointment changing...");
|
||||
|
||||
var appList = e.Objects.Cast<Appointment>().ToList();
|
||||
|
||||
@@ -953,7 +953,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void NewSchedulerStorage_AppointmentDeleting(object sender, PersistentObjectCancelEventArgs e)
|
||||
{
|
||||
WriteToDebugLog("Appointment deleting");
|
||||
//WriteToDebugLog("Appointment deleting");
|
||||
|
||||
if (e.Object is Appointment app && app.Type != AppointmentType.ChangedOccurrence)
|
||||
{
|
||||
@@ -982,7 +982,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void NewSchedulerStorage_AppointmentsInserted(object sender, PersistentObjectsEventArgs e)
|
||||
{
|
||||
WriteToDebugLog("Appointments inserted");
|
||||
//WriteToDebugLog("Appointments inserted");
|
||||
|
||||
var appList = e.Objects.Cast<Appointment>().ToList();
|
||||
|
||||
@@ -1011,7 +1011,7 @@ namespace BeWo.Scheduler.View
|
||||
var form = ViewModel.GetEditAppointmentForm(control, e.Appointment);
|
||||
if (form == null)
|
||||
{
|
||||
WriteToDebugLog("Appointment edit form is null!");
|
||||
//WriteToDebugLog("Appointment edit form is null!");
|
||||
|
||||
if(_IsNew)
|
||||
{
|
||||
@@ -1070,7 +1070,7 @@ namespace BeWo.Scheduler.View
|
||||
private bool _IsNew;
|
||||
private void Scheduler_InitNewAppointment(object sender, AppointmentEventArgs e)
|
||||
{
|
||||
WriteToDebugLog("Initiating new appointment");
|
||||
//WriteToDebugLog("Initiating new appointment");
|
||||
|
||||
_IsNew = true;
|
||||
ViewModel.InitNewAppointment(e.Appointment);
|
||||
@@ -1145,7 +1145,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void AllowAppointmentCreateEvent(object sender, AppointmentOperationEventArgs e)
|
||||
{
|
||||
WriteToDebugLog("Allowing appointment create event");
|
||||
//WriteToDebugLog("Allowing appointment create event");
|
||||
|
||||
var darfAnlegen = BeWoApp.LoggedOnUser.HasRight(UserRightType.KalenderKliententermineAnlegen) || BeWoApp.LoggedOnUser.HasRight(UserRightType.KalenderMitarbeitertermineAnlegen);
|
||||
|
||||
@@ -1505,20 +1505,20 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void UpdateVM(bool shouldForceUpdate = false)
|
||||
{
|
||||
WriteToDebugLog(new StackTrace().GetFrame(1).GetMethod().Name);
|
||||
//WriteToDebugLog(new StackTrace().GetFrame(1).GetMethod().Name);
|
||||
|
||||
if (_UpdatingViewModel)
|
||||
{
|
||||
WriteToDebugLog("Already updating. Aborting second try.");
|
||||
//WriteToDebugLog("Already updating. Aborting second try.");
|
||||
return;
|
||||
}
|
||||
|
||||
_UpdatingViewModel = true;
|
||||
WriteToDebugLog("Beginning");
|
||||
//WriteToDebugLog("Beginning");
|
||||
|
||||
if (ViewModel == null)
|
||||
{
|
||||
WriteToDebugLog("Aborting");
|
||||
//WriteToDebugLog("Aborting");
|
||||
_UpdatingViewModel = false;
|
||||
return;
|
||||
}
|
||||
@@ -1542,7 +1542,7 @@ namespace BeWo.Scheduler.View
|
||||
if(!shouldForceUpdate && newFetchingInterval.Equals(_LastFetchedInterval))
|
||||
{
|
||||
_UpdatingViewModel = false;
|
||||
WriteToDebugLog("Aborting. Redundant call.");
|
||||
//WriteToDebugLog("Aborting. Redundant call.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1612,7 +1612,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
_UpdatingViewModel = false;
|
||||
|
||||
WriteToDebugLog("Done");
|
||||
//WriteToDebugLog("Done");
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1877,7 +1877,7 @@ namespace BeWo.Scheduler.View
|
||||
|
||||
private void DateNavigator_OnSelectedDatesChanged(object sender, EventArgs e)
|
||||
{
|
||||
WriteToDebugLog("Selected dates changed");
|
||||
//WriteToDebugLog("Selected dates changed");
|
||||
|
||||
_CurrentViewType = Scheduler.ActiveViewType;
|
||||
|
||||
|
||||
@@ -1038,8 +1038,8 @@ namespace BeWo.SchulbegleitenderDienst
|
||||
{
|
||||
var updatedCustomer = new CompactCustomerDC();
|
||||
|
||||
ServiceFacade.DoCustomerServiceSync(
|
||||
s => updatedCustomer = s.GetCompactCustomerDC(selectedCustomer.CustomerOid));
|
||||
ServiceFacade.DoCustomerServiceSync(s => updatedCustomer = s.GetCompactCustomerDC(selectedCustomer.CustomerOid));
|
||||
|
||||
selectedCustomer = new CompactCustomerDC();
|
||||
selectedCustomer = updatedCustomer;
|
||||
// UpdateControls();
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
delegate
|
||||
{
|
||||
this._EditView.ViewModel = this.ViewModel.NewVM;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -141,7 +141,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
{
|
||||
var vm = BeWoWpfUtils.GetTag<InvoiceBaseVM>(sender);
|
||||
this._EditView.ViewModel = vm;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView);
|
||||
}
|
||||
|
||||
private void popupedit_CostBeaerer_PopUpClick(object sender, RoutedEventArgs ev)
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
delegate
|
||||
{
|
||||
_EditView.ViewModel = ViewModel.NewVM;
|
||||
MainControl.ShowControlAsModalPopUp(_EditView);
|
||||
MainControl.ShowControlAsModalPopup(_EditView);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
private void btnEdit_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
_EditView.ViewModel = BeWoWpfUtils.GetTag<InvoiceBaseVM>(sender);
|
||||
MainControl.ShowControlAsModalPopUp(_EditView);
|
||||
MainControl.ShowControlAsModalPopup(_EditView);
|
||||
}
|
||||
|
||||
private void button_add_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -190,12 +190,12 @@ namespace BeWo.View.Detail.Accounting
|
||||
{
|
||||
case InvoiceType.CustomerEquity:
|
||||
this._EquityInvoiceItemEditView.ViewModel = vm;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EquityInvoiceItemEditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EquityInvoiceItemEditView);
|
||||
break;
|
||||
|
||||
case InvoiceType.General:
|
||||
this._GeneralInvoiceItemEditView.ViewModel = vm;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._GeneralInvoiceItemEditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._GeneralInvoiceItemEditView);
|
||||
break;
|
||||
|
||||
case InvoiceType.Settlement:
|
||||
@@ -207,12 +207,12 @@ namespace BeWo.View.Detail.Accounting
|
||||
if (cb.InvoiceItems == null || cb.InvoiceItems.Count == 0 || cb.DifferentHourlyRateCount > 0)
|
||||
{
|
||||
this._SettlementInvoiceItemEditView.ViewModel = new SettlementVM(cb);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._SettlementInvoiceItemEditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._SettlementInvoiceItemEditView);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._SettlementInvoiceItemEditView2.ViewModel = new SettlementVM(cb);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._SettlementInvoiceItemEditView2);
|
||||
this.MainControl.ShowControlAsModalPopup(this._SettlementInvoiceItemEditView2);
|
||||
}
|
||||
}));
|
||||
break;
|
||||
@@ -224,7 +224,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
delegate
|
||||
{
|
||||
this._ServiceInvoiceItemEditView.ViewModel = new ServiceInvoiceVM(cb);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._ServiceInvoiceItemEditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._ServiceInvoiceItemEditView);
|
||||
}));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
private void btnEdit_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this._EditView.ViewModel = BeWoWpfUtils.GetTag<ServiceInvoiceVM>(sender);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView);
|
||||
}
|
||||
|
||||
private void button_createInvoice_Click(object sender, RoutedEventArgs e)
|
||||
@@ -239,7 +239,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
r => this.Dispatch(() =>
|
||||
{
|
||||
this._CreatePopUpView.ServiceInvoiceDcs = r;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._CreatePopUpView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._CreatePopUpView);
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -117,12 +117,12 @@ namespace BeWo.View.Detail.Accounting
|
||||
if (ShowOldEditView(vm))
|
||||
{
|
||||
this._EditView.ViewModel = vm;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._EditView2.ViewModel = vm;
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView2);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -141,12 +141,12 @@ namespace BeWo.View.Detail.Accounting
|
||||
if (ShowOldEditView(vm))
|
||||
{
|
||||
this._EditView.ViewModel = new SettlementVM(dc);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._EditView2.ViewModel = new SettlementVM(dc);
|
||||
this.MainControl.ShowControlAsModalPopUp(this._EditView2);
|
||||
this.MainControl.ShowControlAsModalPopup(this._EditView2);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1342,7 +1342,7 @@ namespace BeWo.View.Detail
|
||||
};
|
||||
|
||||
_AdditionalServiceGroupOfPeoplePopUp.GroupOfPeopleSavedOrUpdated += AdditionalServiceGroupOfPeoplePopUp_AdditionalServiceGroupOfPeopleSavedOrUpdated;
|
||||
BeWoApp.MainControl.ShowControlAsModalPopUp(_AdditionalServiceGroupOfPeoplePopUp);
|
||||
BeWoApp.MainControl.ShowControlAsModalPopup(_AdditionalServiceGroupOfPeoplePopUp);
|
||||
_AdditionalServiceGroupOfPeoplePopUp.Focus();
|
||||
})
|
||||
);
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace BeWo.View.Detail
|
||||
var list = this._ViewModel.ServiceRecords.Where(i => i.Date.Value.Day.Equals(day)).ToList();
|
||||
|
||||
ServiceRecordPopUp popUp = new ServiceRecordPopUp(list);
|
||||
BeWoApp.MainControl.ShowControlAsModalPopUp(popUp);
|
||||
BeWoApp.MainControl.ShowControlAsModalPopup(popUp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -731,7 +731,7 @@ namespace BeWo.View.Detail
|
||||
(c.View as TableView).FocusedColumn = c.Columns[1];
|
||||
|
||||
// var t = c.View.GetCellElementByRowHandleAndColumn(GridControl.AutoFilterRowHandle, c.Columns[1]);
|
||||
MainControl.ShowControlAsModalPopUp(gb, HorizontalAlignment.Center, VerticalAlignment.Top);
|
||||
MainControl.ShowControlAsModalPopup(gb, HorizontalAlignment.Center, VerticalAlignment.Top);
|
||||
}
|
||||
|
||||
private void button_addDisability_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<localView:BeWoView x:Class="BeWo.View.Detail.EnvironmentRoleView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:BeWo.Core" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" xmlns:localView="clr-namespace:BeWo.View" xmlns:localDetailView="clr-namespace:BeWo.View.Detail" xmlns:val="clr-namespace:BeWo.Validation" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
|
||||
|
||||
|
||||
<!--<ScrollViewer HorizontalAlignment="Left" Height="Auto" Margin="10,10,0,0" VerticalAlignment="Top" Width="Auto" >-->
|
||||
<ScrollViewer HorizontalAlignment="Left" Height="Auto" Margin="10,10,0,0" VerticalAlignment="Top" Width="Auto" >
|
||||
<Grid Width="Auto" x:Name="rootGrid" >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -10,12 +8,8 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Border x:Name="borderTemp" Visibility="Collapsed"/>
|
||||
|
||||
<Border x:Name="BorderTemp" Visibility="Collapsed"/>
|
||||
</Grid>
|
||||
|
||||
<!--</ScrollViewer>-->
|
||||
|
||||
</ScrollViewer>
|
||||
</localView:BeWoView>
|
||||
@@ -1,145 +1,125 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
using BeWo.Core;
|
||||
using BeWo.Core.Service;
|
||||
using BeWo.ServiceProxy;
|
||||
using BeWo.ViewModel;
|
||||
using System.Windows;
|
||||
using BeWo.ViewModel.ListViewModel;
|
||||
|
||||
using BS.Shared;
|
||||
using BS.Shared.Extensions;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace BeWo.View.Detail
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EmploymentTypeView.xaml
|
||||
/// </summary>
|
||||
public partial class EnvironmentRoleView : BeWoView
|
||||
public partial class EnvironmentRoleView
|
||||
{
|
||||
private ValueListView personView = null;
|
||||
private ValueListView organisationView = null;
|
||||
private ValueListView roleInOrganisation = null;
|
||||
private ValueListView roleInFamily = null;
|
||||
|
||||
//private ValueListView nationality = null;
|
||||
//private ValueListView aufenthaltsstatus = null;
|
||||
//private ValueListView migrationshintergrund = null;
|
||||
private readonly ValueListView _PersonView;
|
||||
private readonly ValueListView _OrganisationView;
|
||||
private readonly ValueListView _RoleInOrganisation;
|
||||
private readonly ValueListView _RoleInFamily;
|
||||
|
||||
public EnvironmentRoleView(ValueListEntryListVM pViewModelPerson, ValueListEntryListVM pViewModelOrganisation, ValueListEntryListVM pViewModelRoleInOrganisation, ValueListEntryListVM pViewModelRoleInFamily)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
roleInFamily = new ValueListView(pViewModelRoleInFamily);
|
||||
personView = new ValueListView(pViewModelPerson);
|
||||
organisationView = new ValueListView(pViewModelOrganisation);
|
||||
roleInOrganisation = new ValueListView(pViewModelRoleInOrganisation);
|
||||
|
||||
|
||||
|
||||
roleInFamily.SetValue(Grid.RowProperty, 0);
|
||||
personView.SetValue(Grid.RowProperty, 1);
|
||||
organisationView.SetValue(Grid.RowProperty, 2);
|
||||
roleInOrganisation.SetValue(Grid.RowProperty, 3);
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
_RoleInFamily = new ValueListView(pViewModelRoleInFamily);
|
||||
_PersonView = new ValueListView(pViewModelPerson);
|
||||
_OrganisationView = new ValueListView(pViewModelOrganisation);
|
||||
_RoleInOrganisation = new ValueListView(pViewModelRoleInOrganisation);
|
||||
|
||||
personView.Margin = new Thickness(0, 10, 0, 0);
|
||||
organisationView.Margin = new Thickness(0, 10, 0, 0);
|
||||
roleInOrganisation.Margin = new Thickness(0, 10, 0, 0);
|
||||
|
||||
|
||||
rootGrid.Children.Add(roleInFamily);
|
||||
rootGrid.Children.Add(personView);
|
||||
rootGrid.Children.Add(organisationView);
|
||||
rootGrid.Children.Add(roleInOrganisation);
|
||||
_RoleInFamily.SetValue(Grid.RowProperty, 0);
|
||||
_PersonView.SetValue(Grid.RowProperty, 1);
|
||||
_OrganisationView.SetValue(Grid.RowProperty, 2);
|
||||
_RoleInOrganisation.SetValue(Grid.RowProperty, 3);
|
||||
|
||||
_PersonView.Margin = new Thickness(0, 10, 0, 0);
|
||||
_OrganisationView.Margin = new Thickness(0, 10, 0, 0);
|
||||
_RoleInOrganisation.Margin = new Thickness(0, 10, 0, 0);
|
||||
|
||||
rootGrid.Children.Add(_RoleInFamily);
|
||||
rootGrid.Children.Add(_PersonView);
|
||||
rootGrid.Children.Add(_OrganisationView);
|
||||
rootGrid.Children.Add(_RoleInOrganisation);
|
||||
}
|
||||
|
||||
//Für Funktionen
|
||||
public EnvironmentRoleView(ValueListEntryListVM personFunktionList, ValueListEntryListVM orgFunktionList)
|
||||
{
|
||||
this.InitializeComponent();
|
||||
InitializeComponent();
|
||||
|
||||
personView = new ValueListView(personFunktionList);
|
||||
organisationView = new ValueListView(orgFunktionList);
|
||||
_PersonView = new ValueListView(personFunktionList);
|
||||
_OrganisationView = new ValueListView(orgFunktionList);
|
||||
|
||||
|
||||
personView.SetValue(Grid.RowProperty, 0);
|
||||
organisationView.SetValue(Grid.RowProperty, 1);
|
||||
_PersonView.SetValue(Grid.RowProperty, 0);
|
||||
_OrganisationView.SetValue(Grid.RowProperty, 1);
|
||||
|
||||
organisationView.Margin = new Thickness(0, 10, 0, 0);
|
||||
_OrganisationView.Margin = new Thickness(0, 10, 0, 0);
|
||||
|
||||
rootGrid.Children.Add(personView);
|
||||
rootGrid.Children.Add(organisationView);
|
||||
rootGrid.Children.Add(_PersonView);
|
||||
rootGrid.Children.Add(_OrganisationView);
|
||||
}
|
||||
|
||||
public override bool IsDirty
|
||||
{
|
||||
get
|
||||
{
|
||||
bool dirty = false;
|
||||
var dirty = false;
|
||||
|
||||
if (personView != null)
|
||||
dirty = this.personView.IsDirty;
|
||||
if (_PersonView != null)
|
||||
{
|
||||
dirty = _PersonView.IsDirty;
|
||||
}
|
||||
|
||||
if (!dirty && organisationView != null)
|
||||
dirty = this.organisationView.IsDirty;
|
||||
if (!dirty && _OrganisationView != null)
|
||||
{
|
||||
dirty = _OrganisationView.IsDirty;
|
||||
}
|
||||
|
||||
if (!dirty && roleInOrganisation != null)
|
||||
dirty = this.roleInOrganisation.IsDirty;
|
||||
if (!dirty && _RoleInOrganisation != null)
|
||||
{
|
||||
dirty = _RoleInOrganisation.IsDirty;
|
||||
}
|
||||
|
||||
if (!dirty && roleInFamily != null)
|
||||
dirty = roleInFamily.IsDirty;
|
||||
|
||||
if (!dirty && _RoleInFamily != null)
|
||||
{
|
||||
dirty = _RoleInFamily.IsDirty;
|
||||
}
|
||||
|
||||
return dirty;
|
||||
}
|
||||
}
|
||||
|
||||
public override string Title
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public override string Title => null;
|
||||
|
||||
protected override void Save()
|
||||
{
|
||||
bool valid = true;
|
||||
if (personView != null){
|
||||
if (this.personView.IsDirty)
|
||||
valid = this.personView.SaveData();
|
||||
var valid = true;
|
||||
|
||||
if (_PersonView != null){
|
||||
if (_PersonView.IsDirty)
|
||||
{
|
||||
valid = _PersonView.SaveData();
|
||||
}
|
||||
}
|
||||
|
||||
if (organisationView != null)
|
||||
if(_OrganisationView != null)
|
||||
{
|
||||
if (valid && this.organisationView.IsDirty)
|
||||
this.organisationView.SaveData();
|
||||
if(valid && _OrganisationView.IsDirty)
|
||||
{
|
||||
_OrganisationView.SaveData();
|
||||
}
|
||||
}
|
||||
|
||||
if (roleInOrganisation != null)
|
||||
if(_RoleInOrganisation != null)
|
||||
{
|
||||
if (valid && roleInOrganisation.IsDirty)
|
||||
this.roleInOrganisation.SaveData();
|
||||
if(valid && _RoleInOrganisation.IsDirty)
|
||||
{
|
||||
_RoleInOrganisation.SaveData();
|
||||
}
|
||||
}
|
||||
|
||||
if (roleInFamily != null)
|
||||
if(_RoleInFamily != null)
|
||||
{
|
||||
if (valid && roleInFamily.IsDirty)
|
||||
roleInFamily.SaveData();
|
||||
if(valid && _RoleInFamily.IsDirty)
|
||||
{
|
||||
_RoleInFamily.SaveData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal override DependencyObject ValidationOnSaveRootElement
|
||||
{
|
||||
get { return this.borderTemp; }
|
||||
}
|
||||
|
||||
internal override DependencyObject ValidationOnSaveRootElement => BorderTemp;
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace BeWo.View.Detail
|
||||
private void CloseEditPopUp()
|
||||
{
|
||||
this.pu_edit.IsOpen = false;
|
||||
this.MainControl.ChangePopUpOpacityMode(false);
|
||||
this.MainControl.ChangePopupOpacityMode(false);
|
||||
}
|
||||
|
||||
private void ReloadViewModel()
|
||||
@@ -117,7 +117,7 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
this.ViewModel.EditVM = BeWoWpfUtils.GetTag<InvoiceVM>(sender);
|
||||
this.pu_edit.IsOpen = true;
|
||||
this.MainControl.ChangePopUpOpacityMode(true);
|
||||
this.MainControl.ChangePopupOpacityMode(true);
|
||||
}
|
||||
|
||||
private void button_add_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
Owner = parentView == null ? BeWoApp.CurrentBeWo.MainWindow : GetWindow(parentView);
|
||||
|
||||
if (BeWoApp.MainControl.ModalPopUpBackGround == null)
|
||||
if (BeWoApp.MainControl.ModalPopupBackGround == null)
|
||||
BeWoApp.MainControl.ShowModalBackground();
|
||||
|
||||
DataContext = this;
|
||||
|
||||
@@ -1,37 +1,39 @@
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
using BeWo.Controls;
|
||||
using BeWo.Core;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using Style = System.Windows.Style;
|
||||
|
||||
namespace BeWo.View.Detail
|
||||
{
|
||||
public partial class ModalViewWindow
|
||||
{
|
||||
private bool savedOrUpdated;
|
||||
private bool _SavedOrUpdated;
|
||||
|
||||
private bool allowSaveIfParentDirty;
|
||||
private readonly bool _AllowSaveIfParentDirty;
|
||||
|
||||
public BeWoView DetailView { get; set; }
|
||||
public BeWoView ParentView { get; set; }
|
||||
public Grid RootGrid { get { return rootGrid; } }
|
||||
public Grid RootGrid => rootGrid;
|
||||
|
||||
public ModalViewWindow(BeWoView detailView, BeWoView parentView, bool allowSaveIfParentDirty)
|
||||
{
|
||||
InitializeComponent();
|
||||
DetailView = detailView;
|
||||
ParentView = parentView;
|
||||
this.allowSaveIfParentDirty = allowSaveIfParentDirty;
|
||||
_AllowSaveIfParentDirty = allowSaveIfParentDirty;
|
||||
|
||||
rootGrid.Children.Add(DetailView);
|
||||
InitCommandBindings();
|
||||
|
||||
if (BeWoApp.MainControl.ModalPopUpBackGround == null)
|
||||
if (BeWoApp.MainControl.ModalPopupBackGround == null)
|
||||
{
|
||||
BeWoApp.MainControl.ShowModalBackground();
|
||||
}
|
||||
|
||||
MinWidth = detailView.MinWidth + 16;
|
||||
MinHeight = 555;
|
||||
@@ -42,24 +44,31 @@ namespace BeWo.View.Detail
|
||||
|
||||
Closing += delegate
|
||||
{
|
||||
if(BeWoApp.MainControl.OpenedModalViewWindows.First().Equals(this))
|
||||
if(BeWoApp.MainControl.OpenedModalViewWindows.Count > 0 && BeWoApp.MainControl.OpenedModalViewWindows.First().Equals(this))
|
||||
{
|
||||
BeWoApp.MainControl.CloseCurrentPopUp();
|
||||
}
|
||||
};
|
||||
|
||||
((GroupBox) (((ShadowChrome) ((Grid) detailView.Content).Children[0]).Child)).Style = BeWoApp.CurrentBeWo.Resources["MainContentGroupBoxWithoutMaximizeBtnStyle"] as Style;
|
||||
Closed += delegate
|
||||
{
|
||||
BeWoUtils.RemoveModalViewWindow();
|
||||
};
|
||||
|
||||
((GroupBox) ((ShadowChrome) ((Grid) detailView.Content).Children[0]).Child).Style = BeWoApp.CurrentBeWo.Resources["MainContentGroupBoxWithoutMaximizeBtnStyle"] as Style;
|
||||
}
|
||||
|
||||
private void OnLoad(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (BeWoApp.MainControl.OpenedModalViewWindows.Count > 1)
|
||||
{
|
||||
Left = (BeWoApp.MainControl.ActualWidth/2) - (ActualWidth/2) + 10*(BeWoApp.MainControl.OpenedModalViewWindows.Count - 1);
|
||||
Top = (BeWoApp.MainControl.ActualHeight/2) - (ActualHeight/2) + 50*(BeWoApp.MainControl.OpenedModalViewWindows.Count - 1);
|
||||
Left = BeWoApp.MainControl.ActualWidth/2 - ActualWidth/2 + 10*(BeWoApp.MainControl.OpenedModalViewWindows.Count - 1);
|
||||
Top = BeWoApp.MainControl.ActualHeight/2 - ActualHeight/2 + 50*(BeWoApp.MainControl.OpenedModalViewWindows.Count - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Left = (BeWoApp.MainControl.ActualWidth / 2) - (ActualWidth / 2);
|
||||
Top = (BeWoApp.MainControl.ActualHeight / 2) - (ActualHeight / 2);
|
||||
Left = BeWoApp.MainControl.ActualWidth / 2 - ActualWidth / 2;
|
||||
Top = BeWoApp.MainControl.ActualHeight / 2 - ActualHeight / 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,9 +76,9 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
base.OnClosing(e);
|
||||
|
||||
if (!e.Cancel && Owner != null)
|
||||
if (!e.Cancel)
|
||||
{
|
||||
Owner.Focus();
|
||||
Owner?.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,18 +90,22 @@ namespace BeWo.View.Detail
|
||||
(s, e) =>
|
||||
{
|
||||
if (ParentView != null)
|
||||
if (!allowSaveIfParentDirty && ParentView.IsDirty)
|
||||
{
|
||||
if (!_AllowSaveIfParentDirty && ParentView.IsDirty)
|
||||
{
|
||||
MessageBox.Show("Bevor Sie an diesem Objekt eine Änderung durchführen können, müssen Sie das vorherige Objekt erst speichern!", "Speichern", MessageBoxButton.OK, MessageBoxImage.Exclamation);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!DetailView.SaveData())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
savedOrUpdated = true;
|
||||
_SavedOrUpdated = true;
|
||||
|
||||
DialogResult = savedOrUpdated;
|
||||
//DialogResult = _SavedOrUpdated;
|
||||
|
||||
Close();
|
||||
},
|
||||
@@ -110,17 +123,21 @@ namespace BeWo.View.Detail
|
||||
(s, e) =>
|
||||
{
|
||||
if(ParentView != null)
|
||||
{
|
||||
if (ParentView.IsDirty)
|
||||
{
|
||||
DialogResult = false;
|
||||
//DialogResult = false;
|
||||
Close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!DoSaveCheck())
|
||||
if (!DoSaveCheck())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
DialogResult = savedOrUpdated;
|
||||
//DialogResult = _SavedOrUpdated;
|
||||
|
||||
Close();
|
||||
|
||||
@@ -134,16 +151,16 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void ModalViewWindow_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (WindowState == WindowState.Maximized)
|
||||
{
|
||||
WindowState = WindowState.Normal;
|
||||
return;
|
||||
}
|
||||
//if (WindowState == WindowState.Maximized)
|
||||
//{
|
||||
// WindowState = WindowState.Normal;
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (WindowState == WindowState.Normal)
|
||||
{
|
||||
WindowState = WindowState.Maximized;
|
||||
}
|
||||
//if (WindowState == WindowState.Normal)
|
||||
//{
|
||||
// WindowState = WindowState.Maximized;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -791,10 +791,6 @@
|
||||
|
||||
</Grid>
|
||||
|
||||
<!-- ####################################Converter={StaticResource Int2DecimalConverter},##########################################################################################################-->
|
||||
|
||||
|
||||
<!-- ########################## Grid mit nur Jahr / Monat und fester Dauer SharedSizeGroup="Label1"#####################################-->
|
||||
<Grid Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" x:Name="GridMitJahrMonat" Visibility="Collapsed">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="Label1" />
|
||||
@@ -805,390 +801,372 @@
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Grid.Row="0" Content="Jahr" />
|
||||
|
||||
|
||||
<dxe:ComboBoxEdit Grid.Column="1" Grid.Row="0" Margin="3,0,3,3" x:Name="OnlyJahrData"
|
||||
EditValue="{Binding Path=PrototypeVM.OnlyYear, UpdateSourceTrigger=PropertyChanged}"
|
||||
ItemsSource="{Binding Path=PrototypeVM.JahreBinden}"
|
||||
IsTextEditable="False" Height="23"/>
|
||||
|
||||
|
||||
<dxe:ComboBoxEdit Grid.Column="1" Grid.Row="0" Margin="3,0,3,3" x:Name="OnlyJahrData"
|
||||
EditValue="{Binding Path=PrototypeVM.OnlyYear, UpdateSourceTrigger=PropertyChanged}"
|
||||
ItemsSource="{Binding Path=PrototypeVM.JahreBinden}"
|
||||
IsTextEditable="False" Height="23"/>
|
||||
<Label Grid.Column="0" Grid.Row="1" Content="Monat" x:Name="EndDateLabel3"/>
|
||||
<dxe:ComboBoxEdit Grid.Column="1" Grid.Row="1" Margin="3,0,3,3" x:Name="OnlyMonatData"
|
||||
EditValue="{Binding Path=PrototypeVM.OnlyMonth, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsTextEditable="False" Height="23"
|
||||
ItemsSource="{Binding Path=PrototypeVM.MonateBinden}" />
|
||||
|
||||
<Label Content="Stunden" Grid.Column="0" Grid.Row="2"/>
|
||||
<dxe:SpinEdit MinValue="0" Increment="5" IsFloatValue="True" AllowNullInput="False" x:Name="numeric_duration3" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
||||
EditValue="{Binding Path=PrototypeVM.DurationMonthYearGes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Grid.Column="1" Grid.Row="2"
|
||||
Height="23" Margin="3,0,3,3"/>
|
||||
|
||||
</Grid>
|
||||
<!-- ############################################################################ConverterCulture='de-DE' ,##MaskType="Numeric" Mask="N2" MaskUseAsDisplayFormat="True"#############################################################-->
|
||||
|
||||
<!-- ########################## Gefahrene Kilometer ############### -->
|
||||
|
||||
|
||||
<Grid Grid.Column="0" Grid.Row="9" ColumnSpan="2" x:Name="DauerGrid" Visibility="Visible">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<dxe:ComboBoxEdit Grid.Column="1" Grid.Row="1" Margin="3,0,3,3" x:Name="OnlyMonatData"
|
||||
EditValue="{Binding Path=PrototypeVM.OnlyMonth, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsTextEditable="False" Height="23"
|
||||
ItemsSource="{Binding Path=PrototypeVM.MonateBinden}" />
|
||||
<Label Content="Stunden" Grid.Column="0" Grid.Row="2"/>
|
||||
<dxe:SpinEdit MinValue="0" Increment="5" IsFloatValue="True" AllowNullInput="False" x:Name="numeric_duration3" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
||||
EditValue="{Binding Path=PrototypeVM.DurationMonthYearGes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Grid.Column="1" Grid.Row="2"
|
||||
Height="23" Margin="3,0,3,3"/>
|
||||
</Grid>
|
||||
<Grid Grid.Column="0" Grid.Row="9" ColumnSpan="2" x:Name="DauerGrid" Visibility="Visible">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="1" Content="Gefahrene Kilometer" Grid.Column="0" x:Name="lblDistance" HorizontalAlignment="Right" />
|
||||
<dxe:SpinEdit Grid.Row="1" Increment="5" MinValue="0" IsFloatValue="False"
|
||||
AllowNullInput="False" x:Name="numerictb_distance" EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.DistanceInMeter, Converter={StaticResource Int2DecimalConverter}}"
|
||||
Grid.Column="1" Height="23" Margin="3,0,3,3" Width="52" />
|
||||
</Grid>
|
||||
|
||||
<StackPanel Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="3"
|
||||
MaxWidth="320" HorizontalAlignment="Left" Visibility="Collapsed">
|
||||
<Label Content="{Binding Path=PrototypeVM.Date, Converter={StaticResource Date2CalendarWeekStringConverter}}" />
|
||||
<WrapPanel x:Name="wrapPanel_days" />
|
||||
</StackPanel>
|
||||
|
||||
<Grid Margin="0,5,0,0" Grid.Column="0" Grid.Row="10" Grid.ColumnSpan="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<dxe:SpinEdit Grid.Row="1" Increment="5" MinValue="0" IsFloatValue="False"
|
||||
AllowNullInput="False" x:Name="numerictb_distance" EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.DistanceInMeter, Converter={StaticResource Int2DecimalConverter}}"
|
||||
Grid.Column="1" Height="23" Margin="3,0,3,3" Width="52" />
|
||||
</Grid>
|
||||
<StackPanel Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="3"
|
||||
MaxWidth="320" HorizontalAlignment="Left" Visibility="Collapsed">
|
||||
<Label Content="{Binding Path=PrototypeVM.Date, Converter={StaticResource Date2CalendarWeekStringConverter}}" />
|
||||
<WrapPanel x:Name="wrapPanel_days" />
|
||||
</StackPanel>
|
||||
<Grid Margin="0,5,0,0" Grid.Column="0" Grid.Row="10" Grid.ColumnSpan="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Bottom" Content="Dokumentation" x:Name="DokumentationLabel" />
|
||||
<!--<DockPanel Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="1" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<Button Grid.Row="1" Grid.Column="2" Margin="3" x:Name="TextbausteineButton" Content="Textbausteine" Click="ButtonBase_OnClick" />-->
|
||||
</Grid>
|
||||
|
||||
<!--<DockPanel Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<Button Grid.Row="1" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<Button Grid.Row="1" Grid.Column="2" Margin="3" x:Name="TextbausteineButton" Content="Textbausteine" Click="ButtonBase_OnClick" />-->
|
||||
</Grid>
|
||||
<TabControl Grid.Column="0" Grid.Row="11" Grid.ColumnSpan="2" >
|
||||
<TabItem Header="Notice1" x:Name="TabItem1_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TabItem Header="Notice1" x:Name="TabItem1_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton1" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl1" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton1" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl1" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton1" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton1" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<TextBox Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" x:Name="dokumentationsTextBox"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalAlignment="Stretch" FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF1" x:Name="TabitemRtf1Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" x:Name="dokumentationsTextBox"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalAlignment="Stretch" FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF1" x:Name="TabitemRtf1Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF1" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF1" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf1" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF1" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF1" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf1" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<dxre:RichEditControl x:Name="richEditControl1" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl1_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
<dxre:RichEditControl x:Name="richEditControl1" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl1_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice2" x:Name="TabItem2_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice2" x:Name="TabItem2_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton2" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl2" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton2" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton2" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl2" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton2" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox2"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice2, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF2" x:Name="TabitemRtf2Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox2"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice2, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF2" x:Name="TabitemRtf2Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF2" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF2" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf2" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF2" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF2" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf2" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<dxre:RichEditControl x:Name="richEditControl2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl2_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
<dxre:RichEditControl x:Name="richEditControl2" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl2_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice3" x:Name="TabItem3_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice3" x:Name="TabItem3_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton3" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl3" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton3" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton3" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl3" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton3" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox3"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice3, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF3" x:Name="TabitemRtf3Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox3"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice3, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF3" x:Name="TabitemRtf3Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF3" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF3" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf3" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF3" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF3" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf3" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<!--<dxre:RichEditControl Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3"/>-->
|
||||
<dxre:RichEditControl x:Name="richEditControl3" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl3_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice4" x:Name="TabItem4_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<!--<dxre:RichEditControl Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3"/>-->
|
||||
<dxre:RichEditControl x:Name="richEditControl3" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl3_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice4" x:Name="TabItem4_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton4" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl4" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton4" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton4" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl4" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton4" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox4"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice4, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF4" x:Name="TabitemRtf4Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox4"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice4, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF4" x:Name="TabitemRtf4Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF4" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF4" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf4" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF4" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF4" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf4" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<dxre:RichEditControl x:Name="richEditControl4" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl4_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice5" x:Name="TabItem5_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<dxre:RichEditControl x:Name="richEditControl4" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl4_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Notice5" x:Name="TabItem5_Notice" >
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="VollbildDokuButton_OnClick" />
|
||||
<Button Margin="3" Content="A+" HorizontalAlignment="Center" Click="IncreaseFontSizeBtn_Click" />
|
||||
<Button Margin="3" Content="A-" Click="DecreaseFontSizeBtn_Click" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton5" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl5" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton5" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButton5" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControl5" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButton5" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox5"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice5, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF5" IsSelected="True" x:Name="TabitemRtf5Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" x:Name="dokumentationsTextBox5"
|
||||
VerticalAlignment="Stretch"
|
||||
Text="{val:ValidationBinding Path=PrototypeVM.Notice5, UpdateSourceTrigger=PropertyChanged}"
|
||||
FontSize="{Binding Path=DocumentationTextBoxFontSize, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:ServiceRecordView2}}}"
|
||||
AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
|
||||
AutoWordSelection="True" Visibility="Visible" Language="de-DE" SpellCheck.IsEnabled="True" />
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="RTF5" IsSelected="True" x:Name="TabitemRtf5Note" Visibility="Collapsed">
|
||||
<Grid Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left">
|
||||
<Button Margin="3" Content="1" FontFamily="Webdings" Click="RTFVollbildDokuButton_OnClick" />
|
||||
</DockPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF5" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF5" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf5" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
<Button Grid.Row="0" Grid.Column="1" Margin="3" x:Name="TextbausteineBearbeitenButtonRTF5" Content="@" FontFamily="Webdings" Click="EditTextbausteineClick" ToolTip="Textbausteine bearbeiten" />
|
||||
<!--<localViewControls:TextModuleTreeViewControl x:Name="TextModuleTreeViewControlRTF5" Grid.Row="0" Grid.Column="2" Margin="3" TextModuleSelected="TextModuleTreeViewControl_OnTextModuleSelected" />-->
|
||||
<Button Grid.Row="0" Grid.Column="2" Margin="3" x:Name="TextbausteineButtonRtf5" Content="Textbausteine" Click="ButtonBase_OnClick" />
|
||||
|
||||
<dxre:RichEditControl x:Name="richEditControl5" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl5_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<dxre:RichEditControl x:Name="richEditControl5" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" ActiveViewType="Simple" ContentChanged="RichEditControl5_OnContentChanged">
|
||||
<dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:DXRichEditBehaviorOptions Save="Disabled" SaveAs="Disabled"/>
|
||||
</dxre:RichEditControl.BehaviorOptions>
|
||||
<dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
<dxre:DXRichEditDocumentCapabilitiesOptions InlinePictures="Disabled" FloatingObjects="Disabled"/>
|
||||
</dxre:RichEditControl.DocumentCapabilitiesOptions>
|
||||
</dxre:RichEditControl>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" Margin="0,0,0,0">
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Forms.Integration;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
@@ -18,10 +17,8 @@ using System.Windows.Threading;
|
||||
using BeWo.Controls;
|
||||
using BeWo.Core;
|
||||
using BeWo.Core.Service;
|
||||
using BeWo.MultiLanguage;
|
||||
using BeWo.ServiceProxy;
|
||||
using BeWo.Validation;
|
||||
using BeWo.View.Controls;
|
||||
using BeWo.View.Search;
|
||||
using BeWo.ViewModel;
|
||||
using BeWo.ViewModel.ListViewModel;
|
||||
@@ -33,13 +30,14 @@ using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.Extensions;
|
||||
using BS.Shared.Services;
|
||||
using BS.Shared.Translation;
|
||||
|
||||
using DevExpress.Xpf.Bars;
|
||||
using DevExpress.Xpf.Core;
|
||||
using DevExpress.Xpf.Docking;
|
||||
using DevExpress.Xpf.Docking.Platform;
|
||||
using DevExpress.Xpf.Editors;
|
||||
using DevExpress.Xpf.RichEdit;
|
||||
using DevExpress.XtraRichEdit;
|
||||
|
||||
using Microsoft.Win32;
|
||||
|
||||
using VerticalAlignment = System.Windows.VerticalAlignment;
|
||||
@@ -58,7 +56,7 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
}
|
||||
|
||||
private TextBox grosseDokuTextBox;
|
||||
private TextBox _GrosseDokuTextBox;
|
||||
|
||||
public List<CompactWohnheimDC> AlleWohnheime { get; private set; }
|
||||
|
||||
@@ -72,15 +70,15 @@ namespace BeWo.View.Detail
|
||||
|
||||
private ServiceRecordListVM _ViewModel;
|
||||
|
||||
private AssessmentSheetEntryView assessmentSheet;
|
||||
private readonly AssessmentSheetEntryView _AssessmentSheet;
|
||||
|
||||
private ServiceRecordVM lastSelectedVM;
|
||||
private ServiceRecordVM _LastSelectedVM;
|
||||
|
||||
private readonly Dictionary<CompactCustomerDC, List<AssessmentSheetCategoryDC>> customerContainsAssessmentCategories = new Dictionary<CompactCustomerDC, List<AssessmentSheetCategoryDC>>();
|
||||
private readonly Dictionary<CompactCustomerDC, List<AssessmentSheetCategoryDC>> _CustomerContainsAssessmentCategories = new Dictionary<CompactCustomerDC, List<AssessmentSheetCategoryDC>>();
|
||||
|
||||
private bool _IgnoreGroupMultiCheck;
|
||||
|
||||
private int lastPosition;
|
||||
private int _LastPosition;
|
||||
|
||||
public static double DocumentationTextBoxFontSize => BeWoApp.AppSettings.DocumentationFontSize;
|
||||
|
||||
@@ -137,8 +135,7 @@ namespace BeWo.View.Detail
|
||||
chkWithClient.Content = Translator.Translate("Zeiterfassung für ausgewählten Klienten");
|
||||
txtTimeRecording.Text = Translator.Translate("Zeiterfassung");
|
||||
}
|
||||
numerictb_distance.Visibility =
|
||||
BeWoApp.AppSettings.ShowDistanceFields ? Visibility.Visible : Visibility.Collapsed;
|
||||
numerictb_distance.Visibility = BeWoApp.AppSettings.ShowDistanceFields ? Visibility.Visible : Visibility.Collapsed;
|
||||
lblDistance.Visibility = BeWoApp.AppSettings.ShowDistanceFields ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
DistanceGridColumn.Visible = BeWoApp.AppSettings.ShowDistanceFields;
|
||||
@@ -171,14 +168,14 @@ namespace BeWo.View.Detail
|
||||
|
||||
Loaded += ServiceRecordView2_Loaded;
|
||||
|
||||
supportConceptSelectionControl.ControlInitialized += supportConceptSelectionControl_ControlInitialized;
|
||||
supportConceptSelectionControl.ControlInitialized += SupportConceptSelectionControl_ControlInitialized;
|
||||
|
||||
if (BeWoApp.LoggedOnUser.HasRight(UserRightType.AssessmentSheet_View))
|
||||
{
|
||||
assessmentSheet = new AssessmentSheetEntryView();
|
||||
_AssessmentSheet = new AssessmentSheetEntryView();
|
||||
punktebogenRootGrid.Children.Clear();
|
||||
punktebogenRootGrid.Children.Add(assessmentSheet);
|
||||
assessmentSheet.Visibility = Visibility.Collapsed;
|
||||
punktebogenRootGrid.Children.Add(_AssessmentSheet);
|
||||
_AssessmentSheet.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -322,7 +319,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
}
|
||||
|
||||
private void SetRTFFontSizeFromApp()
|
||||
private static void SetRTFFontSizeFromApp()
|
||||
{
|
||||
//var size = BeWoApp.AppSettings.DocumentationFontSize;
|
||||
//if (size > 0)
|
||||
@@ -796,7 +793,7 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
}
|
||||
|
||||
private void supportConceptSelectionControl_ControlInitialized(object sender, EventArgs e)
|
||||
private void SupportConceptSelectionControl_ControlInitialized(object sender, EventArgs e)
|
||||
{
|
||||
InitCustomerSelectedItem();
|
||||
multiSupportConceptControl.SupportConceptList = supportConceptSelectionControl.SupportConceptList;
|
||||
@@ -962,9 +959,9 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
if (serviceRecordVm.Id == vm.Id)
|
||||
{
|
||||
if (ViewModel.VMList.Count > 0 && lastPosition > 0)
|
||||
if (ViewModel.VMList.Count > 0 && _LastPosition > 0)
|
||||
{
|
||||
var a = ViewModel.VMList[lastPosition - 1];
|
||||
var a = ViewModel.VMList[_LastPosition - 1];
|
||||
|
||||
existingVm = a;
|
||||
}
|
||||
@@ -1171,7 +1168,7 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
|
||||
ViewModel.BuildServiceRecordsForSelectedTreeNode(true, RefreshFinished);
|
||||
lastSelectedVM = vm;
|
||||
_LastSelectedVM = vm;
|
||||
|
||||
}));
|
||||
}
|
||||
@@ -1200,7 +1197,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void RefreshFinished()
|
||||
{
|
||||
SetSelectedServiceRecordVM(lastSelectedVM, false);
|
||||
SetSelectedServiceRecordVM(_LastSelectedVM, false);
|
||||
}
|
||||
|
||||
private void ShowHistory(ServiceRecordVM vm)
|
||||
@@ -1822,7 +1819,14 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void ServiceRecordView2_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ReloadViewModel();
|
||||
if(!AutoLockUI.HasJustBeenUnlocked)
|
||||
{
|
||||
ReloadViewModel();
|
||||
}
|
||||
else
|
||||
{
|
||||
AutoLockUI.HasJustBeenUnlocked = false;
|
||||
}
|
||||
|
||||
if (ActualHeight > 0)
|
||||
{
|
||||
@@ -1924,7 +1928,6 @@ namespace BeWo.View.Detail
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private void ViewModel_ServiceRecordListChanged(object sender, EventArgs e)
|
||||
{
|
||||
var list = _ViewModel.ServiceRecordsForSelectedCustomer.OrderByDescending(srVM => srVM.DateAndTime)
|
||||
@@ -1978,8 +1981,8 @@ namespace BeWo.View.Detail
|
||||
srGridControl.ItemsSource = list;
|
||||
//this.serviceRecordScheduler.ServiceRecordList = list;
|
||||
|
||||
if (assessmentSheet != null)
|
||||
assessmentSheet.ServiceRecords = list;
|
||||
if (_AssessmentSheet != null)
|
||||
_AssessmentSheet.ServiceRecords = list;
|
||||
}
|
||||
|
||||
private void BtnDelete_Click(object sender, RoutedEventArgs e)
|
||||
@@ -2376,8 +2379,7 @@ namespace BeWo.View.Detail
|
||||
// btnSaveWohnheimbuchung.Visibility = Visibility.Collapsed;
|
||||
//}
|
||||
|
||||
private void SupportConceptSelectionControl_ItemSelected(object sender,
|
||||
EventArgs<FlatSupportConceptTreeNodeDC> e)
|
||||
private void SupportConceptSelectionControl_ItemSelected(object sender, EventArgs<FlatSupportConceptTreeNodeDC> e)
|
||||
{
|
||||
if (chkGroupBooking.IsChecked.Value || chkMultiBooking.IsChecked.Value)
|
||||
{
|
||||
@@ -2543,7 +2545,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void UpdateAssessmentSheet(FlatSupportConceptTreeNodeDC selectedNode)
|
||||
{
|
||||
if (assessmentSheet == null)
|
||||
if (_AssessmentSheet == null)
|
||||
return;
|
||||
|
||||
if (selectedNode != null && selectedNode.SupportConceptTreeNodeDC != null)
|
||||
@@ -2551,7 +2553,7 @@ namespace BeWo.View.Detail
|
||||
var customer = selectedNode.SupportConceptTreeNodeDC.Customer;
|
||||
if (customer != null)
|
||||
{
|
||||
if (!customerContainsAssessmentCategories.ContainsKey(customer))
|
||||
if (!_CustomerContainsAssessmentCategories.ContainsKey(customer))
|
||||
{
|
||||
ServiceFacade.DoCustomerServiceAsync(
|
||||
s1 => s1.LoadCustomerAssessmentSheetCategoryList(customer.Oid.Value),
|
||||
@@ -2559,14 +2561,14 @@ namespace BeWo.View.Detail
|
||||
cb => this.Dispatch(
|
||||
delegate
|
||||
{
|
||||
customerContainsAssessmentCategories.Add(customer, cb);
|
||||
_CustomerContainsAssessmentCategories.Add(customer, cb);
|
||||
|
||||
UpdateAssessmentSheet(selectedNode.SupportConceptTreeNodeDC.Customer, cb);
|
||||
}), false);
|
||||
}
|
||||
else
|
||||
{
|
||||
var cats = customerContainsAssessmentCategories[customer];
|
||||
var cats = _CustomerContainsAssessmentCategories[customer];
|
||||
UpdateAssessmentSheet(selectedNode.SupportConceptTreeNodeDC.Customer, cats);
|
||||
}
|
||||
}
|
||||
@@ -2594,7 +2596,7 @@ namespace BeWo.View.Detail
|
||||
dockLayoutManager.SetValue(ThemeManager.ThemeNameProperty, "LightGray");
|
||||
dockLayoutManager.Background = Brushes.Transparent;
|
||||
dockLayoutManager.Visibility = Visibility.Hidden;
|
||||
dockLayoutManager.ShowingDockHints += dockLayoutManager_ShowingDockHints;
|
||||
dockLayoutManager.ShowingDockHints += DockLayoutManager_ShowingDockHints;
|
||||
|
||||
var group = new LayoutGroup();
|
||||
dockLayoutManager.LayoutRoot = group;
|
||||
@@ -2681,11 +2683,10 @@ namespace BeWo.View.Detail
|
||||
|
||||
InitDockPanel();
|
||||
|
||||
assessmentSheet.LayoutManager = dockLayoutManager;
|
||||
_AssessmentSheet.LayoutManager = dockLayoutManager;
|
||||
}
|
||||
|
||||
static void dockLayoutManager_ShowingDockHints(object sender,
|
||||
DevExpress.Xpf.Docking.Base.ShowingDockHintsEventArgs e)
|
||||
private static void DockLayoutManager_ShowingDockHints(object sender, DevExpress.Xpf.Docking.Base.ShowingDockHintsEventArgs e)
|
||||
{
|
||||
e.DisableAll();
|
||||
e.HideAll();
|
||||
@@ -2694,8 +2695,8 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void HideAssessmentSheet()
|
||||
{
|
||||
assessmentSheet.SetCustomer(null, null);
|
||||
assessmentSheet.Visibility = Visibility.Collapsed;
|
||||
_AssessmentSheet.SetCustomer(null, null);
|
||||
_AssessmentSheet.Visibility = Visibility.Collapsed;
|
||||
|
||||
customerDetailGrid.Visibility = Visibility.Visible;
|
||||
|
||||
@@ -2725,12 +2726,12 @@ namespace BeWo.View.Detail
|
||||
if (dockLayoutManager == null)
|
||||
CreateLayoutManager();
|
||||
|
||||
assessmentSheet.SetCustomer(customer, cats);
|
||||
_AssessmentSheet.SetCustomer(customer, cats);
|
||||
|
||||
if (assessmentSheet.Visibility == Visibility.Visible)
|
||||
if (_AssessmentSheet.Visibility == Visibility.Visible)
|
||||
return;
|
||||
|
||||
assessmentSheet.Visibility = Visibility.Visible;
|
||||
_AssessmentSheet.Visibility = Visibility.Visible;
|
||||
|
||||
customerDetailGrid.Visibility = Visibility.Collapsed;
|
||||
dockLayoutManager.Visibility = Visibility.Visible;
|
||||
@@ -2766,7 +2767,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void InitDockPanel()
|
||||
{
|
||||
if (assessmentSheet == null)
|
||||
if (_AssessmentSheet == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -2826,7 +2827,7 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
else if (Equals(item, layoutPanel3))
|
||||
{
|
||||
assessmentSheet.Focus();
|
||||
_AssessmentSheet.Focus();
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -3069,8 +3070,6 @@ namespace BeWo.View.Detail
|
||||
BeWoApp.SaveAppSettings();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void SrTableView_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
//###Bars
|
||||
@@ -3083,7 +3082,7 @@ namespace BeWo.View.Detail
|
||||
StartEdit(vm);
|
||||
|
||||
|
||||
lastPosition = ViewModel.VMList.IndexOf(vm);
|
||||
_LastPosition = ViewModel.VMList.IndexOf(vm);
|
||||
}
|
||||
|
||||
private ServiceRecordVM GetSelectedServiceRecordFromGrid()
|
||||
@@ -3110,7 +3109,7 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
ServiceRecordVM vm = GetSelectedServiceRecordFromGrid();
|
||||
|
||||
lastPosition = ViewModel.VMList.IndexOf(vm);
|
||||
_LastPosition = ViewModel.VMList.IndexOf(vm);
|
||||
|
||||
if (vm != null && vm.DeleteAllowed)
|
||||
Delete(vm);
|
||||
@@ -3160,13 +3159,12 @@ namespace BeWo.View.Detail
|
||||
}));
|
||||
_GroupOfPeopleModalPopUp.GroupOfPeopleSavedOrUpdated +=
|
||||
GroupOfPeopleModalPopUp_GroupOfPeopleSavedOrUpdated;
|
||||
BeWoApp.MainControl.ShowControlAsModalPopUp(_GroupOfPeopleModalPopUp);
|
||||
BeWoApp.MainControl.ShowControlAsModalPopup(_GroupOfPeopleModalPopUp);
|
||||
_GroupOfPeopleModalPopUp.Focus();
|
||||
}));
|
||||
}
|
||||
|
||||
private static void GroupOfPeopleModalPopUp_GroupOfPeopleSavedOrUpdated(object sender,
|
||||
EventArgs<GroupOfPeopleListVM> e)
|
||||
private static void GroupOfPeopleModalPopUp_GroupOfPeopleSavedOrUpdated(object sender, EventArgs<GroupOfPeopleListVM> e)
|
||||
{
|
||||
//ServiceFacade.DoCustomerServiceAsync(
|
||||
// s => s.LoadPersonCompact(e.Data.DataContract.PersonOid.Value),
|
||||
@@ -3254,19 +3252,14 @@ namespace BeWo.View.Detail
|
||||
|
||||
private void Popupedit_employee_OnPreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (!BeWoUtils.CheckPopupEditClickableSpace((PopUpEdit) sender, e) ||
|
||||
!BeWoApp.LoggedOnUser.HasRight(UserRightType.EmployeeView_View))
|
||||
if (!BeWoUtils.CheckPopupEditClickableSpace((PopUpEdit) sender, e) || !BeWoApp.LoggedOnUser.HasRight(UserRightType.EmployeeView_View))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var employeeCompact = ViewModel.SelectedEmployee ?? BeWoApp.LoggedOnUser.Employee;
|
||||
|
||||
VMFactory.CreateEmployeeVMAsync(employeeCompact.EmployeeOid,
|
||||
cb => this.Dispatch(
|
||||
() => BeWoUtils.OpenModalViewWindow<EmployeeVM, EmployeeDC, ServiceRecordView2>(cb, this, () =>
|
||||
this.Dispatch(
|
||||
() => BeWoUtils.UpdateAllViews(employeeCompact)))));
|
||||
VMFactory.CreateEmployeeVMAsync(employeeCompact.EmployeeOid, cb => this.Dispatch(() => BeWoUtils.OpenModalViewWindow<EmployeeVM, EmployeeDC, ServiceRecordView2>(cb, this, () => this.Dispatch(() => BeWoUtils.UpdateAllViews(employeeCompact)))));
|
||||
}
|
||||
|
||||
private void ReloadButton_OnClick(object sender, RoutedEventArgs e)
|
||||
@@ -3316,13 +3309,13 @@ namespace BeWo.View.Detail
|
||||
documentationTextBox.CaretIndex = caretIndex + textToAdd.Length;
|
||||
}
|
||||
|
||||
if (grosseDokuTextBox == null)
|
||||
if (_GrosseDokuTextBox == null)
|
||||
{
|
||||
documentationTextBox.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
grosseDokuTextBox.Text = documentationTextBox.Text;
|
||||
_GrosseDokuTextBox.Text = documentationTextBox.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3889,52 +3882,52 @@ namespace BeWo.View.Detail
|
||||
|
||||
if (TabItem1_Notice.IsSelected)
|
||||
{
|
||||
grosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox);
|
||||
_GrosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox);
|
||||
header = TabItem1_Notice.Header.ToString();
|
||||
}
|
||||
else if (TabItem2_Notice.IsSelected)
|
||||
{
|
||||
grosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox2);
|
||||
_GrosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox2);
|
||||
header = TabItem2_Notice.Header.ToString();
|
||||
}
|
||||
else if (TabItem3_Notice.IsSelected)
|
||||
{
|
||||
grosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox3);
|
||||
_GrosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox3);
|
||||
header = TabItem3_Notice.Header.ToString();
|
||||
}
|
||||
else if (TabItem4_Notice.IsSelected)
|
||||
{
|
||||
grosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox4);
|
||||
_GrosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox4);
|
||||
header = TabItem4_Notice.Header.ToString();
|
||||
}
|
||||
else if (TabItem5_Notice.IsSelected)
|
||||
{
|
||||
grosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox5);
|
||||
_GrosseDokuTextBox = InitMaximizedDocumentationTextBox(dokumentationsTextBox5);
|
||||
header = TabItem5_Notice.Header.ToString();
|
||||
}
|
||||
|
||||
schriftVergroessern.Click += delegate(object o, RoutedEventArgs args)
|
||||
{
|
||||
IncreaseFontSizeBtn_Click(o, args);
|
||||
grosseDokuTextBox.FontSize = dokumentationsTextBox.FontSize;
|
||||
_GrosseDokuTextBox.FontSize = dokumentationsTextBox.FontSize;
|
||||
};
|
||||
|
||||
schriftVerkleinern.Click += delegate(object o, RoutedEventArgs args)
|
||||
{
|
||||
DecreaseFontSizeBtn_Click(o, args);
|
||||
grosseDokuTextBox.FontSize = dokumentationsTextBox.FontSize;
|
||||
_GrosseDokuTextBox.FontSize = dokumentationsTextBox.FontSize;
|
||||
};
|
||||
|
||||
Grid.SetRow(stackPanel, 0);
|
||||
Grid.SetRow(grosseDokuTextBox, 1);
|
||||
Grid.SetRow(_GrosseDokuTextBox, 1);
|
||||
|
||||
grosseDokuTextBox.SpellCheck.IsEnabled = true;
|
||||
_GrosseDokuTextBox.SpellCheck.IsEnabled = true;
|
||||
|
||||
var rootGrid2 = new Grid();
|
||||
rootGrid2.RowDefinitions.Add(new RowDefinition {Height = GridLength.Auto});
|
||||
rootGrid2.RowDefinitions.Add(new RowDefinition {Height = new GridLength(1, GridUnitType.Star)});
|
||||
rootGrid2.Children.Add(stackPanel);
|
||||
rootGrid2.Children.Add(grosseDokuTextBox);
|
||||
rootGrid2.Children.Add(_GrosseDokuTextBox);
|
||||
|
||||
var neunzigProzentHoehe = MainControl.ActualHeight * .9;
|
||||
var neunzigProzentBreite = MainControl.ActualWidth * .9;
|
||||
@@ -3949,7 +3942,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
beWoWindow.Closed += delegate
|
||||
{
|
||||
grosseDokuTextBox = null;
|
||||
_GrosseDokuTextBox = null;
|
||||
};
|
||||
|
||||
beWoWindow.ShowDialog();
|
||||
@@ -3957,7 +3950,7 @@ namespace BeWo.View.Detail
|
||||
|
||||
private TextBox InitMaximizedDocumentationTextBox(TextBox smallDocumentationTextBox)
|
||||
{
|
||||
grosseDokuTextBox = new TextBox
|
||||
_GrosseDokuTextBox = new TextBox
|
||||
{
|
||||
AcceptsReturn = true,
|
||||
VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
|
||||
@@ -3969,9 +3962,9 @@ namespace BeWo.View.Detail
|
||||
Text = smallDocumentationTextBox.Text
|
||||
};
|
||||
|
||||
grosseDokuTextBox.TextChanged += delegate { smallDocumentationTextBox.Text = grosseDokuTextBox.Text; };
|
||||
_GrosseDokuTextBox.TextChanged += delegate { smallDocumentationTextBox.Text = _GrosseDokuTextBox.Text; };
|
||||
|
||||
return grosseDokuTextBox;
|
||||
return _GrosseDokuTextBox;
|
||||
}
|
||||
|
||||
private ServiceRecordRTFWindowView _rtfWindowView;
|
||||
@@ -4117,8 +4110,7 @@ namespace BeWo.View.Detail
|
||||
ViewModel.BedarfsMedViewModel = medRecords;
|
||||
ViewModel.BedarfsMedViewModel.NewVM.Customer = e.Data;
|
||||
|
||||
ViewModel.BedarfsMedViewModel.NewVM.SetInitialDosageForm(ServiceRecordListVM.AllDosageForms
|
||||
.FirstOrDefault());
|
||||
ViewModel.BedarfsMedViewModel.NewVM.SetInitialDosageForm(ServiceRecordListVM.AllDosageForms.FirstOrDefault());
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user