using System.Threading; using System.Threading.Tasks; using GB5Shared.DTO.Framework.Login; namespace FrameworkDAL.CustomCode.Promotion { /// Resolves MREPORTHEADER.ReportHeaderId <-> ReportHeaderCode, scoped to /// CLIENTID=-1 (the "not tenant-specific" sentinel) — MREPORTHEADER's own unique constraint is /// (REPORTHEADERCODE, CLIENTID), so a promotable header is only ever looked up among the /// CLIENTID=-1 rows; a header actually scoped to a specific client is blocked from promotion /// entirely (see ReportHeaderPromotionAdapter's validation), never resolved through here. public interface IReportHeaderCodeLookupDAL { Task GetReportHeaderCodeById(int reportHeaderId, LoginDTO login, CancellationToken ct); Task GetReportHeaderIdByCode(string reportHeaderCode, LoginDTO login, CancellationToken ct); } }