互换类型
@(tradeModel.trade_swap.SwapType)
交易员收取
@(tradeModel.trade_swap.IsGetFloatingProfit ? "浮动收益" : "利息")
交易员支付
@(tradeModel.trade_swap.IsPayFloatingProfit ? "浮动收益" : "利息")
@if (tradeModel.trade_swap.SwapType == "多空组合")
{
簿记账户
@(tradeModel.AssetBookName)
@if (tradeModel.trade_swap.IsGetFloatingProfit)
{
标的代码
@(trade_swap.GetUnderlyingCode)
}
else
{
互换利率(年化)
查看
}
@if (tradeModel.trade_swap.IsPayFloatingProfit)
{
标的代码
@(trade_swap.PayUnderlyingCode)
}
else
{
互换利率(年化)
查看
}
交易对手方
交易对手方
@(tradeModel.ClientName)
@if (!PS.Config.IsGuoJun && !PS.Config.Is润和)
{
(@(tradeModel.OpponentRole ?? "乙方"))
}
@if (tradeModel.trade_swap.IsGetFloatingProfit)
{
增强收益(年化)
@(tradeModel.trade_swap.GetSwapRate.OtcFormatPercent())
}
else
{
交易费用
@(trade_swap.GetTradePrice.OtcFormatMoney())
}
@if (tradeModel.trade_swap.IsPayFloatingProfit)
{
增强收益(年化)
@(tradeModel.trade_swap.PaySwapRate.OtcFormatPercent())
}
else
{
交易费用
@(trade_swap.PayTradePrice.OtcFormatMoney())
}
交易员
@(tradeModel.TraderName)
@if (tradeModel.trade_swap.IsGetFloatingProfit)
{
交易费用
@(trade_swap.GetTradePrice.OtcFormatMoney())
}
else
{
初始预付金率
@(trade_swap.GetMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
}
@if (tradeModel.trade_swap.IsPayFloatingProfit)
{
交易费用
@(trade_swap.PayTradePrice.OtcFormatMoney())
}
else
{
初始预付金率
@(trade_swap.PayMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
}
成交日期
@(tradeModel.TradeDate.OtcFormatDate())
@if (tradeModel.trade_swap.IsGetFloatingProfit)
{
初始预付金率
@(trade_swap.GetMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
}
else
{
}
@if (tradeModel.trade_swap.IsPayFloatingProfit)
{
初始预付金率
@(trade_swap.PayMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
}
else
{
}
自然日
@(tradeModel.StartDate.OtcFormatDate())
@if (tradeModel.get_trade_swap_details.Count >= 1)
{
@*操作 *@
交易编号
标的代码
多空方向
期初价格
数量
@foreach (var item in tradeModel.get_trade_swap_details)
{
@*
@if (item.Notional > 0)
{
平仓
}
*@
@item.ChildTradeNumber
@item.UnderlyingCode
@item.LongShort
@item.SpotPrice
@item.Notional / @tradeModel.trade_swap.GetCountRatio
}
@*开仓 *@
}
@if (tradeModel.pay_trade_swap_details.Count >= 1)
{
@*操作 *@
交易编号
标的代码
多空方向
期初价格
数量
@foreach (var item in tradeModel.pay_trade_swap_details)
{
@*
@if (item.Notional > 0)
{
平仓
}
*@
@item.ChildTradeNumber
@item.UnderlyingCode
@item.LongShort
@item.SpotPrice
@item.Notional / @tradeModel.trade_swap.PayCountRatio
}
@*开仓 *@
}
到期日期
@(tradeModel.ExerciseDate.OtcFormatDate())
名义本金
@(tradeModel.OriginalStockEqvNotional.OtcFormat(OtcFormatFlag.StockEqvNotional))
if (!string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate))
{
名义本金(结算币种)
@Model.OriginalStockEqvNotionalV2MultipleExchangeRate
}
交易编号
@(tradeModel.TradeNumber)
浮动收益年化
@(tradeModel.trade_swap.AnnualVarIncome ? "是" : "否")
年化天数
@(trade_swap.AnnualDays)
计息方式
@(TradeViewModel.GetSwapRateCalcModeDesc(tradeModel.trade_swap.RateCalcMode))
计价货币
@(tradeModel.QuoteCurrency)
结算日期
@((tradeModel.SettlementDate ?? tradeModel.ExerciseDate).OtcFormatDate())
是否延期结算
@(tradeModel.SettlementFlag == 1 ? "是" : "否")
是否开仓时收取手续费
@(tradeModel.trade_swap.IsTradePriceWhenOpen ? "是" : "否")
收费基本单位
@(tradeModel.trade_swap.IsShare ? "按手数收费" : "按份额收费")
}
else if (tradeModel.trade_swap.IsPayFloatingProfit)
{
簿记账户
@(tradeModel.AssetBookName)
互换利率(年化)
查看
多空方向
@(trade_swap.PayLongShort)
交易对手方
@(tradeModel.ClientName)
@if (!PS.Config.IsGuoJun && !PS.Config.Is润和)
{
(@(tradeModel.OpponentRole ?? "乙方"))
}
单位交易费用
@(trade_swap.GetUnAnnualRate > 0 ? (trade_swap.GetUnAnnualRate ?? 0).OtcFormat(OtcFormatFlag.premiumRateP) : (trade_swap.IsShare ? (trade_swap.GetSingleFee ?? 0) : ((trade_swap.GetSingleFee ?? 0) / trade_swap.PayContractSize)).OtcFormat(OtcFormatFlag.tradeSinglePrice))
标的代码
@(trade_swap.PayUnderlyingCode)
交易员
@(tradeModel.TraderName)
交易费用
@(trade_swap.GetTradePrice.OtcFormatMoney())
期初标的价格
@if (PS.Config.IsGuoJun)
{
@trade_swap.PaySpotPrice.OtcFormatFlex(6, 6);
}
else
{
@trade_swap.PaySpotPrice.OtcFormat(OtcFormatFlag.umprice)
}
成交日期
@(tradeModel.TradeDate.OtcFormatDate())
初始预付金率
@(trade_swap.GetMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
开仓价格
@if (PS.Config.IsGuoJun)
{
@trade_swap.PayOpenPrice.OtcFormatFlex(6, 6);
}
else
{
@trade_swap.PayOpenPrice.OtcFormat(OtcFormatFlag.umprice)
}
自然日
@(tradeModel.StartDate.OtcFormatDate())
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.chargeCycle, out var chargeCycle);
}
@if (!string.IsNullOrEmpty(chargeCycle))
{
收取周期
if (chargeCycle == "TERM")
{
到期支付
}
else
{
@(!string.IsNullOrEmpty(chargeCycle) && chargeCycle.IndexOf("|")>=0 ? "每" + chargeCycle.Substring(0, chargeCycle.IndexOf('|')).Replace('D', '天').Replace('W', '周').Replace('M', '月').Replace('Y', '年').Replace("TERM", "到期支付") : "到期支付")
}
}
else
{
收取周期
到期支付
}
交易手数
@if (PS.Config.IsGuoJun)
{
@trade_swap.PayLot.OtcFormatFlex(6, 6);
}
else
{
@(trade_swap.PayLot.OtcFormatNotional())
}
到期日期
@(tradeModel.ExerciseDate.OtcFormatDate())
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
中央对手方清算
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.IsCentralClearing, out var isCentralClearing);
}
@(isCentralClearing=="Y"?"是": isCentralClearing == "I"? "计划中央对手方清算" : "否")
}
else
{
}
交易数量
@if (PS.Config.IsGuoJun)
{
@((PS.Config.IsUseDisplayNotional ? trade_swap.PayTradeAmount * trade_swap.PayCountRatio : trade_swap.PayTradeAmount).OtcFormatFlex(6, 6));
}
else
{
@(trade_swap.PayTradeAmount.OtcFormatNotional((int)trade_swap.PayCountRatio,PS.Config.IsUseDisplayNotional))
}
名义本金
@(tradeModel.OriginalStockEqvNotional.OtcFormat(OtcFormatFlag.StockEqvNotional))
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
中央清算平台
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.CentralClearingPaltform, out var centralClearingPaltform);
}
@centralClearingPaltform
}
else
{
}
增强收益(年化)
@(tradeModel.trade_swap.PaySwapRate.OtcFormatPercent())
if (!string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate))
{
名义本金(结算币种)
@Model.OriginalStockEqvNotionalV2MultipleExchangeRate
}
交易编号
@(tradeModel.TradeNumber)
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
交易平台
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.TradingPaltform, out var tradingPaltform);
}
@tradingPaltform
}
else
{
}
初始预付金率
@(trade_swap.PayMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
浮动收益年化
@(tradeModel.trade_swap.AnnualVarIncome ? "是" : "否")
报送收取周期频率
@{
@(!string.IsNullOrEmpty(chargeCycle) && chargeCycle.IndexOf("|") >= 0? chargeCycle.Substring(chargeCycle.IndexOf('|')+1).Replace("DAIL", " 日度").Replace("WEEK", " 周度").Replace("MNTH", " 月度").Replace("YEAR", " 年度").Replace("OTHER", "其他").Replace("TERM", "到期支付") : "到期支付")
}
持仓数量
@tradeModel.TradeAmount.OtcFormatNotional()
年化天数
@(trade_swap.AnnualDays)
计息方式
@(TradeViewModel.GetSwapRateCalcModeDesc(tradeModel.trade_swap.RateCalcMode))
计价货币
@(tradeModel.QuoteCurrency)
汇率
@(tradeModel.MetaDic.ContainsKey("ExchangeRate") ? tradeModel.MetaDic["ExchangeRate"] : "")
结算日期
@((tradeModel.SettlementDate ?? tradeModel.ExerciseDate).OtcFormatDate())
是否延期结算
@(tradeModel.SettlementFlag == 1 ? "是" : "否")
是否开仓时收取手续费
@(tradeModel.trade_swap.IsTradePriceWhenOpen ? "是" : "否")
收费基本单位
@(tradeModel.trade_swap.IsShare ? "按手数收费" : "按份额收费")
}
else
{
簿记账户
@(tradeModel.AssetBookName)
多空方向
@(trade_swap.GetLongShort)
互换利率(年化)
查看
交易对手方
@(tradeModel.ClientName)
@if (!PS.Config.IsGuoJun && !PS.Config.Is润和)
{
(@(tradeModel.OpponentRole ?? "乙方"))
}
标的代码
@(trade_swap.GetUnderlyingCode)
单位交易费用
@(trade_swap.PayUnAnnualRate > 0 ? (trade_swap.PayUnAnnualRate ?? 0).OtcFormat(OtcFormatFlag.premiumRateP) : (trade_swap.IsShare ? (trade_swap.PaySingleFee ?? 0) : ((trade_swap.PaySingleFee ?? 0) / trade_swap.GetContractSize)).OtcFormat(OtcFormatFlag.tradeSinglePrice))
交易员
@(tradeModel.TraderName)
期初标的价格
@if (PS.Config.IsGuoJun)
{
@trade_swap.GetSpotPrice.OtcFormatFlex(6, 6);
}
else
{
@(trade_swap.GetSpotPrice.OtcFormat(OtcFormatFlag.umprice))
}
交易费用
@(trade_swap.PayTradePrice.OtcFormatMoney())
成交日期
@(tradeModel.TradeDate.OtcFormatDate())
开仓价格
@if (PS.Config.IsGuoJun)
{
@trade_swap.GetOpenPrice.OtcFormatFlex(6, 6);
}
else
{
@(trade_swap.GetOpenPrice.OtcFormat(OtcFormatFlag.umprice))
}
初始预付金率
@(trade_swap.PayMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
自然日
@(tradeModel.StartDate.OtcFormatDate())
交易手数
@if (PS.Config.IsGuoJun)
{
@trade_swap.GetLot.OtcFormatFlex(6, 6);
}
else
{
@(trade_swap.GetLot.OtcFormatNotional())
}
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.paymentCycle, out var paymentCycle);
}
@if (!string.IsNullOrEmpty(paymentCycle))
{
支付周期
if (paymentCycle == "TERM")
{
到期支付
}
else
{
@(!string.IsNullOrEmpty(paymentCycle) && paymentCycle.IndexOf("|")>=0 ? "每" + paymentCycle.Substring(0, paymentCycle.IndexOf('|')).Replace('D', '天').Replace('W', '周').Replace('M', '月').Replace('Y', '年').Replace("TERM", "到期支付") : "到期支付")
}
}
else
{
支付周期
到期支付
}
到期日期
@(tradeModel.ExerciseDate.OtcFormatDate())
交易数量
@if (PS.Config.IsGuoJun)
{
@((PS.Config.IsUseDisplayNotional? trade_swap.GetTradeAmount* trade_swap.PayCountRatio: trade_swap.GetTradeAmount).OtcFormatFlex(6, 6));
}
else
{
@(trade_swap.GetTradeAmount.OtcFormatNotional((int)trade_swap.GetCountRatio, PS.Config.IsUseDisplayNotional))
}
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
中央对手方清算
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.IsCentralClearing, out var isCentralClearing);
}
@(isCentralClearing=="Y"?"是":"否")
}
else
{
}
名义本金
@(tradeModel.OriginalStockEqvNotional.OtcFormat(OtcFormatFlag.StockEqvNotional))
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
中央清算平台
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.CentralClearingPaltform, out var centralClearingPaltform);
}
@centralClearingPaltform
}
else
{
if (!string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate))
{
名义本金(结算币种)
@Model.OriginalStockEqvNotionalV2MultipleExchangeRate
}
}
增强收益(年化)
@(tradeModel.trade_swap.GetSwapRate.OtcFormatPercent())
if (PS.Config.ErpElement.SecuritiesEnvironment && !string.IsNullOrEmpty(Model.OriginalStockEqvNotionalV2MultipleExchangeRate))
{
名义本金(结算币种)
@Model.OriginalStockEqvNotionalV2MultipleExchangeRate
}
交易编号
@(tradeModel.TradeNumber)
初始预付金率
@(trade_swap.GetMarginRate.OtcFormat(OtcFormatFlag.premiumRateP))
@if (!PS.Config.ErpElement.SecuritiesEnvironment)
{
交易平台
@{
tradeModel.MetaDic.TryGetValue(YLErp.DBModels.Consts.ConsTradeMetaKey.TradingPaltform, out var tradingPaltform);
}
@tradingPaltform
}
else
{
}
浮动收益年化
@(tradeModel.trade_swap.AnnualVarIncome ? "是" : "否")
持仓数量
@tradeModel.TradeAmount.OtcFormatNotional()
报送支付周期频率
@{
@(!string.IsNullOrEmpty(paymentCycle) && paymentCycle.IndexOf("|") >= 0? paymentCycle.Substring(paymentCycle.IndexOf('|')+1).Replace("DAIL", " 日度").Replace("WEEK", " 周度").Replace("MNTH", " 月度").Replace("YEAR", " 年度").Replace("OTHER", "其他").Replace("TERM", "到期支付") : "到期支付")
}
年化天数
@(trade_swap.AnnualDays)
计息方式
@(TradeViewModel.GetSwapRateCalcModeDesc(tradeModel.trade_swap.RateCalcMode))
计价货币
@(tradeModel.QuoteCurrency)
结算日期
@((tradeModel.SettlementDate ?? tradeModel.ExerciseDate).OtcFormatDate())
是否延期结算
@(tradeModel.SettlementFlag == 1 ? "是" : "否")
是否开仓时收取手续费
@(tradeModel.trade_swap.IsTradePriceWhenOpen ? "是" : "否")
收费基本单位
@(tradeModel.trade_swap.IsShare ? "按手数收费" : "按份额收费")
}
备注
@if (tradeModel.RemarkInfo != null && tradeModel.RemarkInfo.StartsWith("http://"))
{
@(tradeModel.RemarkInfo)
}
else
{
@(tradeModel.RemarkInfo)
}
@if (CurUser.交易管理_交易标签查看权限)
{
标签
@if (Model.Tags != null && Model.Tags.Any())
{
foreach (var tag in Model.Tags)
{
@tag.Name
@if (CurUser.交易管理_交易标签调整权限)
{
x
}
}
}
@if (CurUser.交易管理_交易标签调整权限)
{
+
}
}