cleanup: 删除 PricingController 中无人使用的 Structure_DZ 死 Action 及 StructureImport 润和死分支
依据 outputs/zszq-trs-pricing-structure-dz-死代码分析报告.md 第一轮零风险清理。 国联分支下 Is润和 恒为 false,Structure_DZ 无任何菜单/代码入口。 单独 revert 本 commit 即可整体找回。
This commit is contained in:
@@ -85,54 +85,6 @@ namespace YLErp.Web.Controllers
|
||||
return View(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组合报价
|
||||
/// </summary>
|
||||
[MyAuthorize("报价管理-结构化交易定价")]
|
||||
public ActionResult Structure_DZ()
|
||||
{
|
||||
var otcTrade = new OtcOptionTradeFull()
|
||||
{
|
||||
TraderId = CurUser.UserId,
|
||||
TraderName = CurUser.UserName,
|
||||
BuySell = "卖出",
|
||||
VolType = "交易",
|
||||
TradeType = "香草期权",
|
||||
OptionType = "看涨",
|
||||
ExerciseMode = "European",
|
||||
TradeDate = valuedateBLL.ValueDate,
|
||||
UnderlyingInstrumentType = AppHelper.OtcConfig.StockFirst ? "Stock" : "CommodityFutures",
|
||||
SettlementType = (int)SettlementTypeEnum.ClosePrice,
|
||||
NoRiskRate = valuedateBLL.SystemDate.RiskFreeRate / 100,
|
||||
ParticipationRate = 1,
|
||||
AnnualizeFactor = 1,
|
||||
MarginTemplateName = "系统默认",
|
||||
CouponIncludeStartDate = false,
|
||||
CouponUsePaymentDate = false
|
||||
};
|
||||
|
||||
var model = new Models.PricingModel(CurUser, UserBLL.IsTradeOfCurrentLogin(CurUser.UserId)) { Trade = otcTrade };
|
||||
|
||||
if (model.NumOfSmoothingDaysCfg == "ONE")
|
||||
{
|
||||
model.Trade.NumOfSmoothingDays = 1;
|
||||
}
|
||||
//获取自定义结构信息
|
||||
var structureTypes =
|
||||
new StructureService(CurUser)
|
||||
.QueryStructureMap(StructureRangeEnum.BALCK_TRADE);
|
||||
var structureTypeMap = new Dictionary<string, List<Structure_Details>>() {
|
||||
{ "气囊结构",new List<Structure_Details>() }
|
||||
};
|
||||
foreach (var item in structureTypes)
|
||||
{
|
||||
structureTypeMap[item.Key] = item.Value;
|
||||
}
|
||||
ViewBag.StructureTypeMap = structureTypeMap;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组合报价导入
|
||||
/// </summary>
|
||||
@@ -198,11 +150,6 @@ namespace YLErp.Web.Controllers
|
||||
ViewBag.ExtendInfoMap[item.Key] = item.Value;
|
||||
}
|
||||
|
||||
if (PS.Config.Is润和)
|
||||
{
|
||||
return View(nameof(Structure_DZ), model);
|
||||
}
|
||||
|
||||
return View(nameof(Structure), model);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user