- 配置开启时,查看交易、审批查看、交易平仓、收益结算和平仓详情按浮动收支方向与原多空方向组合展示多空方向 - 兼容历史支付数据:支付多头展示为空头,支付空头展示为多头,收取方向保持原多空展示 - 新增浮动端方向组合及相关页面覆盖专项测试
121 lines
5.1 KiB
Plaintext
121 lines
5.1 KiB
Plaintext
@model SwapLongShortCloseModel
|
|
@{
|
|
ViewBag.Title = "交易 | 提前终止详情";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
bool hideFloatingIncomeDirection = PS.Config.ErpElement.SwapFloatingIncomeReceiveOnlyMode;
|
|
string FloatingPositionTypeText(int posiDirection, int positionType)
|
|
{
|
|
if (hideFloatingIncomeDirection)
|
|
{
|
|
return posiDirection == positionType ? "多头" : "空头";
|
|
}
|
|
|
|
return positionType == (int)PositionTypeFlag.Long ? "多头" : "空头";
|
|
}
|
|
}
|
|
@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>
|
|
@if (!hideFloatingIncomeDirection)
|
|
{
|
|
<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">
|
|
@if (!hideFloatingIncomeDirection)
|
|
{
|
|
<td class="@fbgclass">@((SwapDirectionEnum)item.PosiDirection)</td>
|
|
}
|
|
<td>@FloatingPositionTypeText(item.PosiDirection, item.PositionType)</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>
|
|
}
|