using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using MMDAL.DTO.ProductionPlan; using System.Data.Common; namespace MMDAL.CustomCode.ProductionPlan { public interface IProductionPlanDAL { Task GetSelectListProductionPlan(CriteriaDTO criteriaDTO, LoginDTO login, CancellationToken ct); Task GetSelectListProductionPlanDetail(CriteriaDTO criteriaDTO, LoginDTO login, CancellationToken ct); Task GetProductionPlan(int productionPlanId, LoginDTO login, CancellationToken ct); Task> GetProductionPlanDetails(int productionPlanId, LoginDTO login, CancellationToken ct); Task<(IEnumerable Items, int TotalCount)> GetProductionPlanList(int firstNumber, int maxResult, LoginDTO login, CancellationToken ct); Task SaveProductionPlanHeader(ProductionPlanSaveDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); Task UpdateProductionPlanHeader(ProductionPlanSaveDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); Task DeleteProductionPlanDetails(int productionPlanId, LoginDTO login, DbTransaction tx, CancellationToken ct); Task BulkSaveProductionPlanDetails(IEnumerable details, LoginDTO login, DbTransaction tx); Task SoftDeleteProductionPlan(int productionPlanId, int modifiedById, LoginDTO login, DbTransaction tx, CancellationToken ct); Task> GetPlanDetailsForWOGeneration(int productionPlanId, LoginDTO login, CancellationToken ct); Task LinkPlanDetailToIndent(int productionPlanDetailId, int indentDetailId, LoginDTO login, DbTransaction tx, CancellationToken ct); } }