You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
3.6 KiB
C#
147 lines
3.6 KiB
C#
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 string DefaultUnit { get; set; }
|
|
/// <summary>
|
|
/// 默认收费客户类型
|
|
/// </summary>
|
|
public string DefaultDebit { get; set; }
|
|
/// <summary>
|
|
/// 默认付费客户类型
|
|
/// </summary>
|
|
public string DefaultCredit { get; set; }
|
|
/// <summary>
|
|
/// 默认计费标准名称
|
|
/// </summary>
|
|
public string DefaultUnitName { get; set; }
|
|
/// <summary>
|
|
/// 默认付费客户类型名称
|
|
/// </summary>
|
|
public string DefaultDebitName { get; set; }
|
|
/// <summary>
|
|
///默认付费客户类型名称
|
|
/// </summary>
|
|
public string DefaultCreditName { 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("费用名称");
|
|
}
|
|
} |