75 lines
3.4 KiB
Plaintext
75 lines
3.4 KiB
Plaintext
@model CalculationLogConfigModel
|
|
@{
|
|
ViewBag.Title = "CalculationLogConfig";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<link href="~/Statics/libs/datetime/flatpickr/flatpickr.min.css" rel="stylesheet" />
|
|
}
|
|
@section JS{
|
|
<script src="~/Statics/libs/datetime/flatpickr/flatpickr.min.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
<script type="text/javascript">
|
|
function checkSubmitData() {
|
|
var pass = $('#CalculationLogConfigEditForm').valid();
|
|
return pass;
|
|
}
|
|
function saveConfig() {
|
|
if (!checkSubmitData()) return false;
|
|
var data = $("#CalculationLogConfigEditForm").serialize();
|
|
main.post("/CalculationLog/CalculationLogConfigEditJson", data).done(function (res) {
|
|
//window.parent.reload();
|
|
layer.closeMe();
|
|
});
|
|
}
|
|
</script>
|
|
}
|
|
<form id="CalculationLogConfigEditForm" method="post" autocomplete="off">
|
|
<div class="form-layout">
|
|
<div id="configDiv" class="form-group col-md-6">
|
|
<label class="formlabel">定价场景:</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="Pricing" @(Model.Pricing == true ? "checked" : "") value="true" /> <span>开</span>
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="Pricing" @(Model.Pricing == false ? "checked" : "") value="false" /><span>关</span>
|
|
</label>
|
|
<span style="color:red">*</span>
|
|
</div>
|
|
<div id="highMarginRateDiv" class="form-group col-md-6">
|
|
<label class="formlabel">风险对冲场景:</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="RealtimeRisk" @(Model.RealtimeRisk == true ? "checked" : "") value="true" /> <span>开</span>
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="RealtimeRisk" @(Model.RealtimeRisk == false ? "checked" : "") value="false" /><span>关</span>
|
|
</label>
|
|
<span style="color:red">*</span>
|
|
</div>
|
|
<div id="highMarginRateDiv" class="form-group col-md-6">
|
|
<label class="formlabel">情景分析:</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="ScenarioCalc" @(Model.ScenarioCalc == true ? "checked" : "") value="true" /> <span>开</span>
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="ScenarioCalc" @(Model.ScenarioCalc == false ? "checked" : "") value="false" /><span>关</span>
|
|
</label>
|
|
<span style="color:red">*</span>
|
|
</div>
|
|
<div id="highMarginRateDiv" class="form-group col-md-6">
|
|
<label class="formlabel">期初预付金:</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="InitialMargin" @(Model.InitialMargin == true ? "checked" : "") value="true" /> <span>开</span>
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="InitialMargin" @(Model.InitialMargin == false ? "checked" : "") value="false" /><span>关</span>
|
|
</label>
|
|
<span style="color:red">*</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-buttons">
|
|
@MyControls.Btn("保存", "saveConfig()")
|
|
@MyControls.Btn("关闭", "layer.closeMe()")
|
|
</div>
|
|
</form>
|
|
|