Пример #1
0
        public static DataSet GetMakersMatchRankList(int gmid, int topCount)
        {
            bizMakersMatchRank biz = new bizMakersMatchRank();

            MakersMatchRelationQuery model = MakersMatchFacade.GetModel(gmid);

            DataSet ds = new DataSet();

            if (model != null)
            {
                if (model.GmState == 1)
                {
                    if (topCount == 0)
                    {
                        ds = biz.GetMakersMatchRankList(gmid);
                    }
                    else
                    {
                        ds = biz.GetMakersMatchRankList(gmid, topCount);
                    }
                }
                else if (model.GmState == 3)
                {
                    if (topCount == 0)
                    {
                        ds = biz.GetMakersMatchRankHistoryList(gmid);
                    }
                    else
                    {
                        ds = biz.GetMakersMatchRankHistoryList(gmid, topCount);
                    }
                }
            }

            return ds;
        }