EchoTex_Payroll/HRM.BO/Survey/SurveyQuestion.cs

86 lines
1.6 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00

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
}