using Ease.Core.DataAccess; using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class Candidate : AuditTrailBase { #region Constructor public Candidate() { _processID = 0; _employeeID = null; _cvID = 0; _isEmployee = true; _isSelected = false; _startDate = DateTime.MinValue; _startTime = String.Empty; } #endregion #region Properties private int _processID; private bool _isEmployee; private int? _employeeID; private int _cvID; private bool _isSelected; private DateTime _startDate; private string _startTime; private bool _isCandidateInitiateDone; private CV _cv; public string StartTime { get { return _startTime; } set { _startTime = value; } } public DateTime StartDate { get { return _startDate; } set { _startDate = value; } } public int ProcessId { get { return _processID; } set { _processID = value; } } public int? EmployeeId { get { return _employeeID; } set { _employeeID = value; } } public int CvID { get { return _cvID; } set { _cvID = value; } } public bool IsEmployee { get { return _isEmployee; } set { _isEmployee = value; } } public bool IsSelected { get { return _isSelected; } set { _isSelected = value; } } public CV CV { get { return _cv; } set { _cv = value; } } public bool IsCVUpload { get { return _isSelected; } set { _isSelected = value; } } public List IRFileAttacments { get; set; } public bool PrimarySelected { get; set; } public bool DeptSelected { get; set; } public string CandidateLastStatus { get; set; } #endregion } #region ICVService Service public interface ICandidateService { void Save(Candidate obCV, string connectionString); Candidate Get(int cVID); List GetCanditates(int processID); void Delete(Candidate obCv); void Save(List items, string connectionString); void SaveCandidateAnDUpdateCV(List candidates); void SaveMultipleCandidates(TransactionContext tc, List candidates); void DeleteCandidateCVCollection(int candidateID); void UpdateCVOnInitiateDone(List candidates); Candidate GetCanditatebyCvID(int cvID, int recruitmentId); void UpdateSelection(Candidate candidate); void UpdatePrimarySelection(int candidateId); // Candidate GetCanditatebyCvId(TransactionContext tc, int cvID, int currentRecruitmentID); } #endregion }