wet 2 years ago
commit 5e011eeed6

@ -2364,7 +2364,7 @@ namespace Myshipping.Application
//2023-4-3根据河川操作要求文件名只带提单号 //2023-4-3根据河川操作要求文件名只带提单号
if(!string.IsNullOrEmpty(order.MBLNO)) if (!string.IsNullOrEmpty(order.MBLNO))
{ {
fileName = $"{order.MBLNO}{fileType}";//名称 fileName = $"{order.MBLNO}{fileType}";//名称
} }
@ -2595,7 +2595,16 @@ namespace Myshipping.Application
{ {
Directory.CreateDirectory(fileFullPath); 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)); _logger.LogInformation("导出excel:" + Path.Combine(fileFullPath, fileName));
var filestream = new FileStream(Path.Combine(fileFullPath, fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite); var filestream = new FileStream(Path.Combine(fileFullPath, fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite);
excelwork.Write(filestream); excelwork.Write(filestream);
@ -5195,7 +5204,7 @@ namespace Myshipping.Application
x.lineRel.CarrierCode x.lineRel.CarrierCode
}).Take(10).ToList(); }).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 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 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(); 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 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 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 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(); var Service = _cache.GetAllCodeService().Result.Take(10).ToList();
dynamic obj = new dynamic obj = new
{ {

Loading…
Cancel
Save