71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
@model TradeMarketReportConfigure
|
|
@{
|
|
ViewBag.Title = "报告配置 | 编辑";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
var pageObj = new
|
|
{
|
|
isNew = Model.id == 0
|
|
};
|
|
}
|
|
@section CSS{
|
|
<style>
|
|
.form-layout input, .form-layout select, .form-layout textarea.text-box {
|
|
width: 220px;
|
|
}
|
|
|
|
.form-layout .form-label, .form-layout .formlabel {
|
|
width: 140px;
|
|
}
|
|
</style>
|
|
<link href="~/Statics/libs/datetime/flatpickr/flatpickr.min.css" rel="stylesheet" />
|
|
}
|
|
@section JS{
|
|
<script>
|
|
var page = @Json.Serialize(pageObj);
|
|
</script>
|
|
<script src="~/Scripts/app/tradeHelper.js?v=@HtmlUtil.JsVersion"></script>
|
|
<script src="~/Statics/libs/datetime/flatpickr/flatpickr.min.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
<script type="text/javascript">
|
|
function checkSubmitData() {
|
|
var pass = $('#form1').valid();
|
|
return pass;
|
|
}
|
|
|
|
function saveTradeMarketReportConfigure() {
|
|
if (!checkSubmitData()) return false;
|
|
var data = $("#form1").serialize();
|
|
let self = window.parent;
|
|
main.post("/clientbalance/TradeMarketReportConfigureEditJson", data).done(function (res) {
|
|
layer.closeMe();
|
|
self.reloadConfigure();
|
|
});
|
|
}
|
|
|
|
</script>
|
|
}
|
|
<form id="form1" method="post" autocomplete="off">
|
|
<div class="form-layout">
|
|
@Html.HiddenFor(model => model.id)
|
|
@Html.HiddenFor(model => model.EncryptId)
|
|
@if (Model.id > 0 && Model.ClientId == null) {
|
|
<div class="form-group col-md-6">
|
|
<label class="formlabel">适用客户</label>
|
|
<input class="text-box" type="text" value="全部" disabled>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
@Html.MyDropdownFor(model => model.ClientId, ClientDataModel.GetAllOpenClient(false), "", "", false, true, true)
|
|
}
|
|
@Html.MyDropdownFor(model => model.TemplateId, new List<SelectListItem>() { new SelectListItem() { Value = "1", Text = "含持仓预付金列" }, new SelectListItem() { Value = "2", Text = "不含持仓预付金列" } }, appendBlank: false)
|
|
@Html.MyTextAreaFor(model => model.Remarks, 3, new { maxlength = 50 })
|
|
|
|
|
|
</div>
|
|
<div class="form-buttons">
|
|
<button class="btn btn-primary " type="button" onclick="saveTradeMarketReportConfigure();">保存</button>
|
|
<button class="btn btn-primary " type="button" onclick="layer.closeMe();">关闭</button>
|
|
</div>
|
|
</form>
|
|
|