2017-11-17 22:24:00 +01:00
|
|
|
|
using BS.Shared;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Data.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Textbaustein : BeWoEntityBase
|
|
|
|
|
|
{
|
2020-11-11 19:39:11 +01:00
|
|
|
|
public static string PropertyName_Text = "Text";
|
|
|
|
|
|
public static string PropertyName_Position = "Position";
|
|
|
|
|
|
public static string PropertyName_ServiceCategory = "ServiceCategory";
|
|
|
|
|
|
public static string PropertyName_Name = "Name";
|
|
|
|
|
|
public static string PropertyName_Employee = "Employee";
|
2017-11-17 22:24:00 +01:00
|
|
|
|
public static string PropertyName_IsOnlyForEmployee = "IsOnlyForEmployee";
|
2020-11-11 19:39:11 +01:00
|
|
|
|
public static string PropertyName_ParentOid = "ParentOid";
|
|
|
|
|
|
public static string PropertyName_IsParent = "IsParent";
|
|
|
|
|
|
public static string PropertyName_IsExpanded = "IsExpanded";
|
2018-01-05 19:13:18 -04:00
|
|
|
|
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
2020-11-11 19:39:11 +01:00
|
|
|
|
private string _Text;
|
|
|
|
|
|
private string _Name;
|
|
|
|
|
|
private int _Position;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
private ServiceCategory _ServiceCategory;
|
2020-11-11 19:39:11 +01:00
|
|
|
|
private Employee _Employee;
|
|
|
|
|
|
private bool _IsOnlyForEmployee;
|
|
|
|
|
|
private TextModule _Parent;
|
|
|
|
|
|
private bool _IsParent;
|
|
|
|
|
|
private bool _IsExpanded;
|
2018-01-05 19:13:18 -04:00
|
|
|
|
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
public Textbaustein()
|
|
|
|
|
|
{
|
|
|
|
|
|
_Tid = TableID.Textbaustein;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-01-05 19:13:18 -04:00
|
|
|
|
|
|
|
|
|
|
public virtual bool IsExpanded
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _IsExpanded;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_IsExpanded, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_IsExpanded = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-11-17 22:24:00 +01:00
|
|
|
|
public virtual ServiceCategory ServiceCategory
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _ServiceCategory;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_ServiceCategory, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
|
|
|
|
|
_ServiceCategory = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual Employee Employee
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _Employee;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_Employee, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
|
|
|
|
|
_Employee = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual bool IsOnlyForEmployee
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _IsOnlyForEmployee;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_IsOnlyForEmployee, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
|
|
|
|
|
_IsOnlyForEmployee = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-01-05 19:13:18 -04:00
|
|
|
|
public virtual bool IsParent
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _IsParent;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_IsParent, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_IsParent = value;
|
|
|
|
|
|
}
|
2017-11-17 22:24:00 +01:00
|
|
|
|
}
|
2018-01-05 19:13:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual string Text
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _Text;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_Text, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
|
|
|
|
|
_Text = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual string Name
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _Name;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_Name, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
|
|
|
|
|
_Name = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual int Position
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
get => _Position;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_Position, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_Position = value;
|
|
|
|
|
|
}
|
2017-11-17 22:24:00 +01:00
|
|
|
|
}
|
2018-01-05 19:13:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual TextModule Parent
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _Parent;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
if(AreDifferent(_Parent, value))
|
2017-11-17 22:24:00 +01:00
|
|
|
|
{
|
2018-01-05 19:13:18 -04:00
|
|
|
|
_Parent = value;
|
2017-11-17 22:24:00 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|