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

89 lines
4.0 KiB
Plaintext

@{
ViewBag.Title = "日终持仓风险";
Layout = "~/Views/Shared/_MainLayout.cshtml";
var pageObj = new
{
valueDate_eod = ViewBag.lastDate_eod.ToString("yyyy-MM-dd"),
valueDate_settle = ViewBag.lastDate_settle.ToString("yyyy-MM-dd"),
calcDate = YLErp.BLL.Eod.EodOperationBase.GetLastSettlementDate(valuedateBLL.ValueDate).ToString("yyyy-MM-dd"),
configcolumn_data = configcolumn_data.互换日终持仓风险,
isPvRounded = PS.Config.IsPVRounded,
IsUseDisplayNotional = PS.Config.IsUseDisplayNotional,
showGuohai = PS.Config.Is国海,
};
}
<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/EodPositionRisks_Swap.js?v=@HtmlUtil.JsVersion"></script>
}
<fieldset id="fieldsetgbox_listGrid">
<div class="searchdiv">
<span> @Html.SearchDate("ValueDate", "查看日期")</span>
@Html.ShortInput("TradeNumber", "交易编号")
@Html.MyAceDropdownInput("BookId", "簿记账户", AssetunitController.GetClientassetunit())
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
<div class="search-group">
<span class="search-label">标的代码</span>
<select class="" data-placeholder="请选择 标的代码" id="UnderlyingId" name="UnderlyingId" multiple></select>
</div>
@Html.MyAceDropdownInput("ClientId", "交易对手方", ClientDataModel.GetAllOpenClient())
@Html.MyAceDropdownInput2("EodSettlePriceMode", "标的价格", GlobalData.GetSelectItems(new List<string> { "收盘价", "结算价" }), false, htmlAttributes: new { onchange = "changePriceType()" })
@*@Html.MyAceDropdownInput2("VolType", "波动率类型", GlobalData.GetSelectItems(YLErp.QdpModule.Constants.ConsVolInfos.VolTypesForEodTradeRisk), false)*@
@Html.SearchDateRange("SettlementDate", "结算日期")
@Html.MyAceDropdownInput("SettlementFlag", "延期结算", GlobalData.GetYesList())
@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())
</fieldset>
<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>