55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
|
using System;
|
|||
|
using Payroll.BO;
|
|||
|
using System.Data;
|
|||
|
using System.Linq;
|
|||
|
using Ease.CoreV35.Model;
|
|||
|
using System.Data.SqlClient;
|
|||
|
using Ease.CoreV35.DataAccess;
|
|||
|
using System.Collections.Generic;
|
|||
|
using Ease.CoreV35.DataAccess.SQL;
|
|||
|
|
|||
|
namespace Payroll.Service
|
|||
|
{
|
|||
|
#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.Integer,item.RecruitementProcessID.Integer, item.EmpRequisitionID.Integer);
|
|||
|
}
|
|||
|
|
|||
|
#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, ID nID)
|
|||
|
{
|
|||
|
tc.ExecuteNonQuery("DELETE FROM CreatedRequisition WHERE RecruitementProcessID=%n", nID.Integer);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|