//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 OrganogramAuthority DA // internal class OrganogramAuthorityDA // { // #region Constructor // private OrganogramAuthorityDA() { } // #endregion // #region Insert function // internal static void Insert(TransactionContext tc, OrganogramAuthority item) // { // tc.ExecuteNonQuery("INSERT INTO OrganogramAuthority(OrganogramAuthorityID, NodeID, AuthorityType,ChildNodeID, ModifiedBy, ModifiedDate)" + // " VALUES(%n, %n, %n, %n,%n, %d)", item.ID, item.NodeID, item.AuthorityType, item.ChildNodeID, item.ModifiedBy, item.ModifiedDate); // } // #endregion // #region Update function // internal static void Update(TransactionContext tc, OrganogramAuthority item) // { // tc.ExecuteNonQuery("UPDATE OrganogramAuthority SET NodeID=%n, AuthorityType=%n,ChildNodeID=%n, ModifiedBy=%n, ModifiedDate=%d" + // "WHERE OrganogramAuthorityID=%n", item.NodeID, item.AuthorityType, item.ChildNodeID, item.ModifiedBy, item.ModifiedDate, item.ID); // } // #endregion // #region Delete function // internal static void Delete(TransactionContext tc, int nID) // { // tc.ExecuteNonQuery("DELETE FROM [OrganogramAuthority] Where OrganogramAuthorityID=%n", nID); // } // #endregion // #region Get Function // internal static IDataReader Get(TransactionContext tc) // { // return tc.ExecuteReader("SELECT * FROM OrganogramAuthority Order By OrganogramAuthorityID"); // } // internal static IDataReader Get(TransactionContext tc, int nID) // { // return tc.ExecuteReader("SELECT * FROM OrganogramAuthority Where OrganogramAuthorityID=%n", nID); // } // #endregion // } // #endregion //}