180 lines
7.0 KiB
Plaintext
180 lines
7.0 KiB
Plaintext
@{
|
|
ViewBag.Title = "互换交易";
|
|
ViewBag.Menu = "交易管理-互换交易";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
var pageObj = new
|
|
{
|
|
systemDate = valuedateBLL.ValueDate.ToString("yyyy-MM-dd"),
|
|
company = PS.Config.Company.ToString(),
|
|
trade_yizhixing = ConsTrade.已执行,
|
|
trade_yidaoqi = ConsTrade.已到期,
|
|
trade_yipingcang = ConsTrade.已平仓,
|
|
trade_querenchengjiao = @ConsTrade.确认成交,
|
|
trade_pingcangdaifuhe = @ConsTrade.平仓待复核,
|
|
trade_xingquandaifuhe = ConsTrade.行权待复核,
|
|
trade_tiqianzhongzhi = ConsTrade.提前终止拒绝,
|
|
AllTradeStatus = string.Join(",", ConsTrade.AllTradeStatus),
|
|
IsUseDisplayNotional = PS.Config.IsUseDisplayNotional,
|
|
ViewTagPermission = CurUser.交易管理_交易标签查看权限
|
|
};
|
|
}
|
|
@section CSS{
|
|
<link href="~/Style/Css/settag.css?v=@(HtmlUtil.JsVersion)" rel="stylesheet" />
|
|
<style>
|
|
.SwapDateBg { background-color: #90EE90 !important; }
|
|
|
|
.ExerciseDateBg { background-color: #FF6347 !important; }
|
|
|
|
.UnwindTradeBg { background-color: gray !important; }
|
|
|
|
.ChildrenBG { background-color: #ADADAD !important; }
|
|
.tag-item { height: 17px; line-height: 14px; }
|
|
|
|
.tag-add { height: 17px; line-height: 14px; }
|
|
|
|
.tag-context { padding: 0px; }
|
|
.bootstrap-select.show-tick .dropdown-menu li a span.text{
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
</style>
|
|
}
|
|
@section JS{
|
|
<script>
|
|
var observationDate = "@ViewBag.observationDate";
|
|
|
|
var g_canpingcang = "@CurUser.交易管理_交易平仓" == "True";
|
|
var g_canpingcangfuhe = "@CurUser.交易管理_平仓审核" == "True";
|
|
var isguojun = "@PS.Config.IsGuoJun" == "True";
|
|
|
|
const page = @Json.Serialize(pageObj);
|
|
page.configcolumn_data_hhjyss = "@configcolumn_data.互换交易搜索";
|
|
var settleDate = "@ViewBag.settleDate";
|
|
</script>
|
|
<script src="~/Scripts/app/tradeHelper.js?v=@HtmlUtil.JsVersion"></script>
|
|
<script src="~/Statics/libs/export/excellentexport.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
<script src="~/Scripts/app/trade/swapTradeList.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
|
|
}
|
|
|
|
<div class="searchdiv">
|
|
<div class="first-wrap-gtja">
|
|
@Html.ShortInput("TradeNumber", "交易编号")
|
|
@Html.MyAceDropdownInput("ClientId", "客户名称", ClientDataModel.GetAllClient())
|
|
@Html.SearchDateRange("TradeDate", "交易日期")
|
|
@Html.SearchDateRange("ExerciseDate", "到期日期")
|
|
@Html.SearchDateRange("SettlementDate", "结算日期")
|
|
@Html.MyAceDropdownInput("SettlementFlag", "延期结算", GlobalData.GetYesList())
|
|
<div class="search-group">
|
|
<span class="search-label">标的代码</span>
|
|
<select class="" data-placeholder="请选择 标的代码" id="UnderlyingId" name="UnderlyingId" multiple></select>
|
|
</div>
|
|
@Html.MyAceDropdownInput("TradeStatus", "交易状态", GlobalData.GetSelectItems(ConsTrade.AllTradeStatus), false)
|
|
@Html.MyAceDropdownInput("AssetId", "簿记账户", AssetunitController.GetClientassetunit())
|
|
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem(), false)
|
|
@Html.MyAceDropdownInput("TraderName", "交易员", GlobalData.GetAllTrader())
|
|
@Html.MyAceDropdownInput("TagIds", "标签值", TagController.GetTradeTagList(CurUser))
|
|
</div>
|
|
</div>
|
|
<div class="searchdiv">
|
|
<div>
|
|
@if (CurUser.交易管理_交易新增 && !PS.Config.IsGuoJun)
|
|
{
|
|
@MyControls.Btn("新增", "startAddtrade()")
|
|
}
|
|
 
|
|
@MyControls.SearchBtn()
|
|
@if (CurUser.交易管理_交易搜索 && !PS.Config.IsGuoJun)
|
|
{
|
|
@MyControls.Btn("今日交易", "openTradeConfirmList()")
|
|
}
|
|
 
|
|
@if (CurUser.交易管理_特批批量确认 && !PS.Config.IsGuoJun)
|
|
{
|
|
@MyControls.Btn("批量确认", "confirmAllSelect()")
|
|
}
|
|
@if (YLErp.PS.Config.ClientElement.InterfaceApprovalMode > 0 && CurUser.风险控制_接口审批列表)
|
|
{
|
|
@MyControls.Btn("匹配审批", "approvalList()")
|
|
}
|
|
@if (CurUser.交易管理_交易流水查看)
|
|
{
|
|
@MyControls.Btn("交易流水", "openTradeFlowList()")
|
|
}
|
|
@if (PS.Config.Company == CompanyEnum.中金)
|
|
{
|
|
if (CurUser.交易管理_交易导出)
|
|
{
|
|
<button onclick="exportUnwindSwapTrade()" class="btn btn-primary">导出平仓记录</button>
|
|
}
|
|
@MyControls.Btn("开仓数据导出", "downloadOpenInfo()")
|
|
@MyControls.Btn("南向流水全量", "downloadFlowInfo()")
|
|
}
|
|
@if (CurUser.交易管理_交易导入 && !PS.Config.IsGuoJun)
|
|
{
|
|
if (CurUser.交易管理_交易流水修改 && !PS.Config.IsGuoJun)
|
|
{
|
|
@MyControls.Btn("导入流水", "uploadTrade()")
|
|
}
|
|
else
|
|
{
|
|
@MyControls.Btn("导入", "importTrade(\"\")")
|
|
@*if (CurUser.交易管理_交易流水修改)
|
|
{
|
|
@MyControls.Btn("导入多空互换流水", "uploadTradeFlowGroup()")
|
|
}*@
|
|
}
|
|
}
|
|
@if (CurUser.交易管理_交易导出)
|
|
{
|
|
@MyControls.Btn("导出", "exportTradeChoose()")
|
|
}
|
|
|
|
<div style="width: 30px; display: inline;" onclick="showcolumnChooser();return false;">
|
|
<img src="~/Images/configure.png" />
|
|
</div>
|
|
@if (CurUser.交易管理_交易标签调整权限)
|
|
{
|
|
<div class="batch-tag" onclick="BatchSetTradeTag();" style="float:none;margin-left:10px;">
|
|
<img src="~/Images/tag.jpg" /><span>标记</span>
|
|
</div>
|
|
}
|
|
|
|
<div id="date" style="float:right">
|
|
@Html.SearchDate("ValueDate", "观察日:")
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if (PS.Config.IsGuoJun)
|
|
{
|
|
<div class="tabbable">
|
|
<ul id="myTab" class="nav-main">
|
|
<li class='active'>
|
|
<a href="/SwapTrade/tradeList">互换成交记录</a>
|
|
</li>
|
|
<li>
|
|
<a href="/SwapTrade/MultiCloseList">互换了结记录</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="table">
|
|
</div>
|
|
}
|
|
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
<form target="_blank" method="post" id="exportForm" action="">
|
|
<input type="hidden" name="" value="" />
|
|
</form>
|
|
|
|
|
|
<script type="text/html" id="exportTpl">
|
|
<div style="padding:20px">
|
|
<p><input class="btn btn-primary " type="button" onclick="previewTradeAbstract();return false;" value="交易简讯"></p>
|
|
<p><input class="btn btn-primary " type="button" onclick="exportTrade();return false;" value="导出当前字段"><span class="text-muted small">上限10000条</span></p>
|
|
</div>
|
|
</script> |