211 lines
6.2 KiB
C#
211 lines
6.2 KiB
C#
|
|
using Ease.Core.Model;
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class RecruitementStep : AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
public RecruitementStep()
|
|
{
|
|
_startDate = DateTime.MinValue;
|
|
_endDate = DateTime.MinValue;
|
|
_stepType = EnumRecruitementStep.Viva;
|
|
_fullMark = 0.0;
|
|
_passMark = 0.0;
|
|
_stepSerial = 0;
|
|
_topSelect = 0;
|
|
_AssesmentStatus = EnumAssesmentStatus.None;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public int requisitionID { get; set; }
|
|
private DateTime _startDate;
|
|
private DateTime _endDate;
|
|
private double _fullMark;
|
|
private double _passMark;
|
|
private double _topSelect;
|
|
private int _stepSerial;
|
|
private EnumRecruitementStep _stepType;
|
|
private EnumAssesmentStatus _AssesmentStatus;
|
|
private List<SelectedCandidate> _selectedCandidates;
|
|
public int ProcessId { get; set; }
|
|
public List<InterviewSession> InterviewSessions { get; set; }
|
|
|
|
|
|
public DateTime StartDate
|
|
{
|
|
get { return _startDate; }
|
|
set { _startDate = value; }
|
|
}
|
|
|
|
public DateTime EndDate
|
|
{
|
|
get { return _endDate; }
|
|
set { _endDate = value; }
|
|
}
|
|
|
|
public double FullMark
|
|
{
|
|
get { return _fullMark; }
|
|
set { _fullMark = value; }
|
|
}
|
|
|
|
public double PassMark
|
|
{
|
|
get { return _passMark; }
|
|
set { _passMark = value; }
|
|
}
|
|
|
|
public double TopSelect
|
|
{
|
|
get { return _topSelect; }
|
|
set { _topSelect = value; }
|
|
}
|
|
|
|
public EnumRecruitementStep stepType
|
|
{
|
|
get { return _stepType; }
|
|
set { _stepType = value; }
|
|
}
|
|
|
|
public EnumAssesmentStatus AssesmentStatus
|
|
{
|
|
get { return _AssesmentStatus; }
|
|
set { _AssesmentStatus = value; }
|
|
}
|
|
|
|
|
|
public List<SelectedCandidate> SelectedCandidates
|
|
{
|
|
get { return _selectedCandidates; }
|
|
set { _selectedCandidates = value; }
|
|
}
|
|
|
|
|
|
public int StepSerial
|
|
{
|
|
get { return _stepSerial; }
|
|
set { _stepSerial = value; }
|
|
}
|
|
|
|
public string getStepName()
|
|
{
|
|
string str = "";
|
|
|
|
switch (this.stepType)
|
|
{
|
|
case EnumRecruitementStep.Viva:
|
|
str = "Viva";
|
|
break;
|
|
case EnumRecruitementStep.Written:
|
|
str = "written Exam";
|
|
break;
|
|
case EnumRecruitementStep.Final_Selection:
|
|
str = "Final Selection";
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return str;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
|
|
public class InterviewSession : AuditTrailBase
|
|
{
|
|
public InterviewSession()
|
|
{
|
|
this.EndTime = null;
|
|
this.Remarks = "";
|
|
this.SessionStatus = EnumInterViewSesstionStatus.Not_Yet_initiated;
|
|
this.candidateMailtext = "Dear Mr./Ms <<Candidate_Name>>, \n This is to inform you that the"
|
|
+ " <<Position_Name>> <<Session_Name>> will be held on <<Session_Date>> <<Session_Time>>. "
|
|
+ "\n. You are requested to attend.";
|
|
|
|
this.boardMemberMailtext = "Dear Mr./Ms <<Member_Name>>, \n This is to inform you that the"
|
|
+ " <<Position_Name>> <<Session_Name>> will be held on <<Session_Date>> at <<Session_Time>>. "
|
|
+ "\n. You have been selected as a Board-Member and requtested to attend.";
|
|
}
|
|
public int requitementStepID { get; set; }
|
|
public DateTime interviewDate { get; set; }
|
|
public DateTime StartTime { get; set; }
|
|
public DateTime? EndTime { get; set; }
|
|
public string Remarks { get; set; }
|
|
public EnumInterViewSesstionStatus SessionStatus { get; set; }
|
|
public List<BoardMember> BoadMembers { get; set; }
|
|
public List<MemberWiseMark> BoadMemberWiseMarks { get; set; }
|
|
public RecruitementStep Step { get; set; }
|
|
public List<InterviewSessionCandidate> Candidates { get; set; }
|
|
public string candidateMailtext { get; set; }
|
|
public string boardMemberMailtext { get; set; }
|
|
public bool boardMemberSelfAssessment { get; set; }
|
|
|
|
}
|
|
public class InterviewSessionCandidate : AuditTrailBase
|
|
{
|
|
public InterviewSessionCandidate()
|
|
{
|
|
this.participate = true;
|
|
this.remarks = "";
|
|
}
|
|
public int requitementStepID { get; set; }
|
|
public int InterViewSessionID { get; set; }
|
|
public int CandidateID { get; set; }
|
|
public bool participate { get; set; }
|
|
public DateTime InterviewDateTime { get; set; }
|
|
public string remarks { get; set; }
|
|
public int cvid { get; set; }
|
|
public bool isSelected { get; set; }
|
|
public CV cv { get; set; }
|
|
public string positionName { get; set; }
|
|
}
|
|
|
|
public class CandidateAverageMarks : AuditTrailBase
|
|
{
|
|
public CandidateAverageMarks()
|
|
{
|
|
this.AverageMarks = 0;
|
|
}
|
|
public int CandidateID { get; set; }
|
|
public EnumRecruitementStep StepStatus { get; set; }
|
|
public string StepStatusString { get; set; }
|
|
public double AverageMarks { get; set; }
|
|
}
|
|
|
|
public class CandidateAverageMarkSummary : AuditTrailBase
|
|
{
|
|
public CandidateAverageMarkSummary()
|
|
{
|
|
|
|
}
|
|
public int CandidateID { get; set; }
|
|
public string StepAvgMarks { get; set; }
|
|
}
|
|
|
|
public class CandidateMarksDetails : AuditTrailBase
|
|
{
|
|
public CandidateMarksDetails()
|
|
{
|
|
|
|
}
|
|
public string EmployeeName { get; set; }
|
|
public EnumRecruitementStep StepStatus { get; set; }
|
|
public int StepId { get; set; }
|
|
public int EmployeeId { get; set; }
|
|
public int CadidateId { get; set; }
|
|
public double Marks { get; set; }
|
|
public int InterviewSessionId { get; set; }
|
|
public string StepStatusString { get; set; }
|
|
}
|
|
} |