Neue Settings "ShowAlwaysHoursInEmployeeView", die das Disablend von Stunden pro Woche bzw. pro Monat verhindert
This commit is contained in:
@@ -515,6 +515,12 @@ namespace BeWo
|
||||
showMultipleResourceColors = true;
|
||||
}
|
||||
|
||||
val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowAlwaysHoursInEmployeeView);
|
||||
if (val != null && val.Equals("1"))
|
||||
{
|
||||
AppSettings.ShowAlwaysHoursInEmployeeView = true;
|
||||
}
|
||||
|
||||
val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowKlientenBetreuungszeiten);
|
||||
if (val != null && val.Equals("1"))
|
||||
{
|
||||
|
||||
@@ -144,6 +144,8 @@ namespace BeWo.Core.Config
|
||||
|
||||
public bool HideServiceRecordInsertedByAndInsertedOn { get; set; }
|
||||
|
||||
public bool ShowAlwaysHoursInEmployeeView { get; set; }
|
||||
|
||||
public bool ShowAdvisedAttendedFlag { get; set; }
|
||||
|
||||
public CustomerFilterEnum CustomerFilterInZeiterfassung
|
||||
|
||||
@@ -96,6 +96,10 @@ namespace BeWo.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BeWoApp.AppSettings.ShowAlwaysHoursInEmployeeView)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (_MonthlyTotalHours.HasValue && !_WeeklyTotalHours.HasValue)
|
||||
{
|
||||
return false;
|
||||
@@ -108,6 +112,10 @@ namespace BeWo.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BeWoApp.AppSettings.ShowAlwaysHoursInEmployeeView)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (_WeeklyTotalHours.HasValue && !_MonthlyTotalHours.HasValue)
|
||||
{
|
||||
return false;
|
||||
@@ -120,6 +128,10 @@ namespace BeWo.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BeWoApp.AppSettings.ShowAlwaysHoursInEmployeeView)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (_MonthlyFLS.HasValue && !_WeeklyFLS.HasValue)
|
||||
{
|
||||
return false;
|
||||
@@ -132,6 +144,10 @@ namespace BeWo.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (BeWoApp.AppSettings.ShowAlwaysHoursInEmployeeView)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (_WeeklyFLS.HasValue && !_MonthlyFLS.HasValue)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user