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.

416 lines
16 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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