Files
BeWoPlaner/Data/Entities/TextModule.cs

153 lines
3.4 KiB
C#
Raw Normal View History

2017-09-26 13:30:20 +02:00
using BS.Shared;
namespace BeWo.Data.Entities
{
public class TextModule : BeWoEntityBase
{
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";
public static string PropertyName_IsOnlyForEmployee = "IsOnlyForEmployee";
public static string PropertyName_ParentOid = "ParentOid";
public static string PropertyName_IsParent = "IsParent";
2018-01-05 19:13:18 -04:00
public static string PropertyName_IsExpanded = "IsExpanded";
2017-09-26 13:30:20 +02:00
private string _Text;
private string _Name;
private int _Position;
private ServiceCategory _ServiceCategory;
private Employee _Employee;
private bool _IsOnlyForEmployee;
private TextModule _Parent;
private bool _IsParent;
2018-01-05 19:13:18 -04:00
private bool _IsExpanded;
2017-09-26 13:30:20 +02:00
public TextModule()
{
_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-09-26 13:30:20 +02:00
public virtual ServiceCategory ServiceCategory
{
2018-01-05 19:13:18 -04:00
get => _ServiceCategory;
2017-09-26 13:30:20 +02:00
set
{
if (AreDifferent(_ServiceCategory, value))
{
_ServiceCategory = value;
}
}
}
public virtual Employee Employee
{
2018-01-05 19:13:18 -04:00
get => _Employee;
2017-09-26 13:30:20 +02:00
set
{
if (AreDifferent(_Employee, value))
{
_Employee = value;
}
}
}
public virtual bool IsOnlyForEmployee
{
2018-01-05 19:13:18 -04:00
get => _IsOnlyForEmployee;
2017-09-26 13:30:20 +02:00
set
{
if (AreDifferent(_IsOnlyForEmployee, value))
{
_IsOnlyForEmployee = value;
}
}
}
public virtual bool IsParent
{
2018-01-05 19:13:18 -04:00
get => _IsParent;
2017-09-26 13:30:20 +02:00
2018-01-05 19:13:18 -04:00
set
2017-09-26 13:30:20 +02:00
{
if(AreDifferent(_IsParent, value))
{
_IsParent = value;
}
}
}
public virtual string Text
{
2018-01-05 19:13:18 -04:00
get => _Text;
2017-09-26 13:30:20 +02:00
2018-01-05 19:13:18 -04:00
set
2017-09-26 13:30:20 +02:00
{
if (AreDifferent(_Text, value))
{
_Text = value;
}
}
}
public virtual string Name
{
2018-01-05 19:13:18 -04:00
get => _Name;
2017-09-26 13:30:20 +02:00
set
{
if (AreDifferent(_Name, value))
{
_Name = value;
}
}
}
public virtual int Position
{
2018-01-05 19:13:18 -04:00
get => _Position;
2017-09-26 13:30:20 +02:00
set
{
if (AreDifferent(_Position, value))
{
_Position = value;
}
}
}
public virtual TextModule Parent
{
2018-01-05 19:13:18 -04:00
get => _Parent;
2017-09-26 13:30:20 +02:00
2018-01-05 19:13:18 -04:00
set
2017-09-26 13:30:20 +02:00
{
if(AreDifferent(_Parent, value))
{
_Parent = value;
}
}
}
}
}