业务函电 提单信息接口

master
ZR20090193-陈敬勇 8 months ago
parent 45ba4417e2
commit 7c7cf76c1b

@ -297,10 +297,11 @@ public static class MultiLanguageConst
#endregion
#region MyRegion
#region 海关出口
[Description("海运出口信息已存在")]
public const string SeaExportExist = "Sea_Export_Exist";
[Description("函电信息不存在")]
public const string LetterNotExist = "Letter_Not_Exist";
#endregion
}

@ -0,0 +1,208 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 集装箱信息请求
/// </summary>
public class OpCtnReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 箱型代码
/// </summary>
public string CtnCode { get; set; }
/// <summary>
/// 尺寸
/// </summary>
public string Size { get; set; }
/// <summary>
/// 箱型
/// </summary>
public string Ctn { get; set; }
/// <summary>
/// 箱量
/// </summary>
public int CtnNum { get; set; }
/// <summary>
/// TEU
/// </summary>
public int TEU { get; set; }
/// <summary>
/// 表现形式
/// </summary>
public string CtnAll { get; set; }
/// <summary>
/// 箱号
/// </summary>
public string CntrNo { get; set; }
/// <summary>
/// 封号
/// </summary>
public string SealNo { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 毛重
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
/// 尺码
/// </summary>
public decimal? CBM { get; set; }
/// <summary>
/// 包装 t_code_package
/// </summary>
public string KindPkgs { get; set; }
/// <summary>
/// 皮重
/// </summary>
public decimal? TareWeight { get; set; }
/// <summary>
/// 品名
/// </summary>
public string GoodsName { get; set; }
/// <summary>
/// 箱状态
/// </summary>
public string CtnStatus { get; set; }
/// <summary>
/// 称重方式
/// </summary>
public string WeightType { get; set; }
/// <summary>
/// 称重重量
/// </summary>
public decimal? WeightKGS { get; set; }
/// <summary>
/// VGM联系人
/// </summary>
public string WeightATTN { get; set; }
/// <summary>
/// VGM联系人电话
/// </summary>
public string WeightTel { get; set; }
/// <summary>
/// VGM联系人签名
/// </summary>
public string WeightSign { get; set; }
/// <summary>
/// VGM称重日期
/// </summary>
public string WeightDate { get; set; }
/// <summary>
/// 主票业务编号
/// </summary>
public string MasterNo { get; set; }
/// <summary>
/// 承运车队
/// </summary>
public string Trucker { get; set; }
/// <summary>
/// 车号
/// </summary>
public string TruckNo { get; set; }
/// <summary>
/// 运费
/// </summary>
public decimal? TruckFee { get; set; }
/// <summary>
/// 免堆存天数
/// </summary>
public int FreeStorageDay { get; set; }
/// <summary>
/// 堆存天数
/// </summary>
public int StorageDay { get; set; }
/// <summary>
/// 堆存费/天
/// </summary>
public decimal? StoragePrice { get; set; }
/// <summary>
/// 堆存费
/// </summary>
public decimal? StorageFee { get; set; }
/// <summary>
/// 免箱使天数
/// </summary>
public int FreeCtnDay { get; set; }
/// <summary>
/// 箱使天数
/// </summary>
public int CtnDay { get; set; }
/// <summary>
/// 箱使费/天
/// </summary>
public decimal? CtnPrice { get; set; }
/// <summary>
/// 箱使费
/// </summary>
public decimal? CtnFee { get; set; }
/// <summary>
/// Desc:是否暂出
/// </summary>
public bool? IsTemp { get; set; } = false;
/// <summary>
/// VGM地址
/// </summary>
public string VGMAddr { get; set; }
/// <summary>
/// VGM邮箱
/// </summary>
public string VGMEmail { get; set; }
/// <summary>
/// 提箱时间
/// </summary>
public string PickUpTime { get; set; }
/// <summary>
/// 实际到港时间
/// </summary>
public string ActualArrivalPortTime { get; set; }
}
}

@ -0,0 +1,216 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 集装箱信息返回
/// </summary>
public class OpCtnRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 箱型代码
/// </summary>
public string CtnCode { get; set; }
/// <summary>
/// 尺寸
/// </summary>
public string Size { get; set; }
/// <summary>
/// 箱型
/// </summary>
public string Ctn { get; set; }
/// <summary>
/// 箱量
/// </summary>
public int CtnNum { get; set; }
/// <summary>
/// TEU
/// </summary>
public int TEU { get; set; }
/// <summary>
/// 表现形式
/// </summary>
public string CtnAll { get; set; }
/// <summary>
/// 箱号
/// </summary>
public string CntrNo { get; set; }
/// <summary>
/// 封号
/// </summary>
public string SealNo { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 毛重
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
/// 尺码
/// </summary>
public decimal? CBM { get; set; }
/// <summary>
/// 包装 t_code_package
/// </summary>
public string KindPkgs { get; set; }
/// <summary>
/// 皮重
/// </summary>
public decimal? TareWeight { get; set; }
/// <summary>
/// 品名
/// </summary>
public string GoodsName { get; set; }
/// <summary>
/// 箱状态
/// </summary>
public string CtnStatus { get; set; }
/// <summary>
/// 称重方式
/// </summary>
public string WeightType { get; set; }
/// <summary>
/// 称重重量
/// </summary>
public decimal? WeightKGS { get; set; }
/// <summary>
/// VGM联系人
/// </summary>
public string WeightATTN { get; set; }
/// <summary>
/// VGM联系人电话
/// </summary>
public string WeightTel { get; set; }
/// <summary>
/// VGM联系人签名
/// </summary>
public string WeightSign { get; set; }
/// <summary>
/// VGM称重日期
/// </summary>
public string WeightDate { get; set; }
/// <summary>
/// 主票业务编号
/// </summary>
public string MasterNo { get; set; }
/// <summary>
/// 承运车队
/// </summary>
public string Trucker { get; set; }
/// <summary>
/// 车号
/// </summary>
public string TruckNo { get; set; }
/// <summary>
/// 运费
/// </summary>
public decimal? TruckFee { get; set; }
/// <summary>
/// 免堆存天数
/// </summary>
public int FreeStorageDay { get; set; }
/// <summary>
/// 堆存天数
/// </summary>
public int StorageDay { get; set; }
/// <summary>
/// 堆存费/天
/// </summary>
public decimal? StoragePrice { get; set; }
/// <summary>
/// 堆存费
/// </summary>
public decimal? StorageFee { get; set; }
/// <summary>
/// 免箱使天数
/// </summary>
public int FreeCtnDay { get; set; }
/// <summary>
/// 箱使天数
/// </summary>
public int CtnDay { get; set; }
/// <summary>
/// 箱使费/天
/// </summary>
public decimal? CtnPrice { get; set; }
/// <summary>
/// 箱使费
/// </summary>
public decimal? CtnFee { get; set; }
/// <summary>
/// Desc:是否暂出
/// </summary>
public bool? IsTemp { get; set; } = false;
/// <summary>
/// VGM地址
/// </summary>
public string VGMAddr { get; set; }
/// <summary>
/// VGM邮箱
/// </summary>
public string VGMEmail { get; set; }
/// <summary>
/// 提箱时间
/// </summary>
public string PickUpTime { get; set; }
/// <summary>
/// 实际到港时间
/// </summary>
public string ActualArrivalPortTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}
}

@ -0,0 +1,78 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电信息更改通知请求
/// </summary>
public class OpLetterChangeReq
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterReq MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 主表Id
/// </summary>
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 件重尺
/// </summary>
public string PKC { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string CNTR { get; set; }
/// <summary>
/// 更改项目
/// </summary>
public string ProjectName { get; set; }
/// <summary>
/// 原内容
/// </summary>
public string OldContent { get; set; }
/// <summary>
/// 现内容
/// </summary>
public string NewContent { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -0,0 +1,74 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电信息更改通知返回
/// </summary>
public class OpLetterChangeRes
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterRes MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 件重尺
/// </summary>
public string PKC { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string CNTR { get; set; }
/// <summary>
/// 更改项目
/// </summary>
public string ProjectName { get; set; }
/// <summary>
/// 原内容
/// </summary>
public string OldContent { get; set; }
/// <summary>
/// 现内容
/// </summary>
public string NewContent { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -0,0 +1,57 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 业务函电主表请求
/// </summary>
public class OpLetterReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
public string HeadTo { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string HeadATTN { get; set; }
/// <summary>
/// 函电名称
/// </summary>
public string LetterName { get; set; }
/// <summary>
/// ATTN电话
/// </summary>
public string HeadATTNTel { get; set; }
/// <summary>
/// ATTN传真
/// </summary>
public string HeadATTNFax { get; set; }
/// <summary>
/// FROM电话
/// </summary>
public string HeadFromTel { get; set; }
/// <summary>
/// FROM传真
/// </summary>
public string HeadFromFax { get; set; }
/// <summary>
/// FROM邮箱
/// </summary>
public string HeadFromEmail { get; set; }
}
}

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电主表返回
/// </summary>
public class OpLetterRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
public string HeadTo { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string HeadATTN { get; set; }
/// <summary>
/// 函电名称
/// </summary>
public string LetterName { get; set; }
/// <summary>
/// ATTN电话
/// </summary>
public string HeadATTNTel { get; set; }
/// <summary>
/// ATTN传真
/// </summary>
public string HeadATTNFax { get; set; }
/// <summary>
/// FROM电话
/// </summary>
public string HeadFromTel { get; set; }
/// <summary>
/// FROM传真
/// </summary>
public string HeadFromFax { get; set; }
/// <summary>
/// FROM邮箱
/// </summary>
public string HeadFromEmail { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}
}

@ -0,0 +1,57 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电信息电放保函请求
/// </summary>
public class OpLetterSurReq
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterReq MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 主表Id
/// </summary>
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadPort { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电信息电放保函返回
/// </summary>
public class OpLetterSurRes
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterRes MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 主表Id
/// </summary>
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadPort { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}

@ -0,0 +1,142 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电派车通知请求
/// </summary>
public class OpLetterTruckReq
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterReq MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 主表Id
/// </summary>
public long LetterId { get; set; }
/// <summary>
/// 车队Id
/// </summary>
public long TruckId { get; set; }
/// <summary>
/// 陆运费
/// </summary>
public decimal? TruckFee { get; set; }
/// <summary>
/// 结算方式
/// </summary>
public string PayType { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string CNTR { get; set; }
/// <summary>
/// 提箱场站
/// </summary>
[SugarColumn(ColumnDescription = "YardId")]
public long YardId { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YardATTN { get; set; }
/// <summary>
/// 场站电话
/// </summary>
public string YardTel { get; set; }
/// <summary>
/// 工厂名称
/// </summary>
public string FactoryName { get; set; }
/// <summary>
/// 工厂联系人
/// </summary>
public string FactoryATTN { get; set; }
/// <summary>
/// 工厂电话
/// </summary>
public string FactoryTel { get; set; }
/// <summary>
/// 工厂地址
/// </summary>
public string FactoryAddress { get; set; }
/// <summary>
/// 要求到厂时间
/// </summary>
public string FactoryTime { get; set; }
/// <summary>
///返箱场站
/// </summary>
public long ReturnYardId { get; set; }
/// <summary>
/// 返箱地址
/// </summary>
public string? Returnddress { get; set; }
/// <summary>
/// 返箱电话
/// </summary>
public string ReturnTel { get; set; }
/// <summary>
/// 返箱联系人
/// </summary>
public long ReturnATTN { get; set; }
/// <summary>
/// 返厂时间
/// </summary>
public string? ReturnYardTime { get; set; }
/// <summary>
/// 派车日期
/// </summary>
public DateTime? TruckDate { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 提货时间
/// </summary>
public DateTime CargoDate { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 注意事项
/// </summary>
public string TruckDetail { get; set; }
/// <summary>
/// 派车状态
/// </summary>
public int TruckStatus { get; set; }
/// <summary>
/// 备注
/// </summary>
public string BSNO { get; set; }
}
}

@ -0,0 +1,140 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 函电派车通知返回
/// </summary>
public class OpLetterTruckRes
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterRes MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
public long LetterId { get; set; }
/// <summary>
/// 车队Id
/// </summary>
public long TruckId { get; set; }
/// <summary>
/// 陆运费
/// </summary>
public decimal? TruckFee { get; set; }
/// <summary>
/// 结算方式
/// </summary>
public string PayType { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string CNTR { get; set; }
/// <summary>
/// 提箱场站
/// </summary>
[SugarColumn(ColumnDescription = "YardId")]
public long YardId { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YardATTN { get; set; }
/// <summary>
/// 场站电话
/// </summary>
public string YardTel { get; set; }
/// <summary>
/// 工厂名称
/// </summary>
public string FactoryName { get; set; }
/// <summary>
/// 工厂联系人
/// </summary>
public string FactoryATTN { get; set; }
/// <summary>
/// 工厂电话
/// </summary>
public string FactoryTel { get; set; }
/// <summary>
/// 工厂地址
/// </summary>
public string FactoryAddress { get; set; }
/// <summary>
/// 要求到厂时间
/// </summary>
public string FactoryTime { get; set; }
/// <summary>
///返箱场站
/// </summary>
public long ReturnYardId { get; set; }
/// <summary>
/// 返箱地址
/// </summary>
public string? Returnddress { get; set; }
/// <summary>
/// 返箱电话
/// </summary>
public string ReturnTel { get; set; }
/// <summary>
/// 返箱联系人
/// </summary>
public long ReturnATTN { get; set; }
/// <summary>
/// 返厂时间
/// </summary>
public string? ReturnYardTime { get; set; }
/// <summary>
/// 派车日期
/// </summary>
public DateTime? TruckDate { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 提货时间
/// </summary>
public DateTime CargoDate { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 注意事项
/// </summary>
public string TruckDetail { get; set; }
/// <summary>
/// 派车状态
/// </summary>
public int TruckStatus { get; set; }
/// <summary>
/// 备注
/// </summary>
public string BSNO { get; set; }
}
}

@ -0,0 +1,163 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 入货通知请求
/// </summary>
public class OpLetterYardReq
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterReq MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 主表Id
/// </summary>
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string Destination { get; set; }
/// <summary>
/// 件重尺
/// </summary>
public string PKC { get; set; }
/// <summary>
/// 货物描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 提箱场站
/// </summary>
public long YardId { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// 提箱联系人
/// </summary>
public long ATTN { get; set; }
/// <summary>
/// 入货场站
/// </summary>
public long ReceiveYardId { get; set; }
/// <summary>
/// 入货地址
/// </summary>
public string ReceiveAddress { get; set; }
/// <summary>
/// 入货电话
/// </summary>
public string ReceiveTel { get; set; }
/// <summary>
/// 入货联系人
/// </summary>
public long ReceiveATTN { get; set; }
/// <summary>
/// Desc:单证
/// </summary>
public long Doc { get; set; }
/// <summary>
/// 单证电话
/// </summary>
public string DocTel { get; set; }
/// <summary>
/// 单证传真
/// </summary>
public string DocFax { get; set; }
/// <summary>
/// 单证邮箱
/// </summary>
public string DocEmail { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 截单日期
/// </summary>
public DateTime CloseDocDate { get; set; }
/// <summary>
/// 截VGM日期
/// </summary>
public DateTime CloseVGMDate { get; set; }
/// <summary>
/// 出口海关
/// </summary>
public string ExportCustoms { get; set; }
/// <summary>
/// 海关代码
/// </summary>
public string CustomsCode { get; set; }
/// <summary>
/// 报关代码
/// </summary>
public string DeclarationCode { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 提箱小票地址
/// </summary>
public string PickReceiptUrl { get; set; }
/// <summary>
/// 提箱时间
/// </summary>
public DateTime PickTime { get; set; }
/// <summary>
/// 入货时间
/// </summary>
public DateTime ReceiveTime { get; set; }
}
}

@ -0,0 +1,160 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 入货通知返回
/// </summary>
public class OpLetterYardRes
{
/// <summary>
/// 主表信息
/// </summary>
public OpLetterRes MainInfo { get; set; }
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
public long LetterId { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 船名航次
/// </summary>
public string VesselVoyNo { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string Destination { get; set; }
/// <summary>
/// 件重尺
/// </summary>
public string PKC { get; set; }
/// <summary>
/// 货物描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 提箱场站
/// </summary>
public long YardId { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// 提箱联系人
/// </summary>
public long ATTN { get; set; }
/// <summary>
/// 入货场站
/// </summary>
public long ReceiveYardId { get; set; }
/// <summary>
/// 入货地址
/// </summary>
public string ReceiveAddress { get; set; }
/// <summary>
/// 入货电话
/// </summary>
public string ReceiveTel { get; set; }
/// <summary>
/// 入货联系人
/// </summary>
public long ReceiveATTN { get; set; }
/// <summary>
/// Desc:单证
/// </summary>
public long Doc { get; set; }
/// <summary>
/// 单证电话
/// </summary>
public string DocTel { get; set; }
/// <summary>
/// 单证传真
/// </summary>
public string DocFax { get; set; }
/// <summary>
/// 单证邮箱
/// </summary>
public string DocEmail { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 截单日期
/// </summary>
public DateTime CloseDocDate { get; set; }
/// <summary>
/// 截VGM日期
/// </summary>
public DateTime CloseVGMDate { get; set; }
/// <summary>
/// 出口海关
/// </summary>
public string ExportCustoms { get; set; }
/// <summary>
/// 海关代码
/// </summary>
public string CustomsCode { get; set; }
/// <summary>
/// 报关代码
/// </summary>
public string DeclarationCode { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 提箱小票地址
/// </summary>
public string PickReceiptUrl { get; set; }
/// <summary>
/// 提箱时间
/// </summary>
public DateTime PickTime { get; set; }
/// <summary>
/// 入货时间
/// </summary>
public DateTime ReceiveTime { get; set; }
}
}

@ -0,0 +1,391 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 海运出口提单信息请求
/// </summary>
public class SeaExportBillManageReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 分提单号
/// </summary>
public string HBLNO { get; set; }
/// <summary>
/// 模板Id
/// </summary>
public long TemplateId { get; set; }
/// <summary>
/// 提单类型
/// </summary>
public string BillType { get; set; }
/// <summary>
/// 发货人 t_info_client CUSTNAME
/// </summary>
public long? ShipperId { get; set; }
/// <summary>
/// 发货人内容
/// </summary>
public string ShipperContent { get; set; }
/// <summary>
/// 发货人企业代码
/// </summary>
public string ShipperCode { get; set; }
/// <summary>
/// 发货人国家代码
/// </summary>
public string ShipperCountry { get; set; }
/// <summary>
/// 发货人电话
/// </summary>
public string ShipperTel { get; set; }
/// <summary>
/// 发货人邮箱
/// </summary>
public string ShipperEmail { get; set; }
/// <summary>
/// 收货人 t_info_client CUSTNAME
/// </summary>
public long? ConsigneeId { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 收货企业代码
/// </summary>
public string ConsigneeCode { get; set; }
/// <summary>
/// 收货人国家代码
/// </summary>
public string ConsigneeCountry { get; set; }
/// <summary>
/// 收货人电话
/// </summary>
public string ConsigneeTel { get; set; }
/// <summary>
/// 收货人邮箱
/// </summary>
public string ConsigneeEmail { get; set; }
/// <summary>
/// 通知人 t_info_client CUSTNAME
/// </summary>
public long? NotifyPartyId { get; set; }
/// <summary>
/// 通知人内容
/// </summary>
public string NotifyPartyContent { get; set; }
/// <summary>
/// 通知企业代码
/// </summary>
public string NotifyPartyCode { get; set; }
/// <summary>
/// 通知人国家代码
/// </summary>
public string NotifyPartyCountry { get; set; }
/// <summary>
/// 通知人电话
/// </summary>
public string NotifyPartyTel { get; set; }
/// <summary>
/// 通知人邮箱
/// </summary>
public string NotifyPartyEmail { get; set; }
/// <summary>
/// 代理人 t_info_client CUSTNAME
/// </summary>
public long? AgentId { get; set; }
/// <summary>
/// 代理人内容
/// </summary>
public string AgentContent { get; set; }
/// <summary>
/// 第二通知人 t_info_client CUSTNAME
/// </summary>
public long? SecondNotifyPartyId { get; set; }
/// <summary>
/// 第二通知人内容
/// </summary>
public string SecondNotifyPartyContent { get; set; }
/// <summary>
/// 第二通知人企业代码
/// </summary>
public string SecondNotifyPartyCode { get; set; }
/// <summary>
/// 第二通知人国家代码
/// </summary>
public string SecondNotifyPartyCountry { get; set; }
/// <summary>
/// 第二通知人电话
/// </summary>
public string SecondNotifyPartyTel { get; set; }
/// <summary>
/// 第二通知人邮箱
/// </summary>
public string SecondNotifyPartyEmail { get; set; }
/// <summary>
/// 场站 t_crm_client CUSTNAME
/// </summary>
public string Yard { get; set; }
/// <summary>
/// 船名 t_code_vessel
/// </summary>
public string Vessel { get; set; }
/// <summary>
/// 船名Id t_code_vessel
/// </summary>
public long VesselId { get; set; }
/// <summary>
/// 航次
/// </summary>
public string Voyno { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 预抵日期
/// </summary>
public DateTime? ETA { get; set; }
/// <summary>
/// ATD
/// </summary>
public DateTime? ATD { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 收货地点Id
/// </summary>
public long ReceiptPlaceId { get; set; }
/// <summary>
/// 收货地点
/// </summary>
public string ReceiptPlace { get; set; }
/// <summary>
/// 装货港代码
/// </summary>
public long LoadPortId { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadPort { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
public long DischargePortId { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 交货地代码
/// </summary>
public long DeliveryPlaceId { get; set; }
/// <summary>
/// 交货地
/// </summary>
public string DeliveryPlace { get; set; }
/// <summary>
/// 目的地代码
/// </summary>
public long DestinationId { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string Destination { get; set; }
/// <summary>
/// 提单份数
/// </summary>
public string NoBill { get; set; }
/// <summary>
/// 副本份数
/// </summary>
public string CopyNoBill { get; set; }
/// <summary>
/// 签单方式 t_code_issutype
/// </summary>
public string IssueType { get; set; }
/// <summary>
/// 签单日期
/// </summary>
public DateTime? IssueDate { get; set; }
/// <summary>
/// 签单地点Id
/// </summary>
public long IssuePlaceId { get; set; }
/// <summary>
/// 签单地点
/// </summary>
public string IssuePlace { get; set; }
/// <summary>
/// 签单状态
/// </summary>
public DateTime? BLIssueSatus { get; set; }
/// <summary>
/// 付款地点Id
/// </summary>
public long PrepareAtId { get; set; }
/// <summary>
/// 预付地点
/// </summary>
public string PrepareAt { get; set; }
/// <summary>
/// 预付地点
/// </summary>
public string PayableAt { get; set; }
/// <summary>
/// 运输条款 CY-CY t_code_service
/// </summary>
public string Service { get; set; }
/// <summary>
/// 唛头 N/M
/// </summary>
public string Marks { get; set; }
/// <summary>
/// 箱号封号
/// </summary>
public string CntrSealNo { get; set; }
/// <summary>
/// 件数包装
/// </summary>
public string NoPkgs { get; set; }
/// <summary>
/// 货物描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 品名 t_code_goods
/// </summary>
public string GoodsName { get; set; }
/// <summary>
/// 货物毛重
/// </summary>
public string GrossWeight { get; set; }
/// <summary>
/// 货物尺码
/// </summary>
public string Measurement { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 包装 t_code_package
/// </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 CntrNo { get; set; }
/// <summary>
/// Desc:MBL付费方式 t_code_frt
/// </summary>
public string MBLFrt { get; set; }
/// <summary>
/// Desc:备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:其他备注
/// </summary>
public string OrderContent { get; set; }
}
}

@ -0,0 +1,404 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 海运出口提单信息返回
/// </summary>
public class SeaExportBillManageRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 分提单号
/// </summary>
public string HBLNO { get; set; }
/// <summary>
/// 模板Id
/// </summary>
public long TemplateId { get; set; }
/// <summary>
/// 提单类型
/// </summary>
public string BillType { get; set; }
/// <summary>
/// 发货人 t_info_client CUSTNAME
/// </summary>
public long? ShipperId { get; set; }
/// <summary>
/// 发货人内容
/// </summary>
public string ShipperContent { get; set; }
/// <summary>
/// 发货人企业代码
/// </summary>
public string ShipperCode { get; set; }
/// <summary>
/// 发货人国家代码
/// </summary>
public string ShipperCountry { get; set; }
/// <summary>
/// 发货人电话
/// </summary>
public string ShipperTel { get; set; }
/// <summary>
/// 发货人邮箱
/// </summary>
public string ShipperEmail { get; set; }
/// <summary>
/// 收货人 t_info_client CUSTNAME
/// </summary>
public long? ConsigneeId { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 收货企业代码
/// </summary>
public string ConsigneeCode { get; set; }
/// <summary>
/// 收货人国家代码
/// </summary>
public string ConsigneeCountry { get; set; }
/// <summary>
/// 收货人电话
/// </summary>
public string ConsigneeTel { get; set; }
/// <summary>
/// 收货人邮箱
/// </summary>
public string ConsigneeEmail { get; set; }
/// <summary>
/// 通知人 t_info_client CUSTNAME
/// </summary>
public long? NotifyPartyId { get; set; }
/// <summary>
/// 通知人内容
/// </summary>
public string NotifyPartyContent { get; set; }
/// <summary>
/// 通知企业代码
/// </summary>
public string NotifyPartyCode { get; set; }
/// <summary>
/// 通知人国家代码
/// </summary>
public string NotifyPartyCountry { get; set; }
/// <summary>
/// 通知人电话
/// </summary>
public string NotifyPartyTel { get; set; }
/// <summary>
/// 通知人邮箱
/// </summary>
public string NotifyPartyEmail { get; set; }
/// <summary>
/// 代理人 t_info_client CUSTNAME
/// </summary>
public long? AgentId { get; set; }
/// <summary>
/// 代理人内容
/// </summary>
public string AgentContent { get; set; }
/// <summary>
/// 第二通知人 t_info_client CUSTNAME
/// </summary>
public long? SecondNotifyPartyId { get; set; }
/// <summary>
/// 第二通知人内容
/// </summary>
public string SecondNotifyPartyContent { get; set; }
/// <summary>
/// 第二通知人企业代码
/// </summary>
public string SecondNotifyPartyCode { get; set; }
/// <summary>
/// 第二通知人国家代码
/// </summary>
public string SecondNotifyPartyCountry { get; set; }
/// <summary>
/// 第二通知人电话
/// </summary>
public string SecondNotifyPartyTel { get; set; }
/// <summary>
/// 第二通知人邮箱
/// </summary>
public string SecondNotifyPartyEmail { get; set; }
/// <summary>
/// 场站 t_crm_client CUSTNAME
/// </summary>
public string Yard { get; set; }
/// <summary>
/// 船名 t_code_vessel
/// </summary>
public string Vessel { get; set; }
/// <summary>
/// 船名Id t_code_vessel
/// </summary>
public long VesselId { get; set; }
/// <summary>
/// 航次
/// </summary>
public string Voyno { get; set; }
/// <summary>
/// 开船日期
/// </summary>
public DateTime? ETD { get; set; }
/// <summary>
/// 预抵日期
/// </summary>
public DateTime? ETA { get; set; }
/// <summary>
/// ATD
/// </summary>
public DateTime? ATD { get; set; }
/// <summary>
/// 截港日期
/// </summary>
public DateTime? ClosingDate { get; set; }
/// <summary>
/// 收货地点Id
/// </summary>
public long ReceiptPlaceId { get; set; }
/// <summary>
/// 收货地点
/// </summary>
public string ReceiptPlace { get; set; }
/// <summary>
/// 装货港代码
/// </summary>
public long LoadPortId { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadPort { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
public long DischargePortId { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get; set; }
/// <summary>
/// 交货地代码
/// </summary>
public long DeliveryPlaceId { get; set; }
/// <summary>
/// 交货地
/// </summary>
public string DeliveryPlace { get; set; }
/// <summary>
/// 目的地代码
/// </summary>
public long DestinationId { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string Destination { get; set; }
/// <summary>
/// 提单份数
/// </summary>
public string NoBill { get; set; }
/// <summary>
/// 副本份数
/// </summary>
public string CopyNoBill { get; set; }
/// <summary>
/// 签单方式 t_code_issutype
/// </summary>
public string IssueType { get; set; }
/// <summary>
/// 签单日期
/// </summary>
public DateTime? IssueDate { get; set; }
/// <summary>
/// 签单地点Id
/// </summary>
public long IssuePlaceId { get; set; }
/// <summary>
/// 签单地点
/// </summary>
public string IssuePlace { get; set; }
/// <summary>
/// 签单状态
/// </summary>
public DateTime? BLIssueSatus { get; set; }
/// <summary>
/// 付款地点Id
/// </summary>
public long PrepareAtId { get; set; }
/// <summary>
/// 预付地点
/// </summary>
public string PrepareAt { get; set; }
/// <summary>
/// 预付地点
/// </summary>
public string PayableAt { get; set; }
/// <summary>
/// 运输条款 CY-CY t_code_service
/// </summary>
public string Service { get; set; }
/// <summary>
/// 唛头 N/M
/// </summary>
public string Marks { get; set; }
/// <summary>
/// 箱号封号
/// </summary>
public string CntrSealNo { get; set; }
/// <summary>
/// 件数包装
/// </summary>
public string NoPkgs { get; set; }
/// <summary>
/// 货物描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 品名 t_code_goods
/// </summary>
public string GoodsName { get; set; }
/// <summary>
/// 货物毛重
/// </summary>
public string GrossWeight { get; set; }
/// <summary>
/// 货物尺码
/// </summary>
public string Measurement { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 包装 t_code_package
/// </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 CntrNo { get; set; }
/// <summary>
/// Desc:MBL付费方式 t_code_frt
/// </summary>
public string MBLFrt { get; set; }
/// <summary>
/// Desc:备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:其他备注
/// </summary>
public string OrderContent { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}
}

@ -0,0 +1,39 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface IOpCtnService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<OpCtnRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditOpCtn(OpCtnReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<OpCtnRes> GetOpCtnInfo(string id);
}
}

@ -0,0 +1,38 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface IOpLetterChangeService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<OpLetterChangeRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditOpLetterChange(OpLetterChangeReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<OpLetterChangeRes> GetOpLetterChangeInfo(string id);
}
}

@ -0,0 +1,38 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface IOpLetterSurService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<OpLetterSurRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditOpLetterSur(OpLetterSurReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<OpLetterSurRes> GetOpLetterSurInfo(string id);
}
}

@ -0,0 +1,38 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface IOpLetterTruckService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<OpLetterTruckRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditOpLetterTruck(OpLetterTruckReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<OpLetterTruckRes> GetOpLetterTruckInfo(string id);
}
}

@ -0,0 +1,39 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface IOpLetterYardService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<OpLetterYardRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditOpLetterYard(OpLetterYardReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<OpLetterYardRes> GetOpLetterYardInfo(string id);
}
}

@ -0,0 +1,39 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Sea.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
/// <summary>
///
/// </summary>
public interface ISeaExportBillManageService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<SeaExportBillManageRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditSeaExportBillManage(SeaExportBillManageReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<SeaExportBillManageRes> GetSeaExportBillManageInfo(string id);
}
}

@ -0,0 +1,89 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Sea.Method
{
public class OpCtnService : IOpCtnService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpCtnService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<OpCtnRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<OpCtn>()
.Where(whereList)
.Select<OpCtnRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditOpCtn(OpCtnReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
var data = req.Adapt<OpCtn>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<OpCtn>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<OpCtnRes> GetOpCtnInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpCtn>()
.Where(a => a.Id == long.Parse(id))
.Select<OpCtnRes>()
.First();
return DataResult<OpCtnRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,114 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Sea.Method
{
internal class OpLetterChangeService: IOpLetterChangeService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpLetterChangeService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<OpLetterChangeRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<OpLetterChange>()
.Where(whereList)
.Select<OpLetterChangeRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditOpLetterChange(OpLetterChangeReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (req.LetterId == 0)
{
var letter = req.MainInfo.Adapt<OpLetter>();
var mainInfo = tenantDb.Insertable(letter).ExecuteReturnEntity();
var data = req.Adapt<OpLetterChange>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
if (!tenantDb.Queryable<OpLetter>().Where(x => x.Id == req.LetterId).Any())
{
return DataResult.Failed("函电信息不存在!", MultiLanguageConst.LetterNotExist);
}
var data = req.Adapt<OpLetterChange>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
}
else
{
var info = tenantDb.Queryable<OpLetterChange>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<OpLetterChangeRes> GetOpLetterChangeInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpLetterChange>()
.Where(a => a.Id == long.Parse(id))
.Select<OpLetterChangeRes>()
.Mapper(it=> it.MainInfo = tenantDb.Queryable<OpLetter>().Where(x=>x.Id == it.LetterId).Select<OpLetterRes>().First())
.First();
return DataResult<OpLetterChangeRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,114 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Sea.Method
{
internal class OpLetterSurService: IOpLetterSurService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpLetterSurService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<OpLetterSurRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<OpLetterSur>()
.Where(whereList)
.Select<OpLetterSurRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditOpLetterSur(OpLetterSurReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (req.LetterId == 0)
{
var letter = req.MainInfo.Adapt<OpLetter>();
var mainInfo = tenantDb.Insertable(letter).ExecuteReturnEntity();
var data = req.Adapt<OpLetterSur>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
if (!tenantDb.Queryable<OpLetter>().Where(x => x.Id == req.LetterId).Any())
{
return DataResult.Failed("函电信息不存在!", MultiLanguageConst.LetterNotExist);
}
var data = req.Adapt<OpLetterSur>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
}
else
{
var info = tenantDb.Queryable<OpLetterSur>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<OpLetterSurRes> GetOpLetterSurInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpLetterSur>()
.Where(a => a.Id == long.Parse(id))
.Select<OpLetterSurRes>()
.Mapper(it=> it.MainInfo = tenantDb.Queryable<OpLetter>().Where(x=>x.Id == it.LetterId).Select<OpLetterRes>().First())
.First();
return DataResult<OpLetterSurRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,114 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Sea.Method
{
internal class OpLetterTruckService: IOpLetterTruckService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpLetterTruckService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<OpLetterTruckRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<OpLetterTruck>()
.Where(whereList)
.Select<OpLetterTruckRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditOpLetterTruck(OpLetterTruckReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (req.LetterId == 0)
{
var letter = req.MainInfo.Adapt<OpLetter>();
var mainInfo = tenantDb.Insertable(letter).ExecuteReturnEntity();
var data = req.Adapt<OpLetterTruck>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
if (!tenantDb.Queryable<OpLetter>().Where(x => x.Id == req.LetterId).Any())
{
return DataResult.Failed("函电信息不存在!", MultiLanguageConst.LetterNotExist);
}
var data = req.Adapt<OpLetterTruck>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
}
else
{
var info = tenantDb.Queryable<OpLetterTruck>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<OpLetterTruckRes> GetOpLetterTruckInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpLetterTruck>()
.Where(a => a.Id == long.Parse(id))
.Select<OpLetterTruckRes>()
.Mapper(it=> it.MainInfo = tenantDb.Queryable<OpLetter>().Where(x=>x.Id == it.LetterId).Select<OpLetterRes>().First())
.First();
return DataResult<OpLetterTruckRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,114 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Sea.Method
{
internal class OpLetterYardService: IOpLetterYardService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpLetterYardService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<OpLetterYardRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<OpLetterYard>()
.Where(whereList)
.Select<OpLetterYardRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditOpLetterYard(OpLetterYardReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (req.LetterId == 0)
{
var letter = req.MainInfo.Adapt<OpLetter>();
var mainInfo = tenantDb.Insertable(letter).ExecuteReturnEntity();
var data = req.Adapt<OpLetterYard>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
if (!tenantDb.Queryable<OpLetter>().Where(x => x.Id == req.LetterId).Any())
{
return DataResult.Failed("函电信息不存在!", MultiLanguageConst.LetterNotExist);
}
var data = req.Adapt<OpLetterYard>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
}
else
{
var info = tenantDb.Queryable<OpLetterYard>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<OpLetterYardRes> GetOpLetterYardInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpLetterYard>()
.Where(a => a.Id == long.Parse(id))
.Select<OpLetterYardRes>()
.Mapper(it=> it.MainInfo = tenantDb.Queryable<OpLetter>().Where(x=>x.Id == it.LetterId).Select<OpLetterRes>().First())
.First();
return DataResult<OpLetterYardRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,93 @@
using DS.Module.Core;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Mapster;
using DS.Module.Core.Extensions;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Method
{
internal class SeaExportBillManageService: ISeaExportBillManageService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public SeaExportBillManageService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<SeaExportBillManageRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<SeaExportBillManage>()
.Where(whereList)
.Select<SeaExportBillManageRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditSeaExportBillManage(SeaExportBillManageReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
var data = req.Adapt<SeaExportBillManage>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<SeaExportBillManage>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<SeaExportBillManageRes> GetSeaExportBillManageInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<SeaExportBillManage>()
.Where(a => a.Id == long.Parse(id))
.Select<SeaExportBillManageRes>()
.First();
return DataResult<SeaExportBillManageRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 函电信息更改通知服务
/// </summary>
public class LetterChangeController : ApiController
{
private readonly IOpLetterChangeService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public LetterChangeController(IOpLetterChangeService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetOpLetterChangeList")]
public DataResult<List<OpLetterChangeRes>> GetOpLetterChangeList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditOpLetterChange")]
public DataResult EditOpLetterChange([FromBody] OpLetterChangeReq model)
{
var res = _invokeService.EditOpLetterChange(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetOpLetterChangeInfo")]
public DataResult<OpLetterChangeRes> GetOpLetterChangeInfo([FromQuery] string id)
{
var res = _invokeService.GetOpLetterChangeInfo(id);
return res;
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 函电信息电放保函服务
/// </summary>
public class LetterSurController : ApiController
{
private readonly IOpLetterSurService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public LetterSurController(IOpLetterSurService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetOpLetterSurList")]
public DataResult<List<OpLetterSurRes>> GetOpLetterSurList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditOpLetterSur")]
public DataResult EditOpLetterSur([FromBody] OpLetterSurReq model)
{
var res = _invokeService.EditOpLetterSur(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetOpLetterSurInfo")]
public DataResult<OpLetterSurRes> GetOpLetterSurInfo([FromQuery] string id)
{
var res = _invokeService.GetOpLetterSurInfo(id);
return res;
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 函电信息派车通知服务
/// </summary>
public class LetterTruckController : ApiController
{
private readonly IOpLetterTruckService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public LetterTruckController(IOpLetterTruckService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetOpLetterTruckList")]
public DataResult<List<OpLetterTruckRes>> GetOpLetterTruckList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditOpLetterTruck")]
public DataResult EditOpLetterTruck([FromBody] OpLetterTruckReq model)
{
var res = _invokeService.EditOpLetterTruck(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetOpLetterTruckInfo")]
public DataResult<OpLetterTruckRes> GetOpLetterTruckInfo([FromQuery] string id)
{
var res = _invokeService.GetOpLetterTruckInfo(id);
return res;
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 函电信息入货通知服务
/// </summary>
public class LetterYardController : ApiController
{
private readonly IOpLetterYardService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public LetterYardController(IOpLetterYardService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetOpLetterYardList")]
public DataResult<List<OpLetterYardRes>> GetOpLetterYardList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditOpLetterYard")]
public DataResult EditOpLetterYard([FromBody] OpLetterYardReq model)
{
var res = _invokeService.EditOpLetterYard(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetOpLetterYardInfo")]
public DataResult<OpLetterYardRes> GetOpLetterYardInfo([FromQuery] string id)
{
var res = _invokeService.GetOpLetterYardInfo(id);
return res;
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 集装箱信息服务
/// </summary>
public class OpCtnController : ApiController
{
private readonly IOpCtnService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public OpCtnController(IOpCtnService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetOpCtnList")]
public DataResult<List<OpCtnRes>> GetOpCtnList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditOpCtn")]
public DataResult EditOpCtn([FromBody] OpCtnReq model)
{
var res = _invokeService.EditOpCtn(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetOpCtnInfo")]
public DataResult<OpCtnRes> GetOpCtnInfo([FromQuery] string id)
{
var res = _invokeService.GetOpCtnInfo(id);
return res;
}
}

@ -0,0 +1,67 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 海运出口提单信息服务
/// </summary>
public class SeaExportBillManageController : ApiController
{
private readonly ISeaExportBillManageService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public SeaExportBillManageController(ISeaExportBillManageService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetSeaExportBillManageList")]
public DataResult<List<SeaExportBillManageRes>> GetSeaExportBillManageList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditSeaExportBillManage")]
public DataResult EditSeaExportBillManage([FromBody] SeaExportBillManageReq model)
{
var res = _invokeService.EditSeaExportBillManage(model);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetSeaExportBillManageInfo")]
public DataResult<SeaExportBillManageRes> GetSeaExportBillManageInfo([FromQuery] string id)
{
var res = _invokeService.GetSeaExportBillManageInfo(id);
return res;
}
}
Loading…
Cancel
Save