EchoTex_Payroll/HRM.DA/DA/SearchTools/QTAuthorizationDA.cs

33 lines
1.1 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
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);
}
}
}