113 lines
2.4 KiB
C#
113 lines
2.4 KiB
C#
using BS.Shared;
|
|
using BS.Shared.Extensions;
|
|
|
|
namespace BeWo.Data.Entities
|
|
{
|
|
public class BankAccount : BeWoEntityBase
|
|
{
|
|
public static string PropertyName_AccountNumber = "AccountNumber";
|
|
|
|
public static string PropertyName_BankCode = "BankCode";
|
|
|
|
public static string PropertyName_BankName = "BankName";
|
|
|
|
public static string PropertyName_Bic = "Bic";
|
|
|
|
public static string PropertyName_IBAN = "IBAN";
|
|
|
|
private string _AccountNumber;
|
|
|
|
private string _BankCode;
|
|
|
|
private string _BankName;
|
|
|
|
private string _Bic;
|
|
|
|
private string _IBAN;
|
|
|
|
public BankAccount()
|
|
{
|
|
this._Tid = TableID.BankAccount;
|
|
}
|
|
|
|
public virtual string AccountNumber
|
|
{
|
|
get
|
|
{
|
|
return _AccountNumber.ToNullIfEmpty();
|
|
}
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(AccountNumber, value))
|
|
{
|
|
_AccountNumber = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string BankCode
|
|
{
|
|
get
|
|
{
|
|
return _BankCode.ToNullIfEmpty();
|
|
}
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(BankCode, value))
|
|
{
|
|
_BankCode = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string BankName
|
|
{
|
|
get
|
|
{
|
|
return _BankName.ToNullIfEmpty();
|
|
}
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(BankName, value))
|
|
{
|
|
_BankName = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string Bic
|
|
{
|
|
get
|
|
{
|
|
return _Bic.ToNullIfEmpty();
|
|
}
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(Bic, value))
|
|
{
|
|
_Bic = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string IBAN
|
|
{
|
|
get
|
|
{
|
|
return _IBAN.ToNullIfEmpty();
|
|
}
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(IBAN, value))
|
|
{
|
|
_IBAN = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |