EchoTex_Payroll/HRM.DA/DA/Bonus/BonusProcessDetailDA.cs

72 lines
2.4 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
//using System;
//
//using System.Data;
//using System.Linq;
//using Ease.Core.Model;
//using System.Data.SqlClient;
//using Ease.Core.DataAccess;
//using System.Collections.Generic;
//using Ease.Core.DataAccess.SQL;
//namespace Payroll.Service
//{
// #region BonusProcessDetailDA
// internal class BonusProcessDetailDA
// {
// #region Constructor
// private BonusProcessDetailDA() { }
// #endregion
// #region Insert function
// internal static void Insert(TransactionContext tc, BonusProcessDetail item)
// {
// tc.ExecuteNonQuery("INSERT INTO BONUSPAYDETAIL(BonusProcessDetailID, bonusProcessID, bonusID, employeeID, disburseDate, amount, empBasic, changeBonusAmount, taxAmount, changeTaxAmount)" +
// " VALUES(%n, %n, %n, %n, %d, %n, %n, %n, %n, %n)", item.ID, item.BonusProcessID, item.BonusID, item.EmployeeID, item.DisburseDate, item.BonusAmount, item.BasicSalary, item.ChangeBonusAmount, item.TaxAmount, item.ChangeTaxAmount);
// }
// #endregion
// #region Update function
// internal static void Update(TransactionContext tc, BonusProcessDetail item)
// {
// tc.ExecuteNonQuery("UPDATE BONUSPAYDETAIL SET bonusProcessID=%n, bonusID=%n, employeeID=%n, disburseDate=%d, amount=%n, empBasic=%n, changeBonusAmount=%n, taxAmount=%n, changeTaxAmount=%n, ModifiedBy=%n, ModifiedDate=%d" +
// " WHERE BonusProcessDetailID=%n", item.BonusProcessID, item.BonusID, item.EmployeeID, item.DisburseDate, item.BonusAmount, item.BasicSalary, item.ChangeBonusAmount, item.TaxAmount, item.ChangeTaxAmount, item.ModifiedBy, item.ModifiedDate, item.ID);
// }
// #endregion
// #region Get Function
// internal static IDataReader Get(TransactionContext tc,EnumStatus status)
// {
// return tc.ExecuteReader("SELECT * FROM BONUSPAYDETAIL Where Status=%n Order By SequenceNo",status);
// }
// internal static IDataReader Get(TransactionContext tc, int nID)
// {
// return tc.ExecuteReader("SELECT * FROM BONUSPAYDETAIL WHERE BonusProcessDetailID=%n", nID);
// }
// #endregion
// #region Delete function
// internal static void Delete(TransactionContext tc, int nID)
// {
// tc.ExecuteNonQuery("DELETE FROM [BONUSPAYDETAIL] WHERE BonusProcessDetailID=%n", nID);
// }
// #endregion
// }
// #endregion
//}