56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using HRM.BO.Configuration;
|
|
using Microsoft.AspNetCore.JsonPatch.Internal;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region LongServiceAwardMaster
|
|
public class LongServiceAwardMaster : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public LongServiceAwardMaster()
|
|
{
|
|
AwardName = String.Empty;
|
|
AwardDescription = String.Empty;
|
|
AwardType = EnumAwardType.None;
|
|
AwardStatus = EnumAwardStatus.None;
|
|
AwardDate = DateTime.MinValue;
|
|
Details = [];
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
public string AwardName { get; set; }
|
|
public string AwardDescription { get; set; }
|
|
public DateTime AwardDate { get; set; }
|
|
public DateTime AwardYear
|
|
{
|
|
get
|
|
{
|
|
return new DateTime(AwardDate.Year, 12, 31);
|
|
}
|
|
}
|
|
public EnumAwardType AwardType { get; set; }
|
|
public EnumAwardStatus AwardStatus { get; set; }
|
|
public List<LongServiceAwardChild> Details { get; set; }
|
|
#endregion
|
|
}
|
|
#endregion
|
|
|
|
#region ILongServiceAwardMaster Service
|
|
public interface ILongServiceAwardService
|
|
{
|
|
void DeleteLongServiceAward(LongServiceAwardMaster item);
|
|
List<LongServiceAwardMaster> Get();
|
|
List<LongServiceAwardMaster> GetByDateRange(DateTime fromDate, DateTime toDate);
|
|
DataTable GetEmployeeDataforLongServiceAward(int timeRange, DateTime awardDate);
|
|
void SaveLongServiceAward(LongServiceAwardMaster item);
|
|
void SendMail(LongServiceAwardMaster item, MailSender oMailSender, EmailSettings emailSettings);
|
|
}
|
|
#endregion
|
|
} |