129 lines
5.3 KiB
Plaintext
129 lines
5.3 KiB
Plaintext
@{
|
|
ViewBag.Title = "标的资产";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
.underlying-price {
|
|
position: relative;
|
|
}
|
|
|
|
.underlying-price > .text-show {
|
|
display: block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.underlying-price > .input-show {
|
|
display: none;
|
|
position: relative;
|
|
}
|
|
|
|
.underlying-price > .input-show > input {
|
|
width: 100%;
|
|
height: 21px;
|
|
}
|
|
|
|
.underlying-price > .input-show > .close {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 3px;
|
|
}
|
|
|
|
.underlying-price.input > .text-show {
|
|
display: none;
|
|
}
|
|
|
|
.underlying-price.input > .input-show {
|
|
display: block;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
@section JS{
|
|
<script>
|
|
var g_canlaunch = '@CurUser.基础参数管理.标的启用' == "True";
|
|
var g_dividend = '@CurUser.基础参数管理.除权设置' == "True";
|
|
var configcolumn_data_bdzc = "@configcolumn_data.标的资产";
|
|
</script>
|
|
<script src="~/Scripts/app/underlying/underlyinglist.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
}
|
|
|
|
<div class="searchdiv">
|
|
@Html.MyAceDropdownInput2("MarketCode", "市场", MarketController.GetAllmarket())
|
|
@Html.ShortInput("UnderlyingCode", "标的资产码")
|
|
@Html.MyAceDropdownInput("UnderlyingInstrumentType", "资产类型", ConsGlobal.InstrumentType.SelectItems())
|
|
@Html.MyAceDropdownInput("UnderlyingTypeId", "品种类型", GetRolevariety(true))
|
|
@Html.SearchDateRange("MaturityDate", "标的到期日")
|
|
@Html.MyAceDropdownInput2("LaunchState", "启用", GlobalData.QiYongTypes(),defaultvalue:"1")
|
|
@Html.MyAceDropdownInput2("UnderlyingState", "标的状态", GlobalData.GetSelectItems(underlying_manager.UnderlyingStates), true)
|
|
@Html.MyAceDropdownInput2("UnderlyingStatus", "交易状态", GlobalData.GetSelectItems(underlying_manager.UnderlyingStatusList), true)
|
|
<div class="search-group">
|
|
@MyControls.SearchBtn()
|
|
</div>
|
|
</div>
|
|
<div class="searchdiv">
|
|
<div class="btn-area1">
|
|
@if (CurUser.基础参数管理.标的资产编辑)
|
|
{
|
|
@MyControls.Btn("新增", "startAddunderlying_manager()")
|
|
@MyControls.Btn("新增篮子组合", "startAddBasketunderlying_manager()")
|
|
@MyControls.Btn("新增组合标的", "startAddsSyntheticUnderlyingManager()")
|
|
}
|
|
<div class="d-inline-block">
|
|
<div class="dropdown">
|
|
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">更多功能</button>
|
|
<div class="dropdown-menu">
|
|
@if (CurUser.基础参数管理.标的启用)
|
|
{
|
|
<a href="javascript:;" class="dropdown-item" onclick="updateLaunchStateForSTStock(1)">启用所有ST股</a>
|
|
<a href="javascript:;" class="dropdown-item" onclick="updateLaunchStateForSTStock(0)">取消启用所有ST股</a>
|
|
}
|
|
@if (CurUser.基础参数管理.标的资产编辑)
|
|
{
|
|
<a href="javascript:;" class="dropdown-item" onclick="importMarginParams()">预付金参数导入</a>
|
|
}
|
|
<a href="/underlying_manager/ExportMarginParams" class="dropdown-item" target="_blank">预付金参数导出</a>
|
|
@if (CurUser.基础参数管理.除权设置)
|
|
{
|
|
<a href="javascript:;" class="dropdown-item" onclick="importDividendInfo()">个股除权信息导入</a>
|
|
}
|
|
@if (CurUser.基础参数管理.标的资产编辑)
|
|
{
|
|
<a href="javascript:;" class="dropdown-item" onclick="showBlockConfig()">板块别名配置</a>
|
|
<a href="/StockBlackWhite/StockBlackWhiteList" class="dropdown-item" target="_blank">个股黑白名单导入</a>
|
|
<a href="javascript:;" class="dropdown-item" onclick="importUnderlying()">标的导入</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="width: 30px; display: inline;" onclick="showcolumnChooser();return false;">
|
|
<img src="~/Images/configure.png" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
|
|
<!--标的价格(正常)-->
|
|
<script type="text/html" id="priceCtrlTpl">
|
|
<div class="underlying-price" ondblclick="event.stopPropagation();">
|
|
<div class="text-show" onclick="updatePriceCtrl.showInput();">${price}</div>
|
|
<div class="input-show" onclick="event.stopPropagation();">
|
|
<input type="number" onkeydown="updatePriceCtrl.onInputKeyDown()" step="0.01" onblur="updatePriceCtrl.blurPrice()" value="${price}" data-id="${id}" data-value="${price}" />
|
|
</div>
|
|
</div>
|
|
</script>
|
|
|
|
|
|
@await Html.PartialAsync("/Views/Common/_importFiles.cshtml", new ImportFileModel()
|
|
{
|
|
Title = "上传标的",
|
|
Accept = ".*",
|
|
Buttons = new Dictionary<string, BtnReq>()
|
|
{
|
|
["上传"] = new BtnReq() { OnClick = "uploadUnderlying()" },
|
|
["下载模板"] = new BtnReq() { OnClick = "downTemplate()" },
|
|
},
|
|
})
|