2016-06-27 01:45:38 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
using BS.Shared;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Core.Config
|
|
|
|
|
|
{
|
|
|
|
|
|
public class AppSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
private bool mIsServiceRecordNoticeMandatory = true;
|
|
|
|
|
|
|
|
|
|
|
|
private bool mIsPasswordSecurityActiv = false;
|
|
|
|
|
|
|
|
|
|
|
|
private bool mIsEndDateVisible = true;
|
|
|
|
|
|
|
2017-01-16 16:13:19 +01:00
|
|
|
|
private bool misOnlyYearMonthVisible = true;
|
|
|
|
|
|
|
2017-01-19 17:02:07 +01:00
|
|
|
|
private bool misZeiterfassDateNormal = true;
|
|
|
|
|
|
|
|
|
|
|
|
private bool misZeiterfassungInStdMin = true;
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
private bool mShowOnlyMySupportConcepts = true;
|
|
|
|
|
|
|
|
|
|
|
|
private WindowStateType mWindowStateType = WindowStateType.Default;
|
|
|
|
|
|
|
|
|
|
|
|
private ServiceRecordTimeInterval mLastSelectedServiceRecordTimeInterval = ServiceRecordTimeInterval.All;
|
|
|
|
|
|
|
2017-03-28 11:01:28 +02:00
|
|
|
|
private int mLastSelectedServiceRecordTimeIntervalDays = 7;
|
|
|
|
|
|
|
2017-04-03 13:39:11 +02:00
|
|
|
|
private ZeiterfassungsDauer mLetzteZeiterfassungsDauer = ZeiterfassungsDauer.Minuten;
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public enum WindowStateType
|
|
|
|
|
|
{
|
|
|
|
|
|
Default,
|
|
|
|
|
|
Maximised
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsServiceRecordNoticeMandatory
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mIsServiceRecordNoticeMandatory; }
|
|
|
|
|
|
|
|
|
|
|
|
set { mIsServiceRecordNoticeMandatory = value; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsPasswordSecurityActiv
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mIsPasswordSecurityActiv; }
|
|
|
|
|
|
|
|
|
|
|
|
set { mIsPasswordSecurityActiv = value; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsEndDateVisible
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mIsEndDateVisible; }
|
|
|
|
|
|
|
|
|
|
|
|
set { mIsEndDateVisible = value; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-01-16 16:13:19 +01:00
|
|
|
|
public bool IsOnlyYearMonthVisible
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return misOnlyYearMonthVisible; }
|
|
|
|
|
|
|
|
|
|
|
|
set { misOnlyYearMonthVisible = value; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-01-19 17:02:07 +01:00
|
|
|
|
public bool IsZeiterfassDateNormal
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return misZeiterfassDateNormal; }
|
|
|
|
|
|
set { misZeiterfassDateNormal = value; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsZeiterfassungInStdMin
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return misZeiterfassungInStdMin; }
|
|
|
|
|
|
set { misZeiterfassungInStdMin = value; }
|
|
|
|
|
|
}
|
2017-04-03 13:39:11 +02:00
|
|
|
|
|
|
|
|
|
|
public ZeiterfassungsDauer LetzteZeiterfassungsDauer
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mLetzteZeiterfassungsDauer; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mLetzteZeiterfassungsDauer != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mLetzteZeiterfassungsDauer = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-01-19 17:02:07 +01:00
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public int MaxDaysEditServiceRecordsAllowed { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int HilfeplanAuslaufAuswahl { get; set; }
|
|
|
|
|
|
|
2017-02-10 11:08:38 +01:00
|
|
|
|
public int LastSelectedStundenkontoIntervall { get; set; }
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public int AnzTageZeiterfassErfolgt { get; set; }
|
|
|
|
|
|
|
2017-03-22 13:38:09 +01:00
|
|
|
|
public int ZeiterfassungsSchwellwert { get; set; }
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public bool HideServiceRecordInsertedByAndInsertedOn { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowAdvisedAttendedFlag { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private bool _showAllClients;
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowAllClients
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _showAllClients; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_showAllClients != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
_showAllClients = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowDatevFields { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private bool _showExpiredSupportConcepts = true;
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowExpiredSupportConcepts
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _showExpiredSupportConcepts; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_showExpiredSupportConcepts != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
_showExpiredSupportConcepts = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool _showOnlyMyClients;
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowOnlyMyClients
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _showOnlyMyClients; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_showOnlyMyClients != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
_showOnlyMyClients = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool _showServiceRecordGridControl;
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowServiceRecordGridControl
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _showServiceRecordGridControl; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (_showServiceRecordGridControl != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
_showServiceRecordGridControl = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowLargeCustomerNotice { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowOnlyMySupportConcepts
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mShowOnlyMySupportConcepts; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mShowOnlyMySupportConcepts != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mShowOnlyMySupportConcepts = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool ZeigeNurMeineTermine
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mZeigeNurMeineTermine; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mZeigeNurMeineTermine != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mZeigeNurMeineTermine = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private double _DocumentationFontSize = 11d;
|
|
|
|
|
|
public double DocumentationFontSize
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _DocumentationFontSize; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!_DocumentationFontSize.Equals(value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_DocumentationFontSize = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string _startupPanelMaximized;
|
|
|
|
|
|
|
|
|
|
|
|
public string StartupPanelMaximized
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _startupPanelMaximized; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
string newValue = value;
|
|
|
|
|
|
if (newValue == string.Empty)
|
|
|
|
|
|
newValue = null;
|
|
|
|
|
|
if (_startupPanelMaximized != newValue)
|
|
|
|
|
|
{
|
|
|
|
|
|
_startupPanelMaximized = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private List<string> _startupPanelOrder;
|
|
|
|
|
|
|
|
|
|
|
|
public List<string> StartupPanelOrder
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _startupPanelOrder; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (IsOrderDifferent(_startupPanelOrder, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_startupPanelOrder = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool mZeigeNurMeineTermine;
|
|
|
|
|
|
|
2017-03-28 11:01:28 +02:00
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
private bool IsOrderDifferent(List<string> oldOrder, List<string> newOrder)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (oldOrder == null && newOrder != null)
|
|
|
|
|
|
return true;
|
|
|
|
|
|
else if (oldOrder != null && newOrder == null)
|
|
|
|
|
|
return true;
|
|
|
|
|
|
else if (oldOrder != null && newOrder != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (oldOrder.Count != newOrder.Count)
|
|
|
|
|
|
return true;
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
for (int i = 0; i < oldOrder.Count; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (newOrder[i] != oldOrder[i])
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public WindowStateType WindowState
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mWindowStateType; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mWindowStateType != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mWindowStateType = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ServiceRecordTimeInterval LastSelectedServiceRecordTimeInterval
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mLastSelectedServiceRecordTimeInterval; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mLastSelectedServiceRecordTimeInterval != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mLastSelectedServiceRecordTimeInterval = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-03-28 11:01:28 +02:00
|
|
|
|
public int LastSelectedServiceRecordTimeIntervalDays
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return mLastSelectedServiceRecordTimeIntervalDays; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (mLastSelectedServiceRecordTimeIntervalDays != value)
|
|
|
|
|
|
{
|
|
|
|
|
|
mLastSelectedServiceRecordTimeIntervalDays = value;
|
|
|
|
|
|
IsDirty = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public bool IsDirty { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string TimeRecordingMenuName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowDistanceFields { get; set; }
|
|
|
|
|
|
|
2017-06-11 15:50:31 +02:00
|
|
|
|
public bool ShowHilfeplanBezeichnung { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowArbeitszeiten { get; set; }
|
|
|
|
|
|
|
2017-02-09 10:05:55 +01:00
|
|
|
|
public bool ShowSignatures { get; set; }
|
|
|
|
|
|
|
2017-07-27 09:58:04 +02:00
|
|
|
|
public bool ShowRtfTextfeld { get; set; }
|
|
|
|
|
|
|
2017-02-09 10:05:55 +01:00
|
|
|
|
public bool ShowTeamNews { get; set; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
public bool ShowMarker { get; set; }
|
2017-06-11 15:50:31 +02:00
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public bool ShowAdditionalService { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowCustomerDistanceFields { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowRoundedDurationInEmployeeAnalysis { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ShowAnnualReport { get; set; }
|
|
|
|
|
|
|
2017-06-11 15:50:31 +02:00
|
|
|
|
public bool ShowRessources { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsSchedulerAllowed { get; set; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
public bool IsWohnheimAllowed { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsMedicationAllowed { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool PrinterSettingsUsePaperKind { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool PrinterSettingsUseLandscape { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool PrinterSettingsUseMargins { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|