using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class ErAppliedApplicant : AuditTrailBase { #region Constructor public ErAppliedApplicant() { } #endregion #region Properties public int UserID { get; set; } public int JobID { get; set; } public DateTime ApplyDate { get; set; } public bool ApplicationAcknowldged { get; set; } public bool IsSelectedforInterview { get; set; } public bool IsOfferLetteraccepted { get; set; } public int OfferletterAcceptBy { get; set; } public string OfferletterRejectReason { get; set; } public DateTime? OfferLetterIssueDate { get; set; } public DateTime? OfferletterAcceptDate { get; set; } public string UserName { get; set; } #endregion } public class ErJobupdate : AuditTrailBase { #region Constructor public ErJobupdate() { } #endregion #region Properties public int UserID { get; set; } public int JobID { get; set; } public int AppliedApplicantID { get; set; } public EnumActorType UpdatedBy { get; set; } public bool IsAcknowledged { get; set; } public DateTime? AcknowledgeDate { get; set; } public int ReferenceID { get; set; } public string Description { get; set; } public string Remarks { get; set; } public DateTime? UpdateDate { get; set; } #endregion } public class ErApplicantDoc : AuditTrailBase { #region Constructor public ErApplicantDoc() { } #endregion #region Properties public int AppliedApplicantID { get; set; } public int UserID { get; set; } public EnumFileType? DocType { get; set; } public EnumActorType UpdatedBy { get; set; } public DateTime CreatedDate { get; set; } public string Remarks { get; set; } public int JobID { get; set; } public string OriginalFileName { get; set; } public byte[] FileData { get; set; } public string FileTobase64 { get { return FileData == null ? null : Convert.ToBase64String(FileData); } } #endregion } #region IErAppliedApplicantervice Service public interface IErAppliedApplicantService { void Save(ErAppliedApplicant oErAppliedApplicant); void Save(ErJobupdate oErJobupdate); void Save(ErApplicantDoc oErApplicantDoc); List Get(); List GetByID(int applicantId); List GetByApplicantID(int applicantId); void Delete(ErAppliedApplicant oErAppliedApplicant); List GetApplicantInfoByRecruitmentID(int recruitmentId); List GetJobupdateByUserId(int userId, int jobId); ErAppliedApplicant GetApplicantInfoByUserID(int recruitmentId, int userId); void Save(ErApplicantDoc oErJobupdate, string connectionstring); List GetApplicantDocByUserID(int userId, int jobId); List GetJobApplicantByUserId(int userId, int jobid); List GetAllJobApplicantByUserId(int userId); } #endregion }