|
|
|
|
using EntrustSettle.Model.Models;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace EntrustSettle.Model.Dtos
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单详情Dto
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderDto : Order
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用项目列表名称(使用,连接)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ProjectTypeName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (ProjectType == null) return null;
|
|
|
|
|
if (ProjectType == string.Empty) return string.Empty;
|
|
|
|
|
|
|
|
|
|
var types = ProjectType.Split(',');
|
|
|
|
|
var result = string.Empty;
|
|
|
|
|
foreach (var type in types)
|
|
|
|
|
{
|
|
|
|
|
switch (type)
|
|
|
|
|
{
|
|
|
|
|
case "1":
|
|
|
|
|
result += "港杂费,";
|
|
|
|
|
break;
|
|
|
|
|
case "2":
|
|
|
|
|
result += "堆存费,";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result.TrimEnd(',');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 服务类型 1:码头堆存缴费 2:查验代理缴费 3:码头换船缴费
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ServiceTypeName => ServiceType switch
|
|
|
|
|
{
|
|
|
|
|
1 => "码头堆存缴费",
|
|
|
|
|
2 => "查验代理缴费",
|
|
|
|
|
3 => "码头换船缴费",
|
|
|
|
|
_ => "未知类型"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前业务状态名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string StatusName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (Status == null)
|
|
|
|
|
{
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
return Enum.GetName(typeof(OrderStatusEnum), Status);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否有账单附件
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsHasBillAnnex { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否有发票附件或快递单号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsHasInvoiceAnnex { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否有舱单状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool? IsCangdan { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否有海放状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool? IsHaifang { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 海放时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? TimeHaiFang { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTime? ATA { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提箱状态 Y:全部提箱 P:部分提箱 N:未提箱
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string StaTiXiang { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返空状态 Y:全部返空 P:部分返空 N:未返空
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string StaFanKong { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 箱子总数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CtnNumAll { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提箱数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CtnNumTiXiang { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返空数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CtnNumFanKong { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|