60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
@model eod_commodity_future_price
|
|
@{
|
|
ViewBag.Title = "日终商品期货价格 | 编辑";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section JS
|
|
{
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$(".datepicker").datepicker({ changeMonth: true, changeYear: true, showButtonPanel: true, showOtherMonths: true, selectOtherMonths: true });
|
|
$(".form-group").addClass("col-md-6");
|
|
});
|
|
|
|
function checkSubmitData() {
|
|
var pass = $('#form1').valid();
|
|
return pass;
|
|
}
|
|
|
|
function saveeod_commodity_future_price() {
|
|
if (!checkSubmitData()) return false;
|
|
var data = $("#form1").serialize();
|
|
main.post("/eodPrice/EodFuturePriceEditJson", data).done(function (res) {
|
|
window.location.href = "/eodPrice/eodPriceview?enid=" + res.obj.EncryptId + "&UnderlyingInstrumentType=CommodityFutures";
|
|
main.parentReloadData();
|
|
});
|
|
}
|
|
|
|
</script>
|
|
}
|
|
<form class="yc-panel" id="form1" method="post" onsubmit="return false;">
|
|
|
|
<input type="hidden" value="@Model.id" name="id" id="id" />
|
|
<input type="hidden" value="@Model.EncryptId" name="EncryptId" id="EncryptId" />
|
|
<input type="hidden" name="UnderlyingId" value="@(Model.UnderlyingId)" />
|
|
<input type="hidden" name="UnderlyingCode" value="@(Model.UnderlyingCode)" />
|
|
<input type="hidden" name="HighPrice" value="@(Model.HighPrice)" />
|
|
<input type="hidden" name="LowPrice" value="@(Model.LowPrice)" />
|
|
|
|
<h4>日终商品期货价格修改</h4>
|
|
|
|
<div style="margin-top:20px;">
|
|
<div class='form-group col-md-6'>
|
|
<label class='formlabel'>市场</label>
|
|
<input class='text-box' type='text' value='@(ViewData["市场"])' readonly=readonly />
|
|
</div>
|
|
<div class='form-group col-md-6'>
|
|
<label class='formlabel'>标的代码</label>
|
|
<input class='text-box' type='text' value='@(Model.UnderlyingCode)' readonly=readonly />
|
|
</div>
|
|
@Html.MyDateFor(model => model.ValueDate)
|
|
@Html.MyTextFor(model => model.ClosePrice)
|
|
@Html.MyTextFor(model => model.SettlePrice)
|
|
@Html.MyTextFor(model => model.ReferencePrice)
|
|
</div>
|
|
<div style="padding:10px;padding-left:130px;">
|
|
<button class="btn btn-primary" type="button" onclick="saveeod_commodity_future_price();">保存</button>
|
|
<button class="btn btn-primary" type="button" onclick="layer.closeMe();">关闭</button>
|
|
|
|
</div>
|
|
</form> |