71 lines
2.5 KiB
C#
71 lines
2.5 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 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.Integer, item.BonusProcessID.Integer, item.BonusID.Integer, item.EmployeeID.Integer, 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.Integer, item.BonusID.Integer, item.EmployeeID.Integer, item.DisburseDate, item.BonusAmount, item.BasicSalary, item.ChangeBonusAmount, item.TaxAmount, item.ChangeTaxAmount, item.ModifiedBy.Integer, item.ModifiedDate, item.ID.Integer);
|
|
// }
|
|
|
|
// #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, ID nID)
|
|
// {
|
|
// return tc.ExecuteReader("SELECT * FROM BONUSPAYDETAIL WHERE BonusProcessDetailID=%n", nID.Integer);
|
|
// }
|
|
|
|
// #endregion
|
|
|
|
// #region Delete function
|
|
|
|
// internal static void Delete(TransactionContext tc, ID nID)
|
|
// {
|
|
// tc.ExecuteNonQuery("DELETE FROM [BONUSPAYDETAIL] WHERE BonusProcessDetailID=%n", nID.Integer);
|
|
// }
|
|
|
|
// #endregion
|
|
// }
|
|
|
|
// #endregion
|
|
//}
|