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

84 lines
2.9 KiB
Plaintext

@model ScenarioConfigV2
@{
ViewBag.Title = "情景分析配置|查看";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
var special = Model.ParseSepcial();
}
@section JS{
<script type="text/javascript">
function removeData(enid) {
let data = { enid: enid, d: new Date() };
main.confirmPost('确定删除吗', "/ScenarioAnalysis/RemoveScenario", data).done(function (resp) {
layer.closeMe('reloadData');
});
}
</script>
}
<div class="toolbarDiv">
<a class="btn btn-primary " href="/ScenarioAnalysis/ScenarioEdit/?enid=@(Model.EncryptId)">修改</a>
<button class="btn btn-primary " type="button" onclick="removeData('@(Model.EncryptId)')">删除</button>
<button class="btn btn-primary " type="button" onclick="layer.closeMe()">关闭</button>
</div>
@Html.HiddenFor(model => model.id)
<div class="yc-panel">
<table class="table table-bordered">
<tr><th class='tdRight'>交易员</th><td>@(Model.UserName)</td></tr>
<tr><th class='tdRight'>情景名称</th><td>@(Model.ConfigName)</td></tr>
<tr><th class='tdRight'>横坐标类型</th><td>@(Model.xType)</td></tr>
<tr><th class='tdRight'>横坐标变动率</th><td>@(Model.xRates)</td></tr>
<tr><th class='tdRight'>纵坐标类型</th><td>@(Model.yType)</td></tr>
<tr><th class='tdRight'>纵坐标变动率</th><td>@(Model.yRates)</td></tr>
<tr><th class='tdRight'>更新时间</th><td>@(Model.OptDate)</td></tr>
</table>
@*@if (special != null && special.HasItem())
{
<h4>标的价格特殊配置</h4>
if (special.VarityList != null && special.VarityList.Any())
{
<table class="table table-bordered">
<thead>
<tr>
<th>标的品种</th>
<th>偏移量</th>
</tr>
</thead>
<tbody>
@foreach (var item in special.VarityList)
{
<tr>
<td>@item.Name</td>
<td>@(item.Rate?.ToString("P2"))</td>
</tr>
}
</tbody>
</table>
}
if (special.UnderlyingList != null && special.UnderlyingList.Any())
{
<table class="table table-bordered">
<thead>
<tr>
<th>标的代码</th>
<th>偏移量</th>
</tr>
</thead>
<tbody>
@foreach (var item in special.UnderlyingList)
{
<tr>
<td>@item.Name</td>
<td>@(item.Rate?.ToString("P2"))</td>
</tr>
}
</tbody>
</table>
}
}*@
</div>