示例#1
0
        /// <summary>
        /// 根据股票代码获取全部的持仓
        /// </summary>
        /// <param name="code">股票代码</param>
        /// <returns>返回对应的持仓</returns>
        private static List <XH_AccountHoldTableInfo> GetAccountHoldListByCode(string code)
        {
            if (String.IsNullOrEmpty(code))
            {
                return(null);
            }

            string where = string.Format("Code = '{0}'", code);
            XH_AccountHoldTableDal dal = new XH_AccountHoldTableDal();

            return(dal.GetListArray(where));
            // return DataRepository.XhAccountHoldTableProvider.Find(where);
        }
示例#2
0
        private static List <XH_AccountHoldTableInfo> GetAccountHoldList(string userID, int currencyType, string code)
        {
            if (String.IsNullOrEmpty(userID))
            {
                return(null);
            }

            string where = string.Format(
                "UserAccountDistributeLogo = '{0}' AND CurrencyTypeId = '{1}' AND Code = '{2}'",
                userID, currencyType, code);
            XH_AccountHoldTableDal dal = new XH_AccountHoldTableDal();

            return(dal.GetListArray(where));
            //return DataRepository.XhAccountHoldTableProvider.Find(where);
        }