fix
This commit is contained in:
parent
3afab0dee9
commit
67257c30ca
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
using HardwareShopBusinessLogic.MailWorker;
|
||||||
using HardwareShopBusinessLogic.OfficePackage;
|
using HardwareShopBusinessLogic.OfficePackage;
|
||||||
using HardwareShopBusinessLogic.OfficePackage.HelperModels;
|
using HardwareShopBusinessLogic.OfficePackage.HelperModels;
|
||||||
using HardwareShopBusinessLogic.OfficePackage.Implements;
|
using HardwareShopBusinessLogic.OfficePackage.Implements;
|
||||||
@ -24,16 +25,16 @@ namespace HardwareShopContracts.BusinessLogicsContracts
|
|||||||
private readonly AbstractSaveToWord _saveToWord;
|
private readonly AbstractSaveToWord _saveToWord;
|
||||||
|
|
||||||
private readonly AbstractSaveToPdf _saveToPdf;
|
private readonly AbstractSaveToPdf _saveToPdf;
|
||||||
private readonly MailSender _mailSender;
|
private readonly MailKitWorker _mailKitWorker;
|
||||||
|
|
||||||
public WorkerReportLogic(IPurchaseStorage purchaseStorage, MailSender mailSender, IBuildStorage buildStorage, AbstractSaveToPdf saveToPdf, AbstractSaveToExcel saveToExcel, AbstractSaveToWord saveToWord)
|
public WorkerReportLogic(IPurchaseStorage purchaseStorage, MailKitWorker mailKitWorker, IBuildStorage buildStorage, AbstractSaveToPdf saveToPdf, AbstractSaveToExcel saveToExcel, AbstractSaveToWord saveToWord)
|
||||||
{
|
{
|
||||||
_purchaseStorage = purchaseStorage;
|
_purchaseStorage = purchaseStorage;
|
||||||
_buildStorage = buildStorage;
|
_buildStorage = buildStorage;
|
||||||
_saveToExcel = saveToExcel;
|
_saveToExcel = saveToExcel;
|
||||||
_saveToWord = saveToWord;
|
_saveToWord = saveToWord;
|
||||||
_saveToPdf = saveToPdf;
|
_saveToPdf = saveToPdf;
|
||||||
_mailSender = mailSender;
|
_mailKitWorker = mailKitWorker;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -161,14 +162,14 @@ namespace HardwareShopContracts.BusinessLogicsContracts
|
|||||||
DateTo = model.DateTo,
|
DateTo = model.DateTo,
|
||||||
ReportPurchases = GetPurchase(model)
|
ReportPurchases = GetPurchase(model)
|
||||||
});
|
});
|
||||||
// _mailSender.SendMailAsync(new()
|
// _mailKitWorker.SendMailAsync(new()
|
||||||
// {
|
// {
|
||||||
// MailAddress = reportModel.UserEmail,
|
// MailAddress = reportModel.UserEmail,
|
||||||
// Subject = "Отчет по покупкам",
|
// Subject = "Отчет по покупкам",
|
||||||
// Text = $"За период с {reportModel.DateFrom.ToShortDateString()} " +
|
// Text = $"За период с {reportModel.DateFrom.ToShortDateString()} " +
|
||||||
//$"по {reportModel.DateTo.ToShortDateString()}.",
|
//$"по {reportModel.DateTo.ToShortDateString()}.",
|
||||||
// File = file
|
// File = file
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user