using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35.Model; namespace Payroll.BO { [Serializable] public class RecruitementStep : AuditTrailBase { #region Constructor public RecruitementStep() { _processID = null; _startDate = DateTime.MinValue; _endDate = DateTime.MinValue; _stepStatus = EnumRecruitementStep.None; _fullMark = 0.0; _passMark = 0.0; _allMembers = null; _allMemberWiseMarks = new ObjectsTemplate(); _type = null; _stepSerial = 0; _MeetingTime = string.Empty; _topSelect = 0; _AssesmentStatus = EnumAssesmentStatus.None; } #endregion #region Properties private ID _processID; private DateTime _startDate; private DateTime _endDate; private string _MeetingTime; private double _fullMark; private double _passMark; private double _topSelect; private EnumRecruitementStep _stepStatus; private EnumAssesmentStatus _AssesmentStatus; private ID _type; private int _stepSerial; private ObjectsTemplate _allMembers; private ObjectsTemplate _allMemberWiseMarks; private ObjectsTemplate _selectedCandidates; public ID ProcessId { get { return _processID; } set { _processID = value; } } public DateTime StartDate { get { return _startDate; } set { _startDate = value; } } public string MeetingTime { get { return _MeetingTime; } set { _MeetingTime = 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 StepStatus { get { return _stepStatus; } set { _stepStatus = value; } } public EnumAssesmentStatus AssesmentStatus { get { return _AssesmentStatus; } set { _AssesmentStatus = value; } } public ObjectsTemplate AllMembers { get { if (this.ID != null && this.ID.IsUnassigned == false && this.ID.Integer > 0 && this._allMembers == null) return RecruitementProcess.GetBoardMembers(_processID, this.ID); return _allMembers; } set { _allMembers = value; } } public ObjectsTemplate MembersforSaving { get { return _allMembers; } } public ObjectsTemplate AllMemberWiseMarks { get { if (!this.IsNew && _allMemberWiseMarks.Count == 0) RecruitementProcess.Get(this.ID, this.ProcessId); return _allMemberWiseMarks; } set { _allMemberWiseMarks = value; } } public ObjectsTemplate SelectedCandidates { get { return _selectedCandidates; } set { _selectedCandidates = value; } } public ID Type { get { return _type; } set { _type = value; } } public int StepSerial { get { return _stepSerial; } set { _stepSerial = value; } } #endregion } }