CEL_Payroll/Payroll.Service/Organogram/DA/OrganogramResponsibilityDA.cs

65 lines
2.2 KiB
C#
Raw Normal View History

2024-09-17 14:30:13 +06:00
//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 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.Integer, item.NodeID.Integer,item.Responsibility, item.IsPrimary, item.ModifiedBy.Integer, 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.Integer, item.Responsibility, item.IsPrimary, item.ModifiedBy.Integer, item.ModifiedDate, item.ID.Integer);
// }
// #endregion
// #region Delete function
// internal static void Delete(TransactionContext tc, ID nID)
// {
// tc.ExecuteNonQuery("DELETE FROM [OrganogramResponsibility] Where OrganogramResponsibilityID=%n", nID.Integer);
// }
// #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, ID nID)
// {
// return tc.ExecuteReader("SELECT * FROM OrganogramResponsibility Where OrganogramResponsibilityID=%n", nID.Integer);
// }
// #endregion
// }
// #endregion
//}