Esempio n. 1
0
        public ResFootMatchBase <string> GetAllMatchOrOdds()
        {
            var list = new ResFootMatchBase <string>();

            list.dayRaceVoList = new List <dayRaceVoList <string> >();
            list.l_cnlist      = new List <string>();
            foreach (ResWinOrLose item in (_baseDal as FootballMatchDal).Getl_cnList())
            {
                list.l_cnlist.Add(item.l_cn_abbr);
            }
            foreach (ResMatchOrOdds item in (_baseDal as FootballMatchDal).GetAllMatchOrOdds())
            {
                string strdate = "";
                var    day     = new dayRaceVoList <string>();
                day.raceVoList = new List <raceVoList <string> >();
                var race = new raceVoList <string>();
                // race.winorloseOdds = new Odds();
                race.hadodds   = new hadodds();
                race.hhadodds  = new hhadodds();
                race.totalOdds = new TotalGoals();
                race.scoreOdds = new MatchScore();
                race.halfOdds  = new HalfCourtNegative();
                for (int i = 0; i < list.dayRaceVoList.Count(); i++)
                {
                    if (item.date == list.dayRaceVoList[i].date)
                    {
                        race.id          = item.id;
                        race.num         = item.num;
                        race.date        = item.date;
                        race.time        = item.time;
                        race.h_cn_abbr   = item.h_cn_abbr;
                        race.a_cn_abbr   = item.a_cn_abbr;
                        race.h_order     = item.h_order;
                        race.a_order     = item.a_order;
                        race.weather     = item.weather;
                        race.temperature = item.temperature;
                        race.weather_pic = item.weather_pic;
                        race.l_cn        = item.l_cn;
                        race.l_cn_abbr   = item.l_cn_abbr;

                        race.hadodds.a          = item.a;
                        race.hadodds.d          = item.d;
                        race.hadodds.h          = item.h;
                        race.hhadodds.a         = item.b;
                        race.hhadodds.d         = item.e;
                        race.hhadodds.h         = item.i;
                        race.hadodds.o_type     = item.o_type;
                        race.hadodds.single     = item.single;
                        race.hadodds.fixedodds  = item.fixedodds;
                        race.hhadodds.o_type    = item.ro_type;
                        race.hhadodds.single    = item.rsingle;
                        race.hhadodds.fixedodds = item.rfixedodds;

                        race.totalOdds.s0        = item.ss0;
                        race.totalOdds.s1        = item.ss1;
                        race.totalOdds.s2        = item.ss2;
                        race.totalOdds.s3        = item.ss3;
                        race.totalOdds.s4        = item.ss4;
                        race.totalOdds.s5        = item.ss5;
                        race.totalOdds.s6        = item.ss6;
                        race.totalOdds.s7        = item.ss7;
                        race.totalOdds.o_type    = item.co_type;
                        race.totalOdds.single    = item.csingle;
                        race.totalOdds.fixedodds = item.cfixedodds;

                        race.scoreOdds.s1        = item.s1;
                        race.scoreOdds.s2        = item.s2;
                        race.scoreOdds.s3        = item.s3;
                        race.scoreOdds.s4        = item.s4;
                        race.scoreOdds.s5        = item.s5;
                        race.scoreOdds.s6        = item.s6;
                        race.scoreOdds.s7        = item.s7;
                        race.scoreOdds.s8        = item.s8;
                        race.scoreOdds.s9        = item.s9;
                        race.scoreOdds.s10       = item.s10;
                        race.scoreOdds.s11       = item.s11;
                        race.scoreOdds.s12       = item.s12;
                        race.scoreOdds.s13       = item.s13;
                        race.scoreOdds.s14       = item.s14;
                        race.scoreOdds.s15       = item.s15;
                        race.scoreOdds.s16       = item.s16;
                        race.scoreOdds.s17       = item.s17;
                        race.scoreOdds.s18       = item.s18;
                        race.scoreOdds.s19       = item.s19;
                        race.scoreOdds.s20       = item.s20;
                        race.scoreOdds.s21       = item.s21;
                        race.scoreOdds.s22       = item.s22;
                        race.scoreOdds.s23       = item.s23;
                        race.scoreOdds.s24       = item.s24;
                        race.scoreOdds.s25       = item.s25;
                        race.scoreOdds.s26       = item.s26;
                        race.scoreOdds.s27       = item.s27;
                        race.scoreOdds.s28       = item.s28;
                        race.scoreOdds.s29       = item.s29;
                        race.scoreOdds.s30       = item.s30;
                        race.scoreOdds.s31       = item.s31;
                        race.scoreOdds.o_type    = item.do_type;
                        race.scoreOdds.single    = item.dsingle;
                        race.scoreOdds.fixedodds = item.dfixedodds;
                        race.halfOdds.aa         = item.aa;
                        race.halfOdds.ad         = item.ad;
                        race.halfOdds.ah         = item.ah;
                        race.halfOdds.da         = item.da;
                        race.halfOdds.dd         = item.dd;
                        race.halfOdds.dh         = item.dh;
                        race.halfOdds.ha         = item.ha;
                        race.halfOdds.hd         = item.hd;
                        race.halfOdds.hh         = item.hh;
                        race.halfOdds.o_type     = item.eo_type;
                        race.halfOdds.single     = item.esingle;
                        race.halfOdds.fixedodds  = item.efixedodds;
                        list.dayRaceVoList[i].raceVoList.Add(race);
                        strdate = "1";
                    }
                }
                if (strdate == "1")
                {
                    continue;
                }
                day.date         = item.date;
                day.week         = item.week;
                race.id          = item.id;
                race.num         = item.num;
                race.date        = item.date;
                race.time        = item.time;
                race.h_cn_abbr   = item.h_cn_abbr;
                race.a_cn_abbr   = item.a_cn_abbr;
                race.h_order     = item.h_order;
                race.a_order     = item.a_order;
                race.weather     = item.weather;
                race.temperature = item.temperature;
                race.weather_pic = item.weather_pic;
                race.l_cn        = item.l_cn;
                race.l_cn_abbr   = item.l_cn_abbr;
                //race.winorloseOdds.a = item.a;
                //race.winorloseOdds.d = item.d;
                //race.winorloseOdds.h = item.h;
                //race.winorloseOdds.b = item.b;
                //race.winorloseOdds.e = item.e;
                //race.winorloseOdds.i = item.i;
                //race.winorloseOdds.o_type = item.o_type;
                //race.winorloseOdds.single = item.single;
                //race.winorloseOdds.fixedodds = item.fixedodds;
                //race.winorloseOdds.ro_type = item.ro_type;
                //race.winorloseOdds.rsingle = item.rsingle;
                //race.winorloseOdds.rfixedodds = item.rfixedodds;
                race.hadodds.a           = item.a;
                race.hadodds.d           = item.d;
                race.hadodds.h           = item.h;
                race.hhadodds.a          = item.b;
                race.hhadodds.d          = item.e;
                race.hhadodds.h          = item.i;
                race.hadodds.o_type      = item.o_type;
                race.hadodds.single      = item.single;
                race.hadodds.fixedodds   = item.fixedodds;
                race.hhadodds.o_type     = item.ro_type;
                race.hhadodds.single     = item.rsingle;
                race.hhadodds.fixedodds  = item.rfixedodds;
                race.totalOdds.s0        = item.ss0;
                race.totalOdds.s1        = item.ss1;
                race.totalOdds.s2        = item.ss2;
                race.totalOdds.s3        = item.ss3;
                race.totalOdds.s4        = item.ss4;
                race.totalOdds.s5        = item.ss5;
                race.totalOdds.s6        = item.ss6;
                race.totalOdds.s7        = item.ss7;
                race.totalOdds.o_type    = item.co_type;
                race.totalOdds.single    = item.csingle;
                race.totalOdds.fixedodds = item.cfixedodds;
                race.scoreOdds.s1        = item.s1;
                race.scoreOdds.s2        = item.s2;
                race.scoreOdds.s3        = item.s3;
                race.scoreOdds.s4        = item.s4;
                race.scoreOdds.s5        = item.s5;
                race.scoreOdds.s6        = item.s6;
                race.scoreOdds.s7        = item.s7;
                race.scoreOdds.s8        = item.s8;
                race.scoreOdds.s9        = item.s9;
                race.scoreOdds.s10       = item.s10;
                race.scoreOdds.s11       = item.s11;
                race.scoreOdds.s12       = item.s12;
                race.scoreOdds.s13       = item.s13;
                race.scoreOdds.s14       = item.s14;
                race.scoreOdds.s15       = item.s15;
                race.scoreOdds.s16       = item.s16;
                race.scoreOdds.s17       = item.s17;
                race.scoreOdds.s18       = item.s18;
                race.scoreOdds.s19       = item.s19;
                race.scoreOdds.s20       = item.s20;
                race.scoreOdds.s21       = item.s21;
                race.scoreOdds.s22       = item.s22;
                race.scoreOdds.s23       = item.s23;
                race.scoreOdds.s24       = item.s24;
                race.scoreOdds.s25       = item.s25;
                race.scoreOdds.s26       = item.s26;
                race.scoreOdds.s27       = item.s27;
                race.scoreOdds.s28       = item.s28;
                race.scoreOdds.s29       = item.s29;
                race.scoreOdds.s30       = item.s30;
                race.scoreOdds.s31       = item.s31;
                race.scoreOdds.o_type    = item.do_type;
                race.scoreOdds.single    = item.dsingle;
                race.scoreOdds.fixedodds = item.dfixedodds;
                race.halfOdds.aa         = item.aa;
                race.halfOdds.ad         = item.ad;
                race.halfOdds.ah         = item.ah;
                race.halfOdds.da         = item.da;
                race.halfOdds.dd         = item.dd;
                race.halfOdds.dh         = item.dh;
                race.halfOdds.ha         = item.ha;
                race.halfOdds.hd         = item.hd;
                race.halfOdds.hh         = item.hh;
                race.halfOdds.o_type     = item.do_type;
                race.halfOdds.single     = item.dsingle;
                race.halfOdds.fixedodds  = item.dfixedodds;
                day.raceVoList.Add(race);

                list.dayRaceVoList.Add(day);
            }
            return(list);
        }
Esempio n. 2
0
        /// <summary>
        /// 胜负平赔率查询
        /// </summary>
        /// <returns></returns>
        public ResFootMatchBase <Odds> GetWinOrLoseList()
        {
            var list = new ResFootMatchBase <Odds>();

            list.dayRaceVoList = new List <dayRaceVoList <Odds> >();

            foreach (ResWinOrLose item in (_baseDal as FootballMatchDal).GetWinOrLoseList())
            {
                var day = new dayRaceVoList <Odds>();
                day.raceVoList = new List <raceVoList <Odds> >();
                var race = new raceVoList <Odds>();
                race.bfOdds = new Odds();
                string strdate = "";
                for (int i = 0; i < list.dayRaceVoList.Count(); i++)
                {
                    if (item.date == list.dayRaceVoList[i].date)
                    {
                        race.id          = item.id;
                        race.num         = item.num;
                        race.date        = item.date;
                        race.time        = item.time;
                        race.h_cn_abbr   = item.h_cn_abbr;
                        race.a_cn_abbr   = item.a_cn_abbr;
                        race.h_order     = item.h_order;
                        race.a_order     = item.a_order;
                        race.weather     = item.weather;
                        race.temperature = item.temperature;
                        race.weather_pic = item.weather_pic;
                        race.l_cn        = item.l_cn;
                        race.l_cn_abbr   = item.l_cn_abbr;
                        //race.bfOdds.a = item.a;
                        //race.bfOdds.d = item.d;
                        //race.bfOdds.h = item.h;
                        //race.bfOdds.b = item.b;
                        //race.bfOdds.e = item.e;
                        //race.bfOdds.i = item.i;
                        list.dayRaceVoList[i].raceVoList.Add(race);
                        strdate = "1";
                    }
                }
                if (strdate == "1")
                {
                    continue;
                }
                day.date         = item.date;
                day.week         = item.num;
                race.id          = item.id;
                race.num         = item.num;
                race.date        = item.date;
                race.time        = item.time;
                race.h_cn_abbr   = item.h_cn_abbr;
                race.a_cn_abbr   = item.a_cn_abbr;
                race.h_order     = item.h_order;
                race.a_order     = item.a_order;
                race.weather     = item.weather;
                race.temperature = item.temperature;
                race.weather_pic = item.weather_pic;
                race.l_cn        = item.l_cn;
                race.l_cn_abbr   = item.l_cn_abbr;
                //race.bfOdds.a = item.a;
                //race.bfOdds.d = item.d;
                //race.bfOdds.h = item.h;
                //race.bfOdds.b = item.b;
                //race.bfOdds.e = item.e;
                //race.bfOdds.i = item.i;
                day.raceVoList.Add(race);

                list.dayRaceVoList.Add(day);
            }

            return(list);
        }
Esempio n. 3
0
        /// <summary>
        /// 比分赔率查询
        /// </summary>
        /// <returns></returns>
        public ResFootMatchBase <MatchScore> GetMatchScoreList()
        {
            var list = new ResFootMatchBase <MatchScore>();

            list.dayRaceVoList = new List <dayRaceVoList <MatchScore> >();

            foreach (ResMatchScore item in (_baseDal as FootballMatchDal).GetMatchScoreList())
            {
                var day = new dayRaceVoList <MatchScore>();
                day.raceVoList = new List <raceVoList <MatchScore> >();
                var race = new raceVoList <MatchScore>();
                race.bfOdds = new MatchScore();
                string strdate = "";
                for (int i = 0; i < list.dayRaceVoList.Count(); i++)
                {
                    if (item.date == list.dayRaceVoList[i].date)
                    {
                        race.id          = item.id;
                        race.num         = item.num;
                        race.date        = item.date;
                        race.time        = item.time;
                        race.h_cn_abbr   = item.h_cn_abbr;
                        race.a_cn_abbr   = item.a_cn_abbr;
                        race.h_order     = item.h_order;
                        race.a_order     = item.a_order;
                        race.weather     = item.weather;
                        race.temperature = item.temperature;
                        race.weather_pic = item.weather_pic;
                        race.l_cn        = item.l_cn;
                        race.l_cn_abbr   = item.l_cn_abbr;
                        race.bfOdds.s1   = item.s1;
                        race.bfOdds.s2   = item.s2;
                        race.bfOdds.s3   = item.s3;
                        race.bfOdds.s4   = item.s4;
                        race.bfOdds.s5   = item.s5;
                        race.bfOdds.s6   = item.s6;
                        race.bfOdds.s7   = item.s7;
                        race.bfOdds.s8   = item.s8;
                        race.bfOdds.s9   = item.s9;
                        race.bfOdds.s10  = item.s10;
                        race.bfOdds.s11  = item.s11;
                        race.bfOdds.s12  = item.s12;
                        race.bfOdds.s13  = item.s13;
                        race.bfOdds.s14  = item.s14;
                        race.bfOdds.s15  = item.s15;
                        race.bfOdds.s16  = item.s16;
                        race.bfOdds.s17  = item.s17;
                        race.bfOdds.s18  = item.s18;
                        race.bfOdds.s19  = item.s19;
                        race.bfOdds.s20  = item.s20;
                        race.bfOdds.s21  = item.s21;
                        race.bfOdds.s22  = item.s22;
                        race.bfOdds.s23  = item.s23;
                        race.bfOdds.s24  = item.s24;
                        race.bfOdds.s25  = item.s25;
                        race.bfOdds.s26  = item.s26;
                        race.bfOdds.s27  = item.s27;
                        race.bfOdds.s28  = item.s28;
                        race.bfOdds.s29  = item.s29;
                        race.bfOdds.s30  = item.s30;
                        list.dayRaceVoList[i].raceVoList.Add(race);
                        strdate = "1";
                    }
                }
                if (strdate == "1")
                {
                    continue;
                }
                day.date         = item.date;
                day.week         = item.num;
                race.id          = item.id;
                race.num         = item.num;
                race.date        = item.date;
                race.time        = item.time;
                race.h_cn_abbr   = item.h_cn_abbr;
                race.a_cn_abbr   = item.a_cn_abbr;
                race.h_order     = item.h_order;
                race.a_order     = item.a_order;
                race.weather     = item.weather;
                race.temperature = item.temperature;
                race.weather_pic = item.weather_pic;
                race.l_cn        = item.l_cn;
                race.l_cn_abbr   = item.l_cn_abbr;
                race.bfOdds.s1   = item.s1;
                race.bfOdds.s2   = item.s2;
                race.bfOdds.s3   = item.s3;
                race.bfOdds.s4   = item.s4;
                race.bfOdds.s5   = item.s5;
                race.bfOdds.s6   = item.s6;
                race.bfOdds.s7   = item.s7;
                race.bfOdds.s8   = item.s8;
                race.bfOdds.s9   = item.s9;
                race.bfOdds.s10  = item.s10;
                race.bfOdds.s11  = item.s11;
                race.bfOdds.s12  = item.s12;
                race.bfOdds.s13  = item.s13;
                race.bfOdds.s14  = item.s14;
                race.bfOdds.s15  = item.s15;
                race.bfOdds.s16  = item.s16;
                race.bfOdds.s17  = item.s17;
                race.bfOdds.s18  = item.s18;
                race.bfOdds.s19  = item.s19;
                race.bfOdds.s20  = item.s20;
                race.bfOdds.s21  = item.s21;
                race.bfOdds.s22  = item.s22;
                race.bfOdds.s23  = item.s23;
                race.bfOdds.s24  = item.s24;
                race.bfOdds.s25  = item.s25;
                race.bfOdds.s26  = item.s26;
                race.bfOdds.s27  = item.s27;
                race.bfOdds.s28  = item.s28;
                race.bfOdds.s29  = item.s29;
                race.bfOdds.s30  = item.s30;
                day.raceVoList.Add(race);

                list.dayRaceVoList.Add(day);
            }

            return(list);
        }
Esempio n. 4
0
        /// <summary>
        /// 半全场平负赔率数据查询
        /// </summary>
        /// <returns></returns>
        public ResFootMatchBase <HalfCourtNegative> GetHalfCourtNegativeList()
        {
            var list = new ResFootMatchBase <HalfCourtNegative>();

            list.dayRaceVoList = new List <dayRaceVoList <HalfCourtNegative> >();

            foreach (ResHalfCourtNegative item in (_baseDal as FootballMatchDal).GetHalfCourtNegativeList())
            {
                var day = new dayRaceVoList <HalfCourtNegative>();
                day.raceVoList = new List <raceVoList <HalfCourtNegative> >();
                var race = new raceVoList <HalfCourtNegative>();
                race.bfOdds = new HalfCourtNegative();
                string strdate = "";
                for (int i = 0; i < list.dayRaceVoList.Count(); i++)
                {
                    if (item.date == list.dayRaceVoList[i].date)
                    {
                        race.id          = item.id;
                        race.num         = item.num;
                        race.date        = item.date;
                        race.time        = item.time;
                        race.h_cn_abbr   = item.h_cn_abbr;
                        race.a_cn_abbr   = item.a_cn_abbr;
                        race.h_order     = item.h_order;
                        race.a_order     = item.a_order;
                        race.weather     = item.weather;
                        race.temperature = item.temperature;
                        race.weather_pic = item.weather_pic;
                        race.l_cn        = item.l_cn;
                        race.l_cn_abbr   = item.l_cn_abbr;
                        race.bfOdds.aa   = item.aa;
                        race.bfOdds.ad   = item.ad;
                        race.bfOdds.ah   = item.ah;
                        race.bfOdds.da   = item.da;
                        race.bfOdds.dd   = item.dd;
                        race.bfOdds.dh   = item.dh;
                        race.bfOdds.ha   = item.ha;
                        race.bfOdds.hd   = item.hd;
                        race.bfOdds.hh   = item.hh;

                        list.dayRaceVoList[i].raceVoList.Add(race);
                        strdate = "1";
                    }
                }
                if (strdate == "1")
                {
                    continue;
                }
                day.date         = item.date;
                day.week         = item.num;
                race.id          = item.id;
                race.num         = item.num;
                race.date        = item.date;
                race.time        = item.time;
                race.h_cn_abbr   = item.h_cn_abbr;
                race.a_cn_abbr   = item.a_cn_abbr;
                race.h_order     = item.h_order;
                race.a_order     = item.a_order;
                race.weather     = item.weather;
                race.temperature = item.temperature;
                race.weather_pic = item.weather_pic;
                race.l_cn        = item.l_cn;
                race.l_cn_abbr   = item.l_cn_abbr;
                race.bfOdds.aa   = item.aa;
                race.bfOdds.ad   = item.ad;
                race.bfOdds.ah   = item.ah;
                race.bfOdds.da   = item.da;
                race.bfOdds.dd   = item.dd;
                race.bfOdds.dh   = item.dh;
                race.bfOdds.ha   = item.ha;
                race.bfOdds.hd   = item.hd;
                race.bfOdds.hh   = item.hh;
                day.raceVoList.Add(race);

                list.dayRaceVoList.Add(day);
            }
            return(list);
        }
Esempio n. 5
0
        /// <summary>
        /// 总比分赔率查询
        /// </summary>
        /// <returns></returns>
        public ResFootMatchBase <TotalGoals> GetTotalGoalsList()
        {
            var list = new ResFootMatchBase <TotalGoals>();

            list.dayRaceVoList = new List <dayRaceVoList <TotalGoals> >();

            foreach (ResTotalGoals item in (_baseDal as FootballMatchDal).GetTotalGoalsList())
            {
                var day = new dayRaceVoList <TotalGoals>();
                day.raceVoList = new List <raceVoList <TotalGoals> >();
                var race = new raceVoList <TotalGoals>();
                race.bfOdds = new TotalGoals();
                string strdate = "";
                for (int i = 0; i < list.dayRaceVoList.Count(); i++)
                {
                    if (item.date == list.dayRaceVoList[i].date)
                    {
                        race.id          = item.id;
                        race.num         = item.num;
                        race.date        = item.date;
                        race.time        = item.time;
                        race.h_cn_abbr   = item.h_cn_abbr;
                        race.a_cn_abbr   = item.a_cn_abbr;
                        race.h_order     = item.h_order;
                        race.a_order     = item.a_order;
                        race.weather     = item.weather;
                        race.temperature = item.temperature;
                        race.weather_pic = item.weather_pic;
                        race.l_cn        = item.l_cn;
                        race.l_cn_abbr   = item.l_cn_abbr;
                        race.bfOdds.s0   = item.s0;
                        race.bfOdds.s1   = item.s1;
                        race.bfOdds.s2   = item.s2;
                        race.bfOdds.s3   = item.s3;
                        race.bfOdds.s4   = item.s4;
                        race.bfOdds.s5   = item.s5;
                        race.bfOdds.s6   = item.s6;
                        race.bfOdds.s7   = item.s7;
                        list.dayRaceVoList[i].raceVoList.Add(race);
                        strdate = "1";
                    }
                }
                if (strdate == "1")
                {
                    continue;
                }
                day.date         = item.date;
                day.week         = item.num;
                race.id          = item.id;
                race.num         = item.num;
                race.date        = item.date;
                race.time        = item.time;
                race.h_cn_abbr   = item.h_cn_abbr;
                race.a_cn_abbr   = item.a_cn_abbr;
                race.h_order     = item.h_order;
                race.a_order     = item.a_order;
                race.weather     = item.weather;
                race.temperature = item.temperature;
                race.weather_pic = item.weather_pic;
                race.l_cn        = item.l_cn;
                race.l_cn_abbr   = item.l_cn_abbr;
                race.bfOdds.s0   = item.s0;
                race.bfOdds.s1   = item.s1;
                race.bfOdds.s2   = item.s2;
                race.bfOdds.s3   = item.s3;
                race.bfOdds.s4   = item.s4;
                race.bfOdds.s5   = item.s5;
                race.bfOdds.s6   = item.s6;
                race.bfOdds.s7   = item.s7;
                day.raceVoList.Add(race);

                list.dayRaceVoList.Add(day);
            }
            return(list);
        }