using HRM.BO; using Ease.Core.DataAccess; using System; using System.Data; namespace HRM.DA { public class RecruitementOrgDA { internal static void Insert(RecruitementOrg obRecrOrg, TransactionContext tc) { string sql = SQLParser.MakeSQL(@"Insert Into RECRUITEMENTORG(RECRUITEMENTORGID,ProcessId,OrganizationId) Values(%n,%n,%n)", obRecrOrg.ID, obRecrOrg.ProcessId, obRecrOrg.OrganizationId); tc.ExecuteNonQuery(sql); } internal static void Update(RecruitementOrg obRecrOrg, TransactionContext tc) { string sql = SQLParser.MakeSQL( @"Update RECRUITEMENTORG Set ProcessId = %n,OrganizationId = %n Where RECRUITEMENTORGID = %n", obRecrOrg.ProcessId, obRecrOrg.OrganizationId, obRecrOrg.ID); tc.ExecuteNonQuery(sql); } internal static void Delete(int id, TransactionContext tc) { string sql = SQLParser.MakeSQL(@"Delete From RECRUITEMENTORG Where RECRUITEMENTORGID = %n", id); tc.ExecuteNonQuery(sql); } internal static void Delete(TransactionContext tc, int oID) { string sql = SQLParser.MakeSQL(@"Delete From RECRUITEMENTORG Where ProcessId = %n", oID); tc.ExecuteNonQuery(sql); } } }