打印接口调整

optimize
wanghaomei 2 years ago
parent 8cde73e112
commit d725206e10

@ -6249,13 +6249,14 @@
<param name="fileName">文件名</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.BookingOrderService.PrintFastReport(System.Int64,System.Int64,System.Int32)">
<member name="M:Myshipping.Application.BookingOrderService.PrintOrder(System.Int64,System.Int64,System.Int32,Myshipping.Application.BookingPrintTemplateType)">
<summary>
FastReport打印(返回文件名)
订舱打印(返回文件名)
</summary>
<param name="bookingId">订舱Id</param>
<param name="templateId">打印模板ID</param>
<param name="type">类型1pdf、2xlsx、3docx</param>
<param name="printType">打印类型10FastReport、20Excel模板</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.BookingOrderService.ViewPrintPdf(System.String)">
@ -6276,7 +6277,7 @@
获取订舱打印模板列表(带有当前用户打印历史排序)
</summary>
<param name="cateCode">分类代码使用字典【booking_template_category】中的代码</param>
<param name="printType">打印分类</param>
<param name="printType">打印分类10FastReport、20Excel模板</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.BookingOrderService.SendXHZ(System.Int64)">
@ -9747,12 +9748,12 @@
</member>
<member name="P:Myshipping.Application.QueryBookingPrintTemplateInput.IsMain">
<summary>
主单
主单(准备作废)
</summary>
</member>
<member name="P:Myshipping.Application.QueryBookingPrintTemplateInput.IsSub">
<summary>
分单
分单(准备作废)
</summary>
</member>
<member name="P:Myshipping.Application.QueryBookingPrintTemplateInput.DisplayName">

@ -1657,15 +1657,15 @@ namespace Myshipping.Application
}
/// <summary>
/// FastReport打印(返回文件名)
/// 订舱打印(返回文件名)
/// </summary>
/// <param name="bookingId">订舱Id</param>
/// <param name="templateId">打印模板ID</param>
/// <param name="type">类型1pdf、2xlsx、3docx</param>
/// <param name="printType">打印类型10FastReport、20Excel模板</param>
/// <returns></returns>
[HttpGet("/BookingOrder/PrintFastReport")]
public async Task<string> PrintFastReport(long bookingId, long templateId, int type = 1, BookingPrintTemplateType printType = BookingPrintTemplateType.FastReport)
[HttpGet("/BookingOrder/PrintOrder")]
public async Task<string> PrintOrder(long bookingId, long templateId, int type = 1, BookingPrintTemplateType printType = BookingPrintTemplateType.FastReport)
{
var printTemplate = await _repPrintTemplate.AsQueryable().Filter(null, true).FirstAsync(x => x.Id == templateId);
if (printTemplate == null)
@ -1953,7 +1953,7 @@ namespace Myshipping.Application
}
/// <summary>
/// 获取样单pdf
/// 获取样单pdf准备作废后期使用打印相关api
/// </summary>
/// <param name="bookingId"></param>
/// <returns></returns>

@ -124,11 +124,11 @@ namespace Myshipping.Application
public string TenantName { get; set; }
/// <summary>
/// 主单
/// 主单(准备作废)
/// </summary>
public bool? IsMain { get; set; }
/// <summary>
/// 分单
/// 分单(准备作废)
/// </summary>
public bool? IsSub { get; set; }

Loading…
Cancel
Save