Ejemplo n.º 1
0
        int GetRTDataDetailData2(ClassCSV cCSV, DateTime datetimeTarg)
        {
            TimeSpan timeSpan = new TimeSpan(0, 0, 3, 0);
            string   strJyo;
            string   codeJyo;
            string   tmp;
            int      tmpint;
            string   numRace;
            int      numUma;
            long     rowTarget;
            long     rowMax;

            _form1.prgJVRead.Value = 0;

            rowTarget = 2;
            rowMax    = cCSV.getDataMaxRow();
            _form1.prgJVRead.Maximum = (int)rowMax;
            while (rowTarget < rowMax)
            {
                // 場コードの特定
                tmp     = cCSV.getData(rowTarget, 3);
                tmp     = tmp.Substring(1, 1);
                strJyo  = cCommon.ShortJyo2Jyo(tmp);
                codeJyo = cCommon.JyogyakuCord(strJyo);
                // レース番号
                tmpint  = int.Parse(cCSV.getData(rowTarget, 6));
                numRace = String.Format("{0:D2}", tmpint);
                // 頭数
                numUma = int.Parse(cCSV.getData(rowTarget, 4));
                operateLoop(cCSV, datetimeTarg, codeJyo, numRace, rowTarget);

                // 速報オッズ(単複枠)の呼び出し
                operateOne(cCSV, datetimeTarg, codeJyo, numRace, numUma, rowTarget, "0B31");

                // 速報タイム型データマイニング予想の呼び出し
                operateOne(cCSV, datetimeTarg, codeJyo, numRace, numUma, rowTarget, "0B13");

                // 速報馬体重の呼び出し
                operateOne(cCSV, datetimeTarg, codeJyo, numRace, numUma, rowTarget, "0B11");

                _form1.prgJVRead.Value = (int)rowTarget;
                _form1.prgJVRead.Value--;

                rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
            }
            // すべて終了
            _form1.prgJVRead.Maximum++;
            _form1.prgJVRead.Value =
                _form1.prgJVRead.Maximum;
            _form1.prgJVRead.Maximum--;

            int retJVClose = _form1.axJVLink1.JVClose();

            if (retJVClose != 0)
            {
                cLog.writeLog("[GetPlaceInfoX]JVClose エラー:" +
                              retJVClose);
            }
            return(1);
        }
Ejemplo n.º 2
0
        void writeHeadData(ClassCSV cCSV)
        {
            long rowTarget = 2;

            while (rowTarget < cCSV.getDataMaxRow())
            {
                cCSV.setData(rowTarget + 1, 29, "馬体重");
                cCSV.setData(rowTarget + 1, 30, "増減");
                rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
            }
        }
Ejemplo n.º 3
0
        void setDataTC(ClassCSV cCSV, string retbuff, DateTime datetimeTarg)
        {
            string strShortJyo;
            string strJyo;
            string tmp;
            string tmpTime;
            long   rowTarget;

            JVData_Struct.JV_TC_INFO mTCData =
                new JVData_Struct.JV_TC_INFO();
            mTCData.SetDataB(ref retbuff);
            strJyo = cCommon.JyoCord(mTCData.id.JyoCD);
            if (strJyo == "")
            {
                return;
            }
            strShortJyo = cCommon.Jyo2ShortJyo(strJyo);
            rowTarget   = 2;
            while (rowTarget < cCSV.getDataMaxRow())
            {
                tmp = int.Parse(mTCData.id.Kaiji).ToString() +
                      strShortJyo +
                      int.Parse(mTCData.id.Nichiji).ToString();
                tmpTime = int.Parse(mTCData.TCInfoAfter.Ji).ToString() +
                          ":" + mTCData.TCInfoAfter.Fun;
                if (cCSV.getData(rowTarget, 3) == tmp &&
                    int.Parse(cCSV.getData(rowTarget, 6)) ==
                    int.Parse(mTCData.id.RaceNum))
                {
                    if (cCSV.getData(rowTarget, 5) != tmpTime)
                    {
                        cCSV.setData(rowTarget, 5, tmpTime);
                        break;
                    }
                }
                rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
            }
        }
Ejemplo n.º 4
0
        void deleteZanteiData(ClassCSV cCSV)
        {
            long     rowTarget = 2;
            string   tmp;
            DateTime datecheck;

            while (rowTarget < cCSV.getDataMaxRow())
            {
                tmp       = cCSV.getData(2, 1) + " " + cCSV.getData(rowTarget, 5);
                datecheck = DateTime.Parse(tmp);
                if (DateTime.Now > datecheck)
                {
                    if (cCSV.getData(rowTarget - 1, 13).Contains("(暫定)"))
                    {
                        cCSV.setData(rowTarget - 1, 13,
                                     cCSV.getData(rowTarget - 1, 13).Replace("(暫定)", ""));
                    }
                    if (cCSV.getData(rowTarget - 1, 14).Contains("(暫定)"))
                    {
                        cCSV.setData(rowTarget - 1, 14,
                                     cCSV.getData(rowTarget - 1, 14).Replace("(暫定)", ""));
                    }
                    if (cCSV.getData(rowTarget, 13).Contains("(暫定)"))
                    {
                        cCSV.setData(rowTarget, 13,
                                     cCSV.getData(rowTarget, 13).Replace("(暫定)", ""));
                    }
                    if (cCSV.getData(rowTarget, 14).Contains("(暫定)"))
                    {
                        cCSV.setData(rowTarget, 14,
                                     cCSV.getData(rowTarget, 14).Replace("(暫定)", ""));
                    }
                }

                rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
            }
        }
Ejemplo n.º 5
0
        void setDataWE(ClassCSV cCSV, string retbuff, DateTime datetimeTarg)
        {
            DateTime timeHappyo;
            DateTime timeRace;
            string   strShortJyo;
            string   strJyo;
            string   tmp;
            string   tmpTenko = "";
            string   tmpSiba  = "";
            string   tmpDirt  = "";
            string   tmpBaba  = "";
            long     rowTarget;

            JVData_Struct.JV_WE_WEATHER mWEData =
                new JVData_Struct.JV_WE_WEATHER();
            mWEData.SetDataB(ref retbuff);
            if (int.Parse(mWEData.HenkoID) == 2)
            {
                strJyo = cCommon.JyoCord(mWEData.id.JyoCD);
                if (strJyo == "")
                {
                    return;
                }
                strShortJyo = cCommon.Jyo2ShortJyo(strJyo);
                rowTarget   = 2;
                timeHappyo  = new DateTime(datetimeTarg.Year,
                                           datetimeTarg.Month,
                                           datetimeTarg.Day,
                                           int.Parse(mWEData.HappyoTime.Hour),
                                           int.Parse(mWEData.HappyoTime.Minute),
                                           0);
                while (rowTarget < cCSV.getDataMaxRow())
                {
                    timeRace = new DateTime(datetimeTarg.Year,
                                            datetimeTarg.Month,
                                            datetimeTarg.Day,
                                            int.Parse(cCSV.getData(rowTarget, 5).Substring(0, 2)),
                                            int.Parse(cCSV.getData(rowTarget, 5).Substring(3, 2)),
                                            0);
                    tmp = int.Parse(mWEData.id.Kaiji).ToString() +
                          strShortJyo +
                          int.Parse(mWEData.id.Nichiji).ToString();
                    if (cCSV.getData(rowTarget, 3) == tmp &&
                        timeHappyo < timeRace)
                    {
                        tmpTenko = cCommon.TenkoCord(mWEData.TenkoBaba.TenkoCD);
                        break;
                    }
                    rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
                }
                rowTarget = 2;
                while (rowTarget < cCSV.getDataMaxRow())
                {
                    tmp = int.Parse(mWEData.id.Kaiji).ToString() +
                          strShortJyo +
                          int.Parse(mWEData.id.Nichiji).ToString();
                    if (cCSV.getData(rowTarget, 3) == tmp &&
                        cCSV.getData(rowTarget, 14) != tmpTenko)
                    {
                        cCSV.setData(rowTarget, 14, tmpTenko);
                    }
                    rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
                }
            }
            if (int.Parse(mWEData.HenkoID) == 3)
            {
                strJyo = cCommon.JyoCord(mWEData.id.JyoCD);
                if (strJyo == "")
                {
                    return;
                }
                strShortJyo = cCommon.Jyo2ShortJyo(strJyo);
                rowTarget   = 2;
                timeHappyo  = new DateTime(datetimeTarg.Year,
                                           datetimeTarg.Month,
                                           datetimeTarg.Day,
                                           int.Parse(mWEData.HappyoTime.Hour),
                                           int.Parse(mWEData.HappyoTime.Minute),
                                           0);
                while (rowTarget < cCSV.getDataMaxRow())
                {
                    timeRace = new DateTime(datetimeTarg.Year,
                                            datetimeTarg.Month,
                                            datetimeTarg.Day,
                                            int.Parse(cCSV.getData(rowTarget, 5).Substring(0, 2)),
                                            int.Parse(cCSV.getData(rowTarget, 5).Substring(3, 2)),
                                            0);
                    tmp = int.Parse(mWEData.id.Kaiji).ToString() +
                          strShortJyo +
                          int.Parse(mWEData.id.Nichiji).ToString();
                    if (cCSV.getData(rowTarget, 3) == tmp &&
                        timeHappyo < timeRace)
                    {
                        tmpSiba = cCommon.BabaCord(mWEData.TenkoBaba.SibaBabaCD)
                                  .Substring(0, 1);
                        tmpDirt = cCommon.BabaCord(mWEData.TenkoBaba.DirtBabaCD)
                                  .Substring(0, 1);
                        break;
                    }
                    rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
                }
                rowTarget = 2;
                while (rowTarget < cCSV.getDataMaxRow())
                {
                    tmpBaba = "";
                    if (cCSV.getData(rowTarget, 9).Contains("ダート"))
                    {
                        tmpBaba = tmpDirt;
                    }
                    else
                    {
                        tmpBaba = tmpSiba;
                    }
                    tmp = int.Parse(mWEData.id.Kaiji).ToString() +
                          strShortJyo +
                          int.Parse(mWEData.id.Nichiji).ToString();
                    if (cCSV.getData(rowTarget, 3) == tmp &&
                        cCSV.getData(rowTarget, 13) != tmpBaba)
                    {
                        cCSV.setData(rowTarget, 13, tmpBaba);
                    }
                    rowTarget += long.Parse(cCSV.getData(rowTarget, 4)) + 3;
                }
            }
        }