@model TradeViewModel @{ Layout = null; var tradeModel = Model.Trade; var isPremiumRate = tradeModel.IsUsePremiumRate == true; var salesNames = String.Join(",", Model.SalesCommission.Select(n => n.SalesmanName).ToArray()); }
@if (!string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate)) { } @if (!PS.Config.Is润和) { } else { } @{ tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.ClearingAgency, out var clearingAgency); tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.TradingPlace, out var tradingPlace); tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.MainProtocolCode, out var mainProtocolCode); tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.SupProtocolCode, out var supProtocolCode); } @if (PS.Config.ErpElement.SecuritiesEnvironment) { if (!PS.Config.Is润和) { } } @if (AppHelper.UseFutureVersion("销售提成", "V2")) { } @if (CurUser.交易管理_交易标签查看权限) { }
簿记账户 @(tradeModel.AssetBookName) 交易员 @(tradeModel.TraderName)
交易对手方 @(tradeModel.ClientName) 交易编号 @(tradeModel.TradeNumber)
交易方向 @(tradeModel.BuySell) 期权类型 @(tradeModel.TradeType)
交易状态 @(tradeModel.TradeStatus) 名义本金 @(tradeModel.OriginalStockEqvNotionalV2.OtcFormat(OtcFormatFlag.StockEqvNotional))
名义本金(结算币种) @Model.OriginalStockEqvNotionalV2MultipleExchangeRate
交易总额 @(tradeModel.TradePrice) 无风险利率 @(tradeModel.NoRiskRate.OtcFormatPercent())
成交日期 @(tradeModel.TradeDate.OtcFormatDate()) 到期日期 @(tradeModel.ExerciseDate.OtcFormatDate())
资金类型 @(tradeModel.trade_cashflow.DepositType) 利率类型 @(tradeModel.trade_cashflow.RateType)
利率 @(tradeModel.trade_cashflow.ProfitRate.OtcFormatPercent()) 计息日历规则 @(tradeModel.trade_cashflow.ProfitDayCount)
返还比例 @(tradeModel.trade_cashflow.DepositType == CashflowDepositTypeEnum.资金收益 ? tradeModel.trade_cashflow.PrepayRatio.OtcFormatPercent() : "")交易对手方 @(tradeModel.OpponentRole ?? "乙方")
交易场所 @(tradingPlace) 清算机构 @(clearingAgency)
主协议编号 @(mainProtocolCode) 补充协议编号 @(supProtocolCode)
@(PS.Config.ErpElement.SaleMode == YLErp.Configuration.Enums.SaleMode.SaleMen ? "销售员" : "客户经理") @(salesNames) 销售提成 @(Model.SalesCommission.FirstOrDefault()?.CommissionString())
备注 @(tradeModel.RemarkInfo)
标签
@if (Model.Tags != null && Model.Tags.Any()) { foreach (var tag in Model.Tags) { @tag.Name @if (CurUser.交易管理_交易标签调整权限) { x } } } @if (CurUser.交易管理_交易标签调整权限) { + }
@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 % 2 == 1) { preProperty = property; if (i == length) { } } else { } }
@property.name @property.value
@preProperty.name @preProperty.value @property.name @property.value
}
@if (Model.unWindTradeCashList != null) { var index = 1;
@foreach (var tradeCash in Model.unWindTradeCashList) { if (tradeCash.Action == "系统操作-行权费") { @if (isPremiumRate) { } else { } @if (isPremiumRate) { } else { }
提前终止序号 @(index++)行权比例 @(tradeCash.NotionalPercent.OtcFormatPercent())行权数量 @(tradeCash.TradeAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional))
行权日期 @(tradeCash.ValueDate.OtcFormatDate()) 收益总额 @(tradeCash.Amount.OtcFormatMoney())
行权标的价格 @(tradeCash.FinalPrice.OtcFormat(OtcFormatFlag.umprice)) 实现盈亏 @(tradeCash.WinLoss)
行权收益 @(tradeCash.SingleWinPricePercent.OtcFormat(OtcFormatFlag.premiumRateP))行权收益 @(tradeCash.SingleWinPrice.OtcFormat(OtcFormatFlag.tradeSinglePrice))
} else { @if (isPremiumRate) { } else { } @if (isPremiumRate) { } else { }
提前终止序号 @(index++)平仓单价 @(tradeCash.UnwindPricePercentRate.OtcFormatPercent())平仓单价 @(tradeCash.UnwindPrice.OtcFormat(OtcFormatFlag.umprice))
平仓日期 @(tradeCash.ValueDate.OtcFormatDate())平仓比例 @(tradeCash.UnwindPercentRate.OtcFormatPercent())平仓数量 @(tradeCash.UnwindTradeAmount.OtcFormatNotional(tradeModel.CountRatio, PS.Config.IsUseDisplayNotional))
平仓标的价格 @(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)) {
@if (CurUser.交易管理_交易资金维护) { }
}