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.

635 lines
17 KiB
C#

11 months ago
using Myshipping.Application.Service.BookingOrder.Dto;
using Myshipping.Core;
using Newtonsoft.Json.Linq;
11 months ago
using SqlSugar;
using System;
using System.Collections.Generic;
11 months ago
using System.ComponentModel;
11 months ago
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application.Service.BookingSlot.Dto
{
/// <summary>
/// 查询条件
/// </summary>
public class BookingSlotBasePageInput : PageInputBase
{
/// <summary>
/// 舱位提单号
/// </summary>
public string SLOT_BOOKING_NO { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL { get; set; }
/// <summary>
/// 航次号
/// </summary>
public string VOYNO { get; set; }
/// <summary>
/// 预计开船日期起始
/// </summary>
public DateTime? ETD_START { get; set; }
/// <summary>
/// 预计开船日期截至
/// </summary>
public DateTime? ETD_END { get; set; }
/// <summary>
/// 预计到港日期起始
/// </summary>
public DateTime? ETA_START { get; set; }
/// <summary>
/// 预计到港日期截至
/// </summary>
public DateTime? ETA_END { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string PORTLOAD { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 航线名称(船公司)
/// </summary>
public string LANENAME { get; set; }
/// <summary>
/// 承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转
/// </summary>
public string CARRIAGE_TYPE { get; set; }
/// <summary>
/// 订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
public string BOOKING_SLOT_TYPE { get; set; }
/// <summary>
/// 签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;
/// </summary>
public string ISSUETYPE { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string CTN_STAT { get; set; }
/// <summary>
/// VGM回执
/// </summary>
public string VGM_RLT_STAT { get; set; }
/// <summary>
/// SI回执
/// </summary>
public string SI_RLT_STAT { get; set; }
/// <summary>
/// 舱位状态 0-全部 1-未取消 2:已取消
/// </summary>
public int STATUS { get; set; }
/// <summary>
/// 创建者名称
/// </summary>
public string CreatedUserName { get; set; }
/// <summary>
/// 修改者名称
/// </summary>
public string UpdatedUserName { get; set; }
/// <summary>
/// 合约号
/// </summary>
public string CONTRACT_NO { get; set; }
/// <summary>
/// 周数
/// </summary>
public string WEEK_AT { get; set; }
/// <summary>
/// 标签Id列表
/// </summary>
public long[] LabelIdArray { get; set; }
11 months ago
}
/// <summary>
/// dto基类
/// </summary>
public class BookingSlotBaseDto
{
/// <summary>
/// 舱位提单号
/// </summary>
11 months ago
[Description("舱位提单号")]
11 months ago
public string SLOT_BOOKING_NO { get; set; }
/// <summary>
/// 合约号
/// </summary>
11 months ago
[Description("合约号")]
11 months ago
public string CONTRACT_NO { get; set; }
11 months ago
/// <summary>
11 months ago
/// 订舱抬头
11 months ago
/// </summary>
11 months ago
[Description("订舱抬头")]
public string BOOKING_PARTY { get; set; }
11 months ago
11 months ago
/// <summary>
11 months ago
/// 船名
11 months ago
/// </summary>
11 months ago
[Description("船名")]
public string VESSEL { get; set; }
11 months ago
/// <summary>
11 months ago
/// 航次号
11 months ago
/// </summary>
11 months ago
[Description("航次号")]
public string VOYNO { get; set; }
11 months ago
11 months ago
/// <summary>
11 months ago
/// 预计开船日期
11 months ago
/// </summary>
11 months ago
[Description("预计开船日期")]
public DateTime? ETD { get; set; }
11 months ago
11 months ago
/// <summary>
11 months ago
/// 预计到港日期
11 months ago
/// </summary>
11 months ago
[Description("预计到港日期")]
public DateTime? ETA { get; set; }
11 months ago
/// <summary>
11 months ago
/// 收货地代码
11 months ago
/// </summary>
11 months ago
[Description("收货地代码")]
public string PLACERECEIPTID { get; set; }
11 months ago
/// <summary>
11 months ago
/// 收货地
11 months ago
/// </summary>
11 months ago
[Description("收货地")]
public string PLACERECEIPT { get; set; }
11 months ago
/// <summary>
11 months ago
/// 交货地代码
11 months ago
/// </summary>
11 months ago
[Description("交货地代码")]
public string PLACEDELIVERYID { get; set; }
11 months ago
/// <summary>
11 months ago
/// 交货地
11 months ago
/// </summary>
11 months ago
[Description("交货地")]
public string PLACEDELIVERY { get; set; }
11 months ago
/// <summary>
/// 装货港代码
/// </summary>
11 months ago
[Description("装货港代码")]
11 months ago
public string PORTLOADID { get; set; }
/// <summary>
/// 装货港
/// </summary>
11 months ago
[Description("装货港")]
11 months ago
public string PORTLOAD { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
11 months ago
[Description("卸货港代码")]
11 months ago
public string PORTDISCHARGEID { get; set; }
/// <summary>
/// 卸货港
/// </summary>
11 months ago
[Description("卸货港")]
11 months ago
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 卸货港国家代码
/// </summary>
[Description("卸货港国家代码")]
public string PORTDISCHARGE_COUNTRY_CODE { get; set; }
/// <summary>
/// 卸货港国家名称
/// </summary>
[Description("卸货港国家名称")]
public string PORTDISCHARGE_COUNTRY { get; set; }
11 months ago
/// <summary>
/// 中转港1
/// </summary>
11 months ago
[Description("中转港1")]
11 months ago
public string TRANSFER_PORT_1 { get; set; }
/// <summary>
/// 中转港2
/// </summary>
11 months ago
[Description("中转港2")]
11 months ago
public string TRANSFER_PORT_2 { get; set; }
11 months ago
/// <summary>
/// 船公司代号
/// </summary>
[Description("船公司代号")]
public string CARRIERID { get; set; }
/// <summary>
/// 船公司
/// </summary>
[Description("船公司")]
public string CARRIER { get; set; }
11 months ago
/// <summary>
/// 航线代码(船公司)
/// </summary>
11 months ago
[Description("航线代码(船公司)")]
11 months ago
public string LANECODE { get; set; }
/// <summary>
/// 航线名称(船公司)
/// </summary>
11 months ago
[Description("航线名称(船公司)")]
11 months ago
public string LANENAME { get; set; }
/// <summary>
11 months ago
/// 承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转
11 months ago
/// </summary>
11 months ago
[Description("承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转")]
public string CARRIAGE_TYPE { get; set; }
11 months ago
11 months ago
/// <summary>
11 months ago
/// 承运方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
11 months ago
/// </summary>
11 months ago
[Description("承运方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱")]
public string CARRIAGE_TYPE_NAME { get; set; }
/// <summary>
/// 订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
[Description("订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱")]
public string BOOKING_SLOT_TYPE { get; set; }
/// <summary>
/// 订舱方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
[Description("订舱方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱")]
public string BOOKING_SLOT_TYPE_NAME { get; set; }
/// <summary>
/// 签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;
/// </summary>
[Description("签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;")]
public string ISSUETYPE { get; set; }
11 months ago
11 months ago
/// <summary>
/// 箱型箱量
/// </summary>
11 months ago
[Description("箱型箱量")]
11 months ago
public string CTN_STAT { get; set; }
11 months ago
/// <summary>
/// 所在周数
/// </summary>
[Description("所在周数")]
public string WEEK_AT { get; set; }
/// <summary>
/// 箱使天数
/// </summary>
[Description("箱使天数")]
11 months ago
public int? DETENSION_FREE_DAYS { get; set; }
11 months ago
11 months ago
/// <summary>
/// 样单截止日期
/// </summary>
11 months ago
[Description("样单截止日期")]
11 months ago
public DateTime? SI_CUT_DATE { get; set; }
/// <summary>
11 months ago
/// 截港时间
11 months ago
/// </summary>
11 months ago
[Description("截港时间")]
11 months ago
public DateTime? CY_CUT_DATE { get; set; }
/// <summary>
/// VGM截止日期
/// </summary>
11 months ago
[Description("VGM截止日期")]
11 months ago
public DateTime? VGM_SUBMISSION_CUT_DATE { get; set; }
/// <summary>
11 months ago
/// MDGF提交截止时间
11 months ago
/// </summary>
11 months ago
[Description("MDGF提交截止时间")]
11 months ago
public DateTime? MDGF_CUT_DATE { get; set; }
/// <summary>
11 months ago
/// 舱单截止时间
11 months ago
/// </summary>
11 months ago
[Description("舱单截止时间")]
11 months ago
public DateTime? MANIFEST_CUT_DATE { get; set; }
11 months ago
/// <summary>
/// 是否Cancellation
/// </summary>
[Description("是否Cancellation")]
public bool IS_CANCELLATION { get; set; }
11 months ago
/// <summary>
/// Cancellation时间
/// </summary>
[Description("Cancellation时间")]
public DateTime? CANCELLATION_DATE { get; set; }
/// <summary>
/// 客户样单截止日期
/// </summary>
[Description("客户样单截止日期")]
public Nullable<DateTime> CUSTOM_SI_CUT_DATE { get; set; }
/// <summary>
/// 备注
/// </summary>
[Description("备注")]
public string REMARK { get; set; }
/// <summary>
/// 计费日期
/// </summary>
[Description("计费日期")]
public DateTime? PRICE_CALCULATION_DATE { get; set; }
/// <summary>
/// 舱位关联的订舱信息
/// </summary>
public List<BookingSlotSaleInfoDto> BookingSlotSaleInfoList { get; set; }
11 months ago
}
/// <summary>
11 months ago
/// 保存舱位输入
11 months ago
/// </summary>
11 months ago
public class BookingSlotBaseSaveInput : BookingSlotBaseDto
11 months ago
{
11 months ago
/// <summary>
/// Id
/// </summary>
public long Id { get; set; }
11 months ago
/// <summary>
/// 舱位箱信息
/// </summary>
public List<BookingSlotCtnSaveInput> CtnList { get; set; }
}
/// <summary>
/// 舱位台账列表保存输入
/// </summary>
public class BookingSlotBaseSaveDataInListInputDto
{
/// <summary>
/// 舱位信息
/// </summary>
public JObject SlotBase { get; set; }
/// <summary>
/// 关联订单的销售信息
/// </summary>
public JObject SlotSaleInfo { get; set; }
}
11 months ago
/// <summary>
/// 保存舱位输出
/// </summary>
public class BookingSlotBaseSaveOutput : BookingSlotBaseSaveInput
{
/// <summary>
/// 日志
/// </summary>
public List<BookingLogDto> LogList { get; set; }
}
11 months ago
public class BookingSlotBaseListOutput : BookingSlotBaseDto
{
11 months ago
/// <summary>
/// Id
/// </summary>
public long Id { get; set; }
11 months ago
11 months ago
/// <summary>
/// VGM回执
/// </summary>
[Description("VGM回执")]
public string VGM_RLT_STAT { get; set; }
/// <summary>
/// SI回执
/// </summary>
[Description("SI回执")]
public string SI_RLT_STAT { get; set; }
/// <summary>
/// 提箱回执
/// </summary>
[Description("提箱回执")]
public string TAKE_CTN_RLT_STAT { get; set; }
/// <summary>
/// 还箱回执
/// </summary>
[Description("还箱回执")]
public string RETURN_CTN_RLT_STAT { get; set; }
/// <summary>
/// 预甩回执
/// </summary>
[Description("预甩回执")]
public string NOMINATION_RLT_STAT { get; set; }
/// <summary>
/// 舱位变更回执
/// </summary>
[Description("舱位变更回执")]
public string AMENDMENT_RLT_STAT { get; set; }
/// <summary>
/// 舱位取消回执
/// </summary>
[Description("舱位取消回执")]
public string CANCELLATION_RLT_STAT { get; set; }
/// <summary>
/// 目的港卸船未提货回执
/// </summary>
[Description("目的港卸船未提货回执")]
public string DISCHARGE_FULL_RLT_STAT { get; set; }
/// <summary>
/// 目的港提箱未还空箱回执
/// </summary>
[Description("目的港提箱未还空箱回执")]
public string GATE_OUTFULL_RLT_STAT { get; set; }
11 months ago
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreatedTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
/// <summary>
/// 创建者名称
/// </summary>
[MaxLength(20)]
public string CreatedUserName { get; set; }
/// <summary>
/// 修改者名称
/// </summary>
public string UpdatedUserName { get; set; }
11 months ago
}
11 months ago
/// <summary>
/// API接收保存舱位dto
/// </summary>
public class BookingSlotBaseApiSaveDto : BookingSlotBaseDto
{
/// <summary>
/// 舱位箱信息
/// </summary>
public List<BookingSlotCtnSaveInput> CtnList { get; set; }
}
/// <summary>
/// API接收对象
/// </summary>
public class BookingSlotBaseApiDto
{
/// <summary>
/// 操作类型add 新增、update 更新、del 删除取消
/// </summary>
public string OpType { get; set; }
11 months ago
/// <summary>
/// 数据对象
/// </summary>
public BookingSlotBaseApiSaveDto DataObj { get; set; }
10 months ago
/// <summary>
/// 批次号
/// </summary>
public string BatchNo { get; set; }
11 months ago
}
11 months ago
/// <summary>
/// 舱位基础信息含箱信息列表Dto
/// </summary>
public class BookingSlotBaseWithCtnDto : BookingSlotBaseDto
{
11 months ago
/// <summary>
/// Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 舱位箱信息
/// </summary>
public List<BookingSlotCtnDto> CtnList { get; set; }
}
/// <summary>
/// 舱位销售信息
/// </summary>
public class BookingSlotSaleInfoDto
{
/// <summary>
/// 关联关系主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 订舱主键
/// </summary>
public long BOOKING_ID { get; set; }
/// <summary>
/// 舱位主键
/// </summary>
public long BOOKING_SLOT_ID { get; set; }
/// <summary>
/// 客户ID
/// </summary>
public long? CUSTOMERID { get; set; }
/// <summary>
/// 客户名称
/// </summary>
public string CUSTOMERNAME { get; set; }
/// <summary>
/// 客服ID
/// </summary>
public string CUSTSERVICEID { get; set; }
/// <summary>
/// 客服名称
/// </summary>
public string CUSTSERVICE { get; set; }
/// <summary>
/// 销售ID
/// </summary>
public string SALEID { get; set; }
/// <summary>
/// 销售名称
/// </summary>
public string SALE { get; set; }
/// <summary>
/// 销售日期
/// </summary>
public DateTime? SALE_TIME { get; set; }
/// <summary>
/// 发货人
/// </summary>
public string SHIPPER { get; set; }
/// <summary>
/// 品名
/// </summary>
public string GOODSNAME { get; set; }
/// <summary>
/// 卖价
/// </summary>
public decimal? SELLING_PRICE { get; set; }
/// <summary>
/// 修改标记,前端提供给后端判断是否更新
/// </summary>
public bool UpdateFlag { get; set; }
}
11 months ago
}