EchoTex_Payroll/HRM.BO/Recruitement/CV.cs

224 lines
6.2 KiB
C#
Raw Normal View History

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

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<CVExperience> AllExperiences { get; set; }
public List<CVEducation> AllEduQualifications { get; set; }
public List<CVReference> CVReferences { get; set; }
public List<FileAttachment> IRFileAttacments { get; set; }
public FileAttachment CVProfilePhoto { get; set; }
public List<CVTraining> 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<ICVService>(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<CVOrg> 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<CV> 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<CVSort> Items);
List<CV> SaveCVs(List<CV> cvs, string connectionString);
CV Get(int cVID);
List<CV> Get();
List<CV> getAllOnlyCV();
List<CV> GetByCvSearch(string name, string email, string mobile);
List<CV> GetAllSearchedCV(string name, string email, string mobile, DateTime? fromDate, DateTime? toDate);
List<FileAttachment> GetAllAttachments(int refID, EnumFileType type);
List<CVExperience> GetExperiences(int cVID);
void Delete(CV obCv);
void DeleteCVRecuirtmemt(CV obCv);
int GenerateTrackNo();
DataTable dtGetCVByID(int cvID);
List<CV> GetCVs();
List<CV> GetCVByIDs(string cVIDs);
List<FileAttachment> GetCVAttachmentbyID(int cvId);
List<RecruitmentByCVSort> dtGetRecruitmentbyCVSort(int employeeID);
List<CVSortDetails> dtCVSortDetails(int positionID);
void SaveUserCVSort(UserCvSort obCv);
List<CV> GetPreviousCVbyRequisitionID(int requisitionID);
void UpdateCompleteStatus(int positionID, int employeeID);
void DeleteUserCvsort(UserCvSort obCv);
bool IsRequisitionComplete(int requisitionID);
List<CV> 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<CV> EmailAndPhoneDuplicateCheck(string mobile, string email);
List<FileAttachment> GetCv(TransactionContext tc, int cvID);
List<CV> GetCVs(string name, string email, string mobile, string institute, int degreeTitleId);
List<CVSort> GetCVSortByrequisitionID(int requisitionID);
void DeleteCvsort(CVSort obCv);
List<CV> GetCVByCandidateIDs(string candidateIDs);
}
#endregion
}