Files
zszq-trs/YLErpWeb/Models/UnderlyingModel.cs
T
2024-05-09 14:06:26 +08:00

61 lines
1.4 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
using YLErp.Web.Models.JsModels;
namespace YLErp.Web.Models
{
/// <summary>
/// 标的编辑页面Model
/// </summary>
public class UnderlyingEditModel
{
/// <summary>
/// 标的信息
/// </summary>
public underlying_manager Underlying { get; set; }
/// <summary>
/// 债券信息
/// </summary>
public UnderlyingBond Bond { get; set; }
/// <summary>
/// 交易市场
/// </summary>
public IEnumerable<MarketJsModel> Markets { get; set; }
}
/// <summary>
/// 标的选择请求(返回一个标的)
/// </summary>
public class UnderlyingGetRequest
{
/// <summary>
/// 资产类型
/// </summary>
public string InstrumentType { get; set; }
/// <summary>
/// 标的ID
/// </summary>
public int VarietyId { get; set; }
/// <summary>
/// 标的代码
/// </summary>
public string UnderlyingCode { get; set; }
/// <summary>
/// 交易日期
/// </summary>
public DateTime? TradeDate { get; set; }
}
[NotMapped]
public class UnderlyingSaveModel : underlying_manager
{
/// <summary>
/// 债券信息
/// </summary>
public UnderlyingBond Bond { get; set; }
}
}