Files
zszq-trs/YLErpWeb/Views/trade/EodPositionRisks.cshtml
T

124 lines
5.4 KiB
Plaintext

@{
ViewBag.Title = "日终持仓风险";
Layout = "~/Views/Shared/_MainLayout.cshtml";
var settleConfig = PS.Config.GetSettlementConfig();
var tradetypes = ConsTrade.AllTradeTypes.Where(n => n != "收益互换").Select(O => O == "现金流交易" ? "结构化交易" : O).ToArray().Concat(new string[] { "黑箱结构" });
var pageObj = new
{
isPvRounded = PS.Config.IsPVRounded,
valueDate_eod = ViewBag.lastDate_eod.ToString("yyyy-MM-dd"),
valueDate_settle = ViewBag.lastDate_settle.ToString("yyyy-MM-dd"),
calcPnlExplain = settleConfig.CalcPnlExplain,
calcDate = YLErp.BLL.Eod.EodOperationBase.GetLastSettlementDate(valuedateBLL.ValueDate).ToString("yyyy-MM-dd"),
needShowSpv = PS.Config.ErpElement.NeedShowSpv,
showCreditExposure = PS.Config.Is长江,
showUnderlyingVariety = PS.Config.IsGuoJun,
trade_yizhixing = ConsTrade.已执行,
trade_yidaoqi = ConsTrade.已到期,
trade_yipingcang = ConsTrade.已平仓,
IsUseDisplayNotional = PS.Config.IsUseDisplayNotional,
showGuohai = PS.Config.Is国海,
isGuoyuan = PS.Config.Company==CompanyEnum.国元固收,
isGuoJun = PS.Config.IsGuoJun,
isGLMS = PS.Config.Company == CompanyEnum.国联
};
}
<style>
#DateValueDate {
width: 152px !important;
font-size: 1rem !important;
}
.bootstrap-select.show-tick .dropdown-menu li a span.text{
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}
#listGrid tr.jqgrow {
height: 25px !important;
}
#listGrid tr.jqgrow > td {
height: 25px !important;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
@section JS{
<script src="~/Scripts/app/tradeHelper.js?v=@HtmlUtil.JsVersion"></script>
<script type="text/javascript">
var page = @Json.Serialize(pageObj);
</script>
<script src="~/Scripts/app/eod/EodPositionRisks.js?v=@HtmlUtil.JsVersion"></script>
}
<div class="searchdiv">
<span> @Html.SearchDate("ValueDate", "结算日期")</span>
@Html.ShortInput("TradeNumber", "交易编号")
@Html.MyAceDropdownInput("ClientId", "交易对手方", ClientDataModel.GetAllOpenClient())
@Html.MyAceDropdownInput("BookId", "簿记账户", AssetunitController.GetClientassetunit())
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
@Html.MyAceDropdownInput("TradeType", "结构类型", GlobalData.GetSelectItems(tradetypes))
<div class="search-group">
<span class="search-label">标的代码</span>
<select class="" data-placeholder="请选择 标的代码" id="UnderlyingId" name="UnderlyingId" multiple></select>
</div>
@Html.MyAceDropdownInput2("EodSettlePriceMode", "标的价格", GlobalData.GetSelectItems(new List<string> { "收盘价", "结算价" }), false, htmlAttributes: new { onchange = "changePriceType()" })
@Html.MyAceDropdownInput2("VolType", "波动率类型", SettlementViewModel.GetVolTypesForEodTradeRisk(), false)
@if(PS.Config.Company==CompanyEnum.国元固收){
@Html.MyAceDropdownInput2("DividendRateType", "定价环境", GlobalData.GetSelectItems(new List<string> { "业务", "采集" },"业务"), false)
}
@Html.MyAceDropdownInput2("IsParentTrade", "期权主交易", GlobalData.GetBoolList(false), false)
@if (CurUser.交易管理_分组设置)
{
@Html.ShortInput("GroupNames", "分组名")
}
@Html.MyAceDropdownInput("TagIds", "标签值", TagController.GetTradeTagList(CurUser))
@MyControls.SearchBtn()
@*<button onclick="exporttrade()" class="btn btn-primary">导出</button>*@
@MyControls.Btn("导出", "downClientRiskMonitor()")
@if (PS.Config.Company == CompanyEnum.天风)
{
<button onclick="exportRiskReport()" class="btn btn-primary">生成场外风控结算单</button>
}
<span style="width: 30px; display: inline;" onclick="showcolumnChooser();return false;">
<img src="~/Images/configure.png" />
</span>
</div>
@Html.Raw(JqGridSimple.OutTable())
<div class="p-3 pb-3 font-weight-bold text-right" id="footSummaryDiv"></div>
<template id="exportRiskReport">
<table class="table table-form mt-4">
<colgroup>
<col span="1" width="90" />
</colgroup>
<tbody>
<tr>
<th><label onselectstart="return false;"><input type="checkbox" id="useRange" onclick="rangeClick();">导出区间</label></th>
<td></td>
</tr>
<tr>
<th>开始日期</th>
<td>
<input type="text" class="form-control datepicker" id="startDate" placeholder="请输入开始日期" disabled autocomplete="off">
</td>
</tr>
<tr>
<th>结束日期</th>
<td>
<input type="text" class="form-control datepicker" id="endDate" placeholder="请输入结束日期" autocomplete="off">
</td>
</tr>
</tbody>
</table>
<div style="padding-left:100px">
<button type="button" class="btn btn-primary" onclick="execExport()">导出</button>
<button type="button" class="btn btn-primary" onclick="layer.closeAll()">取消</button>
</div>
</template>