86 lines
1.6 KiB
C#
86 lines
1.6 KiB
C#
|
|
using Ease.Core.DataAccess;
|
|
using Ease.Core.Model;
|
|
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class SurveyQuestion : AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
public SurveyQuestion()
|
|
{
|
|
_surveyID = 0;
|
|
_questionID = 0;
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region SurveyID : ID
|
|
|
|
private int _surveyID;
|
|
public int SurveyID
|
|
{
|
|
get { return _surveyID; }
|
|
set
|
|
{
|
|
|
|
_surveyID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region QuestionID : int
|
|
|
|
private int _questionID;
|
|
public int QuestionID
|
|
{
|
|
get { return _questionID; }
|
|
set
|
|
{
|
|
|
|
_questionID = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Service Factory IPFTransactionService : IPFTransactionService
|
|
|
|
public Question Question { get; set; }
|
|
|
|
internal static ISurveyQuestionService Service
|
|
{
|
|
get { return Services.Factory.CreateService<ISurveyQuestionService>(typeof(ISurveyQuestionService)); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
}
|
|
#region ISurveyQuestion Service
|
|
|
|
public interface ISurveyQuestionService
|
|
{
|
|
List<SurveyQuestion> GetSurveyQuestion(int surveyId);
|
|
List<SurveyQuestion> GetSurveyQuestion();
|
|
int Save(SurveyQuestion item);
|
|
void Delete(int id);
|
|
List<SurveyQuestion> GetSurveyQuestions(TransactionContext tc, string surveyIds);
|
|
}
|
|
|
|
#endregion
|
|
}
|