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