|
|
|
@ -88,6 +88,9 @@ namespace DS.WMS.Core.HangfireJob.Method
|
|
|
|
|
x.TEU
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
|
|
|
|
|
if (list.Count == 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
var ids = list.Select(x => x.Id.ToString());
|
|
|
|
|
var ctnList = await tenantDb.Queryable<OpCtn>().Where(x => ids.Contains(x.BSNO) &&
|
|
|
|
|
!SqlFunc.IsNullOrEmpty(x.CntrNo) && !SqlFunc.IsNullOrEmpty(x.SealNo))
|
|
|
|
@ -117,6 +120,7 @@ namespace DS.WMS.Core.HangfireJob.Method
|
|
|
|
|
MemoryStream ms = new MemoryStream();
|
|
|
|
|
await MiniExcel.SaveAsByTemplateAsync(ms, path, model);
|
|
|
|
|
string base64Str = Convert.ToBase64String(ms.ToArray());
|
|
|
|
|
ms.Dispose();
|
|
|
|
|
var attaches = new List<Attachment>
|
|
|
|
|
{
|
|
|
|
|
new() { AttachName = "WSL Volume Daily Increase Report.xlsx", AttachContent = base64Str}
|
|
|
|
@ -126,7 +130,7 @@ namespace DS.WMS.Core.HangfireJob.Method
|
|
|
|
|
{
|
|
|
|
|
SendTo = config["TaskMail:DefaultSetting:Receivers"],
|
|
|
|
|
Title = "WSL Volume Daily Increase Report",
|
|
|
|
|
Body = "Dear WSL Team" + Environment.NewLine + "Pls kindly check the daily report for your member's nomination booking:",
|
|
|
|
|
Body = "Dear WSL Team" + "<br/>" + "Pls kindly check the daily report for your member's nomination booking:",
|
|
|
|
|
//ShowName = "",
|
|
|
|
|
Account = config["TaskMail:DefaultSetting:Account"],
|
|
|
|
|
Password = config["TaskMail:DefaultSetting:Password"],
|
|
|
|
|