EchoTex_Payroll/HRM.DA/DA/Salary/SalaryMonthlyDatailDA.cs

71 lines
2.3 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 SalaryMonthlyDetailDA
// internal class SalaryMonthlyDetailDA
// {
// #region Constructor
// private SalaryMonthlyDetailDA() { }
// #endregion
// #region Insert function
// internal static void Insert(TransactionContext tc, SalaryMonthlyDetail item)
// {
// tc.ExecuteNonQuery("INSERT INTO SalaryMonthlyDetail(SalaryMonthlyDetailID, SalaryMonthlyID, ItemID, SupportID, Description, Position, CalculatedAmount, ChangedAmount, ItemCode)" +
// " VALUES(%n, %n, %n, %n, %s, %n, %n, %n, %n)", item.ID, item.SalaryMonthlyID, item.ItemID, item.SupportID, item.Description, item.Position, item.CalculatedAmount, item.ChangedAmount, item.ItemCode);
// }
// #endregion
// #region Update function
// internal static void Update(TransactionContext tc, SalaryMonthlyDetail item)
// {
// tc.ExecuteNonQuery("UPDATE SalaryMonthlyDetail SET SalaryMonthlyID=%n, ItemID=%n, SupportID=%n, Description=%s, Position=%n, CalculatedAmount=%n, ChangedAmount=%n, ItemCode=%n" +
// " WHERE SalaryMonthlyDetailID=%n", item.SalaryMonthlyID, item.ItemID, item.SupportID, item.Description, item.Position, item.CalculatedAmount, item.ChangedAmount, item.ItemCode, item.ID);
// }
// #endregion
// #region Get Function
// internal static IDataReader Get(TransactionContext tc)
// {
// return tc.ExecuteReader("SELECT * FROM SalaryMonthlyDetail");
// }
// internal static IDataReader Get(TransactionContext tc, int nID)
// {
// return tc.ExecuteReader("SELECT * FROM SalaryMonthlyDetail WHERE SalaryMonthlyDetailID=%n", nID);
// }
// #endregion
// #region Delete function
// internal static void Delete(TransactionContext tc, int nID)
// {
// tc.ExecuteNonQuery("DELETE FROM SalaryMonthlyDetail WHERE SalaryMonthlyDetailID=%n", nID);
// }
// #endregion
// }
// #endregion
//}