Files
zszq-trs/YLErpWeb/Views/quotationconfirm/OutPutPDF_ShenWan.cshtml
T
2024-05-09 14:06:26 +08:00

88 lines
3.9 KiB
Plaintext

@model QuotationsExportModel
@{
Layout = null;
}
<!---此视图用户PDF生成,故必须使用内联样式-->
<style>
table { border-spacing: 0; border-collapse: collapse; background-color: transparent; }
tr { page-break-inside: avoid; }
td, th { padding: 1px 0; text-align: left; }
.table { border-collapse: collapse !important; width: 100%; max-width: 100%; margin-bottom: 2px; border: 1px solid #0a0c0f;border-top:0;border-right:0; }
.table th, .table td { vertical-align: middle; text-align: center; border-top: 1px solid #0a0c0f; border-right: 1px solid #0a0c0f; font-size: 11px; }
.tr-index0 { background: #ecedec; }
.td-normal { width: 12.4%; }
.td-assettype { background: #fff; vertical-align: middle !important; width: 12.4%; }
.td-buy-price { background: #f4af85; width: 12.4%; }
.td-sell-price { background: #a9d08f; width: 12.4%; }
</style>
<!----STYLE-END---->
<table class="table">
<!--IText不支持thead标签-->
<tr style="height: 50px;">
<th rowspan="1" colspan="7" style="text-align:left;">
<img style="width:250px;height:50px;" src="@(Model.LogoImgUrl)" />
</th>
<th rowspan="3" colspan="1" style="text-align: center;">
<img style="width:112px;height:112px;" src="@(Model.ErWeiMaImgUrl)" />
</th>
</tr>
<tr style="height: 40px;">
<th colspan="7" style="text-align:center;font-weight:600;font-size:x-large;">申银万国智富投资有限公司</th>
</tr>
<tr>
<td colspan="4" style="height: 30px;text-align:left;">
&nbsp;&nbsp;&nbsp;报价日期:&nbsp;&nbsp;@(Model.ValueDate.ToString("yyyy/MM/dd"))
</td>
<td colspan="3" style="height: 30px;text-align:center;font-size:large;">一个月平值场外报价表</td>
</tr>
<tr style="text-align: center;">
<td rowspan="2" class="td-normal">类别</td>
<td rowspan="2" class="td-normal">品种</td>
<td rowspan="2" class="td-normal">合约</td>
<td rowspan="2" class="td-normal">标的价格</td>
<td colspan="2" class="td-buy-price" style="width:24.8%;">客户卖价</td>
<td colspan="2" class="td-sell-price" style="width:24.8%;">客户买价</td>
</tr>
<tr style="text-align: center;">
<td class="td-buy-price">绝对值</td>
<td class="td-buy-price">百分比%</td>
<td class="td-sell-price">绝对值</td>
<td class="td-sell-price">百分比%</td>
</tr>
<!--IText不支持tbody标签-->
@{ var tIndex = 0;}
@foreach (var quo in Model.selectedQuotation)
{
var isFirst = true;
foreach (var item in quo.flat_price_quotations)
{
string showName = item.ShortName.TrimToNull() ?? item.UnderlyingType;
<tr class="tr-index@(tIndex++%2)">
@if (isFirst)
{
isFirst = false;
<td rowspan="@(quo.flat_price_quotations.Count)" class="td-assettype">@(quo.AssetType)</td>
}
<td class="td-normal">@(showName)</td>
<td class="td-normal">@(item.UnderlyingCode)</td>
<td class="td-normal">@(item.SpotPrice)</td>
<td class="td-buy-price">@(item.BuyOptionPrice?.ToString("N"))</td>
<td class="td-buy-price">@((item.BuyOptionPrice / item.SpotPrice)?.ToString("P"))</td>
<td class="td-sell-price">@(item.SellOptionPrice?.ToString("N"))</td>
<td class="td-sell-price">@((item.SellOptionPrice / item.SpotPrice)?.ToString("P"))</td>
</tr>
}
}
</table>
<table style="width: 100%;">
<tr>
<td style="font-size:12px; text-align:left; width: 75%;">免责声明:此价格为参考价格,具体承做请详细咨询申银万国智富投资有限公司。</td>
<td style="font-size:12px; text-align:center; width: 25%;">到期日:@(Model.EndDate?.ToString("yyyy/MM/dd"))</td>
</tr>
</table>