105 lines
4.5 KiB
Plaintext
105 lines
4.5 KiB
Plaintext
@model SwapLongShortCloseModel
|
|
@{
|
|
ViewBag.Title = "交易 | 提前终止详情";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<link rel="stylesheet" href="~/Style/Css/SwapCloseDetail.css?v=@(HtmlUtil.JsVersion)" />
|
|
}
|
|
<div class="row no-gutters" style="display:block;">
|
|
<div class="titleDiv">
|
|
<div class="titleHead"></div>
|
|
<div class="titleLabel"><label>预付金/预付金</label></div>
|
|
</div>
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered" style="width: 750px">
|
|
<tbody>
|
|
<tr>
|
|
<td>收支方向</td>
|
|
<td>利息金额</td>
|
|
<td>利息端平仓盈亏</td>
|
|
</tr>
|
|
@foreach (var item in Model.DealInterests.Where(x => x.InterestMode == 5 || x.InterestMode == 6))
|
|
{
|
|
var bgclass = item.InterestDirection == (int)SwapDirectionEnum.收取 ? "swapget" : "swappay";
|
|
<tr class="color-bule">
|
|
<td class="@bgclass">@((SwapDirectionEnum)item.InterestDirection)</td>
|
|
<td>@(item.InterestAmount.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.InterestClosePnL.OtcFormatMoney(true, 4))</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row no-gutters" style="display:block;">
|
|
<div class="titleDiv">
|
|
<div class="titleHead"></div>
|
|
<div class="titleLabel"><label>利息端</label></div>
|
|
</div>
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td>收支方向</td>
|
|
<td>利息金额</td>
|
|
<td>利息端平仓盈亏</td>
|
|
</tr>
|
|
@foreach (var item in Model.DealInterests.Where(x => x.InterestMode == 1 || x.InterestMode == 2))
|
|
{
|
|
var bgclass = item.InterestDirection == (int)SwapDirectionEnum.收取 ? "swapget" : "swappay";
|
|
<tr class="color-bule">
|
|
<td class="@bgclass">@((SwapDirectionEnum)item.InterestDirection)</td>
|
|
<td>@(item.InterestAmount.OtcFormatMoney(true,4))</td>
|
|
<td>@(item.InterestClosePnL.OtcFormatMoney(true,4))</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@if (Model.DealPositions.Count>0)
|
|
{
|
|
<div class="row no-gutters">
|
|
<div class="titleDiv">
|
|
<div class="titleHead"></div>
|
|
<div class="titleLabel"><label>浮动收益端</label></div>
|
|
</div>
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td>收支方向</td>
|
|
<td>多空方向</td>
|
|
<td>标的代码</td>
|
|
<td>期初标的价格</td>
|
|
<td>期初标的价格(不含费)</td>
|
|
<td>标的价格</td>
|
|
<td>平仓数量</td>
|
|
<td>交易费用</td>
|
|
<td>分红收益</td>
|
|
<td>浮动端平仓盈亏</td>
|
|
</tr>
|
|
@foreach (var item in Model.DealPositions)
|
|
{
|
|
var fbgclass = item.PosiDirection == (int)SwapDirectionEnum.收取 ? "swapget" : "swappay";
|
|
<tr class="color-bule">
|
|
<td class="@fbgclass">@((SwapDirectionEnum)item.PosiDirection)</td>
|
|
<td>@(item.PositionType == (int)PositionTypeFlag.Long ? "多头" : "空头")</td>
|
|
<td>@item.UnderlyingCode</td>
|
|
<td>@(item.PosiNetPrice.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.PosiGrossPrice.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.UnderlyingPrice.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.TdCloseQty.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.TdCloseFee.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.TdPosiDividend.OtcFormatMoney(true, 4))</td>
|
|
<td>@(item.TdCloseMtmPnl.OtcFormatMoney(true, 4))</td>
|
|
</tr>
|
|
}
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|