{ "聚源", "人工" };
+ ViewBag.Title = "债券期间付息管理";
+ Layout = "~/Views/Shared/_InfoLayout.cshtml";
+}
+@section CSS {
+
+}
+
+@section JS {
+
+
+}
+
+
+
+
+ @Html.SearchDateRange("ValueDate", "支付日期")
+ @Html.MyAceDropdownInput2("DataSource", "数据来源", GlobalData.GetSelectItems(DataSources))
+ @Html.MyAceDropdownInput2("MarketName", "市场", MarketController.GetAllmarketName())
+ @Html.ShortInput("UnderlyingCode", "标的代码")
+ @MyControls.SearchBtn()
+ @MyControls.Btn("导出", "downloadExcel()")
+
+
+@Html.Raw(JqGridSimple.OutTable())
+
diff --git a/YLErpWeb/Views/BondPayment/BondPaymentView.cshtml b/YLErpWeb/Views/BondPayment/BondPaymentView.cshtml
new file mode 100644
index 00000000..0cbccab8
--- /dev/null
+++ b/YLErpWeb/Views/BondPayment/BondPaymentView.cshtml
@@ -0,0 +1,46 @@
+@model BondPayment
+@{
+ ViewBag.Title = "债券期间付息|查看";
+ Layout = "~/Views/Shared/_InfoLayout.cshtml";
+}
+@section JS {
+
+}
+
+
+ @if (CurUser.结算管理_日终价格修改)
+ {
+ @MyControls.Btn("修改", "window.location.href=('/BondPayment/BondPaymentEdit/?enid=" + Model.EncryptId + "');")
+ }
+ @MyControls.Btn("关闭", "layer.closeMe();")
+
+
+
+
+ @Html.MyDisplayFor(m => m.payment_date, Utilities.ShowValidDatetime(Model.payment_date))
+ @Html.MyDisplayFor(m => m.security_id)
+ @Html.MyDisplayFor(m => m.symbol)
+ @Html.MyDisplayFor(m => m.payment_interest)
+ @Html.MyDisplayFor(m => m.update_time, Utilities.ShowValidDatetime(Model.update_time))
+
+
\ No newline at end of file
diff --git a/YLErpWeb/Views/eod_trade_value/eodExecV2.cshtml b/YLErpWeb/Views/eod_trade_value/eodExecV2.cshtml
index 5a827c72..9423c6cf 100644
--- a/YLErpWeb/Views/eod_trade_value/eodExecV2.cshtml
+++ b/YLErpWeb/Views/eod_trade_value/eodExecV2.cshtml
@@ -122,6 +122,11 @@
{
日终价格管理
}
+ @if (CurUser.结算管理_债券付息数据查看)
+ {
+ 债券付息数据
+ }
+
@if (CurUser.结算管理_结算汇率查看)
{
结算汇率设置
diff --git a/YLErpWeb/Views/underlying_manager/underlying_managerEdit.cshtml b/YLErpWeb/Views/underlying_manager/underlying_managerEdit.cshtml
index e1280475..db4e13a7 100644
--- a/YLErpWeb/Views/underlying_manager/underlying_managerEdit.cshtml
+++ b/YLErpWeb/Views/underlying_manager/underlying_managerEdit.cshtml
@@ -308,6 +308,10 @@
+
+
+
+
diff --git a/YLErpWeb/Views/underlying_manager/underlying_managerView.cshtml b/YLErpWeb/Views/underlying_manager/underlying_managerView.cshtml
index 07953c86..f22e7837 100644
--- a/YLErpWeb/Views/underlying_manager/underlying_managerView.cshtml
+++ b/YLErpWeb/Views/underlying_manager/underlying_managerView.cshtml
@@ -170,6 +170,11 @@
@Html.MyDisplayFor(m => m.Price)
}
+
+
+ | 增值税率 |
+ @(Model.ValueAddedTax.OtcFormatPercent()) |
+
diff --git a/YLErpWeb/YLErpWeb.csproj b/YLErpWeb/YLErpWeb.csproj
index b637f139..228d2de2 100644
--- a/YLErpWeb/YLErpWeb.csproj
+++ b/YLErpWeb/YLErpWeb.csproj
@@ -208,9 +208,15 @@
-
+
+
+
+
+
+
+
diff --git a/YLErpWeb/wwwroot/Scripts/app/bondPayment/bondpaymentList.js b/YLErpWeb/wwwroot/Scripts/app/bondPayment/bondpaymentList.js
new file mode 100644
index 00000000..e51e522b
--- /dev/null
+++ b/YLErpWeb/wwwroot/Scripts/app/bondPayment/bondpaymentList.js
@@ -0,0 +1,89 @@
+$(function () {
+ $("#DateToValueDate").val(curdate)
+ $("#DateFromValueDate").val(curdate)
+ var PostData = { ValueDateEnd: curdate, ValueDateStart: curdate };
+ $(".datepicker").datepicker({ changeMonth: true, changeYear: true, showButtonPanel: true, showOtherMonths: true, selectOtherMonths: true });
+ var grid = jQuery('#listGrid').jqGrid({
+ url: '/BondPayment/BondPaymentQuery',
+ datatype: 'json',
+ height: 'auto',
+ width: '100%',
+ autowidth: false,
+ shrinkToFit: false,
+ viewrecords: true,
+ jsonReader: { repeatitems: false },
+ cmTemplate: { align: 'center', width: 120 },
+ mtype: 'POST',
+ postData: PostData,
+ colModel: colModelGrid,
+ pager: jQuery('#pagerGrid'),
+ pagerpos: 'left',
+ rowNum: 20,
+ rowList: [20, 30, 50, 200, 10000],
+ footerrow: false
+ });
+ function keyEnter(event) {
+ try {
+ var e = event ? event : (window.event ? window.event : null);
+ (e.keyCode == 13) && SearchClick(true);
+ } catch (e) { }
+ }
+ document.onkeydown = keyEnter;
+});
+
+var colModelGrid = [{
+ name: '', label: '操作', index: '', width: 120, formatter: showToolName
+}, {
+ name: 'payment_date', label: '支付日期', index: 'payment_date', width: 120, formatter: 'date'
+}, {
+ name: 'MarketName', label: '市场', index: 'MarketName', width: 200
+}, {
+ name: 'security_id', label: '债券代码', index: 'security_id', width: 150
+}, {
+ name: 'symbol', label: '债券名称', index: 'symbol', width: 200
+}, {
+ name: 'payment_interest', label: '支付利息', index: 'payment_interest', width: 100
+},
+{
+ name: 'update_time', label: '更新时间', index: 'update_time', width: 160, formatter: 'datetime'
+}, {
+ name: 'channel_source', label: '数据来源', index: 'channel_source', sortable: false, width: 120
+}];
+
+function showToolName(cellValue, options, rowObject) {
+ return "".template(rowObject.EncryptId, "查看");
+}
+
+function startView(id) {
+ var srcurl = "/BondPayment/BondPaymentView/?enid=" + id;
+ main.open("查看债券期间付息", srcurl, { area: ['800px', '600px'] });
+}
+
+function SearchClick(isSearchclick) {
+ var listGrid = $('#listGrid');
+ listGrid.appendPostData({ UnderlyingCode: $("#UnderlyingCode").val() });
+ listGrid.appendPostData({ MarketName: $("#MarketName").val() });
+ listGrid.appendPostData({ ValueDateStart: $("#DateFromValueDate").val() });
+ listGrid.appendPostData({ ValueDateEnd: $("#DateToValueDate").val() });
+ listGrid.appendPostData({ DataSource: $("#DataSource").val() });
+ if (isSearchclick) {
+ //点击搜索时默认第一页
+ listGrid.jqGrid('setGridParam', { page: 1 });
+ }
+ listGrid.trigger('reloadGrid');
+}
+
+
+function reloadData() {
+ SearchClick(false);
+}
+
+function downloadExcel() {
+ var dateTemp = new Date().Format("yyyyMMdd");
+ var fileName = "债券期间付息" + dateTemp;
+ var formatters = _.map(['市场', '债券代码', '债券名称', '支付利息']
+ , x => new Object({ colName: x, formatter: "text" }));
+ formatters.push(_.map(['支付日期', '更新时间']
+ , x => new Object({ colName: x, formatter: "datetime" })));
+ main.toExcel("listGrid", fileName, "xls", null, "操作", formatters)
+}
\ No newline at end of file
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js
index 50afd3f3..fe235911 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/unwindSwapTrade.js
@@ -51,6 +51,7 @@ const vue = new Vue({
});
this.ratio = this.floatPosition.PayDirection == 1 ? -1 : 1;
this.shortRatio = this.floatPosition.PositionType == 1 ? 1 : -1;
+ this.TradeStartDate = model.TradeStartDate;
},
IsBond(instType) {
return tradeHelper.IsBond(instType);
@@ -262,6 +263,20 @@ const vue = new Vue({
});
thisObj.calcCloseAmount();
thisObj.dataFormat();
+ thisObj.getDivindIn();
+ });
+ },
+ getDivindIn() {
+ var thisObj = this;
+ let ratio = this.floatPosition.PositionType == 1 ? 1 : -1;
+ let floatRatio = this.floatPosition.PayDirection == 1 ? 1 : -1;
+ var postData = { startDate: thisObj.TradeStartDate, endDate: thisObj.deal.UnwindDate, underlyingCode: thisObj.floatPosition.UnderlyingCode }
+ main.post("/BondPayment/GetBondPayMentInterest", postData, { async: false }).done(function (resp) {
+ thisObj.floatPosition.DividendIn = parseFloat(thisObj.deal.CloseQty) * resp.obj * ratio * floatRatio;
+ var posiQty = parseFloat(thisObj.floatPosition.Quantity) - parseFloat(thisObj.deal.CloseQty);
+ thisObj.floatPosition.DividendPending = posiQty * resp.obj * ratio * floatRatio;
+ thisObj.calcFloatClosePnl();
+ thisObj.dataFormat();
});
},
closeTrade() {//平仓