using Ease.Core.DataAccess; using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class CV : AuditTrailBase { #region Constructor public CV() { } #endregion #region Properties public string Name { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } public string Mobile { get; set; } public int? DesignationID { get; set; } public string PresentAddress { get; set; } public string PermanentAddress { get; set; } public EnumGender Gender { get; set; } public EnumMaritalStatus MaritalStatus { get; set; } public string SortStatus { get; set; } public int? ReligionID { get; set; } public string Designation { get; set; } public List AllExperiences { get; set; } public List AllEduQualifications { get; set; } public List CVReferences { get; set; } public List IRFileAttacments { get; set; } public FileAttachment CVProfilePhoto { get; set; } public List CVTrainings { get; set; } public int PositionID { get; set; } public int CVID { get; set; } public EnumOnBoradStatus? PositionStatus { get; set; } public int CandidateID { get; set; } public int? ErCvID { get; set; } public bool PrimarySelected { get; set; } public string Details { get; set; } public string EducationalSummary { get; set; } public string CareerSummary { get; set; } public string Reference { get; set; } public int SerialId { get; set; } public string Institute { get; set; } public string Education { get; set; } public string Experience { get; set; } public string Skill { get; set; } public string PrevCandidateStatus { get; set; } #endregion //#region Service Factory ICVService : ICVService //internal static ICVService Service //{ // get { return Services.Factory.CreateService(typeof(ICVService)); } //} //#endregion //#region Methods //#region Save() //public void Save() //{ // this.SetAuditTrailProperties(); // CV.Service.Save(this); //} //#endregion //#region GetReferredBy(int cVID) //public static List< ReferredBy > GetReferredBy(int cVID) //{ // return CV.Service.GetReferredBy(cVID); //} //#endregion //#region GetCVOrgByID(int cVID) //public static List GetCVOrgByID(int cVID) //{ // return CV.Service.GetCVOrgByID(cVID); //} //#endregion //#region GetExperiences(int cVID) //public static List< Experience > GetExperiences(int cVID) //{ // return CV.Service.GetExperiences(cVID); //} //#endregion //#region GetEducationQualifications(int cVID) //public static List< EductionalQualification >GetEducationQualifications(int id) //{ // return CV.Service.GetEducationQualifications(id); //} //#endregion //#region Get() //public static List< CV > Get() //{ // return CV.Service.Get(); //} //#endregion //#region Get(int id) //public static CV Get(int cVID) //{ // return CV.Service.Get(cVID); //} //#endregion //#region GenerateTrackNo() //public static string GenerateTrackNo() //{ // return CV.Service.GenerateTrackNo().ToString(); //} //#endregion //#region Delete //public void Delete() //{ // CV.Service.Delete(this); //} //#endregion //#region List< CV > GetByQueryString(string query) //public static List GetByQuery(string query) //{ // return CV.Service.GetByQuery(query); //} //#endregion //#endregion } #region ICVService Service public interface ICVService { void Save(CV obCV,string connectionString); void SaveCVSort(List Items); List SaveCVs(List cvs, string connectionString); CV Get(int cVID); List Get(); List getAllOnlyCV(); List GetByCvSearch(string name, string email, string mobile); List GetAllSearchedCV(string name, string email, string mobile, DateTime? fromDate, DateTime? toDate); List GetAllAttachments(int refID, EnumFileType type); List GetExperiences(int cVID); void Delete(CV obCv); void DeleteCVRecuirtmemt(CV obCv); int GenerateTrackNo(); DataTable dtGetCVByID(int cvID); List GetCVs(); List GetCVByIDs(string cVIDs); List GetCVAttachmentbyID(int cvId); List dtGetRecruitmentbyCVSort(int employeeID); List dtCVSortDetails(int positionID); void SaveUserCVSort(UserCvSort obCv); List GetPreviousCVbyRequisitionID(int requisitionID); void UpdateCompleteStatus(int positionID, int employeeID); void DeleteUserCvsort(UserCvSort obCv); bool IsRequisitionComplete(int requisitionID); List GetOnlinePortalCVs(int requisitionID); CV GetByErcvId(int ercvId); void UpdateCvNameMobileEmail(int cvId, string name, string mobile, string email, string reference, string education, string experience, string skill); List EmailAndPhoneDuplicateCheck(string mobile, string email); List GetCv(TransactionContext tc, int cvID); List GetCVs(string name, string email, string mobile, string institute, int degreeTitleId); List GetCVSortByrequisitionID(int requisitionID); void DeleteCvsort(CVSort obCv); List GetCVByCandidateIDs(string candidateIDs); } #endregion }