diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj
index a51f72198..65d14c7a1 100644
--- a/BeWo/BeWo.csproj
+++ b/BeWo/BeWo.csproj
@@ -399,6 +399,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
@@ -1316,6 +1320,9 @@
CustomerVermittlungArbeitControl.xaml
+
+ ColorPicker.xaml
+
CustomerWohnhilfeControl.xaml
diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs
index 668901304..b3128a2ec 100644
--- a/BeWo/DebugConfig.cs
+++ b/BeWo/DebugConfig.cs
@@ -123,7 +123,7 @@ namespace BeWo
{
DebugConfigMode = DebugConfigMode.FeatureDakota,
AutoLogin = true,
- SelectView = UIContext.Finance,
+ SelectView = UIContext.Administration,
SelectIndex = 8,
//Username = "m1",
//Password = "bewobewo",
diff --git a/BeWo/View/Controls/ComboBoxes/ComboBoxEmployeeSearch.xaml b/BeWo/View/Controls/ComboBoxes/ComboBoxEmployeeSearch.xaml
index 8b0843804..46240d26b 100644
--- a/BeWo/View/Controls/ComboBoxes/ComboBoxEmployeeSearch.xaml
+++ b/BeWo/View/Controls/ComboBoxes/ComboBoxEmployeeSearch.xaml
@@ -15,9 +15,9 @@
x:Name="popupedit"
MinHeight="23"
DeleteButtonVisibility="Visible"
+ DeleteClick="popupedit_DeleteClick"
IsReadOnly="True"
- PopUpClick="popupedit_PopUpClick"
- DeleteClick="popupedit_DeleteClick"/>
+ PopUpClick="popupedit_PopUpClick" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BeWo/View/Controls/Utils/ColorPicker.xaml.cs b/BeWo/View/Controls/Utils/ColorPicker.xaml.cs
new file mode 100644
index 000000000..a11977517
--- /dev/null
+++ b/BeWo/View/Controls/Utils/ColorPicker.xaml.cs
@@ -0,0 +1,80 @@
+using BeWo.Core;
+using BS.Shared.Extensions;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+using Color = System.Drawing.Color;
+
+namespace BeWo.View.Controls.Utils
+{
+ ///
+ /// Interaktionslogik für ColorPicker.xaml
+ ///
+ public partial class ColorPicker : UserControl
+ {
+ public SolidColorBrush SelectedColor
+ {
+ get { return (SolidColorBrush)GetValue(SelectedColorProperty); }
+ set { SetValue(SelectedColorProperty, value); }
+ }
+
+ // Using a DependencyProperty as the backing store for SelectedColor. This enables animation, styling, binding, etc...
+ public static readonly DependencyProperty SelectedColorProperty =
+ DependencyProperty.Register("SelectedColor", typeof(SolidColorBrush), typeof(ColorPicker), new PropertyMetadata(null, SelectedColor_Update));
+
+ private static void SelectedColor_Update(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ //var btn = (d as ColorPicker).btn;
+
+ //btn.Background = e.NewValue as SolidColorBrush;
+ //btn.DataContext = e.NewValue as SolidColorBrush;
+ }
+
+ public ColorPicker()
+ {
+ InitializeComponent();
+ }
+
+ public List AllBrushes
+ {
+ get
+ {
+ var lTemp = typeof(Color).GetProperties(BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Static).Select(pi => (Color)pi.GetGetMethod().Invoke(null, null)).ToList();
+
+ lTemp.Sort((x, y) => x.GetBrightness().CompareTo(y.GetBrightness()));
+
+ return lTemp.Select(c => new SolidColorBrush(System.Windows.Media.Color.FromArgb(c.A, c.R, c.G, c.B))).ToList();
+ }
+ }
+
+ private void button_select_color_Click(object sender, RoutedEventArgs e)
+ {
+ popup_color.IsOpen = true;
+ }
+
+ private void listbox_colorpicker_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (e.AddedItems.Count == 1)
+ {
+ var selection = e.AddedItems[0] as SolidColorBrush;
+
+ SelectedColor = selection;
+
+ popup_color.IsOpen = false;
+ }
+ }
+ }
+}
diff --git a/BeWo/View/Detail/Administration/SoziotherapieSettingsView.xaml b/BeWo/View/Detail/Administration/SoziotherapieSettingsView.xaml
index 4d649fd8f..f0fc87933 100644
--- a/BeWo/View/Detail/Administration/SoziotherapieSettingsView.xaml
+++ b/BeWo/View/Detail/Administration/SoziotherapieSettingsView.xaml
@@ -7,9 +7,10 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BeWo.View.Detail.Administration"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:utils="clr-namespace:BeWo.View.Controls.Utils"
xmlns:view="clr-namespace:BeWo.View"
mc:Ignorable="d">
-
+
-
+
+
+
@@ -32,7 +35,8 @@
Grid.Row="0"
Grid.Column="0"
Margin="3"
- VerticalAlignment="Center">
+ VerticalAlignment="Center"
+ ToolTip="Wenn kein Ansprechpartner hinterlegt ist, so wird der aktuelle Benutzer als Ansprechpartner verwendet.">
IK Nummer (Leistungserbringer)
+
+
diff --git a/Data/Entities/Mandator.cs b/Data/Entities/Mandator.cs
index c00bd7633..b40288345 100644
--- a/Data/Entities/Mandator.cs
+++ b/Data/Entities/Mandator.cs
@@ -46,6 +46,10 @@ namespace BeWo.Data.Entities
this._Tid = TableID.Mandator;
}
+ public virtual BankAccount BankAccount { get; set; }
+ public virtual Employee SoziotherapieAnsprechpartner { get; set; }
+ public virtual Image Logo { get; set; }
+
public virtual long BeWoClientType
{
get
@@ -364,9 +368,6 @@ namespace BeWo.Data.Entities
}
}
}
- public virtual BankAccount BankAccount { get; set; }
- public virtual Employee SoziotherapieAnsprechpartner { get; set; }
- public virtual Image Logo { get; set; }
protected virtual string GetSettingValue(string key)
{