/// <summary>期货资金情况查询 /// 期货资金情况查询 包含盈亏相关信息在内 /// </summary> /// <param name="userId"></param> /// <param name="accountType">账号类型(注:这是账户类型不是类别,这里是有九种类型,而类别是五种)</param> /// <param name="currencyType"></param> /// <param name="userPassword"></param> /// <param name="strErrorMessage"></param> /// <returns></returns> public FuturesCapitalEntity PagingQueryFuturesCapital(string userId, int accountType, Types.CurrencyType currencyType, string userPassword, ref string strErrorMessage) { #region old code //AccountPair _AccountPair = CommonDataAgent.GeyAccountPair(userId, accountType, 0, ref userPassword); //strErrorMessage = userPassword; //if (_AccountPair == null) return null; //FuturesCapitalEntity result = null; //var aa = new CapitalAndHoldFindBLL(); //result = aa.FuturesCapitalFind(_AccountPair.CapitalAccount.UserAccountDistributeLogo, currencyType, userPassword, ref strErrorMessage); //return result; #endregion AccountManager am = AccountManager.Instance; UA_UserAccountAllocationTableInfo userAccountInfo = am.GetAccountByUserIDAndAccountType(userId, accountType); UA_UserBasicInformationTableInfo userInfo = am.GetBasicUserByUserId(userId); if (userAccountInfo == null || userInfo == null) { strErrorMessage = "交易员对应类型的帐号不存在"; return(null); } if (userInfo.Password != userPassword) { strErrorMessage = "交易员密码错误"; return(null); } FuturesCapitalEntity result = null; var aa = new CapitalAndHoldFindBLL(); result = aa.FuturesCapitalFind(userAccountInfo.UserAccountDistributeLogo, currencyType, userPassword, ref strErrorMessage); return(result); }
/// <summary> /// 期货持仓查询 (根据交易员、密码及查询条件来查询) 包含盈亏 /// </summary> /// <param name="userId">交易员</param> /// <param name="accountType">账号类型(注:这是账户类型不是类别,这里是有九种类型,而类别是五种)</param> /// <param name="strPassword">交易员密码</param> /// <param name="findCondition">查询条件实体对象</param> /// <param name="start">记录集页索引</param> /// <param name="pageLength">页长</param> /// <param name="count">查到的记录数</param> /// <param name="strErrorMessage"></param> /// <returns></returns> public List <FuturesHoldFindResultEntity> PagingQueryFuturesHold(string userId, int accountType, string userPassword, FuturesHoldConditionFindEntity findCondition, int start, int pageLength, out int count, ref string strErrorMessage) { #region old code //AccountPair _AccountPair = CommonDataAgent.GeyAccountPair(userId, accountType, 0, ref userPassword); //strErrorMessage = userPassword; //if (_AccountPair == null) //{ // count = 0; // return null; //} //var result = new List<FuturesHoldFindResultEntity>(); //count = 0; //var aa = new CapitalAndHoldFindBLL(); //result = aa.FuturesHoldFind(_AccountPair.CapitalAccount.UserAccountDistributeLogo, userPassword, findCondition, start, pageLength, out count, ref strErrorMessage); //return result; #endregion count = 0; AccountManager am = AccountManager.Instance; UA_UserAccountAllocationTableInfo userAccountInfo = am.GetAccountByUserIDAndAccountType(userId, accountType); UA_UserBasicInformationTableInfo userInfo = am.GetBasicUserByUserId(userId); if (userAccountInfo == null || userInfo == null) { strErrorMessage = "交易员对应类型的帐号不存在"; return(null); } if (userInfo.Password != userPassword) { strErrorMessage = "交易员密码错误"; return(null); } var result = new List <FuturesHoldFindResultEntity>(); var aa = new CapitalAndHoldFindBLL(); result = aa.FuturesHoldFind(userAccountInfo.UserAccountDistributeLogo, userPassword, findCondition, start, pageLength, out count, ref strErrorMessage); return(result); }