using DS.Module.Core.Data;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Entity
{
///
/// 提单管理主信息
///
[SqlSugar.SugarTable("op_bl_issue_base", "提单管理主信息")]
public class BLIssueManageBase : BaseModel
{
///
/// 订舱主键,关联订舱主表ID
///
[SqlSugar.SugarColumn(ColumnDescription = "订舱主键", IsNullable = true)]
public long BookingId { get; set; }
///
/// 业务类型(SeaExport-海运出口)
///
[SqlSugar.SugarColumn(ColumnDescription = "业务类型", Length = 20, IsNullable = true)]
public string BusiType { get; set; }
///
/// 业务类型名称(SeaExport-海运出口)
///
[SqlSugar.SugarColumn(ColumnDescription = "业务类型名称", Length = 50, IsNullable = true)]
public string BusiTypeName { get; set; }
///
/// 单证编号
///
[SqlSugar.SugarColumn(ColumnDescription = "单证编号", Length = 64, IsNullable = true)]
public string BLNo { get; set; }
///
/// 分单编号
///
[SqlSugar.SugarColumn(ColumnDescription = "分单编号", Length = 64, IsNullable = true)]
public string HBLNo { get; set; }
///
/// 单证类型
///
[SqlSugar.SugarColumn(ColumnDescription = "单证类型", Length = 20, IsNullable = true)]
public string BLType { get; set; }
///
/// 单证类型名称
///
[SqlSugar.SugarColumn(ColumnDescription = "单证类型名称", Length = 50, IsNullable = true)]
public string BLTypeName { get; set; }
///
/// 结算日期
///
[SqlSugar.SugarColumn(ColumnDescription = "结算日期", IsNullable = true)]
public Nullable StlDate { get; set; }
///
/// 结算方式
///
[SugarColumn(ColumnDescription = "结算方式", IsNullable = true, Length = 30)]
public string StlName { get; set; }
///
/// 提单签发状态代码
///
[SqlSugar.SugarColumn(ColumnDescription = "提单签发状态代码", Length = 20, IsNullable = true)]
public string Status { get; set; }
///
/// 提单签发状态名称
///
[SqlSugar.SugarColumn(ColumnDescription = "提单签发状态名称", Length = 50, IsNullable = true)]
public string StatusName { get; set; }
///
/// 委托单位Id
///
[SqlSugar.SugarColumn(ColumnDescription = "委托单位Id", IsNullable = false)]
public long CustomerId { get; set; }
///
/// 委托单位
///
[SqlSugar.SugarColumn(ColumnDescription = "委托单位", IsNullable = true, Length = 50)]
public string CustomerName { get; set; }
///
/// 揽货人Id
///
[SugarColumn(ColumnDescription = "揽货人Id", IsNullable = true, DefaultValue = "0")]
public long SaleId { get; set; }
///
/// 揽货人
///
[SugarColumn(ColumnDescription = "揽货人", IsNullable = true, Length = 100)]
public string Sale { get; set; }
///
/// 签入日期
///
[SqlSugar.SugarColumn(ColumnDescription = "签入日期", IsNullable = true)]
public Nullable CheckInDate { get; set; }
///
/// 签入备注
///
[SqlSugar.SugarColumn(ColumnDescription = "签入备注", IsNullable = true, Length = 500)]
public string CheckInNote { get; set; }
///
/// 签入人
///
[SqlSugar.SugarColumn(ColumnDescription = "签入人", IsNullable = true)]
public long CheckInBy { get; set; }
///
/// 签入人名称
///
[SqlSugar.SugarColumn(ColumnDescription = "签入人名称", IsNullable = true)]
public string CheckInUserName { get; set; }
///
/// 签出日期
///
[SqlSugar.SugarColumn(ColumnDescription = "签出日期", IsNullable = true)]
public Nullable CheckOutDate { get; set; }
///
/// 签出备注
///
[SqlSugar.SugarColumn(ColumnDescription = "签出备注", IsNullable = true, Length = 500)]
public string CheckOutNote { get; set; }
///
/// 签出人
///
[SqlSugar.SugarColumn(ColumnDescription = "签出人", IsNullable = true)]
public long CheckOutBy { get; set; }
///
/// 签出人名称
///
[SqlSugar.SugarColumn(ColumnDescription = "签出人名称", IsNullable = true)]
public string CheckOutUserName { get; set; }
///
/// 是否已签入
///
[SqlSugar.SugarColumn(ColumnDescription = "是否已签入", IsNullable = true)]
public bool IsCheckIn { get; set; }
///
/// 是否已签出
///
[SqlSugar.SugarColumn(ColumnDescription = "是否已签出", IsNullable = true)]
public bool IsCheckOut { get; set; }
///
/// 是否特殊放单
///
[SqlSugar.SugarColumn(ColumnDescription = "是否特殊放单", IsNullable = true, DefaultValue = "0")]
public bool IsSpecialRelese { get; set; }
///
/// 特殊放单状态代码
///
[SqlSugar.SugarColumn(ColumnDescription = "特殊放单状态代码", Length = 20, IsNullable = true)]
public string SpecialReleseStatus { get; set; }
///
/// 特殊放单状态名称
///
[SqlSugar.SugarColumn(ColumnDescription = "特殊放单状态名称", Length = 50, IsNullable = true)]
public string SpecialReleseStatusName { get; set; }
///
/// 特殊放单备注
///
[SqlSugar.SugarColumn(ColumnDescription = "特殊放单备注", Length = 500, IsNullable = true)]
public string SpecialReleseNotes { get; set; }
///
/// 是否船证
///
[SqlSugar.SugarColumn(ColumnDescription = "是否特殊放单", IsNullable = true, DefaultValue = "0")]
public bool IsShipCertificate { get; set; }
///
/// 开船日期
///
[SugarColumn(ColumnDescription = "开船日期", IsNullable = true)]
public DateTime? ETD { get; set; }
///
/// 预抵日期
///
[SugarColumn(ColumnDescription = "预抵日期", IsNullable = true)]
public DateTime? ETA { get; set; }
///
/// 协议天数
///
[SqlSugar.SugarColumn(ColumnDescription = "协议天数", IsNullable = true)]
public Nullable AgreementDays { get; set; }
///
/// 超期天数
///
[SqlSugar.SugarColumn(ColumnDescription = "超期天数", IsNullable = true)]
public Nullable OverdueDays { get; set; }
///
/// 实际天数
///
[SqlSugar.SugarColumn(ColumnDescription = "实际天数", IsNullable = true)]
public Nullable RealDays { get; set; }
///
/// USD未收
///
[SqlSugar.SugarColumn(ColumnDescription = "USD未收", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoPayAmountUSD { get; set; }
///
/// RMB未收
///
[SqlSugar.SugarColumn(ColumnDescription = "RMB未收", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoPayAmountCNY { get; set; }
///
/// 未收合计
///
[SqlSugar.SugarColumn(ColumnDescription = "未收合计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoPayAmountTotal { get; set; }
///
/// 不含税应收款总计
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税应收款总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxReceivableTotal { get; set; }
///
/// 不含税应付款总计
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税应付款总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxPayableTotal { get; set; }
///
/// 不含税利润总计
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税利润总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxProfitTotal { get; set; }
///
/// 不含税人民币应收款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税利润总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxReceivableCNY { get; set; }
///
/// 不含税人民币应付款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税利润总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxPayableCNY { get; set; }
///
/// 不含税人民币利润
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税利润总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxProfitCNY { get { return NoTaxReceivableCNY - NoTaxPayableCNY; } }
///
/// 不含税美元应收款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税利润总计", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxReceivableUSD { get; set; }
///
/// 不含税美元应付款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税美元应付款", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxPayableUSD { get; set; }
///
/// 不含税美元利润
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税美元利润", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxProfitUSD { get { return NoTaxReceivableUSD - NoTaxPayableUSD; } }
///
/// 不含税其他币种应收款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税其他币种应收款", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxReceivableOther { get; set; }
///
/// 不含税其他币种应付款
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税其他币种应付款", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxPayableOther { get; set; }
///
/// 不含税其他币种利润
///
[SqlSugar.SugarColumn(ColumnDescription = "不含税其他币种利润", Length = 18, DecimalDigits = 3, IsNullable = true)]
public Nullable NoTaxProfitOther { get; set; }
///
/// 船证签入日期
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签入日期", IsNullable = true)]
public Nullable ShipCertCheckInDate { get; set; }
///
/// 船证签入备注
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签入备注", IsNullable = true, Length = 500)]
public string ShipCertCheckInNote { get; set; }
///
/// 船证签入人
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签入人", IsNullable = true)]
public long ShipCertCheckInBy { get; set; }
///
/// 船证签入人名称
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签入人名称", IsNullable = true)]
public string ShipCertCheckInUserName { get; set; }
///
/// 船证签出日期
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签出日期", IsNullable = true)]
public Nullable ShipCertCheckOutDate { get; set; }
///
/// 船证签出备注
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签出备注", IsNullable = true, Length = 500)]
public string ShipCertCheckOutNote { get; set; }
///
/// 船证签出人
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签出人", IsNullable = true)]
public long ShipCertCheckOutBy { get; set; }
///
/// 船证签出人名称
///
[SqlSugar.SugarColumn(ColumnDescription = "船证签出人名称", IsNullable = true)]
public string ShipCertCheckOutUserName { get; set; }
///
/// 是否船证已签入
///
[SqlSugar.SugarColumn(ColumnDescription = "是否船证已签入", IsNullable = true)]
public bool IsShipCertCheckIn { get; set; }
///
/// 是否船证已签出
///
[SqlSugar.SugarColumn(ColumnDescription = "是否船证已签出", IsNullable = true)]
public bool IsShipCertCheckOut { get; set; }
///
/// 是否换签(背书)
///
[SqlSugar.SugarColumn(ColumnDescription = "是否换签(背书)", IsNullable = true)]
public bool IsChangeEndorse { get; set; }
///
/// 是否改签
///
[SqlSugar.SugarColumn(ColumnDescription = "是否改签", IsNullable = true)]
public bool IsBLModify { get; set; }
///
/// 是否扣单
///
[SqlSugar.SugarColumn(ColumnDescription = "是否扣单", IsNullable = true)]
public bool IsBLSeize { get; set; }
///
/// 签单方式
///
[SugarColumn(ColumnDescription = "签单方式", IsNullable = true, Length = 12)]
public string IssueType { get; set; }
///
/// 签单方式代码
///
[SugarColumn(ColumnDescription = "签单方式代码", IsNullable = true, Length = 30)]
public string IssueTypeCode { get; set; }
}
}