HRM-10/HRM.BO/Survey/SurveyEmployee.cs
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

91 lines
2.4 KiB
C#

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<SurveyResult> Results { get; set; }
#endregion
}
#region ISurveyEmployee Service
public interface ISurveyEmployeeService
{
List<SurveyEmployee> GetSurveyEmployee(int surveyId);
List<SurveyEmployee> GetSurveyEmployee();
List<SurveyEmployee> 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<SurveyEmployee> GetSurveyEmployeebyJobId(int candidateId, int erCircularId);
List<SurveyEmployee> GetCompleteExamByCandidate(int candidateId, int erCircularId);
void Cancel(SurveyEmployee oSurveyEmployee);
}
#endregion
}