From ff6ae955c65cbf0a84730abf58d1437412871e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=B9=E6=B5=B7?= Date: Mon, 18 Aug 2025 15:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZheShang/SwapTradeMothReport.cs | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/YLErpDAL/Modules/SuperviseReportModule/ExtendReport/ZheShang/SwapTradeMothReport.cs b/YLErpDAL/Modules/SuperviseReportModule/ExtendReport/ZheShang/SwapTradeMothReport.cs index a3025d88..118f2d62 100644 --- a/YLErpDAL/Modules/SuperviseReportModule/ExtendReport/ZheShang/SwapTradeMothReport.cs +++ b/YLErpDAL/Modules/SuperviseReportModule/ExtendReport/ZheShang/SwapTradeMothReport.cs @@ -80,28 +80,27 @@ namespace YLErp.Modules.SuperviseReportModule.ExtendReport.ZheShang obj.NameOfCounterpartyProduct = ""; // 交易对手产品名称,如果有需要从其他地方获取 obj.TransactionConfirmationNumber = item.ConfrimNo; // 交易确认书编号 var eodSwap= eodSwapList.FirstOrDefault(s => s.SwapTradeId == item.position.SwapTradeId); + // 名义本金/多头名义本金和空头名义本金 obj.NotionalPrincipalAmountL = eodSwap.NotionalValueLong; obj.SNotionalPrincipalAmount = eodSwap.NotionalValueShort; + /** + * 校验规则: + 当选择“场外期权”时,“期权费(非年化)”、“期权标的小类(场外期权填写)” 和“期权类型” 三项必填; + 当选择“收益互换”类型时,“收益互换标的小类(收益互换填写)”必填 + + 11:收益互换(客户多头) + 12:收益互换(客户空头) + 13:多空组合收益互换 + 14:其他收益互换 + 02:场外期权 + */ obj.BusinessType = obj.NotionalPrincipalAmountL>0? "11":"12"; obj.LongPositionContractValue = obj.NotionalPrincipalAmountL > 0? eodSwap.PostionValue:0; obj.ShortPositionContractValue = obj.SNotionalPrincipalAmount > 0 ? eodSwap.PostionValue:0; // 设置维持保证金比例 var maitainMargin = eodSwap.PostionMarginGain+ eodSwap.PostionMarginLoss; var MaitainMarginRation= eodSwap.NotionalValue==0?0: maitainMargin / eodSwap.NotionalValue; - obj.MaitainMarginRation =Math.Round(MaitainMarginRation*100,2,MidpointRounding.AwayFromZero).ToString()+"%"; // 需要从其他地方获取维持保证金比例 - /** - * 校验规则: - 当选择“场外期权”时,“期权费(非年化)”、“期权标的小类(场外期权填写)” 和“期权类型” 三项必填; - 当选择“收益互换”类型时,“收益互换标的小类(收益互换填写)”必填 - - 11:收益互换(客户多头) - 12:收益互换(客户空头) - 13:多空组合收益互换 - 14:其他收益互换 - 02:场外期权 - */ - - // 名义本金/多头名义本金和空头名义本金 + obj.MaitainMarginRation =Math.Round(MaitainMarginRation*100,2,MidpointRounding.AwayFromZero).ToString()+"%"; if (item.position != null) { // 设置起始日和到期日