using GB5Shared.DTO.Framework.Login; using PayRollDAL.DTO.Punch; using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PayRollDAL.CustomeCode.Punch { public interface IPunchDAL { Task SaveMissedPunch(PunchDTO dto, LoginDTO login, DbTransaction tx); Task UpdateMissedPunch(PunchDTO dto, LoginDTO login, DbTransaction tx); #region MissingPunchInsert / MissingPunchInsertNew Task GetEmployeeTemporaryCardNumberAsync(int employeeId, LoginDTO login, CancellationToken ct = default); Task> GetDeviceLogsFromPunchDbAsync(string fromDate, string toDate, string? employeeCode, LoginDTO punchDbLogin, CancellationToken ct = default); Task DeleteDeviceLogFromPunchDbAsync(int id, LoginDTO punchDbLogin, DbTransaction tx, CancellationToken ct = default); Task InsertDeviceLogFromPunchDbAsync(PunchDownloadDeviceLogDTO row, LoginDTO login, DbTransaction tx, CancellationToken ct = default); Task DeleteTPunchBeforeInsertingAsync(int employeeId, string fromDate, string toDate, LoginDTO login, DbTransaction tx, CancellationToken ct = default); Task> FindPunchServerConnectionNamesAsync(string tableName, LoginDTO login, CancellationToken ct = default); Task InsertMissingDeviceLogsFromLinkedServerAsync(int employeeId, string connectionName, string fromDate, string toDate, string tableName, LoginDTO login, DbTransaction tx, CancellationToken ct = default); Task StageMissingPunchesToDeviceLogs2Async(int employeeId, string fromDate, string toDate, string tableName, LoginDTO login, DbTransaction tx, CancellationToken ct = default); #endregion } }