using GB5Shared.DTO.Framework.Login; using PayRollDAL.DTO.Punch; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace PayRollBLL.Punch { public interface IPunchBLL { Task SaveMissedPunch(PunchDTO dto, LoginDTO login); /// /// Legacy device-log import: pulls raw punches for the date range (and optional /// EmployeeId, -1 = all employees) from the configured "Punch Download" database, /// then clears and reloads the corresponding TPUNCH/devicelogs range. /// Task MissingPunchInsert(int employeeId, string fromDate, string toDate, LoginDTO login, CancellationToken ct = default); /// /// Pulls only the device-log rows missing locally from the replicated linked-server /// table (resolved via the replication configuration tables) into DEVICELOG(S), then /// stages whichever of those still have no TPUNCH row into devicelogs2 for a /// downstream process to consume. Non-destructive — does not delete existing rows. /// Task MissingPunchInsertNew(int employeeId, string fromDate, string toDate, LoginDTO login, CancellationToken ct = default); } }