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