You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
296 lines
7.9 KiB
C#
296 lines
7.9 KiB
C#
using FluentValidation;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DS.WMS.Core.Op.Dtos
|
|
{
|
|
/// <summary>
|
|
/// 海运出口舱单请求实体
|
|
/// </summary>
|
|
public class ShippingBillReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 是否分单
|
|
/// </summary>
|
|
public bool IsPart { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 箱信息
|
|
/// </summary>
|
|
public List<ShippingBillCtnReq> CtnInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务Id
|
|
/// </summary>
|
|
public long BusinessId { get; set; }
|
|
/// <summary>
|
|
/// 主提单号
|
|
/// </summary>
|
|
public string MBLNO { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分提单号
|
|
/// </summary>
|
|
public string HBLNO { get; set; }
|
|
/// <summary>
|
|
/// 开船日期
|
|
/// </summary>
|
|
public DateTime? ETD { get; set; }
|
|
|
|
/// <summary>
|
|
/// 货代公司Id
|
|
/// </summary>
|
|
public long ForwarderId { get; set; }
|
|
/// <summary>
|
|
/// 货代公司
|
|
/// </summary>
|
|
public string Forwarder { get; set; }
|
|
/// <summary>
|
|
/// 船名 t_code_vessel
|
|
/// </summary>
|
|
public string Vessel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 船名Id t_code_vessel
|
|
/// </summary>
|
|
public long VesselId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 海关航次
|
|
/// </summary>
|
|
public string Voyno { get; set; }
|
|
/// <summary>
|
|
/// 内部航次
|
|
/// </summary>
|
|
public string InnerVoyno { get; set; }
|
|
/// <summary>
|
|
/// 船公司Id
|
|
/// </summary>
|
|
public long CarrierId { get; set; }
|
|
/// <summary>
|
|
/// 船公司
|
|
/// </summary>
|
|
public string Carrier { get; set; }
|
|
/// <summary>
|
|
/// 船公司名称
|
|
/// </summary>
|
|
public string CarrierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发货人 t_info_client CUSTNAME
|
|
/// </summary>
|
|
public long? ShipperId { get; set; }
|
|
/// <summary>
|
|
/// 收货人 t_info_client CUSTNAME
|
|
/// </summary>
|
|
public long? ConsigneeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 通知人 t_info_client CUSTNAME
|
|
/// </summary>
|
|
public long? NotifyPartyId { get; set; }
|
|
/// <summary>
|
|
/// 发货人名称
|
|
/// </summary>
|
|
public string ShipperName { get; set; }
|
|
/// <summary>
|
|
/// 发货人地址
|
|
/// </summary>
|
|
public string ShipperAddress { get; set; }
|
|
/// <summary>
|
|
/// 发货人国家code
|
|
/// </summary>
|
|
public string ShipperCountry { get; set; }
|
|
/// <summary>
|
|
/// 发货人国家
|
|
/// </summary>
|
|
public string ShipperCountryName { get; set; }
|
|
/// <summary>
|
|
/// 发货人电话
|
|
/// </summary>
|
|
public string ShipperCountryTel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收货人名称
|
|
/// </summary>
|
|
public string ConsigneeName { get; set; }
|
|
/// <summary>
|
|
/// 收货人地址
|
|
/// </summary>
|
|
public string ConsigneeAddress { get; set; }
|
|
/// <summary>
|
|
/// 收货人国家code
|
|
/// </summary>
|
|
public string ConsigneeCountry { get; set; }
|
|
/// <summary>
|
|
/// 收货人国家
|
|
/// </summary>
|
|
public string ConsigneeCountryName { get; set; }
|
|
/// <summary>
|
|
/// 收货人电话
|
|
/// </summary>
|
|
public string ConsigneeCountryTel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 通知人名称
|
|
/// </summary>
|
|
public string NotifyPartyName { get; set; }
|
|
/// <summary>
|
|
/// 通知人地址
|
|
/// </summary>
|
|
public string NotifyPartyAddress { get; set; }
|
|
/// <summary>
|
|
/// 通知人国家code
|
|
/// </summary>
|
|
public string NotifyPartyCountry { get; set; }
|
|
/// <summary>
|
|
/// 通知人国家
|
|
/// </summary>
|
|
public string NotifyPartyCountryName { get; set; }
|
|
/// <summary>
|
|
/// 通知人电话
|
|
/// </summary>
|
|
public string NotifyPartyCountryTel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 装货港Id
|
|
/// </summary>
|
|
public long LoadPortId { get; set; }
|
|
/// <summary>
|
|
/// 装货港代码
|
|
/// </summary>
|
|
public string LoadPortCode { get; set; }
|
|
/// <summary>
|
|
/// 装货港
|
|
/// </summary>
|
|
public string LoadPort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 卸货港Id
|
|
/// </summary>
|
|
public long DischargePortId { get; set; }
|
|
/// <summary>
|
|
/// 卸货港代码
|
|
/// </summary>
|
|
public string DischargePortCode { get; set; }
|
|
/// <summary>
|
|
/// 卸货港
|
|
/// </summary>
|
|
public string DischargePort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收货地Id
|
|
/// </summary>
|
|
public long DeliveryPlaceId { get; set; }
|
|
/// <summary>
|
|
/// 收货地代码
|
|
/// </summary>
|
|
public string DeliveryPlaceCode { get; set; }
|
|
/// <summary>
|
|
/// 收货地
|
|
/// </summary>
|
|
public string DeliveryPlace { get; set; }
|
|
|
|
/// <summary>
|
|
/// 场站Id t_crm_client CUSTNAME
|
|
/// </summary>
|
|
public long YardId { get; set; }
|
|
/// <summary>
|
|
/// 场站 t_crm_client CUSTNAME
|
|
/// </summary>
|
|
public string Yard { get; set; }
|
|
|
|
/// <summary>
|
|
/// 唛头 N/M
|
|
/// </summary>
|
|
public string Marks { get; set; }
|
|
/// <summary>
|
|
/// 货物描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
/// <summary>
|
|
/// 货物标识 S/R/D/O
|
|
/// </summary>
|
|
public string CargoId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设置温度
|
|
/// </summary>
|
|
public string TemperatureSet { get; set; }
|
|
|
|
/// <summary>
|
|
/// 温度单位
|
|
/// </summary>
|
|
public string TemperatureUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 冷藏通风量
|
|
/// </summary>
|
|
public string ReeferQuantity { get; set; }
|
|
|
|
/// <summary>
|
|
/// 危险品分类
|
|
/// </summary>
|
|
public string DangerClass { get; set; }
|
|
|
|
/// <summary>
|
|
/// 危险品编号
|
|
/// </summary>
|
|
public string DangerNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 危险品联系人
|
|
/// </summary>
|
|
public string DangerAttn { get; set; }
|
|
/// <summary>
|
|
/// 危险品电话
|
|
/// </summary>
|
|
public string DangerTel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 包装 t_code_package
|
|
/// </summary>
|
|
public string KindPkgs { get; set; }
|
|
/// <summary>
|
|
/// Desc:备注
|
|
/// </summary>
|
|
public string Remark { get; set; }
|
|
/// <summary>
|
|
/// Desc:发送备注
|
|
/// </summary>
|
|
public string SendRemark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public string State { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class ShippingBillReqValidator : AbstractValidator<ShippingBillReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public ShippingBillReqValidator()
|
|
{
|
|
//this.RuleFor(o => o.BusinessDate)
|
|
// .NotEmpty().WithName("录入日期");
|
|
//this.RuleFor(o => o.AccountDate)
|
|
// .NotEmpty().WithName("财务日期");
|
|
//this.RuleFor(o => o.BLType)
|
|
// .NotEmpty().WithName("装运方式");
|
|
}
|
|
}
|
|
}
|