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

74 lines
3.2 KiB
Plaintext

@{
ViewBag.Title = "实时持仓风险";
Layout = "~/Views/Shared/_MainLayout.cshtml";
var settleConfig = PS.Config.GetSettlementConfig();
var tradetypes = ConsTrade.AllTradeTypes.Where(n => n != "收益互换" && n != "远期" && n != "掉期" && n != "现金流交易").ToArray().Concat(new string[] { "黑箱结构" });
var pageObj = new
{
isPvRounded = PS.Config.IsPVRounded,
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.国元固收,
};
}
<style>
#DateValueDate {
width: 152px !important;
font-size: 1rem !important;
}
</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/realtimePositionRisks.js?v=@HtmlUtil.JsVersion"></script>
}
<div class="searchdiv">
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
@Html.MyAceDropdownInput("BookId", "簿记账户", AssetunitController.GetClientassetunit())
@Html.MyAceDropdownInput("TraderId", "交易员", GlobalData.GetAllTrader())
@Html.MyAceDropdownInput("ClientId", "对手方", ClientDataModel.GetAllOpenClient())
@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.ShortInput("TradeNumber", "交易编号")
@Html.MyAceDropdownInput2("VolType", "波动率类型", SettlementViewModel.GetVolTypesForRealTimeRisk(), false,"持仓")
@Html.MyAceDropdownInput2("IsParentTrade", "期权主交易", GlobalData.GetBoolList(false), false)
@if (CurUser.交易管理_分组设置)
{
@Html.ShortInput("GroupNames", "分组名")
}
@Html.MyAceDropdownInput("TagIds", "标签值", TagController.GetTradeTagList(CurUser))
@MyControls.Btn("导出", "execExport()")
@MyControls.Btn("刷新", "SearchClick(true)")
<span style="width: 30px; display: inline;" onclick="showcolumnChooser();return false;">
<img src="~/Images/configure.png" />
</span>
<div class="col-auto" style="padding-top:6px;padding-bottom:6px;display:flex;justify-content:flex-end;">
<div class="d-flex align-items-end h-100">
<div id="showTimestamp" class="font-weight-bold" style="font-size:.85rem"></div>
</div>
</div>
</div>
@Html.Raw(JqGridSimple.OutTable())
<div class="p-3 pb-3 font-weight-bold text-right" id="footSummaryDiv"></div>