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.

949 lines
24 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 Myshipping.Application.Entity;
using Myshipping.Application.Service.BookingOrder.Dto;
using Myshipping.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
public class BookingCustomerOrderQueryInput : PageInputBase
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 系统编号(订舱编号)
/// </summary>
public string BOOKINGNO { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL { get; set; }
/// <summary>
/// 海关航次
/// </summary>
public string VOYNO { get; set; }
/// <summary>
/// 场站代码
/// </summary>
public string YARDID { get; set; }
/// <summary>
/// 场站
/// </summary>
public string YARD { get; set; }
/// <summary>
/// 开船日期起始
/// </summary>
public DateTime? ETDStart { get; set; }
/// <summary>
/// 开船日期截止
/// </summary>
public DateTime? ETDEnd { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
public string PORTDISCHARGEID { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 船公司代号
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 录入日期起始
/// </summary>
public DateTime? CreatedTimeStart { get; set; }
/// <summary>
/// 录入日期截止
/// </summary>
public DateTime? CreatedTimeEnd { get; set; }
/// <summary>
/// 修改日期起始
/// </summary>
public DateTime? UpdateTimeStart { get; set; }
/// <summary>
/// 修改日期截止
/// </summary>
public DateTime? UpdateTimeEnd { get; set; }
/// <summary>
/// 业务状态
/// </summary>
public List<string> BSStatusList { get; set; }
/// <summary>
/// 订舱租户名称
/// </summary>
public string BookingTenantName { get; set; }
}
//dto
public class BookingCustomerOrderDto
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL { get; set; }
/// <summary>
/// 海关航次
/// </summary>
public string VOYNO { get; set; }
/// <summary>
/// 内部航次
/// </summary>
public string VOYNOINNER { get; set; }
/// <summary>
/// 场站代码
/// </summary>
public string YARDID { get; set; }
/// <summary>
/// 场站
/// </summary>
public string YARD { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 合约号
/// </summary>
public string CONTRACTNO { get; set; }
/// <summary>
/// 发货人
/// </summary>
public string SHIPPER { get; set; }
/// <summary>
/// 收货人
/// </summary>
public string CONSIGNEE { get; set; }
/// <summary>
/// 通知人
/// </summary>
public string NOTIFYPARTY { get; set; }
/// <summary>
/// 第二通知人
/// </summary>
public string NOTIFYPARTY2 { get; set; }
/// <summary>
/// 起运港代码
/// </summary>
public string PORTLOADID { get; set; }
/// <summary>
/// 起运港
/// </summary>
public string PORTLOAD { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
public string PORTDISCHARGEID { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 运输条款
/// </summary>
public string SERVICE { get; set; }
/// <summary>
/// 付费方式
/// </summary>
public string BLFRT { get; set; }
/// <summary>
/// HS代码
/// </summary>
public string HSCODE { get; set; }
/// <summary>
/// 货描
/// </summary>
public string DESCRIPTION { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 包装
/// </summary>
public string KINDPKGS { get; set; }
/// <summary>
/// 毛重
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
/// 尺码
/// </summary>
public decimal? CBM { get; set; }
/// <summary>
/// 件数大写
/// </summary>
public string TOTALNO { get; set; }
/// <summary>
/// 集装箱
/// </summary>
public string CNTRTOTAL { get; set; }
/// <summary>
/// 船公司代号
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 货物标识
/// </summary>
public string CARGOID { get; set; }
/// <summary>
/// 危险品类别
/// </summary>
public string DCLASS { get; set; }
/// <summary>
/// 危险品编号
/// </summary>
public string DUNNO { get; set; }
/// <summary>
/// 危险品页号
/// </summary>
public string DPAGE { get; set; }
/// <summary>
/// 危险品标签
/// </summary>
public string DLABEL { get; set; }
/// <summary>
/// 危险品联系人
/// </summary>
public string LINKMAN { get; set; }
/// <summary>
/// 危险品联系电话
/// </summary>
public string DTEL { get; set; }
/// <summary>
/// 温度单位
/// </summary>
public string TEMPID { get; set; }
/// <summary>
/// 设置温度
/// </summary>
public string TEMPSET { get; set; }
/// <summary>
/// 通风度
/// </summary>
public string REEFERF { get; set; }
/// <summary>
/// 湿度
/// </summary>
public string HUMIDITY { get; set; }
/// <summary>
/// 最低温度
/// </summary>
public string TEMPMIN { get; set; }
/// <summary>
/// 最高温度
/// </summary>
public string TEMPMAX { get; set; }
/// <summary>
/// 订舱要求
/// </summary>
public string SOREMARK { get; set; }
/// <summary>
/// 箱长
/// </summary>
public decimal CtrnLength { get; set; }
/// <summary>
/// 箱宽
/// </summary>
public decimal CtrnWidth { get; set; }
/// <summary>
/// 箱高
/// </summary>
public decimal CtrnHeight { get; set; }
/// <summary>
/// 销售代码
/// </summary>
public string SaleCode { get; set; }
/// <summary>
/// 操作备注
/// </summary>
public string CZRemark { get; set; }
/// <summary>
/// 目的地代码
/// </summary>
public string DESTINATIONID { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string DESTINATION { get; set; }
/// <summary>
/// 起运港唯一代码
/// </summary>
public string PORTLOADCODE { get; set; }
/// <summary>
/// 目的港唯一代码
/// </summary>
public string PORTDISCHARGECODE { get; set; }
/// <summary>
/// 目的地唯一代码
/// </summary>
public string DESTINATIONCODE { get; set; }
/// <summary>
/// 付费方式代码
/// </summary>
public string FRTCODE { get; set; }
/// <summary>
/// 运输条款代码
/// </summary>
public string SERVICECODE { get; set; }
/// <summary>
/// 船公司航线代码
/// </summary>
public string LANECODE { get; set; }
}
//保存dto
public class BookingCustomerOrderSaveInput : BookingCustomerOrderDto
{
/// <summary>
/// 上传还未保存的文件
/// </summary>
public List<string> TempFileNames { get; set; }
/// <summary>
/// 已保存过的需要保留的文件
/// </summary>
public List<long> Files { get; set; }
/// <summary>
/// 箱信息
/// </summary>
public List<BookingCustomerCtnDto> CtnList { get; set; }
/// <summary>
/// 服务项目
/// </summary>
public List<BookingServiceItemCustomerDto> ServiceItemList { get; set; }
}
//台账返回dto
public class BookingCustomerOrderListOutput : BookingCustomerOrderDto
{
/// <summary>
/// 系统编号
/// </summary>
public string BOOKINGNO { get; set; }
/// <summary>
/// 业务状态
/// </summary>
public string BSSTATUS { get; set; }
/// <summary>
/// 订舱租户名称
/// </summary>
public string BookingTenantName { get; set; }
/// <summary>
/// 订舱用户名称
/// </summary>
public string BookingUserName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public string CreatedTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public string UpdatedTime { get; set; }
/// <summary>
/// 日志信息
/// </summary>
public List<BookingCustomerLogDto> LogList { get; set; }
}
//保存返回dto
public class BookingCustomerOrderSaveOutput : BookingCustomerOrderDto
{
/// <summary>
/// 系统编号
/// </summary>
public string BOOKINGNO { get; set; }
/// <summary>
/// 业务状态
/// </summary>
public string BSSTATUS { get; set; }
/// <summary>
/// 订舱租户名称
/// </summary>
public string BookingTenantName { get; set; }
/// <summary>
/// 订舱用户名称
/// </summary>
public string BookingUserName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public string CreatedTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public string UpdatedTime { get; set; }
/// <summary>
/// 附加数据
/// </summary>
public string ExtendData { get; set; }
/// <summary>
/// 文件列表
/// </summary>
public Dictionary<long, string> Files { get; set; }
/// <summary>
/// 箱信息
/// </summary>
public List<BookingCustomerCtnDto> CtnList { get; set; }
/// <summary>
/// 日志信息
/// </summary>
public List<BookingCustomerLogDto> LogList { get; set; }
/// <summary>
/// 服务项目
/// </summary>
public List<BookingServiceItemCustomerDto> ServiceItemList { get; set; }
}
/// <summary>
/// 箱信息dto
/// </summary>
public class BookingCustomerCtnDto
{
/// <summary>
/// 主键
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 箱型代码
/// </summary>
public string CTNCODE { get; set; }
/// <summary>
/// 箱型
/// </summary>
public string CTNALL { get; set; }
/// <summary>
/// 箱量
/// </summary>
public int? CTNNUM { get; set; }
/// <summary>
/// 毛重
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
/// 备注
/// </summary>
public string REMARK { get; set; }
}
/// <summary>
/// 日志信息dto
/// </summary>
public class BookingCustomerLogDto
{
/// <summary>
/// 状态
/// </summary>
public string Status { get; set; }
/// <summary>
/// 状态时间
/// </summary>
public DateTime? OpTime { get; set; }
/// <summary>
/// 创建者名称
/// </summary>
public virtual string CreatedUserName { get; set; }
}
/// <summary>
/// 接收客户订舱提交dto
/// </summary>
public class BookingCustomerSubmitDto : BookingCustomerOrderDto
{
/// <summary>
/// 主键
/// </summary>
public new string Id { get; set; }
/// <summary>
/// 系统编号(订舱编号)
/// </summary>
public string BOOKINGNO { get; set; }
/// <summary>
/// 订舱租户id
/// </summary>
public long BookingTenantId { get; set; }
/// <summary>
/// 订舱客户公司名称
/// </summary>
public string BookingTenantName { get; set; }
/// <summary>
/// 订舱客户公司id
/// </summary>
public string BookingCompanyId { get; set; }
/// <summary>
/// 订舱用户id
/// </summary>
public long BookingUserId { get; set; }
/// <summary>
/// 订舱用户名称
/// </summary>
public string BookingUserName { get; set; }
/// <summary>
/// 订舱大简云用户id
/// </summary>
public string BookingDjyUserId { get; set; }
/// <summary>
/// 文件列表key文件名称value文件内容base64 2023年9月12日传输文件的形式废弃改为传递文件路径
/// </summary>
//public Dictionary<string, string> Files { get; set; }
/// <summary>
/// 文件信息
/// </summary>
public List<BookingFileSyncCustomerDto> Files { get; set; }
/// <summary>
/// 箱信息
/// </summary>
public List<BookingCustomerCtnDto> CtnList { get; set; }
/// <summary>
/// 服务项目
/// </summary>
public List<BookingServiceItemCustomerDto> ServiceItemList { get; set; }
/// <summary>
/// 回推数据接口url
/// </summary>
public string FeedbackUrl { get; set; }
/// <summary>
/// 回推接口Key
/// </summary>
public string FeedbackKey { get; set; }
/// <summary>
/// 回推接口秘钥
/// </summary>
public string FeedbackSecret { get; set; }
/// <summary>
/// 附加数据
/// </summary>
public string ExtendData { get; set; }
}
/// <summary>
/// 大简云取消提交订舱dto
/// </summary>
public class BookingCustomerCancelSubmitDto
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
/// <summary>
/// 系统编号(订舱编号)
/// </summary>
public string BOOKINGNO { get; set; }
}
/// <summary>
/// 提交订舱返回对象
/// </summary>
public class BookingSubmitResultModel
{
/// <summary>
/// ID
/// </summary>
public string Id { get; set; }
/// <summary>
/// 客户订舱系统中的订舱编号
/// </summary>
public string BOOKINGNO { get; set; }
/// <summary>
/// 是否成功
/// </summary>
public bool Success { get; set; }
/// <summary>
/// 消息内容
/// </summary>
public string Message { get; set; }
}
/// <summary>
/// 服务项目
/// </summary>
public class BookingServiceItemCustomerDto
{
/// <summary>
/// 状态代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 状态名称
/// </summary>
public string Value { get; set; }
}
/// <summary>
/// 接收(发送)客户订舱审核结果
/// </summary>
public class BookingCustomerRecAduitFeedbackDto
{
/// <summary>
/// 客户订舱系统中的ID
/// </summary>
public string Id { get; set; }
/// <summary>
/// 是否接收订舱
/// </summary>
public bool Accept { get; set; }
/// <summary>
/// 审核意见
/// </summary>
public string Comment { get; set; }
}
/// <summary>
/// 接收(发送)订舱反馈数据
/// </summary>
public class BookingCustomerRecDataFeedbackDto
{
/// <summary>
/// 订舱主信息
/// </summary>
public BookingOrderSyncCustomerDto Order { get; set; }
/// <summary>
/// 箱信息
/// </summary>
public List<BookingCtnSyncCustomerDto> Ctns { get; set; }
/// <summary>
/// 文件信息
/// </summary>
public List<BookingFileSyncCustomerDto> Files { get; set; }
/// <summary>
/// 货运动态
/// </summary>
public List<BookingStatusLogSyncCustomerDto> StatusLogs { get; set; }
/// <summary>
/// 修改日志
/// </summary>
public List<BookingLogSyncCustomerDto> BookingLogs { get; set; }
}
/// <summary>
/// 客户订舱模板查询条件
/// </summary>
public class BookingCustomerTemplateQueryInput : PageInputBase
{
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
}
/// <summary>
/// 客户订舱模板查询返回
/// </summary>
public class BookingCustomerTemplateQueryOutput
{
/// <summary>
/// ID
/// </summary>
public long Id { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
}
/// <summary>
/// 客户订舱模板保存返回
/// </summary>
public class BookingCustomerTemplateSaveInput
{
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 内容JSON
/// </summary>
public string JsonContent { get; set; }
}
/// <summary>
/// 订舱数据回推统一对象
/// </summary>
public class BookingFeedbackDto
{
///// <summary>
///// 审核
///// </summary>
//public const string TransferTypeAudit = "Audit";
///// <summary>
///// 订舱数据
///// </summary>
//public const string TransferTypeBookingAll = "BookingAll";
///// <summary>
///// 货物状态
///// </summary>
//public const string TransferTypeGoodsStatus = "GoodsStatus";
/// <summary>
/// 构造
/// </summary>
/// <param name="feedbackType"></param>
public BookingFeedbackDto(string feedbackType)
{
this.FeedbackType = feedbackType;
}
/// <summary>
/// 回推类型
/// </summary>
public string FeedbackType { get; set; }
/// <summary>
/// 回推json内容
/// </summary>
public string JsonContent { get; set; }
/// <summary>
/// 订舱记录同步类型 ALL或空更新全部 BC只更新BC相关字段
/// </summary>
public string SyncType { get; set; }
}
/// <summary>
/// 客户端提交修改服务项目dto
/// </summary>
public class ChangeServiceItemDto
{
/// <summary>
/// 业务id
/// </summary>
public string Id { get; set; }
/// <summary>
/// 订舱客户的公司全称
/// </summary>
public string CompanyName { get; set; }
/// <summary>
/// 订舱客户的姓名
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 服务项目代码
/// </summary>
public string ServiceCode { get; set; }
/// <summary>
/// 服务项目名称
/// </summary>
public string ServiceName { get; set; }
/// <summary>
/// 是否取消
/// </summary>
public bool IsCancel { get; set; } = false;
}
/// <summary>
/// 客户端提交修改服务项目消息ext对象
/// </summary>
public class ChangeServiceItemExtModel
{
/// <summary>
/// 客户端提交的修改服务项目dto
/// </summary>
public ChangeServiceItemDto Dto { get; set; }
/// <summary>
/// 订舱数据id
/// </summary>
public long OrderId { get; set; }
/// <summary>
/// 订舱需求数据id
/// </summary>
public long CustomerOrderId { get; set; }
}
/// <summary>
/// 客户端提交单证补料dto
/// </summary>
public class DocSupplementSubmitDto
{
/// <summary>
/// 业务id
/// </summary>
public string Id { get; set; }
/// <summary>
/// 公司全称
/// </summary>
public string CompanyName { get; set; }
/// <summary>
/// 客户的姓名
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 补料类型名称
/// </summary>
public string DocType { get; set; }
/// <summary>
/// 补料类型名称
/// </summary>
public string DocTypeName { get; set; }
/// <summary>
/// 补料文件
/// </summary>
public List<BookingFileSyncCustomerDto> FileList { get; set; }
}
/// <summary>
/// 客户端提交修改补料消息ext对象
/// </summary>
public class DocSupplementExtModel
{
/// <summary>
/// 客户端提交的修改服务项目dto
/// </summary>
public DocSupplementSubmitDto Dto { get; set; }
/// <summary>
/// 订舱数据id
/// </summary>
public long OrderId { get; set; }
/// <summary>
/// 订舱需求数据id
/// </summary>
public long CustomerOrderId { get; set; }
}
/// <summary>
/// 接口接收订舱数据输入
/// </summary>
public class BookingCustomerApiSaveInput : BookingCustomerOrderDto
{
/// <summary>
/// 其他业务系统ID
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 箱信息
/// </summary>
public List<BookingCustomerCtnDto> CtnList { get; set; }
/// <summary>
/// 服务项目
/// </summary>
public List<BookingServiceItemCustomerDto> ServiceItemList { get; set; }
/// <summary>
/// 订舱账号
/// </summary>
public string BOOKINGACCOUNT { get; set; }
/// <summary>
/// 订舱密码
/// </summary>
public string BOOKINGPASSWORD { get; set; }
/// <summary>
/// 航线代码
/// </summary>
public string LINECODE { get; set; }
}
}