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
{
///
/// 海运出口舱单请求实体
///
public class ShippingBillReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 箱信息
///
public List CtnInfo { get; set; }
///
/// 业务Id
///
public long BusinessId { get; set; }
///
/// 主提单号
///
public string MBLNO { get; set; }
///
/// 分提单号
///
public string HBLNO { get; set; }
///
/// 开船日期
///
public DateTime? ETD { get; set; }
///
/// 货代公司Id
///
public long ForwarderId { get; set; }
///
/// 货代公司
///
public string Forwarder { get; set; }
///
/// 船名 t_code_vessel
///
public string Vessel { get; set; }
///
/// 船名Id t_code_vessel
///
public long VesselId { get; set; }
///
/// 海关航次
///
public string Voyno { get; set; }
///
/// 内部航次
///
public string InnerVoyno { get; set; }
///
/// 船公司Id
///
public long CarrierId { get; set; }
///
/// 船公司
///
public string Carrier { get; set; }
///
/// 船公司名称
///
public string CarrierName { get; set; }
///
/// 发货人 t_info_client CUSTNAME
///
public long? ShipperId { get; set; }
///
/// 收货人 t_info_client CUSTNAME
///
public long? ConsigneeId { get; set; }
///
/// 通知人 t_info_client CUSTNAME
///
public long? NotifyPartyId { get; set; }
///
/// 发货人名称
///
public string ShipperName { get; set; }
///
/// 发货人地址
///
public string ShipperAddress { get; set; }
///
/// 发货人国家code
///
public string ShipperCountry { get; set; }
///
/// 发货人国家
///
public string ShipperCountryName { get; set; }
///
/// 发货人电话
///
public string ShipperCountryTel { get; set; }
///
/// 收货人名称
///
public string ConsigneeName { get; set; }
///
/// 收货人地址
///
public string ConsigneeAddress { get; set; }
///
/// 收货人国家code
///
public string ConsigneeCountry { get; set; }
///
/// 收货人国家
///
public string ConsigneeCountryName { get; set; }
///
/// 收货人电话
///
public string ConsigneeCountryTel { get; set; }
///
/// 通知人名称
///
public string NotifyPartyName { get; set; }
///
/// 通知人地址
///
public string NotifyPartyAddress { get; set; }
///
/// 通知人国家code
///
public string NotifyPartyCountry { get; set; }
///
/// 通知人国家
///
public string NotifyPartyCountryName { get; set; }
///
/// 通知人电话
///
public string NotifyPartyCountryTel { get; set; }
///
/// 装货港Id
///
public long LoadPortId { get; set; }
///
/// 装货港代码
///
public string LoadPortCode { get; set; }
///
/// 装货港
///
public string LoadPort { get; set; }
///
/// 卸货港Id
///
public long DischargePortId { get; set; }
///
/// 卸货港代码
///
public string DischargePortCode { get; set; }
///
/// 卸货港
///
public string DischargePort { get; set; }
///
/// 收货地Id
///
public long DeliveryPlaceId { get; set; }
///
/// 收货地代码
///
public string DeliveryPlaceCode { get; set; }
///
/// 收货地
///
public string DeliveryPlace { get; set; }
///
/// 场站Id t_crm_client CUSTNAME
///
public long YardId { get; set; }
///
/// 场站 t_crm_client CUSTNAME
///
public string Yard { get; set; }
///
/// 唛头 N/M
///
public string Marks { get; set; }
///
/// 货物描述
///
public string Description { get; set; }
///
/// 货物标识 S/R/D/O
///
public string CargoId { get; set; }
///
/// 设置温度
///
public string TemperatureSet { get; set; }
///
/// 温度单位
///
public string TemperatureUnit { get; set; }
///
/// 冷藏通风量
///
public string ReeferQuantity { get; set; }
///
/// 危险品分类
///
public string DangerClass { get; set; }
///
/// 危险品编号
///
public string DangerNo { get; set; }
///
/// 危险品联系人
///
public string DangerAttn { get; set; }
///
/// 危险品电话
///
public string DangerTel { get; set; }
///
/// 包装 t_code_package
///
public string KindPkgs { get; set; }
///
/// Desc:备注
///
public string Remark { get; set; }
///
/// Desc:发送备注
///
public string SendRemark { get; set; }
///
/// 状态
///
public string State { get; set; }
}
///
/// 验证
///
public class ShippingBillReqValidator : AbstractValidator
{
///
/// 构造函数
///
public ShippingBillReqValidator()
{
//this.RuleFor(o => o.BusinessDate)
// .NotEmpty().WithName("录入日期");
//this.RuleFor(o => o.AccountDate)
// .NotEmpty().WithName("财务日期");
//this.RuleFor(o => o.BLType)
// .NotEmpty().WithName("装运方式");
}
}
}