示例#1
0
        void setDataH1(string retbuff, string strDateTarg, string placeTarg, string racenumTarg)
        {
            JVData_Struct.JV_H1_HYOSU_ZENKAKE mH1Data =
                new JVData_Struct.JV_H1_HYOSU_ZENKAKE();
            mH1Data.SetDataB(ref retbuff);

            string strJyo = cCommon.JyoCord(mH1Data.id.JyoCD);

            if (!(strDateTarg == mH1Data.id.Year + mH1Data.id.MonthDay &&
                  placeTarg == strJyo &&
                  mH1Data.id.RaceNum == racenumTarg))
            {
                return;
            }

            for (int i = 0; i < 305; i++)
            {
                if (mH1Data.HyoUmatan[i].Kumi.Trim() == "")
                {
                    continue;
                }
                clsUmatanOdds cUmatanOdds = new clsUmatanOdds();
                cUmatanOdds.Kumi = mH1Data.HyoUmatan[i].Kumi;
                cUmatanOdds.Hyou = int.Parse(mH1Data.HyoUmatan[i].Hyo);
                listUmatanOddsH1.Add(cUmatanOdds);
            }
        }
示例#2
0
        string GeJVRTRead(string strDateTarg, string codeJyo, string numRace, string codeRT, int size)
        {
            clsUmatanOdds cUmatanOdds = new clsUmatanOdds();

            string retbuff;

            if (cCommon.checkClose() != 0)
            {
                return(null);
            }
            if (cCommon.checkInit() != 0)
            {
                return(null);
            }
            if (!cCommon.isJVRTOpen(codeRT, strDateTarg + codeJyo + numRace))
            {
                _form1.axJVLink1.JVClose();
                return(null);
            }
            retbuff = cCommon.loopJVRead(size, count, false);
            if (retbuff == "" || retbuff == "END")
            {
                _form1.axJVLink1.JVClose();
                return(null);
            }

            return(retbuff);
        }
示例#3
0
        public List <clsUmatanOdds> setDataO4(string retbuff, string strDateTarg, string placeTarg, string racenumTarg)
        {
            List <clsUmatanOdds> ret = new List <clsUmatanOdds>();

            JVData_Struct.JV_O4_ODDS_UMATAN mO4Data =
                new JVData_Struct.JV_O4_ODDS_UMATAN();
            mO4Data.SetDataB(ref retbuff);

            string strJyo = JyoCord(mO4Data.id.JyoCD);

            if (!(strDateTarg == mO4Data.id.Year + mO4Data.id.MonthDay &&
                  placeTarg == strJyo &&
                  mO4Data.id.RaceNum == racenumTarg))
            {
                return(null);
            }

            int cnt = 0;

            for (int i = 0; i < 306; i++)
            {
                if (mO4Data.OddsUmatanInfo[i].Kumi.Trim() == "" ||
                    mO4Data.OddsUmatanInfo[i].Odds.Trim() == "" ||
                    mO4Data.OddsUmatanInfo[i].Odds.Contains("-") ||
                    mO4Data.OddsUmatanInfo[i].Odds.Contains("*"))
                {
                    continue;
                }
                if (int.Parse(mO4Data.OddsUmatanInfo[i].Odds) == 0)
                {
                    continue;
                }
                clsUmatanOdds cUmatanOdds = new clsUmatanOdds();
                cUmatanOdds.Kumi    = mO4Data.OddsUmatanInfo[i].Kumi;
                cUmatanOdds.Umaban1 = int.Parse(mO4Data.OddsUmatanInfo[i].Kumi.Substring(0, 2));
                cUmatanOdds.Umaban2 = int.Parse(mO4Data.OddsUmatanInfo[i].Kumi.Substring(2, 2));
                cUmatanOdds.Odds    = (double)int.Parse(mO4Data.OddsUmatanInfo[i].Odds) / 10;
                cnt = 0;
                foreach (clsUmatanOdds ele in ret)
                {
                    if (ele.Odds == cUmatanOdds.Odds)
                    {
                        cnt++;
                    }
                }
                cUmatanOdds.OddsInt = int.Parse(mO4Data.OddsUmatanInfo[i].Odds +
                                                string.Format("{0:D3}", cnt));
                ret.Add(cUmatanOdds);
            }
            return(ret);
        }
示例#4
0
        void setDataO4(string retbuff, string strDateTarg, string placeTarg, string racenumTarg)
        {
            JVData_Struct.JV_O4_ODDS_UMATAN mO4Data =
                new JVData_Struct.JV_O4_ODDS_UMATAN();
            mO4Data.SetDataB(ref retbuff);

            string strJyo = cCommon.JyoCord(mO4Data.id.JyoCD);

            if (!(strDateTarg == mO4Data.id.Year + mO4Data.id.MonthDay &&
                  placeTarg == strJyo &&
                  mO4Data.id.RaceNum == racenumTarg))
            {
                return;
            }

            for (int i = 0; i < 306; i++)
            {
                if (mO4Data.OddsUmatanInfo[i].Kumi.Trim() == "" ||
                    mO4Data.OddsUmatanInfo[i].Odds.Trim() == "" ||
                    int.Parse(mO4Data.OddsUmatanInfo[i].Odds) == 0 ||
                    mO4Data.OddsUmatanInfo[i].Odds.Contains("-") ||
                    mO4Data.OddsUmatanInfo[i].Odds.Contains("*"))
                {
                    continue;
                }
                if (int.Parse(mO4Data.OddsUmatanInfo[i].Odds) == 0)
                {
                    continue;
                }
                clsUmatanOdds cUmatanOdds = new clsUmatanOdds();
                cUmatanOdds.Kumi    = mO4Data.OddsUmatanInfo[i].Kumi;
                cUmatanOdds.Umaban1 = int.Parse(mO4Data.OddsUmatanInfo[i].Kumi.Substring(0, 2));
                cUmatanOdds.Umaban2 = int.Parse(mO4Data.OddsUmatanInfo[i].Kumi.Substring(2, 2));
                cUmatanOdds.Odds    = (double)int.Parse(mO4Data.OddsUmatanInfo[i].Odds) / 10;
                cUmatanOdds.OddsInt = int.Parse(mO4Data.OddsUmatanInfo[i].Odds);
                listUmatanOdds.Add(cUmatanOdds);
            }
        }