@model TradeViewModel @{ Layout = null; var tradeModel = Model.Trade; var isPremiumRate = tradeModel.IsUsePremiumRate == true; var isMoneyness = tradeModel.IsMoneynessOption == "是"; var rebatFmt = isPremiumRate ? OtcFormatFlag.premiumRateP : OtcFormatFlag.tradeSinglePrice; var volFmt = PS.Config.IsTradeVol && PS.Config.ErpElement.VolMoreAccurate ? OtcFormatFlag.percent4 : OtcFormatFlag.percent; var salesNames = String.Join(",", Model.SalesCommission.Select(n => n.SalesmanName).ToArray()); var isJd = tradeModel.UnderlyingCode?.Trim().ToUpper().StartsWith("JD") ?? false; tradeModel.TradeUnit = PS.Config.IsUseDisplayNotional ? (tradeModel.QuoteUnit == "500千克" ? "半吨" : (isJd ? "吨" : tradeModel.QuoteUnit)) : tradeModel.TradeUnit; }
@if (isPremiumRate) { } else { } @if (!string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate)) { } @if (string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate)) { } @if (tradeModel.StructureType == "气囊结构") { } else if (tradeModel.Propertys != null) { var i = 0; var length = tradeModel.Propertys.Count; var preProperty = new ExtendInfoModel(); foreach (var property in tradeModel.Propertys) { i++; if (i == 1) { } else if (i % 2 == 0) { preProperty = property; if (i == length) { } } else { } } if (i == 0) { } } @if (!PS.Config.ErpElement.SecuritiesEnvironment) { } @if (CurUser.交易管理_交易标签查看权限) { } @if (tradeModel.StructureType == "气囊结构") { }
交易日期 @(tradeModel.TradeDate.OtcFormatDate()) 到期日期 @(tradeModel.ExerciseDate.OtcFormatDate())
买卖方向 @(tradeModel.BuySell) 结算日期 @(tradeModel.SettlementDate.OtcFormatDate())
成交方式 @(isPremiumRate ? "名义本金" : "成交数量") 成交数量 @(tradeModel.TradeOriginalAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional)) @(tradeModel.TradeUnit)
名义本金 @(tradeModel.OriginalStockEqvNotionalV2.OtcFormat(OtcFormatFlag.StockEqvNotional))期权费率 @(tradeModel.PremiumRate.OtcFormat(OtcFormatFlag.premiumRateP))权利金 @(tradeModel.TradeSinglePrice.OtcFormat(OtcFormatFlag.tradeSinglePrice)) @if (tradeModel.TradeSinglePrice != null) { @(tradeModel.QuoteUnitSingle) }
名义本金(结算币种) @Model.OriginalStockEqvNotionalV2MultipleExchangeRate成交总额 @(tradeModel.TradePrice.OtcFormatMoney())
期权类型 @(tradeModel.StructureType) 看涨看跌 @(tradeModel.OptionType)
敲入价格 @(tradeModel.trade_airbag.Barrier.OtcFormatUmPrice(isMoneyness)) 未敲入参与率 @(tradeModel.trade_airbag.NotKIParticipationRate.OtcFormatPercent())
上涨参与率 @(tradeModel.trade_airbag.KIParticipationRate.OtcFormatPercent()) 低执行价格 @(tradeModel.Strike.OtcFormatUmPrice(isMoneyness))
高执行价格 @(tradeModel.trade_airbag.HasPayoffLimit ? tradeModel.trade_airbag.HighStrike.OtcFormatUmPrice(isMoneyness) : "")
期权类型 @(tradeModel.StructureType) @property.name @property.value
@property.name @property.value
@preProperty.name @preProperty.value @property.name @property.value
期权类型 @(tradeModel.StructureType)
簿记账户 @(tradeModel.AssetBookName) 交易员 @(tradeModel.TraderName)
交易对手方 @(tradeModel.ClientName) 交易编号 @(tradeModel.TradeNumber)
计价币种 @tradeModel.QuoteCurrency 汇率 @{ tradeModel.MetaDic.TryGetValue("ExchangeRate", out var ExchangeRate); }@ExchangeRate
中央对手方清算 @{ tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.IsCentralClearing, out var isCentralClearing); } @(isCentralClearing == "Y" ? "是" : isCentralClearing == "I" ? "计划中央对手方清算" : "否") 中央清算平台 @{ tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.CentralClearingPaltform, out var centralClearingPaltform); } @centralClearingPaltform
交易平台 @{ tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.TradingPaltform, out var tradingPaltform); } @tradingPaltform
备注 @(tradeModel.RemarkInfo)
标签
@if (Model.Tags != null && Model.Tags.Any()) { foreach (var tag in Model.Tags) { @tag.Name @if (CurUser.交易管理_交易标签调整权限) { x } } } @if (CurUser.交易管理_交易标签调整权限) { + }
敲入敲出状态 @(tradeModel.trade_airbag.KnockInOutStatusCn) 敲入敲出时间 @(tradeModel.trade_airbag.KnockInOutDate?.ToString("yyyy-MM-dd"))
@if (Model.couponTradeCashList != null) { var index = 1;
@foreach (var tradeCash in Model.couponTradeCashList) {
票息序号 @(index++) 票息日期 @(tradeCash.ValueDate.OtcFormatDate())
观察价格 @(tradeCash.FinalPrice.OtcFormat(OtcFormatFlag.umprice)) 票息金额 @(tradeCash.Amount.OtcFormatMoney())
}
} @if (Model.unWindTradeCashList != null) { var index = 1;
@foreach (var tradeCash in Model.unWindTradeCashList) { if (tradeCash.Action == "系统操作-行权费") { @if (isPremiumRate) { } else { }
提前终止序号 @(index++)行权比例 @(tradeCash.NotionalPercent.OtcFormatPercent())行权数量 @(tradeCash.TradeAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional))
行权日期 @(tradeCash.ValueDate.OtcFormatDate()) 收益总额 @(tradeCash.Amount.OtcFormatMoney())
行权收益 @(tradeCash.SingleWinPrice.OtcFormat(OtcFormatFlag.tradeSinglePrice)) 实现盈亏 @(tradeCash.WinLoss)
} else { @if (isPremiumRate) { } else { }
提前终止序号 @(index++)平仓比例 @(tradeCash.UnwindPercentRate.OtcFormatPercent())平仓数量 @(tradeCash.UnwindTradeAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional))
平仓日期 @(tradeCash.ValueDate.OtcFormatDate()) 平仓标的价格 @(tradeCash.FinalPrice.OtcFormat(OtcFormatFlag.umprice))
平仓总额 @(tradeCash.Amount.OtcFormatMoney()) 实现盈亏 @(tradeCash.WinLoss)
} }
} @if (Model.maturityTradeCash != null) { var mtc = Model.maturityTradeCash;
@if (isPremiumRate) { } else { } @if (isPremiumRate && mtc.Action != "系统操作-行权费") { } else { } @if (tradeModel.TradeType == "亚式期权") { } else { } @if (tradeModel.TradeType == "亚式期权") { }
到期日期 @(mtc.ValueDateString)到期比例 @(mtc.NotionalPercent.OtcFormatPercent())到期数量 @(mtc.TradeAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional))
到期收益 @(mtc.SingleWinPricePercent.OtcFormat(OtcFormatFlag.premiumRateP))到期收益 @(mtc.SingleWinPrice.OtcFormat(OtcFormatFlag.tradeSinglePrice))实现盈亏 @(mtc.WinLoss)
到期标的价格 @(mtc.SpotPrice.OtcFormat(OtcFormatFlag.umprice))到期标的价格 @(mtc.FinalPrice.OtcFormat(OtcFormatFlag.umprice))收益总额 @(mtc.Amount.OtcFormatMoney())
到期标的均价 @(mtc.FinalPrice.OtcFormat(OtcFormatFlag.umprice))
} @if (ConsTrade.TradeStatusAfterConfirmed.Contains(Model.Trade.TradeStatus)) { @*
*@ }