Files
zszq-trs/YLErpWeb/Views/EodPrice/eodPriceList.cshtml
T
hjhan 36d8909fe0 feat: 日终价格管理新增统一录入表单(按标的类型自动落表)
列表页新增"新增"按钮(结算管理-日终价格修改 权限),打开统一新增页;选标的后按 UnderlyingInstrumentType 自动显示对应字段组,保存时路由到正确的 Save 方法落到对应表;字段与上传 Excel 对齐,避免冗余字段。
2026-07-13 11:00:46 +08:00

56 lines
2.1 KiB
Plaintext

@{
var DataSources = new List<string> { "系统", "人工" };
ViewBag.Title = "日终价格管理";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
}
@section CSS{
<style>
.container { width: 100%; }
@@media (min-width: 1400px) {
.container { max-width: 1400px; }
}
.card-import-result .close { display: none; }
</style>
}
@section JS{
<script>
var curdate = "@valuedateBLL.ValueDate.ToString("yyyy-MM-dd")";
</script>
<script src="~/Scripts/app/eod/eodPriceList.js?v=@(HtmlUtil.JsVersion)"></script>
}
<div style="display:none;width:350px;" id="errormessage"></div>
<div class="searchdiv">
@Html.SearchDateRange("ValueDate", "估值日期")
@Html.MyAceDropdownInput2("DataSource", "数据来源", GlobalData.GetSelectItems(DataSources))
@Html.MyAceDropdownInput2("MarketName", "市场", MarketController.GetAllmarketName())
@Html.ShortInput("UnderlyingCode", "标的代码")
@MyControls.SearchBtn()
@if (CurUser.结算管理_日终价格修改)
{
@MyControls.Btn("新增", "openEodPriceAdd()")
@MyControls.Btn("上传", "uploadSettlementBill()")
}
@MyControls.Btn("导出", "downloadExcel()")
<a class="btn btn-primary" href="/download/ImportTemplate/结算价上传模板" target="_blank">上传模板下载</a>
</div>
@Html.Raw(JqGridSimple.OutTable())
<script type="text/html" id="uploadTpl">
<div class="container" style="overflow:hidden;padding:20px;">
<form class="form-horizontal" method="post" id="formImport" onsubmit="return false">
<div>
<input type="file" id="openFile" name="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
</div>
<div style="margin: 0px auto; padding: 10px;">
<input class="btn btn-primary" type="button" onclick="importDatas();return false;" value="导入数据" />
<input class="btn btn-primary" type="button" onclick="layer.closeAll();return false;" value="关闭" />
</div>
</form>
</div>
</script>