|
|
|
@ -2364,7 +2364,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//2023-4-3,根据河川操作要求,文件名只带提单号
|
|
|
|
|
if(!string.IsNullOrEmpty(order.MBLNO))
|
|
|
|
|
if (!string.IsNullOrEmpty(order.MBLNO))
|
|
|
|
|
{
|
|
|
|
|
fileName = $"{order.MBLNO}{fileType}";//名称
|
|
|
|
|
}
|
|
|
|
@ -2595,7 +2595,16 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(fileFullPath);
|
|
|
|
|
}
|
|
|
|
|
fileName = $"{order.MBLNO}_{DateTime.Now.Ticks}" + ".xls";//名称
|
|
|
|
|
|
|
|
|
|
//2023-4-3,根据河川操作要求,文件名只带提单号
|
|
|
|
|
if (!string.IsNullOrEmpty(order.MBLNO))
|
|
|
|
|
{
|
|
|
|
|
fileName = $"{order.MBLNO}.xls";//名称
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
fileName = $"{order.Id}_{DateTime.Now.Ticks}.xls";//名称
|
|
|
|
|
}
|
|
|
|
|
_logger.LogInformation("导出excel:" + Path.Combine(fileFullPath, fileName));
|
|
|
|
|
var filestream = new FileStream(Path.Combine(fileFullPath, fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite);
|
|
|
|
|
excelwork.Write(filestream);
|
|
|
|
@ -5195,7 +5204,7 @@ namespace Myshipping.Application
|
|
|
|
|
x.lineRel.CarrierCode
|
|
|
|
|
}).Take(10).ToList();
|
|
|
|
|
});
|
|
|
|
|
var STemplate = _bookingTemplate.Where(x=>x.Type=="10"&&x.CreatedUserId==UserManager.UserId).Take(10).ToList();
|
|
|
|
|
var STemplate = _bookingTemplate.Where(x => x.Type == "10" && x.CreatedUserId == UserManager.UserId).Take(10).ToList();
|
|
|
|
|
var FTemplate = _bookingTemplate.Where(x => x.Type == "20" && x.CreatedUserId == UserManager.UserId).Take(10).ToList();
|
|
|
|
|
var TTemplate = _bookingTemplate.Where(x => x.Type == "30" && x.CreatedUserId == UserManager.UserId).Take(10).ToList();
|
|
|
|
|
var WTDW = _djycustomer.Where(x => x.PropString.Contains("consignor") && x.TenantId == UserManager.TENANT_ID).Take(10).ToList();
|
|
|
|
@ -5203,7 +5212,7 @@ namespace Myshipping.Application
|
|
|
|
|
var Forwarder = _cache.GetAllCodeForwarder().Result.Take(10).ToList();
|
|
|
|
|
var GoodsName = _paraGoodsInfoRepository.AsQueryable().OrderBy("GOODS_CODE asc").Take(50).ToList().Select(t => t.Adapt<ParaGoodsShowDto>()).ToList();
|
|
|
|
|
var YFXY = _paraContractNoInfoRepository.AsQueryable().OrderBy("CONTRACT_NO asc").Take(10).ToList().Select(t => t.Adapt<ParaContractNoShowDto>()).ToList(); ;
|
|
|
|
|
var User = _repUser.AsQueryable().Filter(null, true).Where(x=>x.TenantId==UserManager.TENANT_ID).Take(10).ToListAsync();
|
|
|
|
|
var User = _repUser.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID).Take(10).ToListAsync();
|
|
|
|
|
var Service = _cache.GetAllCodeService().Result.Take(10).ToList();
|
|
|
|
|
dynamic obj = new
|
|
|
|
|
{
|
|
|
|
|