83 lines
4.0 KiB
Plaintext
83 lines
4.0 KiB
Plaintext
@model EodPriceViewModel
|
|
@{
|
|
ViewBag.Title = "日终商品期货价格|查看";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section JS{
|
|
<script type="text/javascript">
|
|
function deleteeod_commodity_future_price(id) {
|
|
if (confirm("确定删除吗?")) {
|
|
$.ajax({
|
|
type: "Post",
|
|
url: "/eodPrice/DeleteEodPrice",
|
|
data: { id: id, d: new Date() },
|
|
success: function (data) {
|
|
alert(data.msg);
|
|
if (data.success == true) {
|
|
window.parent.location = window.parent.location;
|
|
window.close();
|
|
}
|
|
},
|
|
error: function (msg) {
|
|
alert("error:" + msg);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
}
|
|
|
|
<div class="toolbarDiv">
|
|
@if (CurUser.结算管理_日终价格修改)
|
|
{
|
|
if (Model.UnderlyingInstrumentType == "Stock")
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/eodPrice/eodStockPriceEdit/?enid=" + Model.eod_Stock_Price.EncryptId + "');")
|
|
}
|
|
if (Model.UnderlyingInstrumentType == "CommodityFutures")
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/eodPrice/eodFuturePriceEdit/?enid=" + Model.eod_commodity_future_price.EncryptId + "');")
|
|
}
|
|
else
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/eodPrice/eodBondPriceEdit/?enid=" + Model.ChinaBondValuation.EncryptId + "');")
|
|
}
|
|
}
|
|
@MyControls.Btn("关闭", "layer.closeMe();")
|
|
</div>
|
|
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered">
|
|
@if (Model.UnderlyingInstrumentType == "Stock")
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.eod_Stock_Price.ValueDate, Utilities.ShowValidDatetime(Model.eod_Stock_Price.ValueDate))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.UnderlyingName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.MarketName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_Stock_Price.ClosePrice)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_Stock_Price.ReferencePrice)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_Stock_Price.UnderlyingStatus)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_Stock_Price.OptDate, Utilities.ShowValidDatetime(Model.eod_Stock_Price.OptDate))</tr>
|
|
}
|
|
else if (Model.UnderlyingInstrumentType == "CommodityFutures")
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.ValueDate, Utilities.ShowValidDatetime(Model.eod_commodity_future_price.ValueDate))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.UnderlyingName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.MarketName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.ClosePrice)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.SettlePrice)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.ReferencePrice)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.OptName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.eod_commodity_future_price.OptDate, Utilities.ShowValidDatetime(Model.eod_commodity_future_price.OptDate))</tr>
|
|
}
|
|
else
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.ChinaBondValuation.valuation_date, Utilities.ShowValidDatetime(Model.ChinaBondValuation.valuation_date))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.UnderlyingName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.underlying.MarketName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ChinaBondValuation.dirty_price_close)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ChinaBondValuation.net_price)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ChinaBondValuation.yield)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ChinaBondValuation.update_time, Utilities.ShowValidDatetime(Model.ChinaBondValuation.update_time))</tr>
|
|
}
|
|
</table>
|
|
</div> |