EchoTex_Payroll/HRM.DA/DA/Recruitement/InterviewAssessmentKPIDA.cs

87 lines
3.6 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using HRM.BO;
using Ease.Core.DataAccess;
using System;
using System.Data;
namespace HRM.DA
{
public class InterviewAssessmentKPIDA
{
internal static void Insert(InterviewAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Insert Into InterviewAssessmentKPI(InterviewAssessmentKPIID,Description, MaxMark,MinMark)
Values(%n, %s, %n, %n)", item.ID, item.Description, item.MaxMark,
item.MinMark);
tc.ExecuteNonQuery(sql);
}
internal static void Update(InterviewAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Update InterviewAssessmentKPI set Description =%s ,MaxMark =%n,
MinMark =%n where InterviewAssessmentKPIID =%n
", item.Description,
item.MaxMark, item.MinMark,item.ID);
tc.ExecuteNonQuery(sql);
}
internal static void Delete(InterviewAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Delete From InterviewAssessmentKPI where InterviewAssessmentKPIID =%n
", item.ID);
tc.ExecuteNonQuery(sql);
}
internal static IDataReader Get(TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"select * from InterviewAssessmentKPI");
return tc.ExecuteReader(sql);
}
internal static IDataReader GeById(TransactionContext tc, int id)
{
string sql = SQLParser.MakeSQL(@"select * from InterviewAssessmentKPI where InterviewAssessmentKPIID =%n", id);
return tc.ExecuteReader(sql);
}
internal static void InsertBoardKpi(InterviewBoardAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Insert Into InterviewBoardAssessmentKPI(InterviewBoardAssessmentKPIID,InterviewAssessmentKPIID, Marks,CandidateID,SessionID,InterviewBoardMemberID)
Values(%n, %n, %n,%n,%n,%n)", item.ID, item.InterviewAssessmentKPIID, item.Marks,item.CandidateId,item.SessionId,item.InterviewAssessmentKPIID);
tc.ExecuteNonQuery(sql);
}
internal static void UpdateBoardKpi(InterviewBoardAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Update InterviewBoardAssessmentKPI set InterviewAssessmentKPIID =%n ,Marks =%n,CandidateID=%n,SessionID=%n,InterviewBoardMemberID=%n
where InterviewBoardAssessmentKPIID =%n
", item.InterviewAssessmentKPIID,
item.Marks, item.CandidateId, item.SessionId, item.InterviewAssessmentKPIID, item.ID);
tc.ExecuteNonQuery(sql);
}
internal static void DeleteBoardKpi(InterviewBoardAssessmentKPI item, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Delete From InterviewBoardAssessmentKPI where InterviewBoardAssessmentKPIID =%n
", item.ID);
tc.ExecuteNonQuery(sql);
}
internal static IDataReader GetBoardKpi(TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"select * from InterviewBoardAssessmentKPI");
return tc.ExecuteReader(sql);
}
internal static IDataReader GetBoardbyId(TransactionContext tc, int id)
{
string sql = SQLParser.MakeSQL(@"select * from InterviewBoardAssessmentKPI where InterviewBoardAssessmentKPIID =%n", id);
return tc.ExecuteReader(sql);
}
}
}