费用相关接口
parent
9bec2a4571
commit
6fd22f2500
@ -0,0 +1,135 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用代码请求实体
|
||||
/// </summary>
|
||||
public class FeeCodeReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用英文名称
|
||||
/// </summary>
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 币别Id
|
||||
/// </summary>
|
||||
public long CurrencyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认计费标准
|
||||
/// </summary>
|
||||
public int DefaultUnit { get; set; }
|
||||
/// <summary>
|
||||
/// 默认收费客户类型
|
||||
/// </summary>
|
||||
public int DefaultDebit { get; set; }
|
||||
/// <summary>
|
||||
/// 默认付费客户类型
|
||||
/// </summary>
|
||||
public int DefaultCredit { get; set; }
|
||||
/// <summary>
|
||||
/// 海运 海运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsSea { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 空运 空运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsAir { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 陆运 陆运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsTrucking { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否陆运固定费用
|
||||
/// </summary>
|
||||
public bool? IsTruckingFixed { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 仓储 仓储相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsWms { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 默认是否机密
|
||||
/// </summary>
|
||||
public bool? IsOpen { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 默认是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用分组 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeGroup { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认FRT 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeFrt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认发票费用名称 发票费用名称模块可维护
|
||||
/// </summary>
|
||||
public string GoodName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对帐类型 枚举可维护
|
||||
/// </summary>
|
||||
public string CheckingType { get; set; }
|
||||
/// <summary>
|
||||
/// 默认币别
|
||||
/// </summary>
|
||||
public string DefaultCurrency { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeCodeReqValidator : AbstractValidator<FeeCodeReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeCodeReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.Code)
|
||||
.NotEmpty().WithName("费用代码");
|
||||
this.RuleFor(o => o.Name)
|
||||
.NotEmpty().WithName("费用名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用代码返回实体
|
||||
/// </summary>
|
||||
public class FeeCodeRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用英文名称
|
||||
/// </summary>
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 币别Id
|
||||
/// </summary>
|
||||
public long CurrencyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认计费标准
|
||||
/// </summary>
|
||||
public int DefaultUnit { get; set; }
|
||||
/// <summary>
|
||||
/// 默认收费客户类型
|
||||
/// </summary>
|
||||
public int DefaultDebit { get; set; }
|
||||
/// <summary>
|
||||
/// 默认付费客户类型
|
||||
/// </summary>
|
||||
public int DefaultCredit { get; set; }
|
||||
/// <summary>
|
||||
/// 海运 海运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsSea { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 空运 空运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsAir { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 陆运 陆运相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsTrucking { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否陆运固定费用
|
||||
/// </summary>
|
||||
public bool? IsTruckingFixed { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 仓储 仓储相关模块使用
|
||||
/// </summary>
|
||||
public bool? IsWms { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 默认是否机密
|
||||
/// </summary>
|
||||
public bool? IsOpen { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 默认是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用分组 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeGroup { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认FRT 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeFrt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认发票费用名称 发票费用名称模块可维护
|
||||
/// </summary>
|
||||
public string GoodName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对帐类型 枚举可维护
|
||||
/// </summary>
|
||||
public string CheckingType { get; set; }
|
||||
/// <summary>
|
||||
/// 默认币别
|
||||
/// </summary>
|
||||
public string DefaultCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率设置表请求实体
|
||||
/// </summary>
|
||||
public class FeeCurrencyExchangeReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别Id
|
||||
/// </summary>
|
||||
public long CurrencyId { get; set; }
|
||||
/// <summary>
|
||||
/// 币别代码
|
||||
/// </summary>
|
||||
public string CurrencyCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应收汇率
|
||||
/// </summary>
|
||||
public decimal? DRValue { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 应付汇率
|
||||
/// </summary>
|
||||
public decimal? CRValue { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 海关汇率
|
||||
/// </summary>
|
||||
public decimal? CustomValue { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 本位币
|
||||
/// </summary>
|
||||
public string LocalCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeCurrencyExchangeReqValidator : AbstractValidator<FeeCurrencyExchangeReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeCurrencyExchangeReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.CurrencyCode)
|
||||
.NotEmpty().WithName("币别代码");
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率设置表返回实体
|
||||
/// </summary>
|
||||
public class FeeCurrencyExchangeRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别Id
|
||||
/// </summary>
|
||||
public long CurrencyId { get; set; }
|
||||
/// <summary>
|
||||
/// 币别代码
|
||||
/// </summary>
|
||||
public string CurrencyCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应收汇率
|
||||
/// </summary>
|
||||
public decimal? DRValue { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 应付汇率
|
||||
/// </summary>
|
||||
public decimal? CRValue { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 海关汇率
|
||||
/// </summary>
|
||||
public decimal? CustomValue { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 本位币
|
||||
/// </summary>
|
||||
public string LocalCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 币别信息请求实体
|
||||
/// </summary>
|
||||
public class FeeCurrencyReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别代码
|
||||
/// </summary>
|
||||
public string CodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 财务软件代码
|
||||
/// </summary>
|
||||
public string FinanceSoftCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 默认对人民币汇率
|
||||
/// </summary>
|
||||
public decimal? DefaultRate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeCurrencyReqValidator : AbstractValidator<FeeCurrencyReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeCurrencyReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.CodeName)
|
||||
.NotEmpty().WithName("币别代码");
|
||||
this.RuleFor(o => o.Name)
|
||||
.NotEmpty().WithName("币别名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 币别信息返回实体
|
||||
/// </summary>
|
||||
public class FeeCurrencyRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别代码
|
||||
/// </summary>
|
||||
public string CodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 财务软件代码
|
||||
/// </summary>
|
||||
public string FinanceSoftCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 默认对人民币汇率
|
||||
/// </summary>
|
||||
public decimal? DefaultRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 往来单位固定费用请求实体
|
||||
/// </summary>
|
||||
public class FeeCustTemplateDetailReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
/// <summary>
|
||||
/// 客户Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否箱型
|
||||
/// </summary>
|
||||
public bool? IsCtn { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal? AccTaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal? Tax { get; set; }
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal? TaxUnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeCustTemplateDetailReqValidator : AbstractValidator<FeeCustTemplateDetailReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeCustTemplateDetailReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.CustomerName)
|
||||
.NotEmpty().WithName("结算对象");
|
||||
this.RuleFor(o => o.FeeName)
|
||||
.NotEmpty().WithName("费用名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用模板明细表返回实体
|
||||
/// </summary>
|
||||
public class FeeCustTemplateDetailRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
/// <summary>
|
||||
/// 客户Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否箱型
|
||||
/// </summary>
|
||||
public bool? IsCtn { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal? AccTaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal? Tax { get; set; }
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal? TaxUnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,319 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用记录请求实体
|
||||
/// </summary>
|
||||
public class FeeRecordReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务Id
|
||||
/// </summary>
|
||||
public long BusinessId { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付) 1应收 2 应付
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象编码
|
||||
/// </summary>
|
||||
public string CustomerCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public decimal? Quantity { get; set; }
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
public decimal? Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 驳回原因
|
||||
/// </summary>
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Desc:佣金比率
|
||||
/// </summary>
|
||||
public decimal? CommissionRate { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Desc:结算金额
|
||||
/// </summary>
|
||||
public decimal? SettlementAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:开票金额
|
||||
/// </summary>
|
||||
public decimal? InvoiceAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:申请金额
|
||||
/// </summary>
|
||||
public decimal? OrderAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:申请开票金额
|
||||
/// </summary>
|
||||
public decimal? OrderInvoiceAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 提交日期
|
||||
/// </summary>
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 审核人Id
|
||||
/// </summary>
|
||||
public long AuditBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核人
|
||||
/// </summary>
|
||||
public string AuditOperator { get; set; }
|
||||
/// <summary>
|
||||
/// 审核日期
|
||||
/// </summary>
|
||||
public DateTime AuditDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否机密费用
|
||||
/// </summary>
|
||||
public bool? IsOpen { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 对帐编号
|
||||
/// </summary>
|
||||
public string DebitNo { get; set; }
|
||||
/// <summary>
|
||||
/// 是否对帐
|
||||
/// </summary>
|
||||
public bool IsDebit { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否禁开发票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否销售订舱
|
||||
/// </summary>
|
||||
public bool? IsCrmOrderFee { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 费用状态
|
||||
/// </summary>
|
||||
public int FeeStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发票号
|
||||
/// </summary>
|
||||
public string InvoiceNum { get; set; }
|
||||
/// <summary>
|
||||
/// 支票号
|
||||
/// </summary>
|
||||
public string ChequeNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓储编号
|
||||
/// </summary>
|
||||
public string WmsOutBSNO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 行号
|
||||
/// </summary>
|
||||
public int LineNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 税率
|
||||
/// </summary>
|
||||
public decimal TaxRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 不含税金额
|
||||
/// </summary>
|
||||
public decimal NoTaxAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal AccTaxRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成凭证
|
||||
/// </summary>
|
||||
public bool IsVou { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报销编号
|
||||
/// </summary>
|
||||
public string BxId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal Tax { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请结算金额
|
||||
/// </summary>
|
||||
public decimal OrderSettlementAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal TaxUnitPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请发票开票金额
|
||||
/// </summary>
|
||||
public decimal OrderInvSettlementAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 凭证号
|
||||
/// </summary>
|
||||
public string VoucherNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SalesNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 借款编号
|
||||
/// </summary>
|
||||
public string JkId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DeliveryNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 本位币
|
||||
/// </summary>
|
||||
public string LocalCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 责任人
|
||||
/// </summary>
|
||||
public string Manager { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否财务费用
|
||||
/// </summary>
|
||||
public bool IsAcc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PaymentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string StatementNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位
|
||||
/// </summary>
|
||||
public string SaleOrg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位Id
|
||||
/// </summary>
|
||||
public long SaleOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 发票自助连接
|
||||
/// </summary>
|
||||
public string InvLinkId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提交人
|
||||
/// </summary>
|
||||
public string SubmitBy { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeRecordReqValidator : AbstractValidator<FeeRecordReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeRecordReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.FeeCode)
|
||||
.NotEmpty().WithName("费用代码");
|
||||
this.RuleFor(o => o.CustomerCode)
|
||||
.NotEmpty().WithName("费用对象");
|
||||
}
|
||||
}
|
@ -0,0 +1,306 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用记录返回实体
|
||||
/// </summary>
|
||||
public class FeeRecordRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务Id
|
||||
/// </summary>
|
||||
public long BusinessId { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付) 1应收 2 应付
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象编码
|
||||
/// </summary>
|
||||
public string CustomerCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public decimal? Quantity { get; set; }
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
public decimal? Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 驳回原因
|
||||
/// </summary>
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Desc:佣金比率
|
||||
/// </summary>
|
||||
public decimal? CommissionRate { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Desc:结算金额
|
||||
/// </summary>
|
||||
public decimal? SettlementAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:开票金额
|
||||
/// </summary>
|
||||
public decimal? InvoiceAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:申请金额
|
||||
/// </summary>
|
||||
public decimal? OrderAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Desc:申请开票金额
|
||||
/// </summary>
|
||||
public decimal? OrderInvoiceAmount { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 提交日期
|
||||
/// </summary>
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 审核人Id
|
||||
/// </summary>
|
||||
public long AuditBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核人
|
||||
/// </summary>
|
||||
public string AuditOperator { get; set; }
|
||||
/// <summary>
|
||||
/// 审核日期
|
||||
/// </summary>
|
||||
public DateTime AuditDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否机密费用
|
||||
/// </summary>
|
||||
public bool? IsOpen { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 对帐编号
|
||||
/// </summary>
|
||||
public string DebitNo { get; set; }
|
||||
/// <summary>
|
||||
/// 是否对帐
|
||||
/// </summary>
|
||||
public bool IsDebit { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否禁开发票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否销售订舱
|
||||
/// </summary>
|
||||
public bool? IsCrmOrderFee { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 费用状态
|
||||
/// </summary>
|
||||
public int FeeStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发票号
|
||||
/// </summary>
|
||||
public string InvoiceNum { get; set; }
|
||||
/// <summary>
|
||||
/// 支票号
|
||||
/// </summary>
|
||||
public string ChequeNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓储编号
|
||||
/// </summary>
|
||||
public string WmsOutBSNO { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 行号
|
||||
/// </summary>
|
||||
public int LineNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 税率
|
||||
/// </summary>
|
||||
public decimal TaxRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 不含税金额
|
||||
/// </summary>
|
||||
public decimal NoTaxAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal AccTaxRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成凭证
|
||||
/// </summary>
|
||||
public bool IsVou { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报销编号
|
||||
/// </summary>
|
||||
public string BxId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal Tax { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请结算金额
|
||||
/// </summary>
|
||||
public decimal OrderSettlementAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal TaxUnitPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申请发票开票金额
|
||||
/// </summary>
|
||||
public decimal OrderInvSettlementAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 凭证号
|
||||
/// </summary>
|
||||
public string VoucherNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SalesNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 借款编号
|
||||
/// </summary>
|
||||
public string JkId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DeliveryNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 本位币
|
||||
/// </summary>
|
||||
public string LocalCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 责任人
|
||||
/// </summary>
|
||||
public string Manager { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否财务费用
|
||||
/// </summary>
|
||||
public bool IsAcc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PaymentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string StatementNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位
|
||||
/// </summary>
|
||||
public string SaleOrg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位Id
|
||||
/// </summary>
|
||||
public long SaleOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 发票自助连接
|
||||
/// </summary>
|
||||
public string InvLinkId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提交人
|
||||
/// </summary>
|
||||
public string SubmitBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用模板明细表请求实体
|
||||
/// </summary>
|
||||
public class FeeTemplateDetailReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板Id
|
||||
/// </summary>
|
||||
public long TemplateId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用英文名称
|
||||
/// </summary>
|
||||
public string FeeEnName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
/// <summary>
|
||||
/// 客户Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否箱型
|
||||
/// </summary>
|
||||
public bool? IsCtn { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal? AccTaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal? Tax { get; set; }
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal? TaxUnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 费用分组 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeGroup { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认FRT 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeFrt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位Id
|
||||
/// </summary>
|
||||
public long SaleOrgId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeTemplateDetailReqValidator : AbstractValidator<FeeTemplateDetailReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeTemplateDetailReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.CustomerName)
|
||||
.NotEmpty().WithName("结算对象");
|
||||
this.RuleFor(o => o.FeeName)
|
||||
.NotEmpty().WithName("费用名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用模板明细表返回实体
|
||||
/// </summary>
|
||||
public class FeeTemplateDetailRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板Id
|
||||
/// </summary>
|
||||
public long TemplateId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用Id
|
||||
/// </summary>
|
||||
public long FeeId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用代码 录入费用是作为检索
|
||||
/// </summary>
|
||||
public string FeeCode { get; set; }
|
||||
/// <summary>
|
||||
/// 费用名称
|
||||
/// </summary>
|
||||
public string FeeName { get; set; }
|
||||
/// <summary>
|
||||
/// 费用英文名称
|
||||
/// </summary>
|
||||
public string FeeEnName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象
|
||||
/// </summary>
|
||||
public string CustomerName { get; set; }
|
||||
/// <summary>
|
||||
/// 结算对象类型
|
||||
/// </summary>
|
||||
public int CustomerType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
/// <summary>
|
||||
/// 客户Id
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 费用标准
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否箱型
|
||||
/// </summary>
|
||||
public bool? IsCtn { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 币别
|
||||
/// </summary>
|
||||
public string Currency { get; set; }
|
||||
/// <summary>
|
||||
/// 单价
|
||||
/// </summary>
|
||||
public decimal? UnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 汇率
|
||||
/// </summary>
|
||||
public decimal? ExchangeRate { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认税率
|
||||
/// </summary>
|
||||
public decimal? TaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 财务税率
|
||||
/// </summary>
|
||||
public decimal? AccTaxRate { get; set; }
|
||||
/// <summary>
|
||||
/// 税额
|
||||
/// </summary>
|
||||
public decimal? Tax { get; set; }
|
||||
/// <summary>
|
||||
/// 含税单价
|
||||
/// </summary>
|
||||
public decimal? TaxUnitPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 是否开票
|
||||
/// </summary>
|
||||
public bool? IsInvoice { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否垫付费用
|
||||
/// </summary>
|
||||
public bool? IsAdvancedPay { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 费用分组 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeGroup { get; set; }
|
||||
/// <summary>
|
||||
/// 费用默认FRT 枚举可维护
|
||||
/// </summary>
|
||||
public string FeeFrt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 核算单位Id
|
||||
/// </summary>
|
||||
public long SaleOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用模板主表请求实体
|
||||
/// </summary>
|
||||
public class FeeTemplateReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板名称
|
||||
/// </summary>
|
||||
public string TemplateName { get; set; }
|
||||
/// <summary>
|
||||
/// 业务类型(海运出口、海运进口、空运出口、空运进口)
|
||||
/// </summary>
|
||||
public int OpType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; } = 1;
|
||||
/// <summary>
|
||||
/// 是否公共标识
|
||||
/// </summary>
|
||||
public bool IsPublic { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class FeeTemplateReqValidator : AbstractValidator<FeeTemplateReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FeeTemplateReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.TemplateName)
|
||||
.NotEmpty().WithName("模板名称");
|
||||
this.RuleFor(o => o.OpType)
|
||||
.NotEmpty().WithName("业务类型");
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
using DS.Module.Core;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 费用模板主表返回实体
|
||||
/// </summary>
|
||||
public class FeeTemplateRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板名称
|
||||
/// </summary>
|
||||
public string TemplateName { get; set; }
|
||||
/// <summary>
|
||||
/// 业务类型(海运出口、海运进口、空运出口、空运进口)
|
||||
/// </summary>
|
||||
public int OpType { get; set; }
|
||||
/// <summary>
|
||||
/// 收付类型(收、付)
|
||||
/// </summary>
|
||||
public int FeeType { get; set; }
|
||||
/// <summary>
|
||||
/// 是否公共标识
|
||||
/// </summary>
|
||||
public bool IsPublic { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeCodeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeCodeRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeCode(FeeCodeReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeCodeRes> GetFeeCodeInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeCurrencyExchangeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeCurrencyExchangeRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeCurrencyExchange(FeeCurrencyExchangeReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeCurrencyExchangeRes> GetFeeCurrencyExchangeInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeCurrencyService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeCurrencyRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeCurrency(FeeCurrencyReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeCurrencyRes> GetFeeCurrencyInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeCustTemplateDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeCustTemplateDetailRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeCustTemplateDetail(FeeCustTemplateDetailReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeCustTemplateDetailRes> GetFeeCustTemplateDetailInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeRecordRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeRecord(FeeRecordReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeRecordRes> GetFeeRecordInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeTemplateDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeTemplateDetailRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeTemplateDetail(FeeTemplateDetailReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeTemplateDetailRes> GetFeeTemplateDetailInfo(string id);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Fee.Dtos;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Fee.Interface;
|
||||
|
||||
public interface IFeeTemplateService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FeeTemplateRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFeeTemplate(FeeTemplateReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FeeTemplateRes> GetFeeTemplateInfo(string id);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<DeleteExistingFiles>false</DeleteExistingFiles>
|
||||
<ExcludeApp_Data>false</ExcludeApp_Data>
|
||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<PublishProvider>FileSystem</PublishProvider>
|
||||
<PublishUrl>D:\Code\PublishCopy\ds8-feeapi</PublishUrl>
|
||||
<WebPublishMethod>FileSystem</WebPublishMethod>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<DeleteExistingFiles>false</DeleteExistingFiles>
|
||||
<ExcludeApp_Data>false</ExcludeApp_Data>
|
||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<PublishProvider>FileSystem</PublishProvider>
|
||||
<PublishUrl>D:\Code\PublishCopy\ds8-opapi</PublishUrl>
|
||||
<WebPublishMethod>FileSystem</WebPublishMethod>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue