66 lines
2.3 KiB
C#
66 lines
2.3 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 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.Integer, item.NodeID.Integer,item.EmployeeID.Integer,item.FromDate,item.ToDate, item.IsActive, item.ModifiedBy.Integer, 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.Integer, item.EmployeeID.Integer, item.FromDate,item.ToDate,item.DelegationType,item.IsActive, item.ModifiedBy.Integer, item.ModifiedDate, item.ID.Integer);
|
|
// }
|
|
|
|
// #endregion
|
|
|
|
// #region Delete function
|
|
|
|
// internal static void Delete(TransactionContext tc, ID nID)
|
|
// {
|
|
// tc.ExecuteNonQuery("DELETE FROM [OrganogramDelegation] Where OrganogramDelegationID=%n", nID.Integer);
|
|
// }
|
|
|
|
// #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, ID nID)
|
|
// {
|
|
// return tc.ExecuteReader("SELECT * FROM OrganogramDelegation Where OrganogramDelegationID=%n", nID.Integer);
|
|
// }
|
|
// #endregion
|
|
|
|
// }
|
|
// #endregion
|
|
//}
|