61 lines
2.4 KiB
Plaintext
61 lines
2.4 KiB
Plaintext
@model TradeViewModel
|
|
@{
|
|
Layout = null;
|
|
var tradeModel = Model.Trade;
|
|
var couponIncludeStartDate = tradeModel?.trade_autocall?.CouponIncludeStartDate ?? tradeModel?.trade_snowball?.CouponIncludeStartDate ?? false;
|
|
var couponIncludeEndDate = tradeModel?.trade_snowball?.CouponIncludeEndDate ?? true;
|
|
}
|
|
@foreach (var item in Model.autoCallObsercationList)
|
|
{
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<td class="tdRight">计息开始日</td>
|
|
<td>
|
|
@(item.StartDate.OtcFormatDate())
|
|
@if (tradeModel.TradeType == "雪球期权")
|
|
{
|
|
@((tradeModel.TradeDate == item.StartDate && !couponIncludeStartDate) ? "(不包含)" : "")
|
|
}
|
|
</td>
|
|
<td class="tdRight">计息结束日</td>
|
|
<td>
|
|
@(item.EndDate.OtcFormatDate())
|
|
@if (tradeModel.TradeType == "雪球期权" && tradeModel.trade_snowball.PrepaymentUsed)
|
|
{
|
|
@((tradeModel.TradeDate == item.StartDate && !couponIncludeEndDate) ? "(不包含)" : "")
|
|
}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdRight">票息率</td>
|
|
<td>@(item.CouponRate.OtcFormat(OtcFormatFlag.premiumRateP))</td>
|
|
<td class="tdRight">计息名义本金</td>
|
|
<td>@(item.StockEqvNotional.OtcFormat(OtcFormatFlag.StockEqvNotional))</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdRight">参与率</td>
|
|
<td>@(tradeModel.ParticipationRate.OtcFormatPercent())</td>
|
|
<td class="tdRight">票息金额</td>
|
|
<td>@(item.PaymentAmount.OtcFormatMoney())</td>
|
|
</tr>
|
|
@if (item.AnnualizedTradePrice != 0)
|
|
{
|
|
<tr>
|
|
<td class="tdRight">年化权利金</td>
|
|
<td>@(item.AnnualizedPremiumRate.OtcFormat(OtcFormatFlag.premiumRateP))</td>
|
|
<td class="tdRight">年化权利金金额</td>
|
|
<td>@(item.AnnualizedTradePrice.OtcFormatMoney())</td>
|
|
</tr>
|
|
}
|
|
<tr>
|
|
<td class="tdRight">支付日期</td>
|
|
<td>@(item.PaymentDate.OtcFormatDate())</td>
|
|
@if (item.AnnualizedTradePrice != 0)
|
|
{
|
|
<td class="tdRight">支付净额</td>
|
|
<td>@((item.PaymentAmount + item.AnnualizedTradePrice).OtcFormatMoney())</td>
|
|
}
|
|
</tr>
|
|
</table>
|
|
}
|