@@ -384,7 +385,8 @@ namespace YLErp.Modules.SwapModule
OptTime = DateTime.Now,
OptId = UserInfo.UserId,
OptName = UserInfo.UserName,
- UnderlyingInstrumentType = underlying.UnderlyingInstrumentType
+ UnderlyingInstrumentType = underlying.UnderlyingInstrumentType,
+ InitYtm = flowMerge.InitYtm ?? 0
};
td.swap_positions.Add(floatPosition);
swap_position interestPosition = new swap_position()
diff --git a/YLErpWeb/Hubs/SwapFlowCombookingHub.cs b/YLErpWeb/Hubs/SwapFlowCombookingHub.cs
index 3183b55b..ed506b2a 100644
--- a/YLErpWeb/Hubs/SwapFlowCombookingHub.cs
+++ b/YLErpWeb/Hubs/SwapFlowCombookingHub.cs
@@ -57,7 +57,7 @@ namespace YLErp.Web.Hubs
}
currentStep = "正在合成流水";
await client.SendAsync("ReceiveMessage", currentStep);
- var mergeList = service.SummaryFlow(swapFlows);
+ var mergeList = await service.SummaryFlow(swapFlows, req.tradeDate);
// 数据校验逻辑
currentStep = "校验上一日是否收盘";
await client.SendAsync("ReceiveMessage", currentStep);
diff --git a/YLErpWeb/Views/SwapTrade2/TradeView.cshtml b/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
index 037ecd37..03c2ce3d 100644
--- a/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
+++ b/YLErpWeb/Views/SwapTrade2/TradeView.cshtml
@@ -24,6 +24,7 @@
bool isBond = trade.StructureType == "普通债券类收益互换";
string spotPriceTitle = "期初标的交割全价%";
string netSportPriceTitle = "期初标的交割净价%";
+ string initYtmTitle = "期初标的成交收益率%";
var positions = trade.swap_positions.Where(x=>x.PosiDirection>0&&x.IsInitial).ToList();
var realPositions = trade.swap_positions.Where(x => x.PosiDirection > 0 && !x.IsInitial).ToList();
var sr = trade.trade_extend.ExtendObj.SettlementRules;
@@ -364,6 +365,7 @@
| 标的代码 |
@spotPriceTitle |
@netSportPriceTitle |
+ @initYtmTitle |
数量 |
交易费用后付 |
@@ -381,6 +383,9 @@
@(((item.PosiNetNoFeePrice ?? 0) * multiplier).OtcFormat(OtcFormatFlag.umprice))
|
+
+ @(((item.PosiNetNoFeePrice ?? 0) * multiplier).OtcFormat(OtcFormatFlag.umprice))
+ |
@item.PosiQuantity.OtcFormat(OtcFormatFlag.StockEqvNotional)
|
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_EodPosition.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_EodPosition.js
index 9d9142df..bf7e2f0f 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_EodPosition.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_EodPosition.js
@@ -257,6 +257,15 @@ var colModelGrid = [
sortable: false,
formatter: PriceFormat
}, {
+ name: 'position.InitYtm',
+ label: '期初标的成交收益率',
+ index: 'position.InitYtm',
+ width: 100,
+ align: 'center',
+ sortable: false,
+ formatter: otcformat.trading.premiumRateP
+ },
+ {
name: 'position.UnderlyingPrice',
label: '期末标的交割全价',
index: 'position.UnderlyingPrice',
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_HistoricalPositionSwapFlow.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_HistoricalPositionSwapFlow.js
index 2bf64007..4e86d688 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_HistoricalPositionSwapFlow.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/TradeMarketReport_HistoricalPositionSwapFlow.js
@@ -225,6 +225,14 @@ var colModelGrid = [
align: 'center',
formatter: PriceFormat
}, {
+ name: 'FlowEvent.InitYtm',
+ label: '成交收益率',
+ index: 'FlowEvent.InitYtm',
+ width: 90,
+ align: 'center',
+ formatter: otcformat.trading.premiumRateP
+ },
+ {
name: 'FlowEvent.Quantity',
label: '成交数量',
index: 'FlowEvent.Quantity',
diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
index 50071c79..1838596e 100644
--- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
+++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/eventlist.js
@@ -190,6 +190,13 @@ var getColModelGrid = function () {
align: 'center',
formatter: otcformat.trading.umprice
}, {
+ name: 'InitYtm',
+ label: '成交收益率',
+ width: 90,
+ align: 'center',
+ formatter: otcformat.trading.premiumRateP
+ },
+ {
name: 'TradingAmountNetFeeAvg',
label: '成交净价(含费)',
width: 90,