210 lines
8.2 KiB
Plaintext
210 lines
8.2 KiB
Plaintext
@using EnumHelper = System.Web.Mvc.Html.EnumHelper
|
|
@{
|
|
ViewBag.Title = "财务汇总";
|
|
ViewBag.Menu = "结算财务-财务汇总";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
DateTime now = DateTime.Now;
|
|
var pageObj = new
|
|
{
|
|
CurDate = ViewBag.CurrentDate?.ToString(),
|
|
SummaryType = ViewBag.SummaryType?.ToString(),
|
|
currentPeriodStartDate = ViewBag.CurrentPeriodStart,
|
|
monthFirstDay = ViewBag.MonthFirstDay,
|
|
lastValueDate = ViewBag.LastValueDate,
|
|
IsUseDisplayNotional = PS.Config.IsUseDisplayNotional,
|
|
ViewTagPermission = CurUser.客户管理.客户标签查看权限,
|
|
};
|
|
}
|
|
@section CSS{
|
|
<link rel="stylesheet" href="~/Style/Css/FinancialSummary.css" />
|
|
<link href="~/Style/Css/clientsettag.css?v=@(HtmlUtil.JsVersion)" rel="stylesheet" />
|
|
<style>
|
|
.ui-jqgrid {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.tag-item {
|
|
height: 17px;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.tag-add {
|
|
height: 17px;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.tag-context {
|
|
padding: 0px;
|
|
}
|
|
|
|
.rowBg {
|
|
background-color: #d9e1f2 !important;
|
|
}
|
|
|
|
.rowFont {
|
|
font-weight: 900 !important;
|
|
}
|
|
|
|
.tab-content-GF {
|
|
background-color: #fff;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
border-color: #d3d3d3;
|
|
box-shadow: 0 0 0 .1rem rgba(200,200,200,.5);
|
|
border-radius: 3px 3px;
|
|
/* margin: 0 1rem 0 1rem; */
|
|
padding: 1rem 1rem 1rem 1rem;
|
|
}
|
|
|
|
.nav-financial-summary.nav-pills .nav-link.active {
|
|
background: #e33333;
|
|
}
|
|
|
|
.nav-financial-summary .nav-link {
|
|
background: #4b545c;
|
|
color: #ffffff;
|
|
border-radius: 8px 0 0 8px;
|
|
}
|
|
|
|
.nav-financial-summary .nav-link + .nav-link {
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.nav-financial-summary .nav-link > a:focus {
|
|
background: #4b545c;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
@section JS{
|
|
<script>
|
|
const pageObj = @Json.Serialize(pageObj);
|
|
</script>
|
|
<script src="~/Scripts/app/tradeHelper.js?v=@HtmlUtil.JsVersion"></script>
|
|
<script src="~/Scripts/app/financial/FinancialSummary_GF.js?v=@HtmlUtil.JsVersion"></script>
|
|
}
|
|
|
|
<div>
|
|
<div class="searchdiv">
|
|
|
|
<span title="凭证类型为:
|
|
出入金时,此处日期对出入金发生日期进行过滤
|
|
成交时,此处日期对交易日期进行过滤
|
|
提前终止时,此处日期对终止日期进行过滤
|
|
到期时,此处日期对到期日期进行过滤">@Html.SearchDateRange("FinTradeConfirmDate", "选择日期")</span>
|
|
|
|
@if (PS.Config.Is中粮)
|
|
{
|
|
@Html.MyAceDropdownInput("ZLVoucherType", "凭证类型", EnumHelper.GetSelectList(typeof(FinancialVoucher_YongYouEnum_ZhongLiang)), appendEmptyAll: false, multiple: false)
|
|
}
|
|
else
|
|
{
|
|
@Html.MyAceDropdownInput("VoucherType", "凭证类型", EnumHelper.GetSelectList(typeof(FinancialVoucher_YongYouEnum)), appendEmptyAll: false, multiple: false)
|
|
}
|
|
|
|
|
|
@MyControls.Btn("导出凭证", "OutputFinancialVoucher()")
|
|
|
|
|
|
@if (CurUser.结算管理_财务编码维护)
|
|
{
|
|
|
|
@MyControls.Btn("维护财务编码", "MaintenanceClientCode()")
|
|
}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="searchdiv">
|
|
<div class="first-wrap">
|
|
@Html.SearchDateRange("CurrentPeriodDate", "本期区间")
|
|
<span style="color:red">*</span>
|
|
@Html.MyAceDropdownInput("BookId", "簿记账户", AssetunitController.GetClientassetunit())
|
|
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
|
|
<span class="searchUnit">
|
|
@Html.ShortInput("VarietyCode", "品种代码")
|
|
@Html.ShortInput("VarietyName", "品种名称")
|
|
</span>
|
|
</div>
|
|
<div class="searchTrade">
|
|
<div class="second-wrap hidediv" tag="场外期权 远期/掉期 互换">
|
|
@Html.MyAceDropdownInput("ClientId", "客户名称", ClientDataModel.GetAllClient())
|
|
<span style="visibility:hidden">*</span>
|
|
@Html.ShortInput("TradeNumber", "交易编号")
|
|
@Html.ShortInput("ContractCode", "确认书编号")
|
|
@Html.SearchDateRange("TradeConfirmDate", "交易日期")
|
|
@Html.SearchDateRange("ClearConfirmDate", "了结日期")
|
|
<span style="visibility:hidden">*</span>
|
|
@Html.MyAceDropdownInput2("TradeStatus", "交易状态", GlobalData.GetSelectItems(new List<string> { "", "已完结", "未完结" }), false)
|
|
@if (pageObj.ViewTagPermission)
|
|
{
|
|
@Html.MyAceDropdownInput("ClientTagIds", "客户标签值", TagController.GetTradeTagList(CurUser, YLErp.Enums.TagTypeEnum.Customer))
|
|
}
|
|
@Html.MyAceDropdownInput("TagIds", "标签值", TagController.GetTradeTagList(CurUser))
|
|
</div>
|
|
|
|
@MyControls.SearchBtn()
|
|
@MyControls.Btn("导出汇总列表", "Output('财务汇总')")
|
|
</div>
|
|
<div class="searchUnit">
|
|
<button class="btn btn-primary" onclick="return(SearchClick1(true));"><span class="glyphicon glyphicon-search"></span> 查询</button>
|
|
<button class="btn btn-primary " onclick="OutputUnitGF('财务汇总');return false;" type="button">导出汇总列表</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-auto" style="width:3%">
|
|
<div class="nav flex-column nav-pills nav-financial-summary" role="tablist" aria-orientation="vertical">
|
|
<a id="tradeTab" class="nav-link active" data-toggle="pill" data-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true">交易维度</a>
|
|
|
|
<a id="unitTab" class="nav-link" data-toggle="pill" data-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">簿记维度</a>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col pl-0" style="width:96%">
|
|
<div class="tab-content" style="margin:0 0 0 0;" id="v-pills-tabContent">
|
|
<div class="tab-pane fade show active" id="v-pills-home" style="width:100%" role="tabpanel" aria-labelledby="v-pills-home-tab">
|
|
<ul id="myTab" class="nav nav-tabs nav-main">
|
|
<li class="nav-item">
|
|
<a id="clientTab" class="nav-link" href="javascript:void(0)">场外期权</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="javascript:void(0)">远期/掉期</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="javascript:void(0)">互换</a>
|
|
</li>
|
|
@* <li class="nav-item">
|
|
<a class="nav-link" href="javascript:void(0)">场内期权</a>
|
|
</li>*@
|
|
</ul>
|
|
<div id="riskContent" style="width:100%">
|
|
<div class="searchbtn mx-2" tag="场外期权 远期/掉期 互换">
|
|
@MyControls.Btn("开仓明细", "ShowDetailPage('开仓明细')")
|
|
@MyControls.Btn("持仓明细", "ShowDetailPage('持仓明细')")
|
|
@MyControls.Btn("平仓明细", "ShowDetailPage('平仓明细')")
|
|
</div>
|
|
<form id="formNew" method="get" target="_blank" action="FinancialDetail"></form>
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane fade" id="v-pills-profile" style="width:100%" role="tabpanel" aria-labelledby="v-pills-profile-tab">
|
|
<div id="riskContent1" style="width:100%">
|
|
@Html.Raw(JqGridSimple.OutTable(1))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/html" id="minichooseDate">
|
|
<div class="yc-panel">
|
|
<div class="search-group">
|
|
@Html.SearchDate("preStartDate", "上期日期 ")
|
|
</div>
|
|
<div class="search-group" style="margin-top:10px;">
|
|
@Html.MyAceDropdownInput2("voucherType", "凭证类型 ", GlobalData.GetSelectItems(new List<string> { "场外期权", "远期/掉期", "互换" }), false)
|
|
</div>
|
|
</div>
|
|
</script>
|
|
|