From 91680a8f2ff3051cefa0c230b8ccc1b69393d561 Mon Sep 17 00:00:00 2001 From: hjhan Date: Fri, 28 Aug 2026 08:25:35 +0800 Subject: [PATCH] =?UTF-8?q?cleanup:=20=E5=88=A0=E9=99=A4=20=5Fdz=20?= =?UTF-8?q?=E9=93=BE=E6=AD=BB=E8=A7=86=E5=9B=BE=20Structure=5FDZ.cshtml=20?= =?UTF-8?q?=E4=B8=8E=20=5FPricingItemTpl=5Fdz.cshtml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 依据死代码分析报告第一轮零风险清理。 Structure_DZ.cshtml 仅被已删除的 Structure_DZ() Action 使用; _PricingItemTpl_dz.cshtml 仅被 Structure_DZ.cshtml PartialAsync 引用。 单独 revert 本 commit 即可整体找回。 --- YLErpWeb/Views/Pricing/Structure_DZ.cshtml | 910 ------------------ .../Views/Pricing/_PricingItemTpl_dz.cshtml | 905 ----------------- 2 files changed, 1815 deletions(-) delete mode 100644 YLErpWeb/Views/Pricing/Structure_DZ.cshtml delete mode 100644 YLErpWeb/Views/Pricing/_PricingItemTpl_dz.cshtml diff --git a/YLErpWeb/Views/Pricing/Structure_DZ.cshtml b/YLErpWeb/Views/Pricing/Structure_DZ.cshtml deleted file mode 100644 index af6dcf67..00000000 --- a/YLErpWeb/Views/Pricing/Structure_DZ.cshtml +++ /dev/null @@ -1,910 +0,0 @@ -@using Microsoft.AspNetCore.Html -@using YLErp.QdpModule.Constants -@model PricingModel -@{ - ViewBag.Title = "期权定价"; - - if (Model.IsImport) - { - Layout = "~/Views/Shared/_InfoLayout.cshtml"; - } - else - { - Layout = "~/Views/Shared/_MainLayout.cshtml"; - } - var assetunits = JsDataModel.GetAssetUnits(CurUser); - var traders = JsDataModel.GetTraders(assetunits); - var pageObj = new - { - assetunits = assetunits, - trade = new trade() { Strike = 0 }, - traders = JsDataModel.GetTraders(assetunits), - tradeMarginTemplateItems = new tradeController().GetMarginTemplateItems(), - tradeMarginTemplates = new tradeController().GetMarginTemplates(), - engineNames = new[] { "abc", "xyz" }, - structureTypes = ViewBag.StructureTypeMap?.Keys, - PropertyMap = ViewBag.StructureTypeMap, - IsPVIncludePrincipal = PS.Config.ErpElement.IsPVIncludePrincipal - }; - var pageData = new - { - showCCR = PS.Config.Company == CompanyEnum.国海, - is厦门象屿 = PS.Config.Company == CompanyEnum.厦门象屿, - }; -} -@section CSS{ - - @switch (PS.Config.Company) - { - case CompanyEnum.光大光子: - - break; - case CompanyEnum.国泰君安: - - break; - } - -} -@section JS{ - - - - - - - - - - - @if (PS.Config.Company == CompanyEnum.伴兴) - { - - } - else if (PS.Config.Company == CompanyEnum.茂川资本) - { - - } - else if (PS.Config.Company == CompanyEnum.弘业) - { - - } - - - -} - -@await Html.PartialAsync("_CouponDayCount") - -
- - -
-
-
- -
- -
-
- - - - @if (CurUser.交易管理_交易新增) - { - - } - -
- - -
- - - @if (CurUser.交易管理_分组设置) - { - - } -
-
-
-
- -
- -
- - - - - - - - - @**@ - - - - - - - - - - - - - - @**@ - - - - - - - - - - -
对冲手数组合成交金额组合预付金Day1PnlPVDeltaGammaCashThetaVegaRho
- {{DeltaHands}} - @if (Model.HedgingOrder && Model.IsTrader) - { - - } - {{summary.TotalTradePrice| FixNumber}}{{summary.TotalMargin| FixNumber}}{{summary.TotalDay1Pnl| FixNumber}}{{summary.Pv| FixNumber}}{{summary.Delta| FixNumber}}{{summary.GammaCash| FixNumber}}{{summary.Theta| FixNumber}}{{summary.Vega| FixNumber}}{{summary.Rho| FixNumber}}
-
- -
- - -
-
-
-
@(Model.CompanyName) 付 0.000
-
-
组合单价
-
-
-
-
-
-
-
-
-
-
- -
- - - - - -@await Html.PartialAsync("_PricingItemTpl_dz") - - - - - - - - - - - - - - - - - - - - -
- -
- -@await Html.PartialAsync("_SyntheticPrice") -@await Html.PartialAsync("/Views/trade/_part/SalesCommission.cshtml", new SalesCommissionModel() { Disabled = false, ViewType = "期权" }) - - - - diff --git a/YLErpWeb/Views/Pricing/_PricingItemTpl_dz.cshtml b/YLErpWeb/Views/Pricing/_PricingItemTpl_dz.cshtml deleted file mode 100644 index f51a95fd..00000000 --- a/YLErpWeb/Views/Pricing/_PricingItemTpl_dz.cshtml +++ /dev/null @@ -1,905 +0,0 @@ -@*定价模板*@ -@model PricingModel -@{ Layout = null;} - - \ No newline at end of file