Files
zszq-trs/YLErpWeb/Views/RiskHedging/_IndexV2/SubList.cshtml
T
2024-05-09 14:06:26 +08:00

152 lines
8.0 KiB
Plaintext

@model RiskHedgingViewModel
<!--页面主内容-->
<div id="mainCont" class="lite">
<div class="" style="background:#f9f9f9;padding:6px 5px;min-width:1250px;" id="sublistSearchBox">
<!--过滤下拉框控件ID约定:sel+过滤属性-->
<div class="d-flex">
<div class="mr-2">
<strong>交易编号:&nbsp;</strong>
<input type="text" style="height:25px;width:120px;" id="selTradeNumber" name="TradeNumber" oninput="subView.inputFilterSubGrid()" autocomplete="off" />
</div>
<div class="mr-2">
<strong>客户名称:&nbsp;</strong>
<select style="height:25px;padding:0;width:100px;" id="selClientId" name="ClientId" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>交易日期:&nbsp;</strong>
<select style="height:25px;padding:0;width:100px;" id="selTradeDate" name="TradeDate" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>到期日期:&nbsp;</strong>
<select style="height:25px;padding:0;width:100px;" id="selExerciseDate" name="ExerciseDate" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>交易方向:&nbsp;</strong>
<select style="height:25px;padding:0;width:60px;" id="selBuySell" name="BuySell" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
<option value="买入">买入</option>
<option value="卖出">卖出</option>
</select>
</div>
<div class="mr-2">
<strong>行权价格:&nbsp;</strong>
<select style="height:25px;padding:0;width:80px;" id="selStrike" name="Strike" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>成交份额:&nbsp;</strong>
<select style="height:25px;padding:0;width:80px;" id="selOriginalNotional" name="OriginalNotional" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>结构类型:&nbsp;</strong>
<select style="height:25px;padding:0;width:80px;" id="selTradeType" name="TradeType" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>看涨看跌:&nbsp;</strong>
<select style="height:25px;padding:0;width:80px;" id="selCallPut" name="CallPut" onchange="subView.selectFilterSubGrid()">
<option value="">全部</option>
</select>
</div>
<div class="mr-2">
<strong>是否汇总对冲交易:&nbsp;</strong>
<input type="checkbox" class="yl-checkbox" id="isSumHedging" onchange="subView.IsSumHedgingFilterSubGrid()" />
</div>
<div class="mr-2">
<button onclick="subView.resetFilterSubGrid()" class="btn btn-primary" style="font-size:1rem; height:auto;padding:2px 10px;">重置</button>
</div>
</div>
</div>
<div style="margin-top:10px;">
<table id='listGridSub' class='scroll' cellpadding='0' cellspacing='0'></table>
</div>
</div>
<!--实时刷新勾选框-->
<div class="sr-only">
<input type="checkbox" id="realtimeRefreshCheck" @(string.IsNullOrEmpty(Context.Request.Query["norefresh"]) ? "checked" : "") />
</div>
<!--子表操作按钮模板-->
<script type="text/html" id="subOperationTpl">
<div style="padding:30px">
<!--查看交易信息-->
<input type="button" class="wentiEdit" title='查看交易信息' ${viewTradeDisabled} onclick="subView.tradeView('${EncryptId}','${TradeType}')" value="查看" />
<!--历史交易-->
<input type="button" class="wentiEdit ${historyTradeClass}" title="历史交易" onclick="subView.historyTradeView('${UnderlyingCode}')" value="历史交易" />
@if (CurUser.交易管理_交易平仓)
{
<!--平仓按钮-->
<input type="button" class="wentiEdit ${closeTradeClass}" title="${closeTradeTitle}" ${closeTradeDisabled} onclick="subView.unWind('${EncryptId}','${TradeType}','${StructureType}')" value="平仓" />
}
<!--确认交易-->
@*<input type="button" class="wentiEdit ${confirmTradeClass}" title='${confirmTradeTitle}' ${confirmTradeDisabled} onclick="subView.confirmTrade('${TradeId}')" value="确认" />*@
<!--执行-->
<input type="button" class="wentiEdit ${executionTradeClass}" title="${executionTradeTitle}" ${executionTradeDisabled} onclick="subView.executionTrade('${EncryptId}')" value="执行" />
<!--到期-->
<input type="button" class="wentiEdit ${expireTradeClass}" title='到期' ${expireTradeDisabled} onclick="subView.expireTrade('${EncryptId}')" value="到期" />
<!--执行到期-->
<input type="button" class="wentiEdit ${exerciseOrExpireTradeClass}" title='${exerciseOrExpireTradeTitle}' ${exerciseOrExpireTradeDisabled} onclick="subView.exerciseOrExpireTrade('${EncryptId}')" value="执行到期" />
</div>
</script>
<!--对冲波动率设置-->
<div id="hedingVolSetting" style="background:#fff;min-height:100px;padding:20px;display:none;">
<div>
<label>波动率(%):</label>
<input type="number" min="0" step="0.1" id="hedingVolSettingInput" style="width:100px;" />
<button class="btn btn-primary" onclick="subView.saveHedgingVol()" style="width:70px;height:29px;border: none;border-radius: 3px;" type="button">保存</button>
</div>
<p class="small desc" style="padding-top:5px;"></p>
</div>
<!--场内期权波动率设置-->
<div id="volSetting_ExOption" style="background:#fff;min-height:100px;padding:20px;display:none;">
<div>
<div class="mb-2">
<label><input type="checkbox" class="mr-1" />@(PS.Config.ErpElement.ExchangeOptionVolType == YLErp.Configuration.Enums.ExchangeOptionVolType.ImpliedVol ? "使用隐含波动率" : "使用曲面波动率")</label>
</div>
<label>自定义波动率(%):</label>
<input type="number" min="0" step="0.1" style="width:100px;" />
<button class="btn btn-primary" onclick="subView.saveExOptionVol()" style="width:70px;height:29px;border: none;border-radius: 3px;" type="button">保存</button>
</div>
<p class="small desc" style="padding-top:5px;"></p>
</div>
<!--无风险利率设置-->
<div id="noRiskRateSetting" style="background:#fff;min-height:100px;padding:20px;display:none;">
<div>
<label>无风险利率(%):</label>
<input type="number" min="0" step="0.1" id="noRiskRateSettingInput" style="width:100px;" />
<button class="btn btn-primary" onclick="subView.saveNoRiskRate()" style="width:70px;height:29px;border: none;border-radius: 3px;" type="button">保存</button>
</div>
<p class="small desc" style="padding-top:5px;"></p>
</div>
<!--分红率设置-->
<div id="dividendRateSetting" style="background:#fff;min-height:100px;padding:20px;display:none;">
<div>
<label>分红率(%):</label>
<input type="number" min="0" step="0.1" id="dividendRateSettingInput" style="width:100px;" />
<button class="btn btn-primary" onclick="subView.saveDividendRate()" style="width:70px;height:29px;border: none;border-radius: 3px;" type="button">保存</button>
</div>
<p class="small desc" style="padding-top:5px;"></p>
</div>