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.
117 lines
3.6 KiB
C#
117 lines
3.6 KiB
C#
namespace Ds.WMS.Finance.MediatR.Entity
|
|
{
|
|
public class CurrencyDto
|
|
{
|
|
/// <summary>
|
|
/// 主键
|
|
/// </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 decimal? DefaultRate { get; set; } = Math.Round(1.123456789m, 8);
|
|
/// <summary>
|
|
/// 财务软件对应代码
|
|
/// </summary>
|
|
|
|
public string? FinanceSoftCodes { get; set; }
|
|
}
|
|
public class AddCurrencyDto
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 币别
|
|
/// </summary>
|
|
[SugarTable("Ds_Op_Code_Currency")]
|
|
public class Code_Currency : BaseEntityGuid
|
|
{
|
|
/// <summary>
|
|
/// 币别代码
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "币别代码")]
|
|
public string? CodeName { get; set; }
|
|
/// <summary>
|
|
/// 币别名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "币别名称")]
|
|
public string? Name { get; set; }
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "描述")]
|
|
public string? Description { get; set; }
|
|
/// <summary>
|
|
/// 默认对人民币汇率,录入费用时如果汇率设置里没有设置汇率,提此处汇率
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "默认对人民币汇率")]
|
|
public decimal? DefaultRate { get; set; } = Math.Round(1.123456789m, 8);
|
|
/// <summary>
|
|
/// 财务软件对应代码
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "财务软件对应代码")]
|
|
public string? FinanceSoftCodes { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 币别
|
|
/// </summary>
|
|
[SugarTable("Ds_Op_Currency_Exchange")]
|
|
public class Currency_Exchange : BaseEntityGuid
|
|
{
|
|
/// <summary>
|
|
/// /*币别代码*/
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "币别代码")]
|
|
public long Code_Currency_Id { get; set; }
|
|
///<summary>
|
|
/// *应收汇率*/
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "应收汇率")]
|
|
public decimal Drvalue { get; set; } = Math.Round(1.123456789m, 8);
|
|
/// <summary>
|
|
/// /*开始日期*/
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "开始日期")]
|
|
public DateTime StartTime { get; set; } = DateTime.Today;
|
|
/// <summary>
|
|
/// /*结束日期*/
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "结束日期")]
|
|
public DateTime EndTime { get; set; } = DateTime.Today;
|
|
/// <summary>
|
|
/// /*应付汇率*/
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "应付汇率")]
|
|
public decimal Crvalue { get; set; } = Math.Round(1.123456789m, 8);
|
|
/// <summary>
|
|
/// 本位币
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "本位币")]
|
|
public string Localcurr { get; set; } = "RMB";
|
|
/// <summary>
|
|
/// 是否是默认
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "是否是默认")]
|
|
public bool IsDefault { get; set; } = false;
|
|
}
|
|
}
|