184 lines
6.5 KiB
C#
184 lines
6.5 KiB
C#
using Ease.Core.DataAccess;
|
|
using Ease.Core.Model;
|
|
using Ease.Core.Utility;
|
|
using HRM.BO.Configuration;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region Class PFWithdrawalRequest
|
|
[Serializable]
|
|
public class PFWithdrawalRequest: AuditTrailBase, IworkflowInterface
|
|
{
|
|
#region Propertie
|
|
public int PFWithdrawalRequestID { get; set; }
|
|
public int RequestEmployeeID { get; set; }
|
|
public int RequestMemberID { get; set; }
|
|
public Member Member { get; set; }
|
|
public DateTime RequestDate { get; set; }
|
|
public decimal AuditedEPF { get; set; }
|
|
public decimal UnAuditedEPF { get; set; }
|
|
public decimal AuditedCPF { get; set; }
|
|
public decimal UnAuditedCPF { get; set; }
|
|
public decimal LoanOutStanding { get; set; }
|
|
public decimal Lapes { get; set; }
|
|
public decimal PaidAmount { get; set; }
|
|
public decimal TotalAmount { get; set; }
|
|
public EnumPFWithdrawalStatus Status { get; set; }
|
|
public DateTime? ConfirmDate { get; set; }
|
|
public DateTime? StatusUpdateDate { get; set; }
|
|
public string Remarks { get; set; }
|
|
public DateTime? DiscontinueDate { get; set; }
|
|
public DateTime? HRApproveDate { get; set; }
|
|
public int? TrusteesID { get; set; }
|
|
public DateTime? TrusteesApproveDate { get; set; }
|
|
public string TrusteesApproveRemarks { get; set; }
|
|
public int? SecondTrusteesID { get; set; }
|
|
public DateTime? SecondTrusteesApproveDate { get; set; }
|
|
public string SecondTrusteesApproveRemarks { get; set; }
|
|
public DateTime? DepositDate { get; set; }
|
|
public DateTime? SettleDate { get; set; }
|
|
public int? UpdatedBy { get; set; }
|
|
public DateTime? UpdatedDate { get; set; }
|
|
public string ConnectionString { get; set; }
|
|
public bool isRejected { get; set; }
|
|
|
|
public EnumPFWithdrawalStatus WFStatus { get; set; }
|
|
|
|
#region Property PfWithdrawalRequestAttachment : PfWithdrawalRequestAttachment
|
|
public PfWithdrawalRequestAttachment PfWithdrawalRequestAttachment { set; get; }
|
|
|
|
public string ObjectDescription
|
|
{
|
|
get
|
|
{
|
|
string str = "";
|
|
return str;
|
|
}
|
|
}
|
|
public int SetupID
|
|
{
|
|
get
|
|
{
|
|
return 302;
|
|
}
|
|
}
|
|
public int ObjectID
|
|
{
|
|
get { return this.ID; }
|
|
}
|
|
|
|
#endregion
|
|
#endregion
|
|
#region Constructor
|
|
public PFWithdrawalRequest()
|
|
{
|
|
PFWithdrawalRequestID = 0;
|
|
RequestEmployeeID = 0;
|
|
RequestMemberID = 0;
|
|
RequestDate = DateTime.MinValue;
|
|
AuditedEPF = 0.0m;
|
|
UnAuditedEPF = 0.0m;
|
|
AuditedCPF = 0.0m;
|
|
UnAuditedCPF = 0.0m;
|
|
LoanOutStanding = 0.0m;
|
|
Lapes = 0.0m;
|
|
PaidAmount = 0.0m;
|
|
TotalAmount = 0.0m;
|
|
Status = EnumPFWithdrawalStatus.None;
|
|
ConfirmDate = null;
|
|
StatusUpdateDate = null;
|
|
Remarks = string.Empty;
|
|
DiscontinueDate = DateTime.Now;
|
|
|
|
HRApproveDate = null;
|
|
TrusteesID = null;
|
|
TrusteesApproveDate = null;
|
|
TrusteesApproveRemarks = string.Empty;
|
|
SecondTrusteesID = null;
|
|
SecondTrusteesApproveDate = null;
|
|
SecondTrusteesApproveRemarks = string.Empty;
|
|
|
|
DepositDate = null;
|
|
SettleDate = null;
|
|
|
|
CreatedBy = 0;
|
|
CreatedDate = DateTime.MinValue;
|
|
UpdatedBy = null;
|
|
UpdatedDate = null;
|
|
PfWithdrawalRequestAttachment = new PfWithdrawalRequestAttachment();
|
|
WFStatus=EnumPFWithdrawalStatus.None ;
|
|
}
|
|
#endregion
|
|
}
|
|
#endregion
|
|
|
|
#region Child Class
|
|
|
|
#region PfWithdrawalRequestAttachment
|
|
|
|
[Serializable]
|
|
public class PfWithdrawalRequestAttachment : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public PfWithdrawalRequestAttachment()
|
|
{
|
|
PfWithdrawalRequestAttachmentID = 0;
|
|
PfWithdrawalRequestID = 0;
|
|
PfWithdrawalRequestDocType = EnumDocumentType.None;
|
|
FileName = string.Empty;
|
|
FileDataString = string.Empty;
|
|
FileData = null;
|
|
uploadDate = DateTime.MinValue;
|
|
uploadBy = 0;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
public int PfWithdrawalRequestAttachmentID { get; set; }
|
|
public int PfWithdrawalRequestID { get; set; }
|
|
public EnumDocumentType PfWithdrawalRequestDocType { get; set; }
|
|
public string FileName { get; set; }
|
|
public byte[] FileData { get; set; }
|
|
public string FileDataString { get; set; }
|
|
public DateTime uploadDate { get; set; }
|
|
public int uploadBy { get; set; }
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region IPFWithdrawalRequest Service
|
|
public interface IPFWithdrawalRequestService
|
|
{
|
|
PFWithdrawalRequest Get(int id);
|
|
PFWithdrawalRequest GetByMemberID(int id);
|
|
List<PFWithdrawalRequest> GetPFWithdrawalByMemberID(int id);
|
|
int PFWithdrawalRequestCount(int MemberID);
|
|
List<PFWithdrawalRequest> GetAll();
|
|
int Save(PFWithdrawalRequest item);
|
|
void Delete(int id);
|
|
PfWithdrawalRequestAttachment LoadPfWithdrawalRequestAttachment(PFWithdrawalRequest oPFWithdrawalRequest);
|
|
int UpdatePfMembershipWithdrawalApproveByTrustees(PFWithdrawalRequest item);
|
|
int UpdatePfMembershipWithdrawalApproveBySecondTrustees(PFWithdrawalRequest item);
|
|
string SendMailToPfMembershipWithdrawalApplicant(PFWithdrawalRequest oLoanApplication, EmailSettings emailSettings);
|
|
string SendMailToPfMembershipWithdrawalHR(PFWithdrawalRequest oPFWithdrawalRequest, EmailSettings emailSettings, int HrID);
|
|
List<PFWithdrawalRequest> GetAllRequestByDateRange(DateTime FromDate, DateTime ToDate, int Status);
|
|
void UpdatePFWRApproveByTrustees(PFWithdrawalRequest oPFWithdrawalRequest);
|
|
void Update(PFWithdrawalRequest pfWithdrawalRequest);
|
|
void ApprovePPFWithdrawalRequest(WFMovementTran approver, CurrentUser currentUser);
|
|
void PFWithdrawalApplicationReject(WFMovementTran rejectTran, CurrentUser currentUser);
|
|
}
|
|
#endregion IPFWithdrawalRequest Service
|
|
}
|