using System.ComponentModel.DataAnnotations.Schema;
using YLErp.Models.Tag;
namespace YLErp.Model
{
[NotMapped]
public class ClientLinq : Client
{
///
/// 证件类型
///
public string IdentificationType { get; set; }
///
/// 联系人
///
public string ContactName { get; set; }
public DateTime CreditDeadlineStart { get; set; }
public DateTime CreditDeadlineEnd { get; set; }
public DateTime CreditTempDeadlineStart { get; set; }
[NotMapped]
public DateTime CreditTempDeadlineEnd { get; set; }
public DateTime OptDateStart { get; set; }
public DateTime OptDateEnd { get; set; }
public string RejectLog { get; set; }
public int? ProcessRoleId { get; set; }
public string ProcessRoleName { get; set; }
public string ParentName { get; set; }
public string EvaluateDays { get; set; }
///
/// 已了结部分可取资金 (期末结存_权利金后付)
///
public double EndDesirableFund { get; set; }
///
/// 预付金覆盖比例
///
public double WorstCastClientPayableRatio { get; set; }
///
/// 客户权益
///
public double clientEquity { get; set; }
///
/// 信用编码
///
public string licenseCodes { get; set; }
///
/// 是否微小
///
public string IsSmallAndMicroEnterpriseas { get; set; }
///
/// 是否上市
///
public string IsmicroCorp { get; set; }
///
/// 客户列表净资产
///
public double NetFundSum { get; set; }
public string NetFundSumString
{
get
{
if ((!NetFundSum.IsNormalize()) || NetFundSum == 0)
{
return "";
}
else
{
return NetFundSum.ToString("f2");
}
}
}
///
/// 持仓权利金
///
public double LastDayPositionPremiumNetCashs { get; set; }
///
/// 规模/净资产
///
public double availableNetFundSums { get; set; }
public string availableNetFundSumsString
{
get
{
if (!(availableNetFundSums.IsNormalize()))
{
return "";
}
else
{
return availableNetFundSums.ToString("0.00%");
}
}
}
///
/// 客户性质名
///
public string CustomerNatureName { get; set; }
///
/// 资金来源
///
public string FundsSourceName { get; set; }
///
/// 投资期限
///
public string InvestmentTermName { get; set; }
///
/// 期望收益
///
public string ExpectedReturnName { get; set; }
///
/// 不良诚信记录
///
public string BadFaithRecordName { get; set; }
public string AppropriatenessAssessorName { get; set; }
///
/// 资信等级Id
///
public int? CreditRatingId { get; set; }
///
/// 资信等级名称
///
public string CreditRatingName { get; set; }
///
/// 授信总额
///
public double? CreditLine { get; set; }
///
/// 卖方费率差价
///
public double? SellerRateSpread { get; set; }
///
/// 卖方权利金交割日类型
///
public int? SellerRightDeliveryDayType { get; set; }
///
/// 是否存在联系人或法人记录已过期情况
///
[NotMapped]
public bool IsExistContactExpired { get; set; }
///
/// 适当性评估是否已过期
///
[NotMapped]
public bool AssessmentExpired { get; set; }
///
/// 适当性评估是否三十日内过期
///
[NotMapped]
public bool AssessmentExpiredWithinThreeDays { get; set; }
///
/// 适当性评估到期日
///
[NotMapped]
public string AssessmentExpiredDate { get; set; }
#region 资金监控字段
//交易笔数
[NotMapped]
public int? TransactionPenNumber { get; set; }
//交易名义本金(卖)
[NotMapped]
public double? SellNominalPrincipalOfTransaction { get; set; }
//交易名义本金(买)
[NotMapped]
public double? BuyNominalPrincipalOfTransaction { get; set; }
//持仓笔数
[NotMapped]
public int? CurrentHoldingPenNumber { get; set; }
//持仓预付金
//正数代表客户角度应缴纳预付金
//负数代表客户角度应收预付金
[NotMapped]
public double? HoldingDeposit { get; set; }
[NotMapped]
public double? HoldingDepositA { get; set; }
[NotMapped]
public double? HoldingDepositB { get; set; }
//互换持仓预付金
[NotMapped]
public double? SwapPayableMargin { get; set; }
//可用资金
[NotMapped]
public double? AvailableAmount { get; set; }
//追保金额
[NotMapped]
public double? InsuredAmount { get; set; }
//应付冻结权利金
[NotMapped]
public double? FreezePremium { get; set; }
//应收冻结权利金
[NotMapped]
public double? ReceivablesPremium { get; set; }
//预付金余额
[NotMapped]
public double? MarginBalance { get; set; }
//潜在行权盈余
[NotMapped]
public double? PotentialSurpluses { get; set; }
//总授信额度
[NotMapped]
public double? TotalCredit { get; set; }
//授信占用
[NotMapped]
public double? CreditUsed { get; set; }
//可取预付金
[NotMapped]
public double? AdvisableMargin { get; set; }
//预付金监控时间
[NotMapped]
public DateTime? MarginMonitoringTime { get; set; }
//当日期权费收支
public double OptionPremium { get; set; }
//当日期权费收支 -- 互换
public double OptionPremiumSwap { get; set; }
//当日结算收支
public double SettlementBalance { get; set; }
//当日新增预付金
public double TodayNewMargin { get; set; }
//抵押品总价值
public double? GuaranteesTotalAmount { get; set; }
//冻结抵押品价值
public double? FreezingGuaranteesTotalAmount { get; set; }
///
/// 账户资金(不包含抵押品价值)
///
[NotMapped]
public double AmountFund { get; set; }
///
/// 总资产
///
[NotMapped]
public double RoundedTotalAmount
{
get;set;
}
//账户资金(包含抵押品价值)
public double AmountFundWithProduct { get; set; }
//总资产(账户资金(包含抵押品价值)+持仓市值)
public double? TotalAmount { get; set; }
///
/// 交易总数
///
public int TotalTradeCount { get; set; }
///
/// 名义本金总额
///
public double TotalNotionalPrincipal { get; set; }
///
/// 买权交易数
///
public int BuyCount { get; set; }
///
/// 卖权交易数
///
public int SellCount { get; set; }
///
/// 当日交易名义本金
///
public double TodayNotionalPrincipal { get; set; }
///
/// 持仓名义本金
///
public double PositionNotionalPrincipal { get; set; }
///
/// 资信等级
///
public string CreditRating { get; set; }
///
/// 当日盈亏
///
public double? DaliyPnl { get; set; }
public double? RoundedDaliyPnl { get; set; }
///
/// 持仓盈亏
///
public double? PositionPnl { get; set; }
///
/// 持仓盈亏
///
public double? RoundedPositionPnl { get; set; }
///
/// 持仓总盈亏
///
public double? PositionSumPnl { get; set; }
///
/// 持仓总盈亏
///
public double? RoundedPositionSumPnl { get; set; }
///
/// 信用风险敞口
///
[NotMapped]
public double Exposure { get; set; }
///
/// 信用风险亏损
///
[NotMapped]
public double CreditRiskLoss { get; set; }
///
/// 授信使用金额
///
[NotMapped]
public double CreditUsedValue { get; set; }
///
/// 冻结预付金
///
public double? FrozenMarginMoney { get; set; }
///
/// 是否上传文件
///
[NotMapped]
public bool HasDocuments { get; set; }
///
/// 实现盈亏
///
public double? WinLoss { get; set; }
///
/// 持仓期权费净额
///
public double? PositionPremiumNetCash { get; set; }
///
/// 持仓市值
///
public double? PositionPv { get; set; }
///
/// 持仓市值
///
public double? RoundedPositionPv { get; set; }
///
/// 预付金部分
///
public double? PrepaymentAmount { get; set; }
///
/// 当日资金净出入
///
public double NetFund { get; set; }
///
///追保账户金额
///
public double VmFundSum { get; set; }
///
/// 总出入金金额
///
public double NetFundAll { get; set; }
///
/// 其他收支
///
public double OtherFund { get; set; }
///
/// 票息
///
public double Coupon { get; set; }
///
/// 互换
///
public double SwapBalance { get; set; }
///
/// 应付预付金(要么为负要么为零)
///
public double PayableMargin { get; set; }
///
/// 双向预付金
///
public double TwoSideMargin { get; set; }
///
/// 本方角度预付金
///
public double MySideMargin { get; set; }
///
/// 客户角度预付金
///
public double OtherSideMargin { get; set; }
///
/// Delta预付金
///
public double DeltaMargin { get; set; }
///
/// 是否是手动修改过的预付金占用
///
public bool? IsPayableMarginManual { get; set; }
///
/// 追保金额(维持预付金欠缺的金额)
///
public double MarginByPayableMargin { get; set; }
///
/// 应付已了结交易款
///
public double ClosedTradePayableFund { get; set; }
///
/// 应付未了结交易款
///
public double PositionTradePayableFund { get; set; }
///
/// 应付资金总额
///
public double PayableFund { get; set; }
///
/// 可取资金
///
public double DesirableFund { get; set; }
///
/// 应收权利金
///
public double SellerPositionPremium { get; set; }
///
/// 应收预付金
///
public double BuyerPositionMargin { get; set; }
///
/// 应收账款
///
public double ShouldCharged { get; set; }
///
/// 可用名义本金规模
///
public double AvailableStockEqvNotional { get; set; }
///
/// 客户信用风险敞口
/// 国海用
///
public double? CreditExposure { get; set; }
#endregion
///
/// Span预付金
///
///
public double? SpanValue { get; set; }
///
/// PFE
///
///
public double? PFE { get; set; }
///
/// EAD
///
///
public double? EAD { get; set; }
///
/// 客户标签
///
[NotMapped]
public List Tags { get; set; }
///
/// 客户标签
///
[NotMapped]
public string OutputTags { get; set; }
///
/// 开仓笔数
///
[NotMapped]
public int OpenPositionNum { get; set; }
///
/// 提前终止笔数
///
[NotMapped]
public int EarlyTerminationNum { get; set; }
///
/// 到期笔数
///
[NotMapped]
public int DueToNum { get; set; }
public string LicenseValidTimeStr { get; set; }
public string ApprovalRole { get; set; }
///
/// 日志
///
public ClientAuditLog auditLog { get; set; }
[NotMapped]
public DateTime? LastSettlemetTime { get; set; }
[NotMapped]
public string LastHTSettlemetTime { get; set; }
///
/// 维持保证金
///
public double MaintenanceMargin { get; set; }
///
/// 互换合并盯市金额B=现金结存+∑(组合待实现收益)
///
public double SwapMarketAmount { get; set; }
///
/// 履约保证金比例:合并盯市价格/持仓名义本金
///
public decimal SwapMarketAmountPercent{get;set; }
///
/// 是否需要追保
///
public bool NeedAddMargin { get; set; }
///
/// 期初结存
///
public double LastDayRemainFund { get; set; }
///
/// 交易类型
///
public string TypeStr { get { return this.Type == "1" ? "量化高频" : "普通"; } }
///
/// 交易费用
///
public double TradeFee { get; set; }
///
/// 利息盈亏
///
public double InterestPnl { get; set; }
}
}