EchoTex_Payroll/HRM.BO/Resignation/ResignationRequest.cs

128 lines
4.1 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00

using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region EmpResignationRequest
public class EmpResignationRequest : BasicBaseObject, IworkflowInterface
{
#region Constructor
public EmpResignationRequest()
{
EmpResgAttachmentList = new List<EmpResignationAttachment>();
}
#endregion
public DateTime RequestDate { get; set; }
public int EmployeeID { get; set; }
public DateTime? LastWorkingDate { get; set; }
public DateTime? ResignationDate { get; set; }
public EnumResignStatus WFStatus { get; set; }
public DateTime? CleranceInitiateDate { get; set; }
public int? CleranceInitiateBy { get; set; }
public EnumResignationClearanceStatus? ClearanceStatus { get; set; }
public bool? IsDiscontinue { get; set; }
public string TypeString { get; set; }
public DateTime? DiscontinueDate { get; set; }
public int? DiscontinueBy { get; set; }
public int? NextApproverEmpID { get; set; }
public string ConnectionString { get; set; }
public string EmpNo { get; set; }
public string EmpName { get; set; }
public string EmpDeg { get; set; }
public string EmpDept { get; set; }
public string StatusString { get; set; }
public string ClearanceStatusString { get; set; }
public DateTime? JoiningDate { get; set; }
public EnumResignationType? ResignationType { get; set; }
public List<EmpResignationAttachment> EmpResgAttachmentList { get; set; }
public int SetupID
{
get
{
return 5;
}
}
public int ObjectID
{
get { return this.ID; }
}
public string ObjectDescription
{
get
{
string str = "";
if (true)
{
str = " has applied resignation request " + " on " + Convert.ToDateTime(this.RequestDate).ToString("dd MMMM yyyy") + ". ";//"of "+ this.ClaimProcessDate.ToString("MMM yyyy")
}
return str;
}
}
}
#endregion
public class EmpResignationAttachment : AuditTrailBase
{
#region Constructor
public EmpResignationAttachment()
{
}
#endregion
#region Properties
public int EmpRegRequestID { get; set; }
public string OriginalFileName { get; set; }
public string File { get; set; }
public byte[] FileAsByteArray { get; set; }
public string FileTobase64
{
get
{
return Convert.ToBase64String(FileAsByteArray);
}
}
public string TempFileTobase64
{
get; set;
}
public string Extension { get; set; }
#endregion
}
#region IResignationRequest Service
public interface IResignationRequestService
{
EmpResignationRequest Get(int id);
List<EmpResignationRequest> Get();
List<EmpResignationRequest> Get(DateTime fromDate, DateTime toDate);
List<EmpResignationRequest> Get(EnumResignStatus status);
//List<EmpResignationRequest> Get(EnumStatus status);
int Save(EmpResignationRequest item);
void Delete(int id);
// void InitiateResignationRequestWorkFlow(EmpResignationRequest item, int initiateEmpID, int userID);
List<EmpResignationAttachment> GetResignationAttachments(int refId);
void ApproveResignationRequest(WFMovementTran approver, DateTime lastWorkingDate, string remarks, string resignationRemarks);
void ResignationRequestReject(WFMovementTran rejectTran);
List<FSHeadResignationPermission> GetFsHeadRegPermission();
EmpResignationRequest GetByEmployeeId(int employeeId);
void updateStatus(int id, EnumResignStatus status);
EmpResignationRequest GetByEmpIDForSettlement(int employeeId);
}
#endregion
}