60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
@model YLErp.Modules.MarginModule.MarginParamsImportResult
|
|
|
|
@{
|
|
ViewBag.Title = "合约预付金参数";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
.templateTip dd, .templateTip dt { line-height: 22px; letter-spacing: 2px; margin-bottom: 5px; }
|
|
</style>
|
|
}
|
|
|
|
@section JS{
|
|
<script>
|
|
$(function () {
|
|
$('#form1').on('submit', function () {
|
|
var fileName = $('#openFile').val();
|
|
if (!fileName) {
|
|
return main.alert("请选择文件!");
|
|
}
|
|
$('#divLoading').show();
|
|
$('#btnSubmit').prop('disabled',true);
|
|
return true;
|
|
});
|
|
});
|
|
window.history.replaceState(null, null, "@Url.Action("MarginParams")");
|
|
</script>
|
|
}
|
|
|
|
@if (Model != null)
|
|
{
|
|
<div class="alert alert-success alert-dismissible fade show">
|
|
<p>@(Model.ResultMsg)</p>
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
}
|
|
|
|
<div class="yc-panel">
|
|
<form id="form1" method="post" action="@Url.Action("ImportMarginParams")" enctype="multipart/form-data">
|
|
<div class="form-group">
|
|
<input type="file" id="openFile" name="file" accept=".xlsx" style="display:inline;" />
|
|
<button type="submit" class="btn btn-primary" id="btnSubmit">导入数据</button>
|
|
<a class="btn btn-primary" href="/Download/ImportTemplate/标的资产预付金参数导入模板">模板文件</a>
|
|
</div>
|
|
</form>
|
|
<div class="mt-4" id="divLoading" style="display:none">
|
|
<div class="spinner-border spinner-border-sm" style="margin-bottom:2px;"></div><span class="ml-2">处理中...</span>
|
|
</div>
|
|
</div>
|
|
|
|
<dl class="yc-panel">
|
|
<dt>导入模板说明:</dt>
|
|
<dd>--标的代码:必须填写 </dd>
|
|
<dd>--变动日期:必须填写 </dd>
|
|
</dl>
|
|
|