//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 SalaryEmpCostCenterDA // internal class SalaryEmpCostCenterDA // { // #region Constructor // private SalaryEmpCostCenterDA() { } // #endregion // #region Insert function // internal static void Insert(TransactionContext tc, SalaryEmpCostCenter item) // { // tc.ExecuteNonQuery("INSERT INTO SalaryEmpCostCenter(SalaryEmpCostCenterID, SalaryMonthlyID, CostCenterID, Percentage, EmployeeID)" + // " VALUES(%n, %n, %n, %n, %n)", item.ID.Integer, item.SalaryMontlyID, item.CostCenterID, item.Percentage, item.EmployeeID); // } // #endregion // #region Update function // internal static void Update(TransactionContext tc, SalaryEmpCostCenter item) // { // tc.ExecuteNonQuery("UPDATE SalaryEmpCostCenter SET SalaryMonthlyID=%n, CostCenterID=%n, Percentage=%n, EmployeeID=%n" + // " WHERE SalaryEmpCostCenterID=%n", item.SalaryMontlyID, item.CostCenterID, item.Percentage, item.EmployeeID, item.ID.Integer); // } // #endregion // #region Get Function // internal static IDataReader Get(TransactionContext tc) // { // return tc.ExecuteReader("SELECT * FROM SalaryEmpCostCenter"); // } // internal static IDataReader Get(TransactionContext tc, ID nID) // { // return tc.ExecuteReader("SELECT * FROM SalaryEmpCostCenter WHERE SalaryEmpCostCenterID=%n", nID); // } // #endregion // #region Delete function // internal static void Delete(TransactionContext tc, ID nID) // { // tc.ExecuteNonQuery("DELETE FROM [SalaryEmpCostCenter] WHERE SalaryEmpCostCenterID=%n", nID); // } // #endregion // } // #endregion //}