using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Reflection; namespace HRM.BO { public class SurveyEmployee : AuditTrailBase { #region Constructor public SurveyEmployee() { _surveyID = 0; participantID = 0; } #endregion #region Properties #region SurveyID : ID private int _surveyID; public int SurveyID { get { return _surveyID; } set { _surveyID = value; } } #endregion public int participantID { get; set; } public int participantUserID { get; set; } public int ReferenceID { get; set; } public EnumSurveyType surveyType { get; set; } public DateTime StartTime { get; set; } public DateTime? lastUpdateTime { get; set; } public double SpendTime { get; set; } public int? CurrentQuestionID { get; set; } public double SurveyMark { get; set; } public double PassMark { get; set; } public double ReceiveMark { get; set; } public bool IsCompleted { get; set; } public DateTime? CompleteTime { get; set; } public bool IsCancel { get; set; } public string CancelReason { get; set; } public DateTime? CancelDate { get;set; } public List Results { get; set; } #endregion } #region ISurveyEmployee Service public interface ISurveyEmployeeService { List GetSurveyEmployee(int surveyId); List GetSurveyEmployee(); List GetSurveyEmployeeByCandidateId(int surveyId, int candidateId); SurveyEmployee GetNotCompletedSurveyByparticipentID(int surveyId, int participentID,int referenceID); int Save(SurveyEmployee item); int SubmitSurvey(SurveyEmployee oSurveyEmployee); void UpdateSpendTime(SurveyEmployee oSurveyEmployee); void Delete(int id); void DeleteByCandidateID(int surveyId, int candidateId, int erCircularId); List GetSurveyEmployeebyJobId(int candidateId, int erCircularId); List GetCompleteExamByCandidate(int candidateId, int erCircularId); void Cancel(SurveyEmployee oSurveyEmployee); } #endregion }