1193 lines
62 KiB
Plaintext
1193 lines
62 KiB
Plaintext
@using YLErp.Modules.ReportModule
|
|
@model ClientDingShiReport
|
|
@{
|
|
Layout = null;
|
|
|
|
configcolumn data = configcolumnBLL.GetData(CurUser.UserId, configcolumn_data.持仓明细);
|
|
configcolumn dataHistory = configcolumnBLL.GetData(CurUser.UserId, configcolumn_data.历史交易);
|
|
var startdate = Utilities.ShowValidDatetime(Model.ReportFrom);
|
|
}
|
|
|
|
<style>
|
|
table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
h5 {
|
|
text-align: center;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.title {
|
|
line-height: 6px;
|
|
}
|
|
|
|
.table-1 {
|
|
width: 100%;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.table-1 tr th {
|
|
width: 33%;
|
|
}
|
|
|
|
.table-1 tr th span {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.table-2 {
|
|
width: 100%;
|
|
}
|
|
|
|
.table-2 tr th, .table-2 tr td {
|
|
border-top: 1px solid #020202;
|
|
border-right: 1px solid #020202;
|
|
text-align: center;
|
|
letter-spacing: .5px;
|
|
padding: 5px 0px;
|
|
}
|
|
|
|
.table-4 tr th, .table-4 tr td {
|
|
border-top: 1px solid #020202;
|
|
border-right: 1px solid #020202;
|
|
text-align: center;
|
|
padding: 5px 3px;
|
|
}
|
|
</style>
|
|
<h5>@(YLErp.PS.Config.CompanyName)</h5>
|
|
<h5 class="title">@Model.Title</h5>
|
|
<div id="listdiv">
|
|
<table class="table-1">
|
|
<tr>
|
|
<th>
|
|
@if (YLErp.PS.Config.Company != YLErp.Configuration.CompanyEnum.渤海)
|
|
{
|
|
<span>客户编号: @Model.client.Number</span>
|
|
}
|
|
</th>
|
|
<th>客户名称: <span>@Model.client.Name</span></th>
|
|
<th>报告时段: <span>@if (!string.IsNullOrEmpty(startdate)) {
|
|
startdate=startdate +" - ";
|
|
}
|
|
@startdate@Utilities.ShowValidDatetime(Model.ReportEnd)</span></th>
|
|
</tr>
|
|
</table>
|
|
<table class="table-1">
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th style="font-weight:500;">
|
|
<span>制表人: @Model.OptUserInfo.UserName </span>
|
|
<span> 制表时间: @DateTime.Now.ToString("yyyy年MM月dd日 HH:mm:ss")</span>
|
|
</th>
|
|
</tr>
|
|
</table>
|
|
@if (Model.FundReportModel != null)
|
|
{
|
|
@*<table class="table-2" style="border-collapse:collapse; page-break-after: always;">
|
|
<tr><th colspan="4" style="font-size:16px;border-left: 1px solid #020202;font-weight:500;">账户状况</th></tr>
|
|
<tr>
|
|
<th style="border-left: 1px solid #020202;font-weight:500;">期初结存</th>
|
|
<th style="font-weight:500;">@Model.FundReportModel.LastDayRemainFundString</th>
|
|
<th style="font-weight:500;">实现盈亏</th>
|
|
<th style="font-weight:500;">@Model.FundReportModel.WinLossString</th>
|
|
</tr>
|
|
<tr><td style="border-left: 1px solid #020202;">出入金</td><td>@Model.FundReportModel.CashInCashOutChangeString</td><td>持仓期权费净额</td><td>@Model.FundReportModel.PositionPremiumNetCashString</td></tr>
|
|
<tr><td style="border-left: 1px solid #020202;">权利金收支</td><td>@Model.FundReportModel.OptionPremiumString</td><td>持仓市值</td><td>@Model.FundReportModel.PositionPvString</td></tr>
|
|
<tr><td style="border-left: 1px solid #020202;">平仓/行权收支</td><td>@Model.FundReportModel.SettlementBalanceString</td><td>持仓盈亏</td><td>@Model.FundReportModel.PositionPnlString</td></tr>
|
|
<tr><td style="border-left: 1px solid #020202;">其他收支</td><td>@Model.FundReportModel.CashInCashOutOtherString</td><td>市值权益</td><td>@Model.FundReportModel.AmountString</td></tr>
|
|
<tr><td style="border-left: 1px solid #020202;">期末结存</td><td>@Model.FundReportModel.TodayRemianFundString</td><td>追保金额</td><td>@Model.FundReportModel.MarginString</td></tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">质押市值</td>
|
|
<td>@Model.FundReportModel.GuaranteesTotalAmountString</td>
|
|
@if (PS.Config.Is申万)
|
|
{
|
|
<td></td>
|
|
<td></td>
|
|
}
|
|
else
|
|
{
|
|
<td>应付已了结交易款</td>
|
|
<td>@Model.FundReportModel.ClosedTradePayableFundString</td>
|
|
}
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">预付金占用</td>
|
|
<td>@Model.FundReportModel.WorstCastClientPayableString</td>
|
|
@if (PS.Config.Is申万)
|
|
{
|
|
<td></td>
|
|
<td></td>
|
|
}
|
|
else
|
|
{
|
|
<td>应付未了结交易款</td>
|
|
<td>@Model.FundReportModel.PositionTradePayableFundString</td>
|
|
}
|
|
</tr>
|
|
@if (PS.Config.Is申万)
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;">授信额度</td><td>@Model.FundReportModel.CreditString</td><td style="font-weight: bold;"></td><td></td></tr>
|
|
if (PS.Config.ClientElement.TradeMarketShowTotalNetSettlement)
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;border-bottom: 1px solid #020202;">总盈亏</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.TotalNetSettlementString</td><td style="border-bottom: 1px solid #020202; font-weight: bold;">可取资金</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.DesirableFundString</td></tr>
|
|
}
|
|
else
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;border-bottom: 1px solid #020202;"></td><td style="border-bottom: 1px solid #020202;"></td><td style="border-bottom: 1px solid #020202; font-weight: bold;">可取资金</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.DesirableFundString</td></tr>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;">可用资金</td><td>@Model.FundReportModel.AvailableFundString</td><td style="font-weight: bold;">应付资金总额</td><td>@Model.FundReportModel.PayableFundString</td></tr>
|
|
if (PS.Config.ClientElement.TradeMarketShowTotalNetSettlement)
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;">授信额度</td><td>@Model.FundReportModel.CreditString</td><td style="font-weight: bold;">可取资金</td><td>@Model.FundReportModel.DesirableFundString</td></tr>
|
|
<tr><td style="border-left: 1px solid #020202;border-bottom: 1px solid #020202;">总盈亏</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.TotalNetSettlementString</td><td style="border-bottom: 1px solid #020202;"></td><td style="border-bottom: 1px solid #020202;"></td></tr>
|
|
}
|
|
else
|
|
{
|
|
<tr><td style="border-left: 1px solid #020202;border-bottom: 1px solid #020202;">授信额度</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.CreditString</td><td style="border-bottom: 1px solid #020202; font-weight: bold;">可取资金</td><td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.DesirableFundString</td></tr>
|
|
}
|
|
}
|
|
</table>*@
|
|
|
|
<table class="table-2" style="border-collapse:collapse; page-break-after: always;">
|
|
<tr><th colspan="6" style="font-size:16px;border-left: 1px solid #020202;font-weight:500;">账户状况</th></tr>
|
|
<tr>
|
|
<th colspan="2" style="font-size:16px;border-left: 1px solid #020202;font-weight:500;">收支与结存</th>
|
|
<th colspan="2" style="font-size:16px;font-weight:500;">应付与可取</th>
|
|
<th colspan="2" style="font-size:16px;font-weight:500;">盈亏与估值</th>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">期初结存</td>
|
|
<td>@Model.FundReportModel.LastDayRemainFundString</td>
|
|
<td style="font-weight: bold; color: forestgreen;">预付金占用</td>
|
|
<td>@Model.FundReportModel.WorstCastClientPayableString</td>
|
|
<td>实现盈亏</td>
|
|
<td>@Model.FundReportModel.WinLossString</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">出金入金</td>
|
|
<td>@Model.FundReportModel.CashInCashOutChangeString</td>
|
|
<td>可用资金</td>
|
|
<td>@Model.FundReportModel.AvailableFundString</td>
|
|
<td>持仓盈亏</td>
|
|
<td>@Model.FundReportModel.PositionPnlString</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">成交收支</td>
|
|
<td>@Model.FundReportModel.OptionPremiumString</td>
|
|
<td>授信额度</td>
|
|
<td>@Model.FundReportModel.CreditString</td>
|
|
<td>持仓市值</td>
|
|
<td>@Model.FundReportModel.PositionPvString</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">了结收支</td>
|
|
<td>@Model.FundReportModel.SettlementBalanceString</td>
|
|
<td style="font-weight: bold;">应付了结交易款</td>
|
|
<td>@Model.FundReportModel.ClosedTradePayableFundString</td>
|
|
<td style="font-weight: bold; color: dodgerblue;">总资产</td>
|
|
<td>@Model.FundReportModel.AmountString</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">其他收支</td>
|
|
<td>@Model.FundReportModel.CashInCashOutOtherString</td>
|
|
<td style="font-weight: bold;">应付存续交易款</td>
|
|
<td>@Model.FundReportModel.PositionTradePayableFundString</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">票息</td>
|
|
<td>@Model.FundReportModel.CouponString</td>
|
|
<td style="font-weight: bold;">追保金额</td>
|
|
<td>@Model.FundReportModel.MarginString</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">互换成交收支</td>
|
|
<td>@Model.FundReportModel.OptionPremiumSwapString</td>
|
|
<td style="font-weight: bold; color: dodgerblue;">应付资金总额</td>
|
|
<td>@Model.FundReportModel.PayableFundString</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">互换了结收支</td>
|
|
<td>@Model.FundReportModel.SwapBalanceString</td>
|
|
<td style="font-weight: bold; color: dodgerblue;">可取资金</td>
|
|
<td>@Model.FundReportModel.DesirableFundString</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">期末结存</td>
|
|
<td >@Model.FundReportModel.TodayRemianFundString</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;border-bottom: 1px solid #020202;">质押市值</td>
|
|
<td style="border-bottom: 1px solid #020202;">@Model.FundReportModel.GuaranteesTotalAmountString</td>
|
|
<td style="border-bottom: 1px solid #020202;"></td>
|
|
<td style="border-bottom: 1px solid #020202;"></td>
|
|
<td style="border-bottom: 1px solid #020202;"></td>
|
|
<td style="border-bottom: 1px solid #020202;"></td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
@if (Model.eod_positionList != null)
|
|
{
|
|
<table style="width:100%;margin-top:20px;border-collapse:collapse;">
|
|
<tr><th style="text-align:center;font-size:16px;padding:5px 0px;font-weight:500;border-left: 1px solid #020202;border-top:1px solid #020202;border-right:1px solid #020202;"><span style="width:100%;">持仓明细</span></th></tr>
|
|
</table>
|
|
<table class="table-4" style="width:100%;font-size:12px;border-collapse:collapse;page-break-after: always;">
|
|
@{ int columns = 0; int sumstartcolumns = 0; int blankcolumns = 0; int lastcolumns = 0;}
|
|
@if (Model.eod_positionList.Count > 0)
|
|
{
|
|
<tr>
|
|
@if (configcolumnBLL.IsColumnShow("交易编号", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易编号</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易方向", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易方向</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易日期", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("到期日期", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">到期日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("结构类型", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">结构类型</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("标的代码", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">标的代码</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("期初标的价格", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">期初<br />标的价格</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("执行价格", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">执行价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("成交波动率", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">成交<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("权利金(单价)", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">权利金(单价)</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易数量", data))
|
|
{
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易总额</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">名义本金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("当前标的价格", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">当前<br />标的价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("持仓波动率", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("期权现价(单价)", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">期权现价(单价)</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓数量", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓预付金", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓预付金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓市值", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓市值</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓盈亏", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓盈亏</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta手数", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Delta手数</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma手数", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Gamma手数</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Delta</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Gamma</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Vega", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Vega</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Theta", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Theta</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Rho", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Rho</th>
|
|
}
|
|
</tr>
|
|
}
|
|
else
|
|
{
|
|
<tr>
|
|
@if (configcolumnBLL.IsColumnShow("交易编号", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易编号</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易方向", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易方向</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易日期", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("到期日期", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">到期日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("结构类型", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">结构类型</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("标的代码", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">标的代码</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("期初标的价格", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">期初<br />标的价格</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("执行价格", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">执行价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("成交波动率", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">成交<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("权利金(单价)", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">权利金(单价)</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易数量", data))
|
|
{
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">交易总额</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">名义本金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("当前标的价格", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">当前<br />标的价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("持仓波动率", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("期权现价(单价)", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">期权现价(单价)</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓数量", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓预付金", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓预付金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓预付金", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
blankcolumns++;
|
|
}
|
|
<th style="width:5%; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓预付金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓市值", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓市值</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓盈亏", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">持仓盈亏</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta手数", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Delta手数</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma手数", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Gamma手数</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Delta</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Gamma</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Vega", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Vega</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Theta", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Theta</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Rho", data))
|
|
{
|
|
{
|
|
sumstartcolumns++;
|
|
lastcolumns++;
|
|
}
|
|
<th style="width:5%; border-bottom: 1px solid #020202; @(++columns == 1 ? "border-left: 1px solid #020202;" : "")">Rho</th>
|
|
}
|
|
</tr>
|
|
}
|
|
|
|
@foreach (EodPositionReportModel pos in Model.eod_positionList)
|
|
{
|
|
<tr>
|
|
@{int isfirst = 1;}
|
|
@if (configcolumnBLL.IsColumnShow("交易编号", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.TradeNumber</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易方向", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.BuySell</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易日期", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.TradeDate</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("到期日期", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.ExerciseDate</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("结构类型", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.trade.TradeMultipleType</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("标的代码", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.UnderlyingCode</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("期初标的价格", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.InitialSpotPrice.ToString("0.00")</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("执行价格", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.StrikeString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("成交波动率", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.TradeOpenVolatility</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("权利金(单价)", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.TradeSinglePriceString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易数量", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(pos.trade.TradeMultipleType == "现金流交易" ? "" :pos.TradeOriginalAmount.ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.TradePrice.ToString("0.000")</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.OriginalStockEqvNotional.ToString("0.00")</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("当前标的价格", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.UnderlyingPriceValue.ToString("0.00")</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("持仓波动率", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Vol</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("期权现价(单价)", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.CurrentPriceString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓数量", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(pos.trade.TradeMultipleType == "现金流交易" ? "" :pos.TradeAmount.ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓预付金", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(pos.Margin?.ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓市值", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Pv</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓盈亏", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Pnl</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta手数", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Delta</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma手数", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Gamma</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Delta", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.DeltaOriginal</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Gamma", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.GammaOriginal</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Vega", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Vega</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Theta", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Theta</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("Rho", data))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@pos.Rho</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
</tr>
|
|
}
|
|
if (Model.eod_positionList.Count > 0)
|
|
{
|
|
<tr>
|
|
@if (columns - sumstartcolumns > 0)
|
|
{
|
|
<th colspan="@(columns-sumstartcolumns)" style="border-bottom: 1px solid #020202; border-left: 1px solid #020202;"></th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", data))
|
|
{
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.eod_positionList.Sum(x => x.TradePrice).ToString("0.00"))</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", data))
|
|
{
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.eod_positionList.Sum(x => x.OriginalStockEqvNotional).ToString("0.00"))</th>
|
|
}
|
|
@if (blankcolumns > 0)
|
|
{
|
|
<th colspan="@(blankcolumns)" style="border-bottom: 1px solid #020202;"></th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓市值", data))
|
|
{
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.eod_positionList.Sum(x => x.PvDouble).Value.ToString("0.00"))</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("持仓盈亏", data))
|
|
{
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.eod_positionList.Sum(x => x.PnlDouble).Value.ToString("0.00"))</th>
|
|
}
|
|
@if (lastcolumns > 0)
|
|
{
|
|
<th colspan="@lastcolumns" style="border-bottom: 1px solid #020202;"></th>
|
|
}
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|
|
|
|
@if (Model.trade_contract_groupList != null)
|
|
{
|
|
<table style="width:100%;margin-top:20px;border-collapse:collapse;">
|
|
<tr><th style="text-align:center;font-size:16px;padding:5px 0px;font-weight:500;border-top:1px solid #020202;border-left:1px solid #020202;border-right:1px solid #020202;"><span style="width:100%;">历史交易</span></th></tr>
|
|
</table>
|
|
<table class="table-4" style="width:100%;font-size:12px;border-collapse:collapse;border-bottom:1px solid #020202;page-break-after: always;">
|
|
<tr>
|
|
@{ int columnsHistory = 0;}
|
|
@if (configcolumnBLL.IsColumnShow("交易编号", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易编号</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易方向", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易方向</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易日期", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("到期日期", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">到期日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("结构类型", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">结构类型</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("标的代码", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">标的代码</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("期初标的价格", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">期初<br />标的价格</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("执行价格", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">执行价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("成交波动率", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">成交<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("权利金", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">权利金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易数量", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易总额</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">名义本金</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易状态", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">交易状态</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结日期", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">了结日期</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("终止/到期标的价格", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">终止/<br />到期标的价格</th>
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("目标波动率", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">平仓<br />波动率</th>
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("期权平仓价格/行权收益", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">期权平仓价格/<br />行权收益</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结数量", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">了结数量</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结总额", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">了结总额</th>
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("实现盈亏", dataHistory))
|
|
{
|
|
<th style="width:5%; @(++columnsHistory == 1 ? "border-left: 1px solid #020202;" : "")">实现盈亏</th>
|
|
}
|
|
</tr>
|
|
|
|
@foreach (trade_contract_group_simple history in Model.trade_contract_groupList)
|
|
{
|
|
<tr>
|
|
@{int isfirst = 1;}
|
|
@if (configcolumnBLL.IsColumnShow("交易编号", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.TradeNumber</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易方向", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.BuySell</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易日期", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.TradeDateString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("到期日期", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.ExerciseDateString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("结构类型", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.TradeMultipleType</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("标的代码", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.UnderlyingCode</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("期初标的价格", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@((history.trade.SpotPrice ?? 0).ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("执行价格", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.StrikeString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("成交波动率", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade.TradeOpenVolatilityString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("权利金", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(history.trade.TradeSinglePriceString)</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易数量", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(history.trade.TradeMultipleType == "现金流交易" ? "" :((history.TradeOriginalAmount ?? 0).ToString("0.00")))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易总额", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@((history.TradePrice ?? 0).ToString("0.000"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("名义本金", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@((history.trade.OriginalStockEqvNotional ?? 0).ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("交易状态", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.TradeStatusShow</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结日期", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade_cash.ValueDateString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("终止/到期标的价格", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@((history.trade_cash.FinalPrice ?? 0).ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@*@if (configcolumnBLL.IsColumnShow("目标波动率", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.UnwindVolString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}*@
|
|
@if (configcolumnBLL.IsColumnShow("期权平仓价格/行权收益", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade_cash.SingleWinPriceString</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结数量", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@(history.trade.TradeMultipleType == "现金流交易" ? "" :history.trade_cash.ActionTradeAmount.ToString("0.00"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("了结总额", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@((history.trade_cash.MinusAmount).ToString("0.000"))</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
@if (configcolumnBLL.IsColumnShow("实现盈亏", dataHistory))
|
|
{
|
|
<td style="@(isfirst == 1 ? "border-left: 1px solid #020202;" : "")">@history.trade_cash.WinLoss</td>
|
|
{
|
|
isfirst = 0;
|
|
}
|
|
}
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|
|
@if (Model.ClientCashInCashOutExtendList != null)
|
|
{
|
|
<table style="width:100%;margin-top:20px;border-collapse:collapse;">
|
|
<tr><th style="text-align:center;font-size:16px;padding:5px 0px;font-weight:500;border-top:1px solid #020202;border-left:1px solid #020202;border-right:1px solid #020202;"><span style="width:100%;">资金明细</span></th></tr>
|
|
</table>
|
|
<table class="table-4" style="width:100%;font-size:12px;border-collapse:collapse; page-break-after: always;">
|
|
@if (Model.ClientCashInCashOutExtendList.Count > 0)
|
|
{
|
|
<tr>
|
|
<th style="border-left: 1px solid #020202;width:5%;">发生时间</th>
|
|
<th style="width:5%;">收支方向</th>
|
|
<th style="width:5%;">出入金</th>
|
|
<th style="width:5%;">权利金</th>
|
|
<th style="width:5%;">平仓行权</th>
|
|
<th style="width:5%;">票息</th>
|
|
<th style="width:5%;">互换</th>
|
|
<th style="width:5%;">其他</th>
|
|
</tr>
|
|
}
|
|
else
|
|
{
|
|
<tr>
|
|
<th style="border-left: 1px solid #020202;width:5%;border-bottom: 1px solid #020202;">发生时间</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">收支方向</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">出入金</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">权利金</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">平仓行权</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">票息</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">互换</th>
|
|
<th style="width:5%;border-bottom: 1px solid #020202;">其他</th>
|
|
</tr>
|
|
}
|
|
|
|
@foreach (ClientCashInCashOutExtend mod in Model.ClientCashInCashOutExtendList)
|
|
{
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">@mod.HappenDateString</td>
|
|
<td>@mod.DirectionType</td>
|
|
<td>@mod.MoneyInOut.ToString("0.00")</td>
|
|
<td>@mod.MoneyPrice.ToString("0.000")</td>
|
|
<td>@mod.MoneyUnwindExer.ToString("0.000")</td>
|
|
<td>@mod.MoneyCoupon.ToString("0.000")</td>
|
|
<td>@mod.MoneySwap.ToString("0.000")</td>
|
|
<td>@mod.MoneyOther.ToString("0.00")</td>
|
|
</tr>
|
|
}
|
|
@if (Model.ClientCashInCashOutExtendList.Count > 0)
|
|
{
|
|
<tr>
|
|
<th colspan="1" style="border-bottom: 1px solid #020202; border-left: 1px solid #020202;"></th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyToShow).ToString("0.00"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyInOut).ToString("0.00"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyPrice).ToString("0.000"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyUnwindExer).ToString("0.000"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyCoupon).ToString("0.000"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneySwap).ToString("0.000"))</th>
|
|
<th style="border-bottom: 1px solid #020202;">@(Model.ClientCashInCashOutExtendList.Sum(x => x.MoneyOther).ToString("0.00"))</th>
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|
|
@if (Model.clientcashincashout_productLinq != null)
|
|
{
|
|
<table style="width:100%;margin-top:20px;border-collapse:collapse;">
|
|
<tr><th style="text-align:center;font-size:16px;padding:5px 0px;font-weight:500;border-top:1px solid #020202;border-left:1px solid #020202;border-right:1px solid #020202;"><span style="width:100%;">质押记录</span></th></tr>
|
|
</table>
|
|
<table class="table-4" style="width:100%;font-size:12px;border-collapse:collapse;border-bottom:1px solid #020202; page-break-after: always;">
|
|
<tr>
|
|
<th style="border-left: 1px solid #020202;width:5%;">质押时间</th>
|
|
<th style="width:5%;">质押状态</th>
|
|
<th style="width:5%;">赎回时间</th>
|
|
<th style="width:5%;">质押品名</th>
|
|
<th style="width:5%;">质押率</th>
|
|
<th style="width:5%;">质押数量</th>
|
|
<th style="width:5%;">盯市价格</th>
|
|
<th style="width:5%;">质押市值</th>
|
|
</tr>
|
|
@foreach (clientcashincashout_productLinq mod in Model.clientcashincashout_productLinq)
|
|
{
|
|
<tr>
|
|
<td style="border-left: 1px solid #020202;">@mod.HappenDateString</td>
|
|
<td>@mod.Status</td>
|
|
<td>@mod.BackDate</td>
|
|
<td>@mod.VarietyShortName</td>
|
|
<td>@mod.RateString</td>
|
|
<td>@mod.ProductAmount</td>
|
|
<td>@mod.SpotPrice</td>
|
|
<td>@(mod.ProductTotalPrice?.ToString("0.00"))</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|
|
|
|
|
|
<span style="color:gray">
|
|
@Html.Raw(Model.desc)
|
|
</span>
|
|
<table class="table-3" style="width:100%;margin-top:50px;">
|
|
<tr>
|
|
<th style="width:50%;"></th>
|
|
<th style="width:50%;font-weight:500;text-align:right">@(YLErp.PS.Config.CompanyName)</th>
|
|
</tr>
|
|
<tr>
|
|
<th style="width:50%;"></th>
|
|
<th style="width:50%;font-weight:500;text-align:right">@DateTime.Now.ToString("yyyy年MM月dd日")</th>
|
|
</tr>
|
|
</table>
|
|
</div> |