海运出口基本信息

master
ZR20090193-陈敬勇 8 months ago
parent 66e64a32c1
commit 3abf68be5d

@ -288,5 +288,12 @@ public static class MultiLanguageConst
public const string ClientInfoExist = "Client_Info_Exist"; public const string ClientInfoExist = "Client_Info_Exist";
#endregion
#region MyRegion
[Description("海运出口信息已存在")]
public const string SeaExportExist = "Sea_Export_Exist";
#endregion #endregion
} }

@ -0,0 +1,995 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Sea.Dtos;
/// <summary>
/// 海运出口信息请求实体
/// </summary>
public class SeaExportReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 主票业务编号
/// </summary>
public string MasterNo { get; set; }
/// <summary>
/// 业务状态
/// </summary>
public int BusinessStatus { get; set; }
/// <summary>
/// 单据费用状态
/// </summary>
public int BillFeeStatus { get; set; }
/// <summary>
/// 单据费用状态时间
/// </summary>
public DateTime BillFeeStatusTime { get; set; }
/// <summary>
/// 费用状态
/// </summary>
public int FeeStatus { get; set; }
/// <summary>
/// 录入日期
/// </summary>
public DateTime BusinessDate { get; set; } = DateTime.Now;
/// <summary>
/// 财务日期
/// </summary>
public DateTime AccountDate { get; set; } = DateTime.Now;
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 分提单号
/// </summary>
public string HBLNO { get; set; }
/// <summary>
/// 委托编号 可以根据规则生成
/// </summary>
public string CustomerNo { get; set; }
/// <summary>
/// 运单号 可以根据规则生成
/// </summary>
public string TransNo { get; set; }
/// <summary>
/// 委托单位 t_info_client CUSTNAME
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// 装运方式 整箱、拼箱单票、拼箱主票、拼箱分票
/// </summary>
public string BLType { get; set; }
/// <summary>
/// 发货人 t_info_client CUSTNAME
/// </summary>
public long? ShipperId { get; set; }
/// <summary>
/// 收货人 t_info_client CUSTNAME
/// </summary>
public long? ConsigneeId { get; set; }
/// <summary>
/// 通知人 t_info_client CUSTNAME
/// </summary>
public long? NotifyPartyId { get; set; }
/// <summary>
/// 国外代理人 t_info_client CUSTNAME
/// </summary>
public long? AgentId { get; set; }
/// <summary>
/// 发货人内容
/// </summary>
public string ShipperContent { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 通知人内容
/// </summary>
public string NotifyPartyContent { get; set; }
/// <summary>
/// 国外代理内容
/// </summary>
public string AgentContent { 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>
/// 收货地
/// </summary>
public string ReceiptPlace { get; set; }
/// <summary>
/// 装货港Id
/// </summary>
public long ReceiptPlaceId { 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>
/// 箱型1
/// </summary>
public int Cntr1 { get; set; }
/// <summary>
/// 箱型2
/// </summary>
public int Cntr2 { get; set; }
/// <summary>
/// 箱型3
/// </summary>
public int Cntr3 { get; set; }
/// <summary>
/// 箱型4
/// </summary>
public int Cntr4 { get; set; }
/// <summary>
/// 箱型5
/// </summary>
public int Cntr5 { get; set; }
/// <summary>
/// 箱型6
/// </summary>
public int Cntr6 { get; set; }
/// <summary>
/// 箱型7
/// </summary>
public int Cntr7 { get; set; }
/// <summary>
/// 箱型8
/// </summary>
public int Cntr8 { get; set; }
/// <summary>
/// 箱型9
/// </summary>
public int Cntr9 { get; set; }
/// <summary>
/// 箱型10
/// </summary>
public int Cntr10 { get; set; }
/// <summary>
/// 其他箱型
/// </summary>
public int OtherCntr { get; set; }
/// <summary>
/// 箱TEU
/// </summary>
public int TEU { get; set; }
/// <summary>
/// 集装箱
/// </summary>
public string CntrTotal { get; set; }
/// <summary>
/// 操作员
/// </summary>
public long OperatorId { get; set; }
/// <summary>
/// 客服
/// </summary>
public long CustomerService { get; set; }
/// <summary>
/// 外国客服
/// </summary>
public long ForeignCustomerService { get; set; }
/// <summary>
/// 航线
/// </summary>
public long LaneId { get; set; }
/// <summary>
/// 揽货人
/// </summary>
public long Sale { get; set; }
/// <summary>
/// 船公司
/// </summary>
public long Carrier { get; set; }
/// <summary>
/// 货代公司
/// </summary>
public long Forwarder { get; set; }
/// <summary>
/// 报关行
/// </summary>
public long Customser { get; set; }
/// <summary>
/// 承运车队
/// </summary>
public long Trucker { get; set; }
/// <summary>
/// 发票号
/// </summary>
public string InvoiceNo { get; set; }
/// <summary>
/// 货物标识 S/R/D/O
/// </summary>
public string CargoId { get; set; }
/// <summary>
/// 危险品分类
/// </summary>
public string DangerClass { get; set; }
/// <summary>
/// 危险品编号
/// </summary>
public string DangerNo { get; set; }
/// <summary>
/// 危险品页号
/// </summary>
public string DangerPage { get; set; }
/// <summary>
/// 危险品标签
/// </summary>
public string DangerLabel { get; set; }
/// <summary>
/// 冷藏通风量
/// </summary>
public string ReeferQuantity { get; set; }
/// <summary>
/// 温度单位
/// </summary>
public string TemperatureUnit { get; set; }
/// <summary>
/// 设置温度
/// </summary>
public string TemperatureSet { get; set; }
/// <summary>
/// 最低温度
/// </summary>
public string TemperatureMin { get; set; }
/// <summary>
/// 最高温度
/// </summary>
public string TemperatureMax { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:业务来源明细Id
/// </summary>
public long SourceDetailId { get; set; }
/// <summary>
/// Desc:报关票数
/// </summary>
public int CustomsNum { get; set; }
/// <summary>
/// 运费协议号
/// </summary>
public string ContractNo { get; set; }
/// <summary>
/// 订舱类型
/// </summary>
public string BookingType { get; set; }
/// <summary>
/// 订舱编号
/// </summary>
public string BookingNo { get; set; }
/// <summary>
/// Desc:保险人
/// </summary>
public string Insuranceer { get; set; }
/// <summary>
/// Desc:保险单号
/// </summary>
public string InsuranceNo { get; set; }
/// <summary>
/// Desc:保险金额
/// </summary>
public decimal? InsuranceAmount { get; set; }
/// <summary>
/// Desc:是否生成凭证
/// </summary>
public bool? IsVoucher { get; set; } = false;
/// <summary>
/// Desc:凭证号
/// </summary>
public string VoucherNo { get; set; }
/// <summary>
/// Desc:备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:状态1
/// </summary>
public bool? Status1 { get; set; } = false;
/// <summary>
/// Desc:状态2
/// </summary>
public bool? Status2 { get; set; } = false;
/// <summary>
/// Desc:状态3
/// </summary>
public bool? Status3 { get; set; } = false;
/// <summary>
/// Desc:状态4
/// </summary>
public bool? Status4 { get; set; } = false;
/// <summary>
/// Desc:状态5
/// </summary>
public bool? Status5 { get; set; } = false;
/// <summary>
/// Desc:熏蒸
/// </summary>
public bool? IsFumigation { get; set; } = false;
/// <summary>
/// Desc:仓储
/// </summary>
public bool? IsStorage { get; set; } = false;
/// <summary>
/// Desc:陆运
/// </summary>
public bool? IsLand { get; set; } = false;
/// <summary>
/// Desc:报关
/// </summary>
public bool? IsCustoms { get; set; } = false;
/// <summary>
/// Desc:报检
/// </summary>
public bool? IsInspection { get; set; } = false;
/// <summary>
/// Desc:订舱
/// </summary>
public bool? IsBooking { get; set; } = false;
/// <summary>
/// Desc:使用代理
/// </summary>
public bool? IsAgent { get; set; } = false;
/// <summary>
/// Desc:分单签单
/// </summary>
public bool? IsHBLNO { get; set; } = false;
/// <summary>
/// Desc:服务项目9
/// </summary>
public bool? Service9 { get; set; } = false;
/// <summary>
/// Desc:服务项目10
/// </summary>
public bool? Service10 { get; set; } = false;
/// <summary>
/// Desc:单证
/// </summary>
public string Doc { get; set; }
/// <summary>
/// Desc:装箱类型
/// </summary>
public string PackingType { get; set; }
/// <summary>
/// Desc:仓库
/// </summary>
public string WareHouse { get; set; }
/// <summary>
/// 截单日期
/// </summary>
public DateTime CloseDocDate { get; set; }
/// <summary>
/// 集港日期
/// </summary>
public DateTime IntoPortDocDate { get; set; }
/// <summary>
/// Desc:所属业务部门
/// </summary>
public long SaleDeptId { get; set; }
/// <summary>
/// Desc:MBL付费方式 t_code_frt
/// </summary>
public string MBLFrt { get; set; }
/// <summary>
/// Desc:结算方式
/// </summary>
public string StlName { get; set; }
/// <summary>
/// Desc:月结算时间
/// </summary>
public DateTime StlDate { get; set; }
/// <summary>
/// Desc:委托方式
/// </summary>
public string OrderType { get; set; }
/// <summary>
/// Desc:操作员代码
/// </summary>
public string OperatorCode { get; set; }
/// <summary>
/// Desc:是否为操作
/// </summary>
public bool IsOperator { get; set; }
/// <summary>
/// Desc:操作员邮箱
/// </summary>
public string OperatorEmail { get; set; }
/// <summary>
/// Desc:操作员电话
/// </summary>
public string OperatorTel { get; set; }
/// <summary>
/// Desc:操作员传真
/// </summary>
public string OperatorFax { get; set; }
/// <summary>
/// Desc:场站自结
/// </summary>
public string FinancialStaffCode { get; set; }
/// <summary>
/// Desc:是否为财务
/// </summary>
public bool? IsFinancialStaff { get; set; } = false;
/// <summary>
/// Desc:财务邮箱
/// </summary>
public string FinancialStaffEmail { get; set; }
/// <summary>
/// Desc:财务电话
/// </summary>
public string FinancialStaffTel { get; set; }
/// <summary>
/// Desc:财务传真
/// </summary>
public string FinancialStaffFax { get; set; }
/// <summary>
/// Desc:业务来源代码
/// </summary>
public string SourceCode { get; set; }
/// <summary>
/// Desc:联系人
/// </summary>
public string LinkMan { get; set; }
/// <summary>
/// Desc:海关代码
/// </summary>
public string HSCode { get; set; }
/// <summary>
/// Desc:EDI备注
/// </summary>
public string EdiRemark { get; set; }
/// <summary>
/// Desc:邮件方案
/// </summary>
public long MailProjectId { get; set; }
/// <summary>
/// Desc:CSR/IR号
/// </summary>
public string IRCode { get; set; }
/// <summary>
/// Desc:服务合同号
/// </summary>
public string ServiceContractNo { get; set; }
/// <summary>
/// Desc:申请放箱号
/// </summary>
public string ApplyNo { get; set; }
/// <summary>
/// Desc:报关单号
/// </summary>
public string CustomNo { get; set; }
/// <summary>
/// Desc: 报关日期
/// </summary>
public DateTime CustomDate { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public long? EnterpriseId { get; set; }
/// <summary>
/// 单位
/// </summary>
public string Enterprise { get; set; }
/// <summary>
/// Desc:商检单号
/// </summary>
public string InspectionNo { get; set; }
/// <summary>
/// Desc:商检日期
/// </summary>
public DateTime InspectionDate { get; set; }
/// <summary>
/// Desc:贸易条款
/// </summary>
public string TradeTerm { get; set; }
/// <summary>
/// Desc:贸易方式
/// </summary>
public string TermDelivery { get; set; }
/// <summary>
/// Desc:清关日期
/// </summary>
public DateTime ClearCustomDate { get; set; }
/// <summary>
/// Desc:报检项目
/// </summary>
public string InsperctService { get; set; }
/// <summary>
/// 船代Id
/// </summary>
public long ShipAgencyId { get; set; }
/// <summary>
/// Desc:湿度
/// </summary>
public string Humidity { get; set; }
/// <summary>
/// Master发货人
/// </summary>
public long? MasterShipperId { get; set; }
/// <summary>
/// Master收货人 t_info_client CUSTNAME
/// </summary>
public long? MasterConsigneeId { get; set; }
/// <summary>
/// Master通知人 t_info_client CUSTNAME
/// </summary>
public long? MasterNotifyPartyId { get; set; }
/// <summary>
/// Master收货人内容
/// </summary>
public string MasterConsigneeContent { get; set; }
/// <summary>
/// Master通知人内容
/// </summary>
public string MasterNotifyPartyContent { get; set; }
/// <summary>
/// Master发货人内容
/// </summary>
public string MasterShipperContent { get; set; }
/// <summary>
/// Master单描述
/// </summary>
public string MasterDescription { get; set; }
/// <summary>
/// Desc:是否SOC
/// </summary>
public bool? IsContainerSoc { get; set; } = false;
/// <summary>
/// Desc:运输状态
/// </summary>
public string TranStatus { get; set; }
/// <summary>
/// Desc:
/// </summary>
public string ManifestStatus { get; set; }
/// <summary>
/// 是否多品名
/// </summary>
public bool IsMoreGood { get; set; }
/// <summary>
/// 是否打印小票
/// </summary>
public bool IsPrintReceipt { get; set; }
// /// <summary>
// /// 是否取消
// /// </summary>
// [SugarColumn(ColumnDescription = "是否取消", DefaultValue = "0")]
// public bool IsCancel { get; set; }
//
// /// <summary>
// /// 是否TUI
// /// </summary>
// [SugarColumn(ColumnDescription = "是否TUI", DefaultValue = "0")]
// public bool IsTUI { get; set; }
/// <summary>
/// 船名 t_code_vessel
/// </summary>
public string Vessel2N { get; set; }
/// <summary>
/// 船名Id t_code_vessel
/// </summary>
public long VesselId2N { get; set; }
/// <summary>
/// 二程航次
/// </summary>
public string Voyno2N { get; set; }
/// <summary>
/// 交货日期
/// </summary>
public DateTime DeliveryDate { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YardATTN { get; set; }
/// <summary>
/// 场站联系方式
/// </summary>
public string YardTel { get; set; }
/// <summary>
/// 销售公司Id
/// </summary>
public long SaleOrgId { get; set; }
/// <summary>
/// 中转港
/// </summary>
public string Transport { get; set; }
/// <summary>
/// 转运备注
/// </summary>
public string TransRemark { get; set; }
/// <summary>
/// 预录
/// </summary>
public int PreRecord { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class SeaExportReqValidator : AbstractValidator<SeaExportReq>
{
/// <summary>
/// 构造函数
/// </summary>
public SeaExportReqValidator()
{
this.RuleFor(o => o.BSNO)
.NotEmpty().WithName("业务编号");
this.RuleFor(o => o.MasterNo)
.NotEmpty().WithName("主票业务编号");
this.RuleFor(o => o.BusinessDate)
.NotEmpty().WithName("录入日期");
this.RuleFor(o => o.AccountDate)
.NotEmpty().WithName("财务日期");
this.RuleFor(o => o.BLType)
.NotEmpty().WithName("装运方式");
}
}

@ -0,0 +1,975 @@
using DS.Module.Core;
namespace DS.WMS.Core.Sea.Dtos;
/// <summary>
/// 海运出口信息返回实体
/// </summary>
public class SeaExportRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 业务编号
/// </summary>
public string BSNO { get; set; }
/// <summary>
/// 主票业务编号
/// </summary>
public string MasterNo { get; set; }
/// <summary>
/// 业务状态
/// </summary>
public int BusinessStatus { get; set; }
/// <summary>
/// 单据费用状态
/// </summary>
public int BillFeeStatus { get; set; }
/// <summary>
/// 单据费用状态时间
/// </summary>
public DateTime BillFeeStatusTime { get; set; }
/// <summary>
/// 费用状态
/// </summary>
public int FeeStatus { get; set; }
/// <summary>
/// 录入日期
/// </summary>
public DateTime BusinessDate { get; set; } = DateTime.Now;
/// <summary>
/// 财务日期
/// </summary>
public DateTime AccountDate { get; set; } = DateTime.Now;
/// <summary>
/// 主提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 分提单号
/// </summary>
public string HBLNO { get; set; }
/// <summary>
/// 委托编号 可以根据规则生成
/// </summary>
public string CustomerNo { get; set; }
/// <summary>
/// 运单号 可以根据规则生成
/// </summary>
public string TransNo { get; set; }
/// <summary>
/// 委托单位 t_info_client CUSTNAME
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// 装运方式 整箱、拼箱单票、拼箱主票、拼箱分票
/// </summary>
public string BLType { get; set; }
/// <summary>
/// 发货人 t_info_client CUSTNAME
/// </summary>
public long? ShipperId { get; set; }
/// <summary>
/// 收货人 t_info_client CUSTNAME
/// </summary>
public long? ConsigneeId { get; set; }
/// <summary>
/// 通知人 t_info_client CUSTNAME
/// </summary>
public long? NotifyPartyId { get; set; }
/// <summary>
/// 国外代理人 t_info_client CUSTNAME
/// </summary>
public long? AgentId { get; set; }
/// <summary>
/// 发货人内容
/// </summary>
public string ShipperContent { get; set; }
/// <summary>
/// 收货人内容
/// </summary>
public string ConsigneeContent { get; set; }
/// <summary>
/// 通知人内容
/// </summary>
public string NotifyPartyContent { get; set; }
/// <summary>
/// 国外代理内容
/// </summary>
public string AgentContent { 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>
/// 收货地
/// </summary>
public string ReceiptPlace { get; set; }
/// <summary>
/// 装货港Id
/// </summary>
public long ReceiptPlaceId { 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>
/// 箱型1
/// </summary>
public int Cntr1 { get; set; }
/// <summary>
/// 箱型2
/// </summary>
public int Cntr2 { get; set; }
/// <summary>
/// 箱型3
/// </summary>
public int Cntr3 { get; set; }
/// <summary>
/// 箱型4
/// </summary>
public int Cntr4 { get; set; }
/// <summary>
/// 箱型5
/// </summary>
public int Cntr5 { get; set; }
/// <summary>
/// 箱型6
/// </summary>
public int Cntr6 { get; set; }
/// <summary>
/// 箱型7
/// </summary>
public int Cntr7 { get; set; }
/// <summary>
/// 箱型8
/// </summary>
public int Cntr8 { get; set; }
/// <summary>
/// 箱型9
/// </summary>
public int Cntr9 { get; set; }
/// <summary>
/// 箱型10
/// </summary>
public int Cntr10 { get; set; }
/// <summary>
/// 其他箱型
/// </summary>
public int OtherCntr { get; set; }
/// <summary>
/// 箱TEU
/// </summary>
public int TEU { get; set; }
/// <summary>
/// 集装箱
/// </summary>
public string CntrTotal { get; set; }
/// <summary>
/// 操作员
/// </summary>
public long OperatorId { get; set; }
/// <summary>
/// 客服
/// </summary>
public long CustomerService { get; set; }
/// <summary>
/// 外国客服
/// </summary>
public long ForeignCustomerService { get; set; }
/// <summary>
/// 航线
/// </summary>
public long LaneId { get; set; }
/// <summary>
/// 揽货人
/// </summary>
public long Sale { get; set; }
/// <summary>
/// 船公司
/// </summary>
public long Carrier { get; set; }
/// <summary>
/// 货代公司
/// </summary>
public long Forwarder { get; set; }
/// <summary>
/// 报关行
/// </summary>
public long Customser { get; set; }
/// <summary>
/// 承运车队
/// </summary>
public long Trucker { get; set; }
/// <summary>
/// 发票号
/// </summary>
public string InvoiceNo { get; set; }
/// <summary>
/// 货物标识 S/R/D/O
/// </summary>
public string CargoId { get; set; }
/// <summary>
/// 危险品分类
/// </summary>
public string DangerClass { get; set; }
/// <summary>
/// 危险品编号
/// </summary>
public string DangerNo { get; set; }
/// <summary>
/// 危险品页号
/// </summary>
public string DangerPage { get; set; }
/// <summary>
/// 危险品标签
/// </summary>
public string DangerLabel { get; set; }
/// <summary>
/// 冷藏通风量
/// </summary>
public string ReeferQuantity { get; set; }
/// <summary>
/// 温度单位
/// </summary>
public string TemperatureUnit { get; set; }
/// <summary>
/// 设置温度
/// </summary>
public string TemperatureSet { get; set; }
/// <summary>
/// 最低温度
/// </summary>
public string TemperatureMin { get; set; }
/// <summary>
/// 最高温度
/// </summary>
public string TemperatureMax { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:业务来源明细Id
/// </summary>
public long SourceDetailId { get; set; }
/// <summary>
/// Desc:报关票数
/// </summary>
public int CustomsNum { get; set; }
/// <summary>
/// 运费协议号
/// </summary>
public string ContractNo { get; set; }
/// <summary>
/// 订舱类型
/// </summary>
public string BookingType { get; set; }
/// <summary>
/// 订舱编号
/// </summary>
public string BookingNo { get; set; }
/// <summary>
/// Desc:保险人
/// </summary>
public string Insuranceer { get; set; }
/// <summary>
/// Desc:保险单号
/// </summary>
public string InsuranceNo { get; set; }
/// <summary>
/// Desc:保险金额
/// </summary>
public decimal? InsuranceAmount { get; set; }
/// <summary>
/// Desc:是否生成凭证
/// </summary>
public bool? IsVoucher { get; set; } = false;
/// <summary>
/// Desc:凭证号
/// </summary>
public string VoucherNo { get; set; }
/// <summary>
/// Desc:备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:状态1
/// </summary>
public bool? Status1 { get; set; } = false;
/// <summary>
/// Desc:状态2
/// </summary>
public bool? Status2 { get; set; } = false;
/// <summary>
/// Desc:状态3
/// </summary>
public bool? Status3 { get; set; } = false;
/// <summary>
/// Desc:状态4
/// </summary>
public bool? Status4 { get; set; } = false;
/// <summary>
/// Desc:状态5
/// </summary>
public bool? Status5 { get; set; } = false;
/// <summary>
/// Desc:熏蒸
/// </summary>
public bool? IsFumigation { get; set; } = false;
/// <summary>
/// Desc:仓储
/// </summary>
public bool? IsStorage { get; set; } = false;
/// <summary>
/// Desc:陆运
/// </summary>
public bool? IsLand { get; set; } = false;
/// <summary>
/// Desc:报关
/// </summary>
public bool? IsCustoms { get; set; } = false;
/// <summary>
/// Desc:报检
/// </summary>
public bool? IsInspection { get; set; } = false;
/// <summary>
/// Desc:订舱
/// </summary>
public bool? IsBooking { get; set; } = false;
/// <summary>
/// Desc:使用代理
/// </summary>
public bool? IsAgent { get; set; } = false;
/// <summary>
/// Desc:分单签单
/// </summary>
public bool? IsHBLNO { get; set; } = false;
/// <summary>
/// Desc:服务项目9
/// </summary>
public bool? Service9 { get; set; } = false;
/// <summary>
/// Desc:服务项目10
/// </summary>
public bool? Service10 { get; set; } = false;
/// <summary>
/// Desc:单证
/// </summary>
public string Doc { get; set; }
/// <summary>
/// Desc:装箱类型
/// </summary>
public string PackingType { get; set; }
/// <summary>
/// Desc:仓库
/// </summary>
public string WareHouse { get; set; }
/// <summary>
/// 截单日期
/// </summary>
public DateTime CloseDocDate { get; set; }
/// <summary>
/// 集港日期
/// </summary>
public DateTime IntoPortDocDate { get; set; }
/// <summary>
/// Desc:所属业务部门
/// </summary>
public long SaleDeptId { get; set; }
/// <summary>
/// Desc:MBL付费方式 t_code_frt
/// </summary>
public string MBLFrt { get; set; }
/// <summary>
/// Desc:结算方式
/// </summary>
public string StlName { get; set; }
/// <summary>
/// Desc:月结算时间
/// </summary>
public DateTime StlDate { get; set; }
/// <summary>
/// Desc:委托方式
/// </summary>
public string OrderType { get; set; }
/// <summary>
/// Desc:操作员代码
/// </summary>
public string OperatorCode { get; set; }
/// <summary>
/// Desc:是否为操作
/// </summary>
public bool IsOperator { get; set; }
/// <summary>
/// Desc:操作员邮箱
/// </summary>
public string OperatorEmail { get; set; }
/// <summary>
/// Desc:操作员电话
/// </summary>
public string OperatorTel { get; set; }
/// <summary>
/// Desc:操作员传真
/// </summary>
public string OperatorFax { get; set; }
/// <summary>
/// Desc:场站自结
/// </summary>
public string FinancialStaffCode { get; set; }
/// <summary>
/// Desc:是否为财务
/// </summary>
public bool? IsFinancialStaff { get; set; } = false;
/// <summary>
/// Desc:财务邮箱
/// </summary>
public string FinancialStaffEmail { get; set; }
/// <summary>
/// Desc:财务电话
/// </summary>
public string FinancialStaffTel { get; set; }
/// <summary>
/// Desc:财务传真
/// </summary>
public string FinancialStaffFax { get; set; }
/// <summary>
/// Desc:业务来源代码
/// </summary>
public string SourceCode { get; set; }
/// <summary>
/// Desc:联系人
/// </summary>
public string LinkMan { get; set; }
/// <summary>
/// Desc:海关代码
/// </summary>
public string HSCode { get; set; }
/// <summary>
/// Desc:EDI备注
/// </summary>
public string EdiRemark { get; set; }
/// <summary>
/// Desc:邮件方案
/// </summary>
public long MailProjectId { get; set; }
/// <summary>
/// Desc:CSR/IR号
/// </summary>
public string IRCode { get; set; }
/// <summary>
/// Desc:服务合同号
/// </summary>
public string ServiceContractNo { get; set; }
/// <summary>
/// Desc:申请放箱号
/// </summary>
public string ApplyNo { get; set; }
/// <summary>
/// Desc:报关单号
/// </summary>
public string CustomNo { get; set; }
/// <summary>
/// Desc: 报关日期
/// </summary>
public DateTime CustomDate { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public long? EnterpriseId { get; set; }
/// <summary>
/// 单位
/// </summary>
public string Enterprise { get; set; }
/// <summary>
/// Desc:商检单号
/// </summary>
public string InspectionNo { get; set; }
/// <summary>
/// Desc:商检日期
/// </summary>
public DateTime InspectionDate { get; set; }
/// <summary>
/// Desc:贸易条款
/// </summary>
public string TradeTerm { get; set; }
/// <summary>
/// Desc:贸易方式
/// </summary>
public string TermDelivery { get; set; }
/// <summary>
/// Desc:清关日期
/// </summary>
public DateTime ClearCustomDate { get; set; }
/// <summary>
/// Desc:报检项目
/// </summary>
public string InsperctService { get; set; }
/// <summary>
/// 船代Id
/// </summary>
public long ShipAgencyId { get; set; }
/// <summary>
/// Desc:湿度
/// </summary>
public string Humidity { get; set; }
/// <summary>
/// Master发货人
/// </summary>
public long? MasterShipperId { get; set; }
/// <summary>
/// Master收货人 t_info_client CUSTNAME
/// </summary>
public long? MasterConsigneeId { get; set; }
/// <summary>
/// Master通知人 t_info_client CUSTNAME
/// </summary>
public long? MasterNotifyPartyId { get; set; }
/// <summary>
/// Master收货人内容
/// </summary>
public string MasterConsigneeContent { get; set; }
/// <summary>
/// Master通知人内容
/// </summary>
public string MasterNotifyPartyContent { get; set; }
/// <summary>
/// Master发货人内容
/// </summary>
public string MasterShipperContent { get; set; }
/// <summary>
/// Master单描述
/// </summary>
public string MasterDescription { get; set; }
/// <summary>
/// Desc:是否SOC
/// </summary>
public bool? IsContainerSoc { get; set; } = false;
/// <summary>
/// Desc:运输状态
/// </summary>
public string TranStatus { get; set; }
/// <summary>
/// Desc:
/// </summary>
public string ManifestStatus { get; set; }
/// <summary>
/// 是否多品名
/// </summary>
public bool IsMoreGood { get; set; }
/// <summary>
/// 是否打印小票
/// </summary>
public bool IsPrintReceipt { get; set; }
// /// <summary>
// /// 是否取消
// /// </summary>
// [SugarColumn(ColumnDescription = "是否取消", DefaultValue = "0")]
// public bool IsCancel { get; set; }
//
// /// <summary>
// /// 是否TUI
// /// </summary>
// [SugarColumn(ColumnDescription = "是否TUI", DefaultValue = "0")]
// public bool IsTUI { get; set; }
/// <summary>
/// 船名 t_code_vessel
/// </summary>
public string Vessel2N { get; set; }
/// <summary>
/// 船名Id t_code_vessel
/// </summary>
public long VesselId2N { get; set; }
/// <summary>
/// 二程航次
/// </summary>
public string Voyno2N { get; set; }
/// <summary>
/// 交货日期
/// </summary>
public DateTime DeliveryDate { get; set; }
/// <summary>
/// 场站联系人
/// </summary>
public string YardATTN { get; set; }
/// <summary>
/// 场站联系方式
/// </summary>
public string YardTel { get; set; }
/// <summary>
/// 销售公司Id
/// </summary>
public long SaleOrgId { get; set; }
/// <summary>
/// 中转港
/// </summary>
public string Transport { get; set; }
/// <summary>
/// 转运备注
/// </summary>
public string TransRemark { get; set; }
/// <summary>
/// 预录
/// </summary>
public int PreRecord { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,29 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
namespace DS.WMS.Core.Sea.Interface;
public interface ISeaExportService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<SeaExportRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditSeaExport(SeaExportReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<SeaExportRes> GetSeaExportInfo(string id);
}

@ -0,0 +1,93 @@
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 SeaExportService:ISeaExportService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public SeaExportService(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<SeaExportRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<SeaExport>()
.Where(whereList)
.Select<SeaExportRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditSeaExport(SeaExportReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<SeaExport>().Where(x=>x.MasterNo == req.MasterNo.Trim()).Any())
{
return DataResult.Failed("客户银行信息已存在!",MultiLanguageConst.SeaExportExist);
}
var data = req.Adapt<SeaExport>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<SeaExport>().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<SeaExportRes> GetSeaExportInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<SeaExport>()
.Where(a => a.Id == long.Parse(id))
.Select<SeaExportRes>()
.First();
return DataResult<SeaExportRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
}
}

@ -105,7 +105,7 @@ public class VersionService : IVersionService
var types = referencedAssemblies var types = referencedAssemblies
.SelectMany(a => a.DefinedTypes) .SelectMany(a => a.DefinedTypes)
.Select(type => type.AsType()) .Select(type => type.AsType())
.Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")||it.FullName.Contains("DS.WMS.Core.Info.Entity.")).ToArray(); .Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")||it.FullName.Contains("DS.WMS.Core.Info.Entity.")||it.FullName.Contains("DS.WMS.Core.Sea.Entity.")).ToArray();
var tenantList = db.Queryable<SysTenantLink>().ToList(); var tenantList = db.Queryable<SysTenantLink>().ToList();

@ -0,0 +1,66 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 海运出口信息-模块
/// </summary>
public class SeaExportController : ApiController
{
private readonly ISeaExportService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public SeaExportController(ISeaExportService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetSeaExportList")]
public DataResult<List<SeaExportRes>> GetSeaExportList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditSeaExport")]
public DataResult EditSeaExport([FromBody] SeaExportReq req)
{
var res = _invokeService.EditSeaExport(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetSeaExportInfo")]
public DataResult<SeaExportRes> GetSeaExportInfo([FromQuery] string id)
{
var res = _invokeService.GetSeaExportInfo(id);
return res;
}
}
Loading…
Cancel
Save