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

53 lines
2.0 KiB
Plaintext

@model IEnumerable<EodStatus>
<table class="table table-hover">
<thead>
<tr>
<th>日期</th>
<th>状态</th>
<th>收盘价结算</th>
<th>结算价结算</th>
<th>执行人</th>
<th>执行时间</th>
@if (CurUser.结算管理_收盘数据核对)
{
<th>收盘核对</th>
<th>核对时间</th>
}
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr class="@(item.Status == "已收盘" ? "" : "danger")">
<td>@(item.ValueDate.ToString("yyyy-MM-dd"))</td>
<td>@(item.Status)</td>
<td>@(VolTypeFlagEnumHelper.GetCommaDesc(item.VolTypeFlag))</td>
<td>@(VolTypeFlagEnumHelper.GetCommaDesc(item.VolTypeFlag_S))</td>
<td>@(item.OptName)</td>
<td>@(item.OptDate?.ToString("yyyy-MM-dd HH:mm:ss"))</td>
@if (CurUser.结算管理_收盘数据核对)
{
<td>
@{
if (item.CheckStatus == true)
{
@("已核对")
}
else if (item.Status == "已收盘")
{
<input type="button" class="wentiEdit" title='核对' onclick="changestatus('@item.EncryptId')" value="核对" />
}
else
{
<input type="button" class="wentiEdit" title='核对' onclick="changestatus('@item.EncryptId')" value="核对" disabled />
}
}
</td>
<td>@(item.CheckDate?.ToString("yyyy-MM-dd HH:mm:ss"))</td>
}
</tr>
}
</tbody>
</table>