using HRM.BO.SearchTools; using System; using System.Collections.Generic; using System.Text; using Ease.Core.DataAccess; namespace HRM.DA.DA.SearchTools { internal class QTAuthorizationDA { public QTAuthorizationDA() { } internal static void Insert(TransactionContext tc, QTAuthorization item) { string sql = SQLParser.MakeSQL( @"INSERT INTO dbo.QTAuthorization (QTAuthorizationID, QueryToolID, AuthorizeDate, Count, EmployeeID) VALUES (%n, %n, %d, %n, %n)", item.ID, item.QueryToolID, item.AuthorizeDate, item.Count, item.EmployeeID); tc.ExecuteNonQuery(sql); } internal static void Update(TransactionContext tc, QTAuthorization item) { string sql = SQLParser.MakeSQL(@"UPDATE dbo.QTAuthorization SET QueryToolID = %n, AuthorizeDate = %d, Count = %n WHERE QTAuthorizationID = %n", item.QueryToolID, item.AuthorizeDate, item.Count, item.ID); } } }