EchoTex_Payroll/HRM.DA/DA/Attendance/AttnBenefitAuditTrailDA.cs

45 lines
2.3 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35.DataAccess;
using System.Data;
using HRM.BO;
using Ease.Core.DataAccess;
namespace HRM.DA
{
internal class AttnBenefitAuditTrailDA
{
#region Constructor
private AttnBenefitAuditTrailDA()
{
}
#endregion
#region Insert function
internal static void Insert(TransactionContext tc, AttnBenefitAuditTrail item)
{
//1 2 3 4 5 6 7 8 9 10 11 12
string sql = SQLParser.MakeSQL(
@"INSERT INTO AttnBenefitAuditTrail(AttnBenefitAuditTrailID, EmployeeID, SalaryMonth, ItemType, ItemID, AttnDate, ColumnName, Value, UserID, ApproveTime, SystemMode, SourceModule)
VALUES( %n, %n, %D, %n, %n, %D, %s, %n, %n, %D, %n, %s)",
item.ID, DataReader.GetNullValue(item.EmployeeID, 0), item.SalaryMonth, (int)item.ItemType,
DataReader.GetNullValue(item.ItemID, 0), item.AttnDate, item.ColumnName, item.Value,
DataReader.GetNullValue(item.UserID, 0), item.ApproveTime, (int)item.SystemMode, item.SourceModule);
tc.ExecuteNonQuery(sql);
}
#endregion
internal static DataSet GetAttnBenefitAuditTrailData(TransactionContext tc, DateTime date)
{
DataSet dt = null;
return dt;
}
}
}