using DS.Module.Core;
using FluentValidation;
using SqlSugar;
namespace DS.WMS.Core.Fee.Dtos;
///
/// 汇率设置表请求实体
///
public class FeeCurrencyExchangeReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 币别Id
///
public long CurrencyId { get; set; }
///
/// 币别代码
///
public string CurrencyCode { get; set; }
///
/// 应收汇率
///
public decimal? DRValue { get; set; } = 0;
///
/// 应付汇率
///
public decimal? CRValue { get; set; } = 0;
///
/// 海关汇率
///
public decimal? CustomValue { get; set; } = 0;
///
/// 开始日期
///
public DateTime StartDate { get; set; }
///
/// 结束日期
///
public DateTime EndDate { get; set; }
///
/// 本位币
///
public string LocalCurrency { get; set; }
///
/// 状态 0 启用 1 禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
public string Note { get; set; } = "";
}
///
/// 验证
///
public class FeeCurrencyExchangeReqValidator : AbstractValidator
{
///
/// 构造函数
///
public FeeCurrencyExchangeReqValidator()
{
this.RuleFor(o => o.CurrencyCode)
.NotEmpty().WithName("币别代码");
}
}