private void OnRspUserLogin(ThostFtdcRspUserLoginField pRspUserLogin, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast) { __DEBUGPF__(); if (bIsLast) { // 保存会话参数 FRONT_ID = pRspUserLogin.FrontID; SESSION_ID = pRspUserLogin.SessionID; QUOTE_REF = "1"; int iNextOrderRef = 0; if (!string.IsNullOrEmpty(pRspUserLogin.MaxOrderRef)) { iNextOrderRef = Convert.ToInt32(pRspUserLogin.MaxOrderRef); } iNextOrderRef++; iOrderRef = iNextOrderRef; ///获取当前交易日 HandleStatusInternal("CTP获取当前交易日 = " + trader.GetTradingDay()); ///投资者结算结果确认 ReqSettlementInfoConfirm(); // 通知登录结果 if (HandleLoginDel != null) { HandleLoginDel(true); } } }