wet 1 year ago
commit ac9dd0f443

@ -660,7 +660,7 @@ namespace Myshipping.Application
/// <returns></returns> /// <returns></returns>
[HttpPost("/BookingOrder/Save")] [HttpPost("/BookingOrder/Save")]
public async Task<BookingOrderOutput> Save(BookingOrderDto input) public async Task<BookingOrderOutput> Save(SaveBookingOrderInput input)
{ {
if (input == null) if (input == null)
{ {
@ -1062,6 +1062,28 @@ namespace Myshipping.Application
ordOut.BookingEDIExt = ediExtEntity.Adapt<BookingEDIExtDto>(); ordOut.BookingEDIExt = ediExtEntity.Adapt<BookingEDIExtDto>();
} }
await SendBookingOrder(new long[] { main.ParentId == 0 ? Id : (long)main.ParentId }); await SendBookingOrder(new long[] { main.ParentId == 0 ? Id : (long)main.ParentId });
//临时文件转正式
if (input.TempFiles != null && input.TempFiles.Count > 0)
{
var optTmp = App.GetOptions<TempFileOptions>();
foreach (var tmpFile in input.TempFiles)
{
var fpath = Path.Combine(App.WebHostEnvironment.WebRootPath, optTmp.Path, tmpFile.TempPathName);
if (File.Exists(fpath))
{
var fn = Path.GetFileName(tmpFile.TempPathName);
MemoryStream memStream = new MemoryStream(File.ReadAllBytes(fpath));
await AddFile(new FormFile(memStream, 0, memStream.Length, fn, fn), new BookingFileDto()
{
BookingId = Id,
TypeCode = tmpFile.TypeCode,
TypeName = tmpFile.TypeName
});
}
}
}
//推送订舱数据到客户订舱系统 //推送订舱数据到客户订舱系统
CustomerBookingSyncHelper.SendCustomerBookingSync(Id); CustomerBookingSyncHelper.SendCustomerBookingSync(Id);
return ordOut; return ordOut;
@ -1563,10 +1585,10 @@ namespace Myshipping.Application
/// 增加订舱附件 /// 增加订舱附件
/// </summary> /// </summary>
/// <param name="file"></param> /// <param name="file"></param>
/// <param name="dto"></param> /// <param name="dto">注意如果是新建单据BookingId传0</param>
/// <returns></returns> /// <returns></returns>
[HttpPost("/BookingOrder/AddFile")] [HttpPost("/BookingOrder/AddFile")]
public async Task AddFile(IFormFile file, [FromForm] BookingFileDto dto) public async Task<string> AddFile(IFormFile file, [FromForm] BookingFileDto dto)
{ {
//未上传文件 //未上传文件
if (file == null || file.Length == 0) if (file == null || file.Length == 0)
@ -1583,42 +1605,63 @@ namespace Myshipping.Application
} }
var dirAbs = string.Empty; var dirAbs = string.Empty;
if (string.IsNullOrEmpty(opt.basePath)) var fileRelaPath = string.Empty;
var fileAbsPath = string.Empty;
//2023年8月9日增加无bookingId时可上传附件功能放在临时目录
if (dto.BookingId == 0)
{ {
dirAbs = Path.Combine(App.WebHostEnvironment.WebRootPath, opt.relativePath); var optTmp = App.GetOptions<TempFileOptions>();
dirAbs = Path.Combine(App.WebHostEnvironment.WebRootPath, optTmp.Path);
var tmpPath = YitIdHelper.NextId().ToString();
fileRelaPath = Path.Combine(tmpPath, originalFilename).ToLower();
dirAbs = Path.Combine(dirAbs, tmpPath);
if (!Directory.Exists(dirAbs))
Directory.CreateDirectory(dirAbs);
fileAbsPath = Path.Combine(dirAbs, originalFilename).ToLower();
} }
else else
{ {
dirAbs = Path.Combine(opt.basePath, opt.relativePath); if (string.IsNullOrEmpty(opt.basePath))
} {
dirAbs = Path.Combine(App.WebHostEnvironment.WebRootPath, opt.relativePath);
}
else
{
dirAbs = Path.Combine(opt.basePath, opt.relativePath);
}
if (!Directory.Exists(dirAbs)) if (!Directory.Exists(dirAbs))
Directory.CreateDirectory(dirAbs); Directory.CreateDirectory(dirAbs);
// 先存库获取Id // 先存库获取Id
var id = YitIdHelper.NextId(); var id = YitIdHelper.NextId();
var fileSaveName = $"{id}{fileSuffix}".ToLower(); var fileSaveName = $"{id}{fileSuffix}".ToLower();
var fileRelaPath = Path.Combine(opt.relativePath, fileSaveName).ToLower(); fileRelaPath = Path.Combine(opt.relativePath, fileSaveName).ToLower();
var fileAbsPath = Path.Combine(dirAbs, fileSaveName).ToLower(); fileAbsPath = Path.Combine(dirAbs, fileSaveName).ToLower();
var newFile = new BookingFile var newFile = new BookingFile
{ {
Id = id, Id = id,
FileName = originalFilename, FileName = originalFilename,
FilePath = fileRelaPath, FilePath = fileRelaPath,
TypeCode = dto.TypeCode, TypeCode = dto.TypeCode,
TypeName = dto.TypeName, TypeName = dto.TypeName,
BookingId = dto.BookingId, BookingId = dto.BookingId,
};
await _bookingfile.InsertAsync(newFile);
}
};
await _bookingfile.InsertAsync(newFile);
using (var stream = File.Create(fileAbsPath)) using (var stream = File.Create(fileAbsPath))
{ {
await file.CopyToAsync(stream); await file.CopyToAsync(stream);
} }
return fileRelaPath;
} }
/// <summary> /// <summary>
/// 获取附件 /// 获取附件
/// </summary> /// </summary>
@ -3217,7 +3260,6 @@ namespace Myshipping.Application
/// 下载文件 /// 下载文件
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet("/BookingOrder/Download")] [HttpGet("/BookingOrder/Download")]
public async Task<IActionResult> Download(long id) public async Task<IActionResult> Download(long id)
{ {
@ -7289,11 +7331,13 @@ namespace Myshipping.Application
/// 上传ocr文件 /// 上传ocr文件
/// </summary> /// </summary>
/// <param name="file"></param> /// <param name="file"></param>
/// <param name="bookingId">订舱id</param> /// <param name="bookingId">订舱id新建的单据传0</param>
/// <returns></returns> /// <returns></returns>
[HttpPost("/BookingOrder/OcrUpFile")] [HttpPost("/BookingOrder/OcrUpFile")]
public async Task<string> OcrUpFile(IFormFile file, long bookingId) public async Task<OcrUploadOutputDto> OcrUpFile(IFormFile file, long bookingId)
{ {
var output = new OcrUploadOutputDto();
//未上传文件 //未上传文件
if (file == null || file.Length == 0) if (file == null || file.Length == 0)
{ {
@ -7301,7 +7345,7 @@ namespace Myshipping.Application
} }
//保存到订舱 //保存到订舱
await AddFile(file, new BookingFileDto() output.UploadFileName = await AddFile(file, new BookingFileDto()
{ {
BookingId = bookingId, BookingId = bookingId,
TypeCode = "other", TypeCode = "other",
@ -7350,8 +7394,8 @@ namespace Myshipping.Application
var jobj = strRtn.ToJObject(); var jobj = strRtn.ToJObject();
if (jobj.GetIntValue("code") == 0) if (jobj.GetIntValue("code") == 0)
{ {
var fn = jobj.GetStringValue("data"); output.OcrFileName = jobj.GetStringValue("data");
return fn; return output;
} }
else else
{ {
@ -7595,6 +7639,24 @@ namespace Myshipping.Application
if (ctns.Count(x => !string.IsNullOrEmpty(x.CNTRNO) || !string.IsNullOrEmpty(x.SEALNO)) > 0) //有数据填写了箱封号,不再处理 if (ctns.Count(x => !string.IsNullOrEmpty(x.CNTRNO) || !string.IsNullOrEmpty(x.SEALNO)) > 0) //有数据填写了箱封号,不再处理
{ {
_logger.LogInformation($"{bookId}({order.MBLNO})的数据已填写过箱封号,不再处理自动引入"); _logger.LogInformation($"{bookId}({order.MBLNO})的数据已填写过箱封号,不再处理自动引入");
//写入提示
await SaveAutoYardData(bookId, false,
$"已有箱封号,无法处理数据引入",
ctns.ToJson(), "");
return;
}
var ctnAllMulti = ctns.GroupBy(x => x.CTNALL).Select(x => new { CTNALL = x.Key, COUNT = x.Count() }).Count(x => x.COUNT > 1);
if (ctnAllMulti > 0) //有箱型填写超过1行展开过箱量不再处理
{
//写入提示
await SaveAutoYardData(bookId, false,
$"箱量已展开,无法处理数据引入",
ctns.ToJson(), "");
return; return;
} }
@ -7722,9 +7784,9 @@ HLCUTA12307DPXJ3 以这票为例 6个柜
if (match) if (match)
{ {
var cfgDevSwitch = (await _cache.GetAllSysConfig()).FirstOrDefault(x => x.Name == "AutoYardDataDevSwitch"); var cfgDevSwitch = (await _cache.GetAllSysConfig()).FirstOrDefault(x => x.Name == "AutoYardDataDevOpId");
if (cfgDevSwitch != null && cfgDevSwitch.Value == "0") if (cfgDevSwitch != null && (cfgDevSwitch.Value == "all" || (!string.IsNullOrEmpty(order.OPID) && cfgDevSwitch.Value.Contains(order.OPID.ToString()))))
{ {
await _repCtn.DeleteAsync(x => x.BILLID == bookId); await _repCtn.DeleteAsync(x => x.BILLID == bookId);

@ -26,14 +26,14 @@ namespace Myshipping.Application
/// 第三方系统编号 /// 第三方系统编号
/// </summary> /// </summary>
public virtual string BSNO { get; set; } public virtual string BSNO { get; set; }
/// <summary> /// <summary>
/// 业务状态 /// 业务状态
/// </summary> /// </summary>
public virtual string BSSTATUS { get; set; } public virtual string BSSTATUS { get; set; }
/// <summary> /// <summary>
/// 业务开始日期 /// 业务开始日期
/// </summary> /// </summary>
@ -49,7 +49,7 @@ namespace Myshipping.Application
/// 主提单号 /// 主提单号
/// </summary> /// </summary>
public virtual string MBLNO { get; set; } public virtual string MBLNO { get; set; }
/// <summary> /// <summary>
/// 分提单号 /// 分提单号
/// </summary> /// </summary>
@ -59,65 +59,65 @@ namespace Myshipping.Application
/// 业务编号 /// 业务编号
/// </summary> /// </summary>
public virtual string BOOKINGNO { get; set; } public virtual string BOOKINGNO { get; set; }
/// <summary> /// <summary>
/// 合约号 /// 合约号
/// </summary> /// </summary>
public virtual string CONTRACTNO { get; set; } public virtual string CONTRACTNO { get; set; }
/// <summary> /// <summary>
/// 客户合同号 /// 客户合同号
/// </summary> /// </summary>
public virtual string SERVICECONTRACTNO { get; set; } public virtual string SERVICECONTRACTNO { get; set; }
/// <summary> /// <summary>
/// 发货人 /// 发货人
/// </summary> /// </summary>
public virtual string SHIPPER { get; set; } public virtual string SHIPPER { get; set; }
/// <summary> /// <summary>
/// 收货人 /// 收货人
/// </summary> /// </summary>
public virtual string CONSIGNEE { get; set; } public virtual string CONSIGNEE { get; set; }
/// <summary> /// <summary>
/// 通知人 /// 通知人
/// </summary> /// </summary>
public virtual string NOTIFYPARTY { get; set; } public virtual string NOTIFYPARTY { get; set; }
/// <summary> /// <summary>
/// 第二通知人 /// 第二通知人
/// </summary> /// </summary>
public virtual string NOTIFYPARTY2 { get; set; } public virtual string NOTIFYPARTY2 { get; set; }
/// <summary> /// <summary>
/// 场站代码 /// 场站代码
/// </summary> /// </summary>
public virtual string YARDID { get; set; } public virtual string YARDID { get; set; }
/// <summary> /// <summary>
/// 船舶呼号 /// 船舶呼号
/// </summary> /// </summary>
public virtual string VESSELID { get; set; } public virtual string VESSELID { get; set; }
/// <summary> /// <summary>
/// 船名 /// 船名
/// </summary> /// </summary>
public virtual string VESSEL { get; set; } public virtual string VESSEL { get; set; }
/// <summary> /// <summary>
/// 海关航次 /// 海关航次
/// </summary> /// </summary>
public virtual string VOYNO { get; set; } public virtual string VOYNO { get; set; }
/// <summary> /// <summary>
/// 内部航次 /// 内部航次
/// </summary> /// </summary>
public virtual string VOYNOINNER { get; set; } public virtual string VOYNOINNER { get; set; }
/// <summary> /// <summary>
/// 开船日期开始 /// 开船日期开始
/// </summary> /// </summary>
@ -172,70 +172,70 @@ namespace Myshipping.Application
/// </summary> /// </summary>
public virtual DateTime? EETA { get; set; } public virtual DateTime? EETA { get; set; }
/// <summary> /// <summary>
/// 收货地 /// 收货地
/// </summary> /// </summary>
public virtual string PLACERECEIPT { get; set; } public virtual string PLACERECEIPT { get; set; }
/// <summary> /// <summary>
/// 起运港代码 /// 起运港代码
/// </summary> /// </summary>
public virtual string PORTLOADID { get; set; } public virtual string PORTLOADID { get; set; }
/// <summary> /// <summary>
/// 起运港 /// 起运港
/// </summary> /// </summary>
public virtual string PORTLOAD { get; set; } public virtual string PORTLOAD { get; set; }
/// <summary> /// <summary>
/// 卸货港代码 /// 卸货港代码
/// </summary> /// </summary>
public virtual string PORTDISCHARGEID { get; set; } public virtual string PORTDISCHARGEID { get; set; }
/// <summary> /// <summary>
/// 卸货港 /// 卸货港
/// </summary> /// </summary>
public virtual string PORTDISCHARGE { get; set; } public virtual string PORTDISCHARGE { get; set; }
/// <summary> /// <summary>
/// 交货地代码 /// 交货地代码
/// </summary> /// </summary>
public virtual string PLACEDELIVERYID { get; set; } public virtual string PLACEDELIVERYID { get; set; }
/// <summary> /// <summary>
/// 交货地 /// 交货地
/// </summary> /// </summary>
public virtual string PLACEDELIVERY { get; set; } public virtual string PLACEDELIVERY { get; set; }
/// <summary> /// <summary>
/// 目的地代码 /// 目的地代码
/// </summary> /// </summary>
public virtual string DESTINATIONID { get; set; } public virtual string DESTINATIONID { get; set; }
/// <summary> /// <summary>
/// 目的地 /// 目的地
/// </summary> /// </summary>
public virtual string DESTINATION { get; set; } public virtual string DESTINATION { get; set; }
/// <summary> /// <summary>
/// 提单份数 /// 提单份数
/// </summary> /// </summary>
public virtual string NOBILL { get; set; } public virtual string NOBILL { get; set; }
/// <summary> /// <summary>
/// 副本提单份数 /// 副本提单份数
/// </summary> /// </summary>
public virtual string COPYNOBILLL { get; set; } public virtual string COPYNOBILLL { get; set; }
/// <summary> /// <summary>
/// 签单方式 /// 签单方式
/// </summary> /// </summary>
public virtual string ISSUETYPE { get; set; } public virtual string ISSUETYPE { get; set; }
/// <summary> /// <summary>
/// 签单日期 /// 签单日期
/// </summary> /// </summary>
@ -248,142 +248,142 @@ namespace Myshipping.Application
/// 签单地点代码 /// 签单地点代码
/// </summary> /// </summary>
public virtual string ISSUEPLACEID { get; set; } public virtual string ISSUEPLACEID { get; set; }
/// <summary> /// <summary>
/// 签单地点 /// 签单地点
/// </summary> /// </summary>
public virtual string ISSUEPLACE { get; set; } public virtual string ISSUEPLACE { get; set; }
/// <summary> /// <summary>
/// 付费方式 /// 付费方式
/// </summary> /// </summary>
public virtual string BLFRT { get; set; } public virtual string BLFRT { get; set; }
/// <summary> /// <summary>
/// 预付地点 /// 预付地点
/// </summary> /// </summary>
public virtual string PREPARDAT { get; set; } public virtual string PREPARDAT { get; set; }
/// <summary> /// <summary>
/// 到付地点 /// 到付地点
/// </summary> /// </summary>
public virtual string PAYABLEAT { get; set; } public virtual string PAYABLEAT { get; set; }
/// <summary> /// <summary>
/// 运输条款 /// 运输条款
/// </summary> /// </summary>
public virtual string SERVICE { get; set; } public virtual string SERVICE { get; set; }
/// <summary> /// <summary>
/// 唛头 /// 唛头
/// </summary> /// </summary>
public virtual string MARKS { get; set; } public virtual string MARKS { get; set; }
/// <summary> /// <summary>
/// HS代码 /// HS代码
/// </summary> /// </summary>
public virtual string HSCODE { get; set; } public virtual string HSCODE { get; set; }
/// <summary> /// <summary>
/// 货描 /// 货描
/// </summary> /// </summary>
public virtual string DESCRIPTION { get; set; } public virtual string DESCRIPTION { get; set; }
/// <summary> /// <summary>
/// 件数 /// 件数
/// </summary> /// </summary>
public virtual int PKGS { get; set; } public virtual int PKGS { get; set; }
/// <summary> /// <summary>
/// 包装 /// 包装
/// </summary> /// </summary>
public virtual string KINDPKGS { get; set; } public virtual string KINDPKGS { get; set; }
/// <summary> /// <summary>
/// 毛重 /// 毛重
/// </summary> /// </summary>
public virtual decimal KGS { get; set; } public virtual decimal KGS { get; set; }
/// <summary> /// <summary>
/// 尺码 /// 尺码
/// </summary> /// </summary>
public virtual decimal CBM { get; set; } public virtual decimal CBM { get; set; }
/// <summary> /// <summary>
/// 件数大写 /// 件数大写
/// </summary> /// </summary>
public virtual string TOTALNO { get; set; } public virtual string TOTALNO { get; set; }
/// <summary> /// <summary>
/// 集装箱 /// 集装箱
/// </summary> /// </summary>
public virtual string CNTRTOTAL { get; set; } public virtual string CNTRTOTAL { get; set; }
/// <summary> /// <summary>
/// 船公司代号 /// 船公司代号
/// </summary> /// </summary>
public virtual string CARRIERID { get; set; } public virtual string CARRIERID { get; set; }
/// <summary> /// <summary>
/// 船公司 /// 船公司
/// </summary> /// </summary>
public virtual string CARRIER { get; set; } public virtual string CARRIER { get; set; }
/// <summary> /// <summary>
/// 货物标识 /// 货物标识
/// </summary> /// </summary>
public virtual string CARGOID { get; set; } public virtual string CARGOID { get; set; }
/// <summary> /// <summary>
/// 危险品类别 /// 危险品类别
/// </summary> /// </summary>
public virtual string DCLASS { get; set; } public virtual string DCLASS { get; set; }
/// <summary> /// <summary>
/// 危险品编号 /// 危险品编号
/// </summary> /// </summary>
public virtual string DUNNO { get; set; } public virtual string DUNNO { get; set; }
/// <summary> /// <summary>
/// 危险品页号 /// 危险品页号
/// </summary> /// </summary>
public virtual string DPAGE { get; set; } public virtual string DPAGE { get; set; }
/// <summary> /// <summary>
/// 危险品标签 /// 危险品标签
/// </summary> /// </summary>
public virtual string DLABEL { get; set; } public virtual string DLABEL { get; set; }
/// <summary> /// <summary>
/// 危险品联系人 /// 危险品联系人
/// </summary> /// </summary>
public virtual string LINKMAN { get; set; } public virtual string LINKMAN { get; set; }
/// <summary> /// <summary>
/// 温度单位 /// 温度单位
/// </summary> /// </summary>
public virtual string TEMPID { get; set; } public virtual string TEMPID { get; set; }
/// <summary> /// <summary>
/// 设置温度 /// 设置温度
/// </summary> /// </summary>
public virtual string TEMPSET { get; set; } public virtual string TEMPSET { get; set; }
/// <summary> /// <summary>
/// 通风度 /// 通风度
/// </summary> /// </summary>
public virtual string REEFERF { get; set; } public virtual string REEFERF { get; set; }
/// <summary> /// <summary>
/// 湿度 /// 湿度
/// </summary> /// </summary>
public virtual string HUMIDITY { get; set; } public virtual string HUMIDITY { get; set; }
/// <summary> /// <summary>
/// 最低温度 /// 最低温度
/// </summary> /// </summary>
public virtual string TEMPMIN { get; set; } public virtual string TEMPMIN { get; set; }
/// <summary> /// <summary>
/// 最高温度 /// 最高温度
/// </summary> /// </summary>
@ -398,312 +398,312 @@ namespace Myshipping.Application
/// SO备注 /// SO备注
/// </summary> /// </summary>
public virtual string SOREMARK { get; set; } public virtual string SOREMARK { get; set; }
/// <summary> /// <summary>
/// SI备注 /// SI备注
/// </summary> /// </summary>
public virtual string SIREMARK { get; set; } public virtual string SIREMARK { get; set; }
/// <summary> /// <summary>
/// 场站备注 /// 场站备注
/// </summary> /// </summary>
public virtual string YARDREMARK { get; set; } public virtual string YARDREMARK { get; set; }
/// <summary> /// <summary>
/// 公司ID /// 公司ID
/// </summary> /// </summary>
public virtual string COMPID { get; set; } public virtual string COMPID { get; set; }
/// <summary> /// <summary>
/// 公司名称 /// 公司名称
/// </summary> /// </summary>
public virtual string COMPNAME { get; set; } public virtual string COMPNAME { get; set; }
/// <summary> /// <summary>
/// 发货人名称 /// 发货人名称
/// </summary> /// </summary>
public virtual string SHIPPERNAME { get; set; } public virtual string SHIPPERNAME { get; set; }
/// <summary> /// <summary>
/// 发货人地址1 /// 发货人地址1
/// </summary> /// </summary>
public virtual string SHIPPERADDR1 { get; set; } public virtual string SHIPPERADDR1 { get; set; }
/// <summary> /// <summary>
/// 发货人地址2 /// 发货人地址2
/// </summary> /// </summary>
public virtual string SHIPPERADDR2 { get; set; } public virtual string SHIPPERADDR2 { get; set; }
/// <summary> /// <summary>
/// 发货人地址3 /// 发货人地址3
/// </summary> /// </summary>
public virtual string SHIPPERADDR3 { get; set; } public virtual string SHIPPERADDR3 { get; set; }
/// <summary> /// <summary>
/// 发货人城市 /// 发货人城市
/// </summary> /// </summary>
public virtual string SHIPPERCITY { get; set; } public virtual string SHIPPERCITY { get; set; }
/// <summary> /// <summary>
/// 发货人省份代码 /// 发货人省份代码
/// </summary> /// </summary>
public virtual string SHIPPERPROVINCE { get; set; } public virtual string SHIPPERPROVINCE { get; set; }
/// <summary> /// <summary>
/// 发货人邮编 /// 发货人邮编
/// </summary> /// </summary>
public virtual string SHIPPERPOSTCODE { get; set; } public virtual string SHIPPERPOSTCODE { get; set; }
/// <summary> /// <summary>
/// 发货人国家代码 /// 发货人国家代码
/// </summary> /// </summary>
public virtual string SHIPPERCOUNTRY { get; set; } public virtual string SHIPPERCOUNTRY { get; set; }
/// <summary> /// <summary>
/// 发货人联系人 /// 发货人联系人
/// </summary> /// </summary>
public virtual string SHIPPERATTN { get; set; } public virtual string SHIPPERATTN { get; set; }
/// <summary> /// <summary>
/// 发货人电话 /// 发货人电话
/// </summary> /// </summary>
public virtual string SHIPPERTEL { get; set; } public virtual string SHIPPERTEL { get; set; }
/// <summary> /// <summary>
/// 发货人名称 /// 发货人名称
/// </summary> /// </summary>
public virtual string CONSIGNEENAME { get; set; } public virtual string CONSIGNEENAME { get; set; }
/// <summary> /// <summary>
/// 发货人地址1 /// 发货人地址1
/// </summary> /// </summary>
public virtual string CONSIGNEEADDR1 { get; set; } public virtual string CONSIGNEEADDR1 { get; set; }
/// <summary> /// <summary>
/// 发货人地址2 /// 发货人地址2
/// </summary> /// </summary>
public virtual string CONSIGNEEADDR2 { get; set; } public virtual string CONSIGNEEADDR2 { get; set; }
/// <summary> /// <summary>
/// 发货人地址3 /// 发货人地址3
/// </summary> /// </summary>
public virtual string CONSIGNEEADDR3 { get; set; } public virtual string CONSIGNEEADDR3 { get; set; }
/// <summary> /// <summary>
/// 发货人城市 /// 发货人城市
/// </summary> /// </summary>
public virtual string CONSIGNEECITY { get; set; } public virtual string CONSIGNEECITY { get; set; }
/// <summary> /// <summary>
/// 发货人省份代码 /// 发货人省份代码
/// </summary> /// </summary>
public virtual string CONSIGNEEPROVINCE { get; set; } public virtual string CONSIGNEEPROVINCE { get; set; }
/// <summary> /// <summary>
/// 发货人邮编 /// 发货人邮编
/// </summary> /// </summary>
public virtual string CONSIGNEEPOSTCODE { get; set; } public virtual string CONSIGNEEPOSTCODE { get; set; }
/// <summary> /// <summary>
/// 发货人国家代码 /// 发货人国家代码
/// </summary> /// </summary>
public virtual string CONSIGNEERCOUNTRY { get; set; } public virtual string CONSIGNEERCOUNTRY { get; set; }
/// <summary> /// <summary>
/// 发货人联系人 /// 发货人联系人
/// </summary> /// </summary>
public virtual string CONSIGNEEATTN { get; set; } public virtual string CONSIGNEEATTN { get; set; }
/// <summary> /// <summary>
/// 发货人电话 /// 发货人电话
/// </summary> /// </summary>
public virtual string CONSIGNEETEL { get; set; } public virtual string CONSIGNEETEL { get; set; }
/// <summary> /// <summary>
/// 通知人名称 /// 通知人名称
/// </summary> /// </summary>
public virtual string NOTIFYPARTYNAME { get; set; } public virtual string NOTIFYPARTYNAME { get; set; }
/// <summary> /// <summary>
/// 通知人地址1 /// 通知人地址1
/// </summary> /// </summary>
public virtual string NOTIFYPARTYADDR1 { get; set; } public virtual string NOTIFYPARTYADDR1 { get; set; }
/// <summary> /// <summary>
/// 通知人地址2 /// 通知人地址2
/// </summary> /// </summary>
public virtual string NOTIFYPARTYADDR2 { get; set; } public virtual string NOTIFYPARTYADDR2 { get; set; }
/// <summary> /// <summary>
/// 通知人地址3 /// 通知人地址3
/// </summary> /// </summary>
public virtual string NOTIFYPARTYADDR3 { get; set; } public virtual string NOTIFYPARTYADDR3 { get; set; }
/// <summary> /// <summary>
/// 通知人城市 /// 通知人城市
/// </summary> /// </summary>
public virtual string NOTIFYPARTYCITY { get; set; } public virtual string NOTIFYPARTYCITY { get; set; }
/// <summary> /// <summary>
/// 通知人省份代码 /// 通知人省份代码
/// </summary> /// </summary>
public virtual string NOTIFYPARTYPROVINCE { get; set; } public virtual string NOTIFYPARTYPROVINCE { get; set; }
/// <summary> /// <summary>
/// 通知人邮编 /// 通知人邮编
/// </summary> /// </summary>
public virtual string NOTIFYPARTYPOSTCODE { get; set; } public virtual string NOTIFYPARTYPOSTCODE { get; set; }
/// <summary> /// <summary>
/// 通知人国家代码 /// 通知人国家代码
/// </summary> /// </summary>
public virtual string NOTIFYPARTYCOUNTRY { get; set; } public virtual string NOTIFYPARTYCOUNTRY { get; set; }
/// <summary> /// <summary>
/// 通知人联系人 /// 通知人联系人
/// </summary> /// </summary>
public virtual string NOTIFYPARTYATTN { get; set; } public virtual string NOTIFYPARTYATTN { get; set; }
/// <summary> /// <summary>
/// 通知人电话 /// 通知人电话
/// </summary> /// </summary>
public virtual string NOTIFYPARTYTEL { get; set; } public virtual string NOTIFYPARTYTEL { get; set; }
/// <summary> /// <summary>
/// PO号 /// PO号
/// </summary> /// </summary>
public virtual string PONO { get; set; } public virtual string PONO { get; set; }
/// <summary> /// <summary>
/// 操作id /// 操作id
/// </summary> /// </summary>
public virtual string OPID { get; set; } public virtual string OPID { get; set; }
/// <summary> /// <summary>
/// 单证id /// 单证id
/// </summary> /// </summary>
public virtual string DOCID { get; set; } public virtual string DOCID { get; set; }
/// <summary> /// <summary>
/// 操作 /// 操作
/// </summary> /// </summary>
public virtual string OP { get; set; } public virtual string OP { get; set; }
/// <summary> /// <summary>
/// 单证 /// 单证
/// </summary> /// </summary>
public virtual string DOC { get; set; } public virtual string DOC { get; set; }
/// <summary> /// <summary>
/// 销售ID /// 销售ID
/// </summary> /// </summary>
public virtual string SALEID { get; set; } public virtual string SALEID { get; set; }
/// <summary> /// <summary>
/// 销售 /// 销售
/// </summary> /// </summary>
public virtual string SALE { get; set; } public virtual string SALE { get; set; }
/// <summary> /// <summary>
/// 客服ID /// 客服ID
/// </summary> /// </summary>
public virtual string CUSTSERVICEID { get; set; } public virtual string CUSTSERVICEID { get; set; }
/// <summary> /// <summary>
/// 客服 /// 客服
/// </summary> /// </summary>
public virtual string CUSTSERVICE { get; set; } public virtual string CUSTSERVICE { get; set; }
/// <summary> /// <summary>
/// 客户 /// 客户
/// </summary> /// </summary>
public virtual string CUSTOMERNAME { get; set; } public virtual string CUSTOMERNAME { get; set; }
/// <summary> /// <summary>
/// 订舱代理 /// 订舱代理
/// </summary> /// </summary>
public virtual string FORWARDER { get; set; } public virtual string FORWARDER { get; set; }
/// <summary> /// <summary>
/// 船代 /// 船代
/// </summary> /// </summary>
public virtual string SHIPAGENCY { get; set; } public virtual string SHIPAGENCY { get; set; }
/// <summary> /// <summary>
/// 报关行 /// 报关行
/// </summary> /// </summary>
public virtual string CUSTOMSER { get; set; } public virtual string CUSTOMSER { get; set; }
/// <summary> /// <summary>
/// 车队 /// 车队
/// </summary> /// </summary>
public virtual string TRUCKER { get; set; } public virtual string TRUCKER { get; set; }
/// <summary> /// <summary>
/// 国外代理 /// 国外代理
/// </summary> /// </summary>
public virtual string AGENTID { get; set; } public virtual string AGENTID { get; set; }
/// <summary> /// <summary>
/// 客户ID /// 客户ID
/// </summary> /// </summary>
public virtual long? CUSTOMERID { get; set; } public virtual long? CUSTOMERID { get; set; }
/// <summary> /// <summary>
/// 订舱代理ID /// 订舱代理ID
/// </summary> /// </summary>
public virtual string FORWARDERID { get; set; } public virtual string FORWARDERID { get; set; }
/// <summary> /// <summary>
/// 船代ID /// 船代ID
/// </summary> /// </summary>
public virtual string SHIPAGENCYID { get; set; } public virtual string SHIPAGENCYID { get; set; }
/// <summary> /// <summary>
/// 报关行ID /// 报关行ID
/// </summary> /// </summary>
public virtual string CUSTOMSERID { get; set; } public virtual string CUSTOMSERID { get; set; }
/// <summary> /// <summary>
/// 车队ID /// 车队ID
/// </summary> /// </summary>
public virtual string TRUCKERID { get; set; } public virtual string TRUCKERID { get; set; }
/// <summary> /// <summary>
/// 国外代理名称 /// 国外代理名称
/// </summary> /// </summary>
public virtual string AGENTNAME { get; set; } public virtual string AGENTNAME { get; set; }
/// <summary> /// <summary>
/// 委托方 /// 委托方
/// </summary> /// </summary>
public virtual string WEITUO { get; set; } public virtual string WEITUO { get; set; }
/// <summary> /// <summary>
/// 收货人DOOR地址 /// 收货人DOOR地址
/// </summary> /// </summary>
public virtual string CONSIGNEEDOORADDR { get; set; } public virtual string CONSIGNEEDOORADDR { get; set; }
/// <summary> /// <summary>
/// 发货人DOOR地址 /// 发货人DOOR地址
/// </summary> /// </summary>
public virtual string SHIPPERDOORADDR { get; set; } public virtual string SHIPPERDOORADDR { get; set; }
/// <summary> /// <summary>
/// SCAC代码 /// SCAC代码
/// </summary> /// </summary>
public virtual string SCACCODE { get; set; } public virtual string SCACCODE { get; set; }
/// <summary> /// <summary>
/// ITN编号 /// ITN编号
/// </summary> /// </summary>
public virtual string ITNCODE { get; set; } public virtual string ITNCODE { get; set; }
/// <summary> /// <summary>
/// 预付地点ID /// 预付地点ID
/// </summary> /// </summary>
public virtual string PREPARDATID { get; set; } public virtual string PREPARDATID { get; set; }
/// <summary> /// <summary>
/// 到付地点ID /// 到付地点ID
/// </summary> /// </summary>
@ -713,17 +713,17 @@ namespace Myshipping.Application
/// 订舱编号 /// 订舱编号
/// </summary> /// </summary>
public virtual string CUSTNO { get; set; } public virtual string CUSTNO { get; set; }
/// <summary> /// <summary>
/// 中转港代码 /// 中转港代码
/// </summary> /// </summary>
public virtual string TRANSPORTID { get; set; } public virtual string TRANSPORTID { get; set; }
/// <summary> /// <summary>
/// 中转港 /// 中转港
/// </summary> /// </summary>
public virtual string TRANSPORT { get; set; } public virtual string TRANSPORT { get; set; }
/// <summary> /// <summary>
/// 第三付款地 /// 第三付款地
/// </summary> /// </summary>
@ -738,12 +738,12 @@ namespace Myshipping.Application
/// 场站联系人电话 /// 场站联系人电话
/// </summary> /// </summary>
public virtual string YARDCONTRACTTEL { get; set; } public virtual string YARDCONTRACTTEL { get; set; }
/// <summary> /// <summary>
/// 场站联系人邮箱 /// 场站联系人邮箱
/// </summary> /// </summary>
public virtual string YARDCONTRACTEMAIL { get; set; } public virtual string YARDCONTRACTEMAIL { get; set; }
/// <summary> /// <summary>
/// 费用自结 /// 费用自结
/// </summary> /// </summary>
@ -758,7 +758,7 @@ namespace Myshipping.Application
/// 航线名称(船公司) /// 航线名称(船公司)
/// </summary> /// </summary>
public virtual string LANENAME { get; set; } public virtual string LANENAME { get; set; }
/// <summary> /// <summary>
/// 付款方 /// 付款方
/// </summary> /// </summary>
@ -835,19 +835,32 @@ namespace Myshipping.Application
public long? OrgOp { get; set; } public long? OrgOp { get; set; }
} }
public class AddBookingOrderInput : BookingOrderDto public class SaveBookingOrderInput : BookingOrderDto
{ {
/// <summary>
/// 新建单据时,上传的未关联到订舱数据的临时附件
/// </summary>
public List<BookingFileTempDto> TempFiles { get; set; }
} }
/// <summary>
/// 订舱临时文件dto
public class UpdateBookingOrderInput : BookingOrderDto /// </summary>
public class BookingFileTempDto
{ {
/// <summary>
/// 上传文件时返回的文件名称(带临时路径)
/// </summary>
public string TempPathName { get; set; }
} /// <summary>
/// 文件类型代码
/// </summary>
public string TypeCode { get; set; }
/// <summary>
/// 文件类型名
/// </summary>
public string TypeName { get; set; }
}
} }

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// Ocr上传后返回
/// </summary>
public class OcrUploadOutputDto
{
/// <summary>
/// OCR返回文件名后面调用OCR获取内容时使用
/// </summary>
public string OcrFileName { get; set; }
/// <summary>
/// 上传附件的文件名
/// </summary>
public string UploadFileName { get; set; }
}
}

@ -23,7 +23,7 @@ namespace Myshipping.Application
Task AddRemark(BookingRemarkDto dto); Task AddRemark(BookingRemarkDto dto);
Task AddFile(IFormFile file, [FromForm] BookingFileDto dto); Task<string> AddFile(IFormFile file, [FromForm] BookingFileDto dto);
Task<List<BookingFile>> GetFile(long Id); Task<List<BookingFile>> GetFile(long Id);

Loading…
Cancel
Save