/// <summary> /// 根据品种获取最后交易日实体 /// </summary> /// <param name="breedclass"></param> /// <returns></returns> public QH_LastTradingDay GetLastTradingDayEntity(int breedclass) { QH_FuturesTradeRulesDAL FuturesTradeRulesDAL = new QH_FuturesTradeRulesDAL(); QH_LastTradingDayDAL LastTradingDayDAL = new QH_LastTradingDayDAL(); QH_FuturesTradeRules FuturesTradeRules = FuturesTradeRulesDAL.GetModel(breedclass); QH_LastTradingDay LastTradingDay = LastTradingDayDAL.GetModel((int)FuturesTradeRules.LastTradingDayID); return(LastTradingDay); }
/// <summary> /// 根据最后交易日ID,获取最后交易日实体 /// </summary> /// <param name="LastTradingDayID">最后交易日ID</param> /// <returns></returns> public ManagementCenter.Model.QH_LastTradingDay GetQHLastTradingDayModel(int LastTradingDayID) { try { QH_LastTradingDayDAL qHLastTradingDayDAL = new QH_LastTradingDayDAL(); return(qHLastTradingDayDAL.GetModel(LastTradingDayID)); } catch (Exception ex) { string errCode = "GL-6053"; string errMsg = "根据最后交易日ID,获取最后交易日实体失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return(null); } }