Files
zszq-trs/YLErpWeb/wwwroot/Statics/views/TradeSwapDetailsListMail.cshtml
T
2024-05-09 14:06:26 +08:00

125 lines
5.2 KiB
Plaintext

@using System.Linq;
@using YLErp.Commons;
@using YLErp.Modules.TradeModule.QueryModule;
@using System;
@model TradeSwapDetailsReport
@{
//该文档要经过RazorEngine渲染,目前RazorEngine不支持 ?.语法糖,该文档应避免使用
Layout = null;
var rowindwx = 0;
var rowstyle = "highlight";
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<style type="text/css">
.ltitle { text-align: left; font-size: large; font-weight: 600; }
tr.hightlight { background-color: aliceblue; }
.table-container { width: 100%; overflow-y: auto; _overflow: auto; margin: 0 0 1em; }
table { width: 100%; border: 0; border-collapse: collapse; table-layout: fixed; empty-cells: show; border-collapse: collapse; margin: 0 auto; overflow: scroll; border: 1px solid #cad9ea; color: #666; }
table td, table th { border: 1px solid #999; padding: .5em 1em; white-space: nowrap; }
.table-container::-webkit-scrollbar { -webkit-appearance: none; width: 14px; height: 14px; }
.table-container::-webkit-scrollbar-thumb { border-radius: 8px; border: 3px solid #fff; background-color: rgba(0, 0, 0, .3); }
td { height: 30px; text-align: center; }
.table th { background-repeat: repeat-x; height: 30px; }
.table td, .table th { border: 1px solid #cad9ea; padding: 0 1em 0; }
.table tr.alter { background-color: #f5fafe; }
.wrap { width: 100px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
</style>
</head>
<body>
@if (Model.TradeFlowListAll != null)
{
<div name="cj" class="ltitle">场外商品互换</div>
<div class="table-container">
<table class="table" style="table-layout:auto">
<tr>
<th>交易类型</th>
<th>交易编号</th>
<th>收益金额支付类型</th>
<th>交易标的</th>
<th>交易起始日</th>
<th>交易到期日</th>
<th>标的期初价格(计价货币)</th>
<th>交易数量</th>
<th>名义本金(计价货币)</th>
<th>固定收益率</th>
<th>期末价格(计价货币)</th>
<th>交易终止日</th>
<th>终止数量</th>
<th>浮动收益(结算货币)</th>
<th>固定收益(结算货币)</th>
<th>期末汇率</th>
<th>结算金额(结算货币)</th>
</tr>
<tbody id="tbodytrade" class="list">
@foreach (TradeFlowMoreDetails tr in Model.TradeFlowListAll)
{
rowstyle = ((rowindwx % 2) == 0) ? "hightlight" : ""; rowindwx++;
<tr class="@rowstyle">
<td>@tr.TradeType</td>
<td>@tr.TradeNumber</td>
<td>
@{
string PayType = tr.PayType.Replace("\r\n", "");
@PayType.Substring(0, 4);
<br />
@PayType.Substring(4);
}
</td>
<td>@tr.UnderlyingCode</td>
<td>@tr.TradeDate.OtcFormatDate()</td>
<td>@tr.ExerciseDate.OtcFormatDate()</td>
<td>@tr.Price.OtcFormatFlex(6, 6)</td>
<td>@tr.Notional.OtcFormatFlex(6, 6)</td>
<td>@tr.StockEqvNotional.OtcFormatFlex(2, 2)</td>
<td>@tr.AnnualRate</td>
<td>@tr.UnwindPrice.OtcFormatFlex(6, 6)</td>
<td>@tr.UnwindDate.OtcFormatDate()</td>
<td>@tr.UnwindNotional.OtcFormatFlex(6, 6)</td>
<td>@tr.FloatIncome.OtcFormatFlex(2, 2)</td>
<td>@tr.FixedIncome.OtcFormatFlex(2, 2)</td>
<td>@tr.CurrencyRate</td>
<td>@tr.Amount.OtcFormatFlex(2, 2)</td>
</tr>
}
<tr>
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td />
<td>@Model.TradeFlowListSum.FloatIncomeSum.OtcFormatFlex(2, 2)</td>
<td>@Model.TradeFlowListSum.FixedIncomeSum.OtcFormatFlex(2, 2)</td>
<td />
<td>@Model.TradeFlowListSum.AmountSum.OtcFormatFlex(2, 2)</td>
</tr>
</tbody>
</table>
</div>
<br /> <br />
}
</body>
</html>