52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using HRM.BO;
|
|
using Ease.Core.DataAccess;
|
|
using System;
|
|
using System.Data;
|
|
|
|
|
|
namespace HRM.DA
|
|
{
|
|
#region CreatedRequisitionDA
|
|
|
|
internal class CreatedRequisitionDA
|
|
{
|
|
#region Constructor
|
|
|
|
private CreatedRequisitionDA()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Insert function
|
|
|
|
internal static void Insert(TransactionContext tc, CreatedRequisition item)
|
|
{
|
|
tc.ExecuteNonQuery(
|
|
"INSERT INTO CreatedRequisition(CreatedRequisitionID,RecruitementProcessID, EmpRequisitionID)" +
|
|
" VALUES(%n,%n, %n)", item.ID, item.RecruitementProcessID, item.EmpRequisitionID);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Get Function
|
|
|
|
internal static IDataReader Get(TransactionContext tc)
|
|
{
|
|
return tc.ExecuteReader("SELECT * FROM CreatedRequisition order by CreatedRequisitionID");
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Delete function
|
|
|
|
internal static void Delete(TransactionContext tc, int nID)
|
|
{
|
|
tc.ExecuteNonQuery("DELETE FROM CreatedRequisition WHERE RecruitementProcessID=%n", nID);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
|
|
#endregion
|
|
} |