EchoTex_Payroll/HRM.DA/DA/Organogram/OrganogramDelegationDA.cs

67 lines
2.2 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 OrganogramDelegation DA
// internal class OrganogramDelegationDA
// {
// #region Constructor
// private OrganogramDelegationDA() { }
// #endregion
// #region Insert function
// internal static void Insert(TransactionContext tc, OrganogramDelegation item)
// {
// tc.ExecuteNonQuery("INSERT INTO OrganogramDelegation(OrganogramDelegationID, NodeID,EmployeeID,FromDate,ToDate, DelegationType,IsActive, ModifiedBy, ModifiedDate)" +
// " VALUES(%n, %n,%n, %d, %d,%s,%n,%n, %d)", item.ID, item.NodeID,item.EmployeeID,item.FromDate,item.ToDate, item.IsActive, item.ModifiedBy, item.ModifiedDate);
// }
// #endregion
// #region Update function
// internal static void Update(TransactionContext tc, OrganogramDelegation item)
// {
// tc.ExecuteNonQuery("UPDATE OrganogramDelegation SET NodeID=%n, EmployeeID=%n,FromDate=%d,ToDate=%d,DelegationType=%s,IsActive=%n, ModifiedBy=%n, ModifiedDate=%d" +
// "WHERE OrganogramDelegationID=%n", item.NodeID, item.EmployeeID, item.FromDate,item.ToDate,item.DelegationType,item.IsActive, item.ModifiedBy, item.ModifiedDate, item.ID);
// }
// #endregion
// #region Delete function
// internal static void Delete(TransactionContext tc, int nID)
// {
// tc.ExecuteNonQuery("DELETE FROM [OrganogramDelegation] Where OrganogramDelegationID=%n", nID);
// }
// #endregion
// #region Get Function
// internal static IDataReader Get(TransactionContext tc)
// {
// return tc.ExecuteReader("SELECT * FROM OrganogramDelegation Order By OrganogramDelegationID");
// }
// internal static IDataReader Get(TransactionContext tc, int nID)
// {
// return tc.ExecuteReader("SELECT * FROM OrganogramDelegation Where OrganogramDelegationID=%n", nID);
// }
// #endregion
// }
// #endregion
//}