146 lines
3.2 KiB
C#
146 lines
3.2 KiB
C#
|
|
using Ease.Core.Model;
|
|
using Org.BouncyCastle.Bcpg;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class SurveyResult : AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
public SurveyResult()
|
|
{
|
|
this.isAnswered = false;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region SurveyID : ID
|
|
|
|
private int _surveyID;
|
|
public int SurveyID
|
|
{
|
|
get { return _surveyID; }
|
|
set
|
|
{
|
|
|
|
_surveyID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
public int surveyEmployeeID { get; set; }
|
|
#region EmployeeID : int
|
|
|
|
public int participantID { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region QuestionID : int
|
|
|
|
private int _questionID;
|
|
public int QuestionID
|
|
{
|
|
get { return _questionID; }
|
|
set
|
|
{
|
|
|
|
_questionID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region AnswerID : int
|
|
public int? AnswerID { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region IsCorrect : bool
|
|
|
|
public bool? IsCorrect { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region ForEmployeeID : int
|
|
|
|
private int _forEmployeeID;
|
|
public int ForEmployeeID
|
|
{
|
|
get { return _forEmployeeID; }
|
|
set
|
|
{
|
|
|
|
_forEmployeeID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Weight : double
|
|
|
|
private double _weight;
|
|
public double Weight
|
|
{
|
|
get { return _weight; }
|
|
set
|
|
{
|
|
|
|
_weight = value;
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
public bool isAnswered { get; set; }
|
|
|
|
#region Service Factory IPFTransactionService : IPFTransactionService
|
|
|
|
internal static ISurveyResultService Service
|
|
{
|
|
get { return Services.Factory.CreateService<ISurveyResultService>(typeof(ISurveyResultService)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
|
|
public class Result : AuditTrailBase
|
|
{
|
|
public double totalMark { get; set; }
|
|
public double? totalTime { get; set; }
|
|
public string takenTime { get; set; }
|
|
public int questionCount { get; set; }
|
|
public int answerCount { get; set; }
|
|
}
|
|
#region ISurveyResult Service
|
|
|
|
public interface ISurveyResultService
|
|
{
|
|
List<SurveyResult> GetSurveyResult(int surveyId);
|
|
List<SurveyResult> GetSurveyResult(int surveyId, string employeeIds);
|
|
List<SurveyResult> GetSurveyResult(int surveyId, int employeeId, int questionID);
|
|
List<SurveyResult> GetSurveyResult();
|
|
DataSet GetSurveyResultReport(int surveyID);
|
|
int Save(SurveyResult item);
|
|
void Save(List<SurveyResult> oSrslts);
|
|
void Delete(int id);
|
|
SurveyResult GetSurveyResultByCandidateID(int surveyId, int candidateId, int questionID);
|
|
void DeleteByCandidateID(int surveyId, int candidateId, int questionID);
|
|
List<SurveyResult> GetSurveyResults(int surveyId, int candidateId);
|
|
}
|
|
|
|
#endregion
|
|
}
|