161 lines
4.3 KiB
C#
161 lines
4.3 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using Ease.CoreV35.Caching;
|
|||
|
using Ease.CoreV35.Model;
|
|||
|
|
|||
|
namespace Payroll.BO
|
|||
|
{
|
|||
|
[Serializable]
|
|||
|
public class NotificationRule : BasicBaseObject
|
|||
|
{
|
|||
|
#region Cache
|
|||
|
private static Cache _cache = new Cache(typeof(Notification));
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Constructor
|
|||
|
public NotificationRule()
|
|||
|
{
|
|||
|
_nNotificationID = null;
|
|||
|
_nPerticipantID = null;
|
|||
|
_bAllowWrite = false;
|
|||
|
_sRemarks = string.Empty;
|
|||
|
_sExtendedBody = string.Empty;
|
|||
|
_dSendDate = DateTime.MinValue;
|
|||
|
_eWebSendStatus = EnumSendStatus.NotEligable;
|
|||
|
_eSMSSendStatus = EnumSendStatus.NotEligable;
|
|||
|
_eEmailSendStatus = EnumSendStatus.NotEligable;
|
|||
|
_batchNo = 0;
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
|
|||
|
#region NotificationID : ID
|
|||
|
private ID _nNotificationID;
|
|||
|
public ID NotificationID
|
|||
|
{
|
|||
|
get { return _nNotificationID; }
|
|||
|
set { _nNotificationID = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region BatchNo : int
|
|||
|
private int _batchNo;
|
|||
|
public int BatchNo
|
|||
|
{
|
|||
|
get { return _batchNo; }
|
|||
|
set { _batchNo = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region PerticipantID : ID
|
|||
|
private ID _nPerticipantID;
|
|||
|
|
|||
|
public ID PerticipantID
|
|||
|
{
|
|||
|
get { return _nPerticipantID; }
|
|||
|
set { _nPerticipantID = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region PerticipantType : EnumPerticipantType
|
|||
|
private EnumPerticipantType _nPerticipantType;
|
|||
|
public EnumPerticipantType PerticipantType
|
|||
|
{
|
|||
|
get { return _nPerticipantType; }
|
|||
|
set { _nPerticipantType = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SendDate : DateTime
|
|||
|
private DateTime _dSendDate;
|
|||
|
public DateTime SendDate
|
|||
|
{
|
|||
|
get { return _dSendDate; }
|
|||
|
set { _dSendDate = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region ExtendedBody : string
|
|||
|
private String _sExtendedBody;
|
|||
|
public string ExtendedBody
|
|||
|
{
|
|||
|
get { return _sExtendedBody; }
|
|||
|
set { _sExtendedBody = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Remarks : string
|
|||
|
private String _sRemarks;
|
|||
|
public string Remarks
|
|||
|
{
|
|||
|
get { return _sRemarks; }
|
|||
|
set { _sRemarks = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region AllowWrite : bool
|
|||
|
private bool _bAllowWrite;
|
|||
|
public bool AllowWrite
|
|||
|
{
|
|||
|
get { return _bAllowWrite; }
|
|||
|
set { _bAllowWrite = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SMSSendStatus : Enum
|
|||
|
private EnumSendStatus _eSMSSendStatus;
|
|||
|
public EnumSendStatus SMSSendStatus
|
|||
|
{
|
|||
|
get { return _eSMSSendStatus; }
|
|||
|
set { _eSMSSendStatus = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region EmailSendStatus : Enum
|
|||
|
private EnumSendStatus _eEmailSendStatus;
|
|||
|
public EnumSendStatus EmailSendStatus
|
|||
|
{
|
|||
|
get { return _eEmailSendStatus; }
|
|||
|
set { _eEmailSendStatus = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region WebSendStatus : Enum
|
|||
|
private EnumSendStatus _eWebSendStatus;
|
|||
|
public EnumSendStatus WebSendStatus
|
|||
|
{
|
|||
|
get { return _eWebSendStatus; }
|
|||
|
set { _eWebSendStatus = value; }
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Public Functions
|
|||
|
|
|||
|
public NotificationRule Copy()
|
|||
|
{
|
|||
|
NotificationRule nr = new NotificationRule();
|
|||
|
nr.NotificationID = this.NotificationID;
|
|||
|
nr.BatchNo = this.BatchNo;
|
|||
|
nr.PerticipantID = this.PerticipantID;
|
|||
|
nr.PerticipantType = this.PerticipantType;
|
|||
|
nr.SendDate = this.SendDate;
|
|||
|
nr.ExtendedBody = this.ExtendedBody;
|
|||
|
nr.Remarks = this.Remarks;
|
|||
|
nr.AllowWrite = this.AllowWrite;
|
|||
|
nr.SMSSendStatus = this.SMSSendStatus;
|
|||
|
nr.EmailSendStatus = this.EmailSendStatus;
|
|||
|
nr.WebSendStatus = this.WebSendStatus;
|
|||
|
|
|||
|
return nr;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|