83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
@model IEnumerable<WX.CRM.Model.Entity.FXH_TRANAMTEXTEND>
|
|
@{
|
|
Layout = null;
|
|
string tradecode = ViewBag.TradeCode;
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
function linkToMore(url) {
|
|
window.parent.parent.ChildAddTab("更多-交易盈亏明细", url, "");
|
|
}
|
|
</script>
|
|
<div class="content_div">
|
|
<table class="layui-table content_width">
|
|
<tr>
|
|
<td style="text-align:center;font-weight:bold">
|
|
交易盈亏明细
|
|
<a href="javascript:linkToMore('/Fxh/TranAmt/TranAmtList?tradecode=@tradecode')">
|
|
更多
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<table class="layui-table content_width">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
品种代码
|
|
</th>
|
|
<th>
|
|
品种名称
|
|
</th>
|
|
<th>
|
|
交易类型
|
|
</th>
|
|
<th>
|
|
订立手数
|
|
</th>
|
|
<th>
|
|
订立单价
|
|
</th>
|
|
<th>
|
|
订立交易日期
|
|
</th>
|
|
<th>
|
|
转让手数
|
|
</th>
|
|
<th>
|
|
转让单价
|
|
</th>
|
|
<th>
|
|
转让交易日期
|
|
</th>
|
|
<th>
|
|
转让盈亏
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>@item.ProductCode</td>
|
|
<td>@item.ProductName</td>
|
|
<td>@item.TradeType</td>
|
|
@if (item.StartQty == 0) { <td>-</td>}
|
|
else {<td>@item.StartQty</td>}
|
|
@if (item.StartPrice==0) {<td>-</td> }
|
|
else {<td>@item.StartPrice</td> }
|
|
@if (!item.StartDate.HasValue) {<td>-</td> }
|
|
else {<td>@item.StartDate.Value.ToString("yyyy-MM-dd HH:mm")</td>}
|
|
@if (item.TradeQty == 0){<td>-</td>}
|
|
else {<td>@item.TradeQty</td>}
|
|
@if (item.TradePrice == 0){<td>-</td> }
|
|
else {<td>@item.TradePrice</td>}
|
|
@if (!item.TradeDate.HasValue){<td>-</td> }
|
|
else {<td>@item.TradeDate.Value.ToString("yyyy-MM-dd HH:mm")</td>}
|
|
<td>@item.TranAmt</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div> |