wet 2 years ago
commit 656a0bfd25

@ -585,5 +585,10 @@ namespace Myshipping.Application
/// 运输条款EDI代码 M /// 运输条款EDI代码 M
/// </summary> /// </summary>
public string SERVICEEDICODE { get; set; } public string SERVICEEDICODE { get; set; }
/// <summary>
/// 商品代码
/// </summary>
public string GOODSCODE { get; set; }
} }
} }

@ -673,7 +673,8 @@ namespace Myshipping.Application.EDI.PIL
var estr = ""; var estr = "";
if (InttrEdi.filetype == "E") if (InttrEdi.filetype == "E")
{ {
estr = "ESI"; //2023-03-28 确认需要把截单报文的文件名去掉ESI英文
//estr = "ESI";
} }
else else
{ {
@ -1479,7 +1480,9 @@ namespace Myshipping.Application.EDI.PIL
tempstr += GetSpaceStr((ctn.CBM * 1000).ToString("0.###"), 10, "0");//11 //Cargo Nett Measurement//C//9(7)v999//61 //70 //Mandatory, except for Empties tempstr += GetSpaceStr((ctn.CBM * 1000).ToString("0.###"), 10, "0");//11 //Cargo Nett Measurement//C//9(7)v999//61 //70 //Mandatory, except for Empties
tempstr += GetSpaceStr(bill.GOODSNAME, 48);//12 //Commodity Name//O//X(48)//71 //118 // tempstr += GetSpaceStr(bill.GOODSNAME, 48);//12 //Commodity Name//O//X(48)//71 //118 //
//tempstr += GetSpaceStr(GetGOODEDICode(bill.GOODSNAME), 4);//13 //webcsm Commodity Code//O//X(4)//119 //122 //webCSM Standard Commodity Code //tempstr += GetSpaceStr(GetGOODEDICode(bill.GOODSNAME), 4);//13 //webcsm Commodity Code//O//X(4)//119 //122 //webCSM Standard Commodity Code
tempstr += GetSpaceStr("", 4);//13 //webcsm Commodity Code//O//X(4)//119 //122 //webCSM Standard Commodity Code //2023-03-27 跟韩工确认这里加入商品代码
//tempstr += GetSpaceStr("", 4);//13 //webcsm Commodity Code//O//X(4)//119 //122 //webCSM Standard Commodity Code
tempstr += GetSpaceStr(bill.GOODSCODE, 4);//13 //webcsm Commodity Code//O//X(4)//119 //122 //webCSM Standard Commodity Code
tempstr += GetSpaceStr(ctn.CTNALLCODE, 4);//14 //webcsm Package Code//M//X(4)//123 //126 //eg 20GP, 40GP etc. tempstr += GetSpaceStr(ctn.CTNALLCODE, 4);//14 //webcsm Package Code//M//X(4)//123 //126 //eg 20GP, 40GP etc.
tempstr += "KGM";//15 //UOM Weight//M//X(3)//127 //129 //Default to METRIC = KGM tempstr += "KGM";//15 //UOM Weight//M//X(3)//127 //129 //Default to METRIC = KGM
tempstr += "MTQ";//16 //UOM Measurement//M//X(3)//130 //132 //Default to METRIC = MTQ tempstr += "MTQ";//16 //UOM Measurement//M//X(3)//130 //132 //Default to METRIC = MTQ

@ -2353,7 +2353,7 @@ namespace Myshipping.Application
fileName = $"{order.MBLNO}_{DateTime.Now.Ticks}";//名称 fileName = $"{order.MBLNO}_{DateTime.Now.Ticks}{fileType}";//名称
var opt = App.GetOptions<TempFileOptions>().Path; var opt = App.GetOptions<TempFileOptions>().Path;
var serverpath = Path.Combine(App.WebHostEnvironment.WebRootPath, opt);//服务器路径 var serverpath = Path.Combine(App.WebHostEnvironment.WebRootPath, opt);//服务器路径
if (!Directory.Exists(serverpath)) if (!Directory.Exists(serverpath))
@ -2633,11 +2633,19 @@ namespace Myshipping.Application
var fileFullName = Path.Combine(fileFullPath, fn); var fileFullName = Path.Combine(fileFullPath, fn);
if (File.Exists(fileFullName)) if (File.Exists(fileFullName))
{ {
var readMem = new ReadOnlyMemory<byte>(File.ReadAllBytes(fileFullName)); _logger.LogInformation($"预览pdf文件{fileFullName}");
_httpContextAccessor.HttpContext.Response.BodyWriter.WriteAsync(readMem);
var sysConfig = _cache.GetAllSysConfig().Result;
var viewUrl = sysConfig.FirstOrDefault(x => x.Code == "booking_print_view_pdf_url");
//var readMem = new ReadOnlyMemory<byte>(File.ReadAllBytes(fileFullName));
//_httpContextAccessor.HttpContext.Response.BodyWriter.WriteAsync(readMem);
_httpContextAccessor.HttpContext.Response.StatusCode = 302;
_httpContextAccessor.HttpContext.Response.Headers["Location"] = $"{viewUrl.Value}{fn}";
} }
else else
{ {
_logger.LogInformation($"未找到预览pdf文件{fileFullName}");
_httpContextAccessor.HttpContext.Response.StatusCode = 404; _httpContextAccessor.HttpContext.Response.StatusCode = 404;
} }
} }

@ -67,7 +67,8 @@ namespace Myshipping.Application
.Map(dest => dest.PLACEDELIVERYID, src => src.PLACEDELIVERYID) .Map(dest => dest.PLACEDELIVERYID, src => src.PLACEDELIVERYID)
.Map(dest => dest.PLACEDELIVERY, src => src.PLACEDELIVERY) .Map(dest => dest.PLACEDELIVERY, src => src.PLACEDELIVERY)
.Map(dest => dest.CARRIER, src => src.CARRIER) .Map(dest => dest.CARRIER, src => src.CARRIER)
.Map(dest => dest.CARRIERID, src => src.CARRIERID); .Map(dest => dest.CARRIERID, src => src.CARRIERID)
.Map(dest => dest.GOODSCODE, src => src.GOODSCODE);
config.ForType<BookingCtn, MsOpSeaeCtnEDIBaseModel>() config.ForType<BookingCtn, MsOpSeaeCtnEDIBaseModel>()

@ -8,7 +8,7 @@ namespace Myshipping.Core.Service;
public class OpLogInput : PageInputBase public class OpLogInput : PageInputBase
{ {
/// <summary> /// <summary>
/// 名称 /// 操作人名称
/// </summary> /// </summary>
public string Name { get; set; } public string Name { get; set; }
@ -83,7 +83,7 @@ public class OpLogInput : PageInputBase
public DateTime OpTime { get; set; } public DateTime OpTime { get; set; }
/// <summary> /// <summary>
/// 操作人 /// 操作人账号
/// </summary> /// </summary>
public string Account { get; set; } public string Account { get; set; }
} }

@ -34,6 +34,9 @@ public class SysOpLogService : ISysOpLogService, IDynamicApiController, ITransie
{ {
var opLogs = await _sysOpLogRep.AsQueryable() var opLogs = await _sysOpLogRep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name.Trim()))
.WhereIF(!string.IsNullOrWhiteSpace(input.Account), u => u.Name.Contains(input.Account.Trim()))
.WhereIF(!string.IsNullOrWhiteSpace(input.Ip), u => u.Name.Contains(input.Ip.Trim()))
.WhereIF(!string.IsNullOrWhiteSpace(input.Url), u => u.Name.Contains(input.Url.Trim()))
.WhereIF(Enum.IsDefined(typeof(YesOrNot),input.Success), u => u.Success == input.Success) .WhereIF(Enum.IsDefined(typeof(YesOrNot),input.Success), u => u.Success == input.Success)
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchBeginTime), u => u.OpTime >= DateTime.Parse(input.SearchBeginTime.Trim()) && u.OpTime <= DateTime.Parse(input.SearchEndTime.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.SearchBeginTime), u => u.OpTime >= DateTime.Parse(input.SearchBeginTime.Trim()) && u.OpTime <= DateTime.Parse(input.SearchEndTime.Trim()))
.OrderBy(u => u.Id, OrderByType.Desc) .OrderBy(u => u.Id, OrderByType.Desc)

Loading…
Cancel
Save