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