- 设置 jqgrid 行高度为 25px - 设置单元格高度为 25px 并调整行高至 20px - 添加文本溢出省略号显示效果 - 统一设置白空间为 nowrap 避免文本换行
132 lines
4.9 KiB
Plaintext
132 lines
4.9 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "互换交易";
|
|
ViewBag.Menu = "交易管理-互换交易";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<style>
|
|
.SwapDateBg {
|
|
background-color: #90EE90 !important;
|
|
}
|
|
|
|
.ExerciseDateBg {
|
|
background-color: #FF6347 !important;
|
|
}
|
|
|
|
.UnwindTradeBg {
|
|
background-color: gray !important;
|
|
}
|
|
|
|
.ChildrenBG {
|
|
background-color: #ADADAD !important;
|
|
}
|
|
|
|
#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>
|
|
var settleDate = "@ViewBag.settleDate";
|
|
var observationDate = "@ViewBag.observationDate";
|
|
|
|
var g_canpingcang = "@CurUser.交易管理_交易平仓" == "True";
|
|
var g_canpingcangfuhe = "@CurUser.交易管理_平仓审核" == "True";
|
|
|
|
var page = {
|
|
systemDate: "@valuedateBLL.ValueDate.ToString("yyyy-MM-dd")",
|
|
company: "@PS.Config.Company",
|
|
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" === "True"
|
|
};
|
|
page.configcolumn_data_hhjyss = "@configcolumn_data.互换交易搜索";
|
|
var settleDate = "@ViewBag.settleDate";
|
|
</script>
|
|
<script src="~/Scripts/app/trade/tradeUpload.js?v=2"></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/swaptrade/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.MyAceDropdownInput("TradeStatus", "交易状态", GlobalData.GetSelectItems(ConsTrade.AllTradeStatus), true)
|
|
@Html.MyAceDropdownInput("AssetId", "簿记账户", AssetunitController.GetClientassetunit())
|
|
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
|
|
@Html.MyAceDropdownInput("TraderName", "交易员", GlobalData.GetAllTrader())
|
|
</div>
|
|
</div>
|
|
<div class="searchdiv">
|
|
<div>
|
|
@if (CurUser.交易管理_交易新增)
|
|
{
|
|
@MyControls.Btn("新增", "startAddtrade()")
|
|
}
|
|
 
|
|
@MyControls.SearchBtn()
|
|
 
|
|
@if (CurUser.交易管理_特批批量确认)
|
|
{
|
|
@MyControls.Btn("批量确认", "confirmAllSelect()")
|
|
}
|
|
<div id="date" style="float:right">
|
|
<div style="width: 30px; display: inline;" onclick="showcolumnChooser();return false;">
|
|
<img src="~/Images/configure.png" />
|
|
</div>
|
|
@Html.SearchDate("ValueDate", "观察日:")
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table">
|
|
|
|
</div>
|
|
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
<form target="_blank" method="post" id="exportForm" action="">
|
|
<input type="hidden" name="" value="" />
|
|
</form>
|
|
|
|
<div id="importEod" style="display:none;">
|
|
<form id="eodUploadForm" method="post" class="yc-panel" onsubmit="return false;" style="padding-bottom:30px;">
|
|
<h4 class="mb-4">互换日终估值导入</h4>
|
|
<div class="mb-4">
|
|
<input type="file" id="openFile" name="file" accept=".xlsx" />
|
|
</div>
|
|
<div class="mb-4">
|
|
<button type="button" class="btn btn-primary" onclick="importEodFile()">导入日终估值</button>
|
|
<a href="/App_Docs/导入模板/互换日终估值导入模板.xlsx" class="btn btn-primary">导入模板下载</a>
|
|
<button type="button" class="btn btn-primary" onclick="importClose()">关闭</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<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>
|