CEL_Payroll/Payroll.Service/Recruitement/DA/RecruitementOrgDA.cs

38 lines
1.4 KiB
C#
Raw Normal View History

2024-09-17 14:30:13 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35.Model;
using Payroll.BO;
using Ease.CoreV35.DataAccess;
namespace Payroll.Service
{
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.Integer, obRecrOrg.ProcessId.Integer, obRecrOrg.OrganizationId.Integer);
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.Integer, obRecrOrg.OrganizationId.Integer, obRecrOrg.ID.Integer);
tc.ExecuteNonQuery(sql);
}
internal static void Delete(ID id, TransactionContext tc)
{
string sql = SQLParser.MakeSQL(@"Delete From RecruitementOrg Where RecruitementOrgID = %n", id.Integer);
tc.ExecuteNonQuery(sql);
}
internal static void Delete(TransactionContext tc, ID oID)
{
string sql = SQLParser.MakeSQL(@"Delete From RecruitementOrg Where ProcessId = %n", oID.Integer);
tc.ExecuteNonQuery(sql);
}
}
}