66 lines
2.2 KiB
C#
66 lines
2.2 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 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.Integer, item.NodeID.Integer, item.AuthorityType, item.ChildNodeID.Integer, item.ModifiedBy.Integer, 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.Integer, item.AuthorityType, item.ChildNodeID.Integer, item.ModifiedBy.Integer, item.ModifiedDate, item.ID.Integer);
|
|
// }
|
|
|
|
// #endregion
|
|
|
|
// #region Delete function
|
|
|
|
// internal static void Delete(TransactionContext tc, ID nID)
|
|
// {
|
|
// tc.ExecuteNonQuery("DELETE FROM [OrganogramAuthority] Where OrganogramAuthorityID=%n", nID.Integer);
|
|
// }
|
|
|
|
// #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, ID nID)
|
|
// {
|
|
// return tc.ExecuteReader("SELECT * FROM OrganogramAuthority Where OrganogramAuthorityID=%n", nID.Integer);
|
|
// }
|
|
// #endregion
|
|
|
|
// }
|
|
// #endregion
|
|
//}
|