76 lines
1.9 KiB
C#
76 lines
1.9 KiB
C#
namespace YLErp.Modules.SystemModule
|
|
{
|
|
/// <summary>
|
|
/// 用户个性化数据模型基类
|
|
/// </summary>
|
|
public abstract class SysUserConfigModelBase
|
|
{
|
|
/// <summary>
|
|
/// 配置类型(ConsConfigType)
|
|
/// </summary>
|
|
public abstract SysUserConfigType GetConfigType();
|
|
|
|
/// <summary>
|
|
/// 配置名称
|
|
/// </summary>
|
|
public abstract string GetConfigName();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 风险对冲用户配置
|
|
/// </summary>
|
|
public class RiskHedgingUserConfig : SysUserConfigModelBase
|
|
{
|
|
/// <summary>
|
|
/// 场内期权现价使用行情价
|
|
/// </summary>
|
|
public bool UseMarketForExOptions { get; set; }
|
|
|
|
/// <summary>
|
|
/// 显示时间戳
|
|
/// </summary>
|
|
public bool ShowTimestamp { get; set; }
|
|
|
|
public override string GetConfigName()
|
|
{
|
|
return "风险对冲";
|
|
}
|
|
|
|
public override SysUserConfigType GetConfigType()
|
|
{
|
|
return SysUserConfigType.General;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// OtcWeb用户配置
|
|
/// </summary>
|
|
public class OtcWebUserConfig : SysUserConfigModelBase
|
|
{
|
|
/// <summary>
|
|
/// 组合报价使用建议模式
|
|
/// </summary>
|
|
public bool Pricing_SimpleMode { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 组合报价是否计算预付金
|
|
/// </summary>
|
|
public bool Pricing_CalcMargin { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 组合报价是否计算凤凰/雪球期权风险值
|
|
/// </summary>
|
|
public bool Pricing_CalcAutocallGreeks { get; set; } = false;
|
|
|
|
public override string GetConfigName()
|
|
{
|
|
return "用户配置";
|
|
}
|
|
|
|
public override SysUserConfigType GetConfigType()
|
|
{
|
|
return SysUserConfigType.General;
|
|
}
|
|
}
|
|
}
|