private bool Rescue_XHBuy_InstantReckon_HoldingProcess(BD_RescueTableInfo ro) { int holdingAccountId = int.Parse(ro.Value1); XHDealSum dealSum = new XHDealSum(); dealSum.AmountSum = decimal.Parse(ro.Value2); dealSum.CapitalSum = decimal.Parse(ro.Value3); dealSum.CostSum = decimal.Parse(ro.Value4); int holdingTradingRule = int.Parse(ro.Value5); return(Rescue_XHBuy_InstantReckon_HoldingProcess(holdingAccountId, dealSum, holdingTradingRule)); }
/// <summary> /// 记录必须执行的现货买清算-持仓操作 /// </summary> /// <param name="holdingAccountId">持仓id</param> /// <param name="dealSum">成交汇总</param> /// <param name="holdingTradingRule">持仓交割制度</param> public void Record_XHBuy_InstantReckon_HoldingProcess(int holdingAccountId, XHDealSum dealSum, int holdingTradingRule) { RescueType type = RescueType.XHBuyHoldingProcess; BD_RescueTableInfo ro = new BD_RescueTableInfo(); ro.Type = (int)type; ro.Value1 = holdingAccountId.ToString(); ro.Value2 = dealSum.AmountSum.ToString(); ro.Value3 = dealSum.CapitalSum.ToString(); ro.Value4 = dealSum.CostSum.ToString(); ro.Value5 = holdingTradingRule.ToString(); WriteResuceObject(ro); }
/// <summary> /// 执行现货买清算-持仓操作 /// </summary> /// <param name="holdingAccountId">持仓id</param> /// <param name="dealSum">成交汇总</param> /// <param name="holdingTradingRule">持仓交割制度</param> private bool Rescue_XHBuy_InstantReckon_HoldingProcess(int holdingAccountId, XHDealSum dealSum, int holdingTradingRule) { return(XHReckonUnit.DoXHBuy_HoldingRescue(holdingAccountId, dealSum, holdingTradingRule)); }