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.
82 lines
1.7 KiB
C#
82 lines
1.7 KiB
C#
8 months ago
|
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("币别代码");
|
||
|
}
|
||
|
}
|